diff --git a/generate_imgui_bindings.ps1 b/generate_imgui_bindings.ps1 index 782657023..84eb4e245 100644 --- a/generate_imgui_bindings.ps1 +++ b/generate_imgui_bindings.ps1 @@ -7,14 +7,19 @@ Set-Location -Path $PSScriptRoot # Copy cimgui files from the cimgui repository to Hexa.NET.ImGui Copy-Item -Path "lib/cimgui/cimgui.h" -Destination "lib/Hexa.NET.ImGui/Generator/cimgui" -Force Copy-Item -Path "lib/cimgui/generator/output/definitions.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimgui" -Force +Copy-Item -Path "lib/cimgui/generator/output/structs_and_enums.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimgui" -Force +Copy-Item -Path "lib/cimgui/generator/output/typedefs_dict.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimgui" -Force # Copy cimplot.h and cimguizmo.h Copy-Item -Path "lib/cimplot/cimplot.h" -Destination "lib/Hexa.NET.ImGui/Generator/cimplot" -Force Copy-Item -Path "lib/cimplot/generator/output/definitions.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimplot" -Force +Copy-Item -Path "lib/cimplot/generator/output/structs_and_enums.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimplot" -Force +Copy-Item -Path "lib/cimplot/generator/output/typedefs_dict.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimplot" -Force Copy-Item -Path "lib/cimguizmo/cimguizmo.h" -Destination "lib/Hexa.NET.ImGui/Generator/cimguizmo" -Force Copy-Item -Path "lib/cimguizmo/generator/output/definitions.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimguizmo" -Force - +Copy-Item -Path "lib/cimguizmo/generator/output/structs_and_enums.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimguizmo" -Force +#Copy-Item -Path "lib/cimguizmo/generator/output/typedefs_dict.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimguizmo" -Force # Find the first `#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS` in cimgui.h and insert `#define CIMGUI_DEFINE_ENUMS_AND_STRUCTS` before it function InsertDefine { @@ -66,6 +71,7 @@ Set-Location -Path "Generator" dotnet build # Run generator +Read-Host -Prompt "Press any key to generate" | Out-Null Set-Location -Path "bin/Debug/net9.0" .\Generator.exe diff --git a/imgui/Dalamud.Bindings.ImGui/Dalamud.Bindings.ImGui.csproj b/imgui/Dalamud.Bindings.ImGui/Dalamud.Bindings.ImGui.csproj index 9b1084ef0..c995dfd68 100644 --- a/imgui/Dalamud.Bindings.ImGui/Dalamud.Bindings.ImGui.csproj +++ b/imgui/Dalamud.Bindings.ImGui/Dalamud.Bindings.ImGui.csproj @@ -9,7 +9,7 @@ - + diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Constants/Constants.000.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Constants/Constants.000.cs index 41740859a..8186adec9 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Constants/Constants.000.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Constants/Constants.000.cs @@ -15,10 +15,14 @@ namespace Dalamud.Bindings.ImGui { public unsafe partial class ImGui { + public const int CIMGUI_VARGS0 = 1; + public const int IMGUI_USE_WCHAR32 = 1; public const int IMGUI_ENABLE_FREETYPE = 1; + public const int CIMGUI_DEFINE_ENUMS_AND_STRUCTS = 1; + public const int IMGUI_HAS_DOCK = 1; } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Delegates/Delegates.000.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Delegates/Delegates.000.cs index 39ef5dfc1..f2e7d16e8 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Delegates/Delegates.000.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Delegates/Delegates.000.cs @@ -661,14 +661,14 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void* ImGuiMemAllocFunc([NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "size_t")] ulong sz, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); + public unsafe delegate void* ImGuiMemAllocFunc([NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "size_t")] nuint sz, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); #else /// /// To be documented. /// [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate nint ImGuiMemAllocFunc([NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "size_t")] ulong sz, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); + public unsafe delegate nint ImGuiMemAllocFunc([NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "size_t")] nuint sz, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); #endif diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawFlags.cs index a6b366b73..e6c17d87e 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawFlags.cs @@ -25,32 +25,32 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// PathStroke(), AddPolyline(): specify that shape should be closed (Important: this is always == 1 for legacy reason)
+ /// To be documented. ///
Closed = unchecked(1), /// - /// AddRect(), AddRectFilled(), PathRect(): enable rounding top-left corner only (when rounding > 0.0f, we default to all corners). Was 0x01.
+ /// To be documented. ///
RoundCornersTopLeft = unchecked(16), /// - /// AddRect(), AddRectFilled(), PathRect(): enable rounding top-right corner only (when rounding > 0.0f, we default to all corners). Was 0x02.
+ /// To be documented. ///
RoundCornersTopRight = unchecked(32), /// - /// AddRect(), AddRectFilled(), PathRect(): enable rounding bottom-left corner only (when rounding > 0.0f, we default to all corners). Was 0x04.
+ /// To be documented. ///
RoundCornersBottomLeft = unchecked(64), /// - /// AddRect(), AddRectFilled(), PathRect(): enable rounding bottom-right corner only (when rounding > 0.0f, we default to all corners). Wax 0x08.
+ /// To be documented. ///
RoundCornersBottomRight = unchecked(128), /// - /// AddRect(), AddRectFilled(), PathRect(): disable rounding on all corners (when rounding > 0.0f). This is NOT zero, NOT an implicit flag!
+ /// To be documented. ///
RoundCornersNone = unchecked(256), @@ -80,7 +80,7 @@ namespace Dalamud.Bindings.ImGui RoundCornersAll = unchecked(240), /// - /// Default to ALL corners if none of the _RoundCornersXX flags are specified.
+ /// To be documented. ///
RoundCornersDefault = RoundCornersAll, diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawListFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawListFlags.cs index 49d64f184..efcf4cb9b 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawListFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawListFlags.cs @@ -25,22 +25,22 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Enable anti-aliased linesborders (*2 the number of triangles for 1.0f wide line or lines thin enough to be drawn using textures, otherwise *3 the number of triangles)
+ /// To be documented. ///
AntiAliasedLines = unchecked(1), /// - /// Enable anti-aliased linesborders using textures when possible. Require backend to render with bilinear filtering (NOT pointnearest filtering).
+ /// To be documented. ///
AntiAliasedLinesUseTex = unchecked(2), /// - /// Enable anti-aliased edge around filled shapes (rounded rectangles, circles).
+ /// To be documented. ///
AntiAliasedFill = unchecked(4), /// - /// Can emit 'VtxOffset > 0' to allow large meshes. Set when 'ImGuiBackendFlags_RendererHasVtxOffset' is enabled.
+ /// To be documented. ///
AllowVtxOffset = unchecked(8), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImFontAtlasFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImFontAtlasFlags.cs index 252ec720d..43ee3b150 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImFontAtlasFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImFontAtlasFlags.cs @@ -25,17 +25,17 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Don't round the height to next power of two
+ /// To be documented. ///
NoPowerOfTwoHeight = unchecked(1), /// - /// Don't build software mouse cursors into the atlas (save a little texture memory)
+ /// To be documented. ///
NoMouseCursors = unchecked(2), /// - /// Don't build thick line textures into the atlas (save a little texture memory, allow support for pointnearest filtering). The AntiAliasedLinesUseTex features uses them, otherwise they will be rendered using polygons (more expensive for CPUGPU).
+ /// To be documented. ///
NoBakedLines = unchecked(4), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiActivateFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiActivateFlags.cs index 378443321..c1e45671b 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiActivateFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiActivateFlags.cs @@ -25,17 +25,17 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Favor activation that requires keyboard text input (e.g. for SliderDrag). Default for Enter key.
+ /// To be documented. ///
PreferInput = unchecked(1), /// - /// Favor activation for tweaking with arrows or gamepad (e.g. for SliderDrag). Default for Space key and if keyboard is not used.
+ /// To be documented. ///
PreferTweak = unchecked(2), /// - /// Request widget to preserve state if it can (e.g. InputText will try to preserve cursorselection)
+ /// To be documented. ///
TryToPreserveState = unchecked(4), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiBackendFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiBackendFlags.cs index e6a66945e..d777cedf1 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiBackendFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiBackendFlags.cs @@ -25,37 +25,37 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Backend Platform supports gamepad and currently has one connected.
+ /// To be documented. ///
HasGamepad = unchecked(1), /// - /// Backend Platform supports honoring GetMouseCursor() value to change the OS cursor shape.
+ /// To be documented. ///
HasMouseCursors = unchecked(2), /// - /// Backend Platform supports io.WantSetMousePos requests to reposition the OS mouse position (only used if io.ConfigNavMoveSetMousePos is set).
+ /// To be documented. ///
HasSetMousePos = unchecked(4), /// - /// Backend Renderer supports ImDrawCmd::VtxOffset. This enables output of large meshes (64K+ vertices) while still using 16-bit indices.
+ /// To be documented. ///
RendererHasVtxOffset = unchecked(8), /// - /// Backend Platform supports multiple viewports.
+ /// To be documented. ///
PlatformHasViewports = unchecked(1024), /// - /// Backend Platform supports calling io.AddMouseViewportEvent() with the viewport under the mouse. IF POSSIBLE, ignore viewports with the ImGuiViewportFlags_NoInputs flag (Win32 backend, GLFW 3.30+ backend can do this, SDL backend cannot). If this cannot be done, Dear ImGui needs to use a flawed heuristic to find the viewport under.
+ /// To be documented. ///
HasMouseHoveredViewport = unchecked(2048), /// - /// Backend Renderer supports multiple viewports.
+ /// To be documented. ///
RendererHasViewports = unchecked(4096), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlags.cs index 74a2a0572..640e8158d 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlags.cs @@ -25,22 +25,22 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// React on left mouse button (default)
+ /// To be documented. ///
MouseButtonLeft = unchecked(1), /// - /// React on right mouse button
+ /// To be documented. ///
MouseButtonRight = unchecked(2), /// - /// React on center mouse button
+ /// To be documented. ///
MouseButtonMiddle = unchecked(4), /// - /// [Internal]
+ /// To be documented. ///
MouseButtonMask = unchecked(7), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlagsPrivate.cs index 3c0ee2934..5e864c855 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlagsPrivate.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlagsPrivate.cs @@ -20,32 +20,32 @@ namespace Dalamud.Bindings.ImGui public enum ImGuiButtonFlagsPrivate : int { /// - /// return true on click (mouse down event)
+ /// To be documented. ///
PressedOnClick = unchecked(16), /// - /// [Default] return true on click + release on same item <-- this is what the majority of Button are using
+ /// To be documented. ///
PressedOnClickRelease = unchecked(32), /// - /// return true on click + release even if the release event is not done while hovering the item
+ /// To be documented. ///
PressedOnClickReleaseAnywhere = unchecked(64), /// - /// return true on release (default requires click+release)
+ /// To be documented. ///
PressedOnRelease = unchecked(128), /// - /// return true on double-click (default requires click+release)
+ /// To be documented. ///
PressedOnDoubleClick = unchecked(256), /// - /// return true when held into while we are drag and dropping another item (used by e.g. tree nodes, collapsing headers)
+ /// To be documented. ///
PressedOnDragDropHold = unchecked(512), @@ -55,7 +55,7 @@ namespace Dalamud.Bindings.ImGui Repeat = unchecked(1024), /// - /// allow interactions even if a child window is overlapping
+ /// To be documented. ///
FlattenChildren = unchecked(2048), @@ -70,7 +70,7 @@ namespace Dalamud.Bindings.ImGui DontClosePopups = unchecked(8192), /// - /// vertically align button to match text baseline - ButtonEx() only FIXME: Should be removed and handled by SmallButton(), not possible currently because of DC.CursorPosPrevLine
+ /// To be documented. ///
AlignTextBaseLine = unchecked(32768), @@ -80,17 +80,17 @@ namespace Dalamud.Bindings.ImGui NoKeyModifiers = unchecked(65536), /// - /// don't set ActiveId while holding the mouse (ImGuiButtonFlags_PressedOnClick only)
+ /// To be documented. ///
NoHoldingActiveId = unchecked(131072), /// - /// don't override navigation focus when activated (FIXME: this is essentially used every time an item uses ImGuiItemFlags_NoNav, but because legacy specs don't requires LastItemData to be set ButtonBehavior(), we can't poll g.LastItemData.ItemFlags)
+ /// To be documented. ///
NoNavFocus = unchecked(262144), /// - /// don't report as hovered when nav focus is on this item
+ /// To be documented. ///
NoHoveredOnFocus = unchecked(524288), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCol.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCol.cs index 79b66bd31..166f451a1 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCol.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCol.cs @@ -30,17 +30,17 @@ namespace Dalamud.Bindings.ImGui TextDisabled = unchecked(1), /// - /// Background of normal windows
+ /// To be documented. ///
WindowBg = unchecked(2), /// - /// Background of child windows
+ /// To be documented. ///
ChildBg = unchecked(3), /// - /// Background of popups, menus, tooltips windows
+ /// To be documented. ///
PopupBg = unchecked(4), @@ -55,7 +55,7 @@ namespace Dalamud.Bindings.ImGui BorderShadow = unchecked(6), /// - /// Background of checkbox, radio button, plot, slider, text input
+ /// To be documented. ///
FrameBg = unchecked(7), @@ -70,17 +70,17 @@ namespace Dalamud.Bindings.ImGui FrameBgActive = unchecked(9), /// - /// Title bar
+ /// To be documented. ///
TitleBg = unchecked(10), /// - /// Title bar when focused
+ /// To be documented. ///
TitleBgActive = unchecked(11), /// - /// Title bar when collapsed
+ /// To be documented. ///
TitleBgCollapsed = unchecked(12), @@ -110,7 +110,7 @@ namespace Dalamud.Bindings.ImGui ScrollbarGrabActive = unchecked(17), /// - /// Checkbox tick and RadioButton circle
+ /// To be documented. ///
CheckMark = unchecked(18), @@ -140,7 +140,7 @@ namespace Dalamud.Bindings.ImGui ButtonActive = unchecked(23), /// - /// Header* colors are used for CollapsingHeader, TreeNode, Selectable, MenuItem
+ /// To be documented. ///
Header = unchecked(24), @@ -170,7 +170,7 @@ namespace Dalamud.Bindings.ImGui SeparatorActive = unchecked(29), /// - /// Resize grip in lower-right and lower-left corners of windows.
+ /// To be documented. ///
ResizeGrip = unchecked(30), @@ -185,12 +185,12 @@ namespace Dalamud.Bindings.ImGui ResizeGripActive = unchecked(32), /// - /// Tab background, when tab-bar is focused & tab is unselected
+ /// To be documented. ///
Tab = unchecked(33), /// - /// Tab background, when hovered
+ /// To be documented. ///
TabHovered = unchecked(34), @@ -210,12 +210,12 @@ namespace Dalamud.Bindings.ImGui TabUnfocusedActive = unchecked(37), /// - /// Preview overlay color when about to docking something
+ /// To be documented. ///
DockingPreview = unchecked(38), /// - /// Background color for empty node (e.g. CentralNode with no window docked into it)
+ /// To be documented. ///
DockingEmptyBg = unchecked(39), @@ -240,27 +240,27 @@ namespace Dalamud.Bindings.ImGui PlotHistogramHovered = unchecked(43), /// - /// Table header background
+ /// To be documented. ///
TableHeaderBg = unchecked(44), /// - /// Table outer and header borders (prefer using Alpha=1.0 here)
+ /// To be documented. ///
TableBorderStrong = unchecked(45), /// - /// Table inner borders (prefer using Alpha=1.0 here)
+ /// To be documented. ///
TableBorderLight = unchecked(46), /// - /// Table row background (even rows)
+ /// To be documented. ///
TableRowBg = unchecked(47), /// - /// Table row background (odd rows)
+ /// To be documented. ///
TableRowBgAlt = unchecked(48), @@ -270,7 +270,7 @@ namespace Dalamud.Bindings.ImGui TextSelectedBg = unchecked(49), /// - /// Rectangle highlighting a drop target
+ /// To be documented. ///
DragDropTarget = unchecked(50), @@ -280,17 +280,17 @@ namespace Dalamud.Bindings.ImGui NavHighlight = unchecked(51), /// - /// Highlight window when using CTRL+TAB
+ /// To be documented. ///
NavWindowingHighlight = unchecked(52), /// - /// Darkencolorize entire screen behind the CTRL+TAB window list, when active
+ /// To be documented. ///
NavWindowingDimBg = unchecked(53), /// - /// Darkencolorize entire screen behind a modal window, when one is active
+ /// To be documented. ///
ModalWindowDimBg = unchecked(54), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiColorEditFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiColorEditFlags.cs index 1ba39dae6..5d1fc4cfb 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiColorEditFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiColorEditFlags.cs @@ -25,57 +25,57 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// ColorEdit, ColorPicker, ColorButton: ignore Alpha component (will only read 3 components from the input pointer).
+ /// To be documented. ///
NoAlpha = unchecked(2), /// - /// ColorEdit: disable picker when clicking on color square.
+ /// To be documented. ///
NoPicker = unchecked(4), /// - /// ColorEdit: disable toggling options menu when right-clicking on inputssmall preview.
+ /// To be documented. ///
NoOptions = unchecked(8), /// - /// ColorEdit, ColorPicker: disable color square preview next to the inputs. (e.g. to show only the inputs)
+ /// To be documented. ///
NoSmallPreview = unchecked(16), /// - /// ColorEdit, ColorPicker: disable inputs sliderstext widgets (e.g. to show only the small preview color square).
+ /// To be documented. ///
NoInputs = unchecked(32), /// - /// ColorEdit, ColorPicker, ColorButton: disable tooltip when hovering the preview.
+ /// To be documented. ///
NoTooltip = unchecked(64), /// - /// ColorEdit, ColorPicker: disable display of inline text label (the label is still forwarded to the tooltip and picker).
+ /// To be documented. ///
NoLabel = unchecked(128), /// - /// ColorPicker: disable bigger color preview on right side of the picker, use small color square preview instead.
+ /// To be documented. ///
NoSidePreview = unchecked(256), /// - /// ColorEdit: disable drag and drop target. ColorButton: disable drag and drop source.
+ /// To be documented. ///
NoDragDrop = unchecked(512), /// - /// ColorButton: disable border (which is enforced by default)
+ /// To be documented. ///
NoBorder = unchecked(1024), /// - /// ColorEdit, ColorPicker: show vertical alpha bargradient in picker.
+ /// To be documented. ///
AlphaBar = unchecked(65536), @@ -85,57 +85,57 @@ namespace Dalamud.Bindings.ImGui AlphaPreview = unchecked(131072), /// - /// ColorEdit, ColorPicker, ColorButton: display half opaque half transparent preview.
+ /// To be documented. ///
AlphaPreviewHalf = unchecked(262144), /// - /// (WIP) ColorEdit: Currently only disable 0.0f..1.0f limits in RGBA edition (note: you probably want to use ImGuiColorEditFlags_Float flag as well).
+ /// To be documented. ///
Hdr = unchecked(524288), /// - /// [Display] ColorEdit: override _display_ type among RGBHSVHex. ColorPicker: select any combination using one or more of RGBHSVHex.
+ /// To be documented. ///
DisplayRgb = unchecked(1048576), /// - /// [Display] "
+ /// To be documented. ///
DisplayHsv = unchecked(2097152), /// - /// [Display] "
+ /// To be documented. ///
DisplayHex = unchecked(4194304), /// - /// [DataType] ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0..255.
+ /// To be documented. ///
Uint8 = unchecked(8388608), /// - /// [DataType] ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0.0f..1.0f floats instead of 0..255 integers. No round-trip of value via integers.
+ /// To be documented. ///
Float = unchecked(16777216), /// - /// [Picker] ColorPicker: bar for Hue, rectangle for SatValue.
+ /// To be documented. ///
PickerHueBar = unchecked(33554432), /// - /// [Picker] ColorPicker: wheel for Hue, triangle for SatValue.
+ /// To be documented. ///
PickerHueWheel = unchecked(67108864), /// - /// [Input] ColorEdit, ColorPicker: input and output data in RGB format.
+ /// To be documented. ///
InputRgb = unchecked(134217728), /// - /// [Input] ColorEdit, ColorPicker: input and output data in HSV format.
+ /// To be documented. ///
InputHsv = unchecked(268435456), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlags.cs index 4258c3edc..feb5b1eb6 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlags.cs @@ -25,37 +25,37 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Align the popup toward the left by default
+ /// To be documented. ///
PopupAlignLeft = unchecked(1), /// - /// Max ~4 items visible. Tip: If you want your combo popup to be a specific size you can use SetNextWindowSizeConstraints() prior to calling BeginCombo()
+ /// To be documented. ///
HeightSmall = unchecked(2), /// - /// Max ~8 items visible (default)
+ /// To be documented. ///
HeightRegular = unchecked(4), /// - /// Max ~20 items visible
+ /// To be documented. ///
HeightLarge = unchecked(8), /// - /// As many fitting items as possible
+ /// To be documented. ///
HeightLargest = unchecked(16), /// - /// Display on the preview box without the square arrow button
+ /// To be documented. ///
NoArrowButton = unchecked(32), /// - /// Display only a square arrow button
+ /// To be documented. ///
NoPreview = unchecked(64), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlagsPrivate.cs index 1bcab62c7..94372eef4 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlagsPrivate.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlagsPrivate.cs @@ -20,7 +20,7 @@ namespace Dalamud.Bindings.ImGui public enum ImGuiComboFlagsPrivate : int { /// - /// enable BeginComboPreview()
+ /// To be documented. ///
CustomPreview = unchecked(1048576), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCond.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCond.cs index ed29c3add..911c40740 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCond.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCond.cs @@ -20,27 +20,27 @@ namespace Dalamud.Bindings.ImGui public enum ImGuiCond : int { /// - /// No condition (always set the variable), same as _Always
+ /// To be documented. ///
None = unchecked(0), /// - /// No condition (always set the variable), same as _None
+ /// To be documented. ///
Always = unchecked(1), /// - /// Set the variable once per runtime session (only the first call will succeed)
+ /// To be documented. ///
Once = unchecked(2), /// - /// Set the variable if the objectwindow has no persistently saved data (no entry in .ini file)
+ /// To be documented. ///
FirstUseEver = unchecked(4), /// - /// Set the variable if the objectwindow is appearing after being hiddeninactive (or the first time)
+ /// To be documented. ///
Appearing = unchecked(8), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiConfigFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiConfigFlags.cs index e434c8110..0c388559a 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiConfigFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiConfigFlags.cs @@ -25,12 +25,12 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Master keyboard navigation enable flag. Enable full Tabbing + directional arrows + spaceenter to activate.
+ /// To be documented. ///
NavEnableKeyboard = unchecked(1), /// - /// Master gamepad navigation enable flag. Backend also needs to set ImGuiBackendFlags_HasGamepad.
+ /// To be documented. ///
NavEnableGamepad = unchecked(2), @@ -45,12 +45,12 @@ namespace Dalamud.Bindings.ImGui NavNoCaptureKeyboard = unchecked(8), /// - /// Instruct dear imgui to disable mouse inputs and interactions.
+ /// To be documented. ///
NoMouse = unchecked(16), /// - /// Instruct backend to not alter mouse cursor shape and visibility. Use if the backend cursor changes are interfering with yours and you don't want to use SetMouseCursor() to change mouse cursor. You may want to honor requests from imgui by reading GetMouseCursor() yourself instead.
+ /// To be documented. ///
NoMouseCursorChange = unchecked(32), @@ -60,32 +60,32 @@ namespace Dalamud.Bindings.ImGui NoKerning = unchecked(128), /// - /// Docking enable flags.
+ /// To be documented. ///
DockingEnable = unchecked(64), /// - /// Viewport enable flags (require both ImGuiBackendFlags_PlatformHasViewports + ImGuiBackendFlags_RendererHasViewports set by the respective backends)
+ /// To be documented. ///
ViewportsEnable = unchecked(1024), /// - /// [BETA: Don't use] FIXME-DPI: Reposition and resize imgui windows when the DpiScale of a viewport changed (mostly useful for the main viewport hosting other window). Note that resizing the main window itself is up to your application.
+ /// To be documented. ///
DpiEnableScaleViewports = unchecked(16384), /// - /// [BETA: Don't use] FIXME-DPI: Request bitmap-scaled fonts to match DpiScale. This is a very low-quality workaround. The correct way to handle DPI is _currently_ to replace the atlas andor fonts in the Platform_OnChangedViewport callback, but this is all early work in progress.
+ /// To be documented. ///
DpiEnableScaleFonts = unchecked(32768), /// - /// Application is SRGB-aware.
+ /// To be documented. ///
IsSrgb = unchecked(1048576), /// - /// Application is using a touch screen instead of a mouse.
+ /// To be documented. ///
IsTouchScreen = unchecked(2097152), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataType.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataType.cs index 03d17a208..c93c08984 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataType.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataType.cs @@ -20,52 +20,52 @@ namespace Dalamud.Bindings.ImGui public enum ImGuiDataType : int { /// - /// signed char char (with sensible compilers)
+ /// To be documented. ///
S8 = unchecked(0), /// - /// unsigned char
+ /// To be documented. ///
U8 = unchecked(1), /// - /// short
+ /// To be documented. ///
S16 = unchecked(2), /// - /// unsigned short
+ /// To be documented. ///
U16 = unchecked(3), /// - /// int
+ /// To be documented. ///
S32 = unchecked(4), /// - /// unsigned int
+ /// To be documented. ///
U32 = unchecked(5), /// - /// long long __int64
+ /// To be documented. ///
S64 = unchecked(6), /// - /// unsigned long long unsigned __int64
+ /// To be documented. ///
U64 = unchecked(7), /// - /// float
+ /// To be documented. ///
Float = unchecked(8), /// - /// double
+ /// To be documented. ///
Double = unchecked(9), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDebugLogFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDebugLogFlags.cs index ba19e8eec..f8f6eac3e 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDebugLogFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDebugLogFlags.cs @@ -65,7 +65,7 @@ namespace Dalamud.Bindings.ImGui EventMask = unchecked(127), /// - /// Also send output to TTY
+ /// To be documented. ///
OutputToTty = unchecked(1024), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlags.cs index 1d60a2ead..fc3d6603a 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlags.cs @@ -25,7 +25,7 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Don't display the dockspace node but keep it alive. Windows docked into this dockspace node won't be undocked.
+ /// To be documented. ///
KeepAliveOnly = unchecked(1), @@ -35,7 +35,7 @@ namespace Dalamud.Bindings.ImGui NoDockingInCentralNode = unchecked(4), /// - /// Enable passthru dockspace: 1) DockSpace() will render a ImGuiCol_WindowBg background covering everything excepted the Central Node when empty. Meaning the host window should probably use SetNextWindowBgAlpha(0.0f) prior to Begin() when using this. 2) When Central Node is empty: let inputs pass-through + won't display a DockingEmptyBg background. See demo for details.
+ /// To be documented. ///
PassthruCentralNode = unchecked(8), @@ -45,12 +45,12 @@ namespace Dalamud.Bindings.ImGui NoSplit = unchecked(16), /// - /// Saved Disable resizing node using the splitterseparators. Useful with programmatically setup dockspaces.
+ /// To be documented. ///
NoResize = unchecked(32), /// - /// Tab bar will automatically hide when there is a single window in the dock node.
+ /// To be documented. ///
AutoHideTabBar = unchecked(64), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlagsPrivate.cs index 7dcbdc631..fa79a6484 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlagsPrivate.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlagsPrivate.cs @@ -20,32 +20,32 @@ namespace Dalamud.Bindings.ImGui public enum ImGuiDockNodeFlagsPrivate : int { /// - /// Saved A dockspace is a node that occupy space within an existing user window. Otherwise the node is floating and create its own window.
+ /// To be documented. ///
Space = unchecked(1024), /// - /// Saved The central node has 2 main properties: stay visible when empty, only use "remaining" spaces from its neighbor.
+ /// To be documented. ///
CentralNode = unchecked(2048), /// - /// Saved Tab bar is completely unavailable. No triangle in the corner to enable it back.
+ /// To be documented. ///
NoTabBar = unchecked(4096), /// - /// Saved Tab bar is hidden, with a triangle in the corner to show it again (NB: actual tab-bar instance may be destroyed as this is only used for single-window tab bar)
+ /// To be documented. ///
HiddenTabBar = unchecked(8192), /// - /// Saved Disable windowdocking menu (that one that appears instead of the collapse button)
+ /// To be documented. ///
NoWindowMenuButton = unchecked(16384), /// - /// Saved Disable close button
+ /// To be documented. ///
NoCloseButton = unchecked(32768), @@ -60,30 +60,32 @@ namespace Dalamud.Bindings.ImGui NoDockingSplitMe = unchecked(131072), /// - /// Disable this node from splitting other windowsnodes.
+ /// To be documented. ///
NoDockingSplitOther = unchecked(262144), /// - /// Disable other windowsnodes from being docked over this node.
+ /// To be documented. ///
NoDockingOverMe = unchecked(524288), /// - /// Disable this node from being docked over another window or non-empty node.
+ /// To be documented. ///
NoDockingOverOther = unchecked(1048576), /// - /// Disable this node from being docked over an empty node (e.g. DockSpace with no other windows)
+ /// To be documented. ///
NoDockingOverEmpty = unchecked(2097152), /// + /// To be documented. /// NoResizeX = unchecked(4194304), /// + /// To be documented. /// NoResizeY = unchecked(8388608), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDragDropFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDragDropFlags.cs index a821138f2..a52fdefed 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDragDropFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDragDropFlags.cs @@ -25,27 +25,27 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Disable preview tooltip. By default, a successful call to BeginDragDropSource opens a tooltip so you can display a preview or description of the source contents. This flag disables this behavior.
+ /// To be documented. ///
SourceNoPreviewTooltip = unchecked(1), /// - /// By default, when dragging we clear data so that IsItemHovered() will return false, to avoid subsequent user code submitting tooltips. This flag disables this behavior so you can still call IsItemHovered() on the source item.
+ /// To be documented. ///
SourceNoDisableHover = unchecked(2), /// - /// Disable the behavior that allows to open tree nodes and collapsing header by holding over them while dragging a source item.
+ /// To be documented. ///
SourceNoHoldToOpenOthers = unchecked(4), /// - /// Allow items such as Text(), Image() that have no unique identifier to be used as drag source, by manufacturing a temporary identifier based on their window-relative position. This is extremely unusual within the dear imgui ecosystem and so we made it explicit.
+ /// To be documented. ///
SourceAllowNullId = unchecked(8), /// - /// External source (from outside of dear imgui), won't attempt to read current itemwindow info. Will always return true. Only one Extern source can be active simultaneously.
+ /// To be documented. ///
SourceExtern = unchecked(16), @@ -55,22 +55,22 @@ namespace Dalamud.Bindings.ImGui SourceAutoExpirePayload = unchecked(32), /// - /// AcceptDragDropPayload() will returns true even before the mouse button is released. You can then call IsDelivery() to test if the payload needs to be delivered.
+ /// To be documented. ///
AcceptBeforeDelivery = unchecked(1024), /// - /// Do not draw the default highlight rectangle when hovering over target.
+ /// To be documented. ///
AcceptNoDrawDefaultRect = unchecked(2048), /// - /// Request hiding the BeginDragDropSource tooltip from the BeginDragDropTarget site.
+ /// To be documented. ///
AcceptNoPreviewTooltip = unchecked(4096), /// - /// For peeking ahead and inspecting the payload before delivery.
+ /// To be documented. ///
AcceptPeekOnly = unchecked(3072), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiFocusedFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiFocusedFlags.cs index 44d539283..06d80a6df 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiFocusedFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiFocusedFlags.cs @@ -25,27 +25,27 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Return true if any children of the window is focused
+ /// To be documented. ///
ChildWindows = unchecked(1), /// - /// Test from root window (top most parent of the current hierarchy)
+ /// To be documented. ///
RootWindow = unchecked(2), /// - /// Return true if any window is focused. Important: If you are trying to tell how to dispatch your low-level inputs, do NOT use this. Use 'io.WantCaptureMouse' instead! Please read the FAQ!
+ /// To be documented. ///
AnyWindow = unchecked(4), /// - /// Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with _ChildWindows or _RootWindow)
+ /// To be documented. ///
NoPopupHierarchy = unchecked(8), /// - /// Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with _ChildWindows or _RootWindow)
+ /// To be documented. ///
DockHierarchy = unchecked(16), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiHoveredFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiHoveredFlags.cs index abc6407d6..58ec185e1 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiHoveredFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiHoveredFlags.cs @@ -20,32 +20,32 @@ namespace Dalamud.Bindings.ImGui public enum ImGuiHoveredFlags : int { /// - /// Return true if directly over the itemwindow, not obstructed by another window, not obstructed by an active popup or modal blocking inputs under them.
+ /// To be documented. ///
None = unchecked(0), /// - /// IsWindowHovered() only: Return true if any children of the window is hovered
+ /// To be documented. ///
ChildWindows = unchecked(1), /// - /// IsWindowHovered() only: Test from root window (top most parent of the current hierarchy)
+ /// To be documented. ///
RootWindow = unchecked(2), /// - /// IsWindowHovered() only: Return true if any window is hovered
+ /// To be documented. ///
AnyWindow = unchecked(4), /// - /// Return true even if a popup window is normally blocking access to this itemwindow
+ /// To be documented. ///
AllowWhenBlockedByPopup = unchecked(8), /// - /// Return true even if an active item is blocking access to this itemwindow. Useful for Drag and Drop patterns.
+ /// To be documented. ///
AllowWhenBlockedByActiveItem = unchecked(32), @@ -55,12 +55,12 @@ namespace Dalamud.Bindings.ImGui AllowWhenOverlapped = unchecked(64), /// - /// IsItemHovered() only: Return true even if the item is disabled
+ /// To be documented. ///
AllowWhenDisabled = unchecked(128), /// - /// IsItemHovered() only: Disable using keyboardgamepad navigation state when active, always query mouse
+ /// To be documented. ///
NoNavOverride = unchecked(256), @@ -75,12 +75,12 @@ namespace Dalamud.Bindings.ImGui RootAndChildWindows = unchecked(3), /// - /// IsWindowHovered() only: Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with _ChildWindows or _RootWindow)
+ /// To be documented. ///
NoPopupHierarchy = unchecked(512), /// - /// IsWindowHovered() only: Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with _ChildWindows or _RootWindow)
+ /// To be documented. ///
DockHierarchy = unchecked(1024), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputSource.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputSource.cs index 0ce2f5a63..81a4dc705 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputSource.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputSource.cs @@ -25,7 +25,7 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Note: may be Mouse or TouchScreen or Pen. See io.MouseSource to distinguish them.
+ /// To be documented. ///
Mouse = unchecked(1), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlags.cs index bf8578e82..73139b785 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlags.cs @@ -25,102 +25,102 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Allow 0123456789.+-*
+ /// To be documented. ///
CharsDecimal = unchecked(1), /// - /// Allow 0123456789ABCDEFabcdef
+ /// To be documented. ///
CharsHexadecimal = unchecked(2), /// - /// Turn a..z into A..Z
+ /// To be documented. ///
CharsUppercase = unchecked(4), /// - /// Filter out spaces, tabs
+ /// To be documented. ///
CharsNoBlank = unchecked(8), /// - /// Select entire text when first taking mouse focus
+ /// To be documented. ///
AutoSelectAll = unchecked(16), /// - /// Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider using IsItemDeactivatedAfterEdit() instead!
+ /// To be documented. ///
EnterReturnsTrue = unchecked(32), /// - /// Callback on pressing TAB (for completion handling)
+ /// To be documented. ///
CallbackCompletion = unchecked(64), /// - /// Callback on pressing UpDown arrows (for history handling)
+ /// To be documented. ///
CallbackHistory = unchecked(128), /// - /// Callback on each iteration. User code may query cursor position, modify text buffer.
+ /// To be documented. ///
CallbackAlways = unchecked(256), /// - /// Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard.
+ /// To be documented. ///
CallbackCharFilter = unchecked(512), /// - /// Pressing TAB input a '\t' character into the text field
+ /// To be documented. ///
AllowTabInput = unchecked(1024), /// - /// In multi-line mode, validate with Enter, add new line with Ctrl+Enter (default is opposite: validate with Ctrl+Enter, add line with Enter).
+ /// To be documented. ///
CtrlEnterForNewLine = unchecked(2048), /// - /// Disable following the cursor horizontally
+ /// To be documented. ///
NoHorizontalScroll = unchecked(4096), /// - /// Overwrite mode
+ /// To be documented. ///
AlwaysOverwrite = unchecked(8192), /// - /// Read-only mode
+ /// To be documented. ///
ReadOnly = unchecked(16384), /// - /// Password mode, display all characters as '*', disable copy
+ /// To be documented. ///
Password = unchecked(32768), /// - /// Disable undoredo. Note that input text owns the text data while active, if you want to provide your own undoredo stack you need e.g. to call ClearActiveID().
+ /// To be documented. ///
NoUndoRedo = unchecked(65536), /// - /// Allow 0123456789.+-*eE (Scientific notation input)
+ /// To be documented. ///
CharsScientific = unchecked(131072), /// - /// Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misccppimgui_stdlib.h for an example of using this)
+ /// To be documented. ///
CallbackResize = unchecked(262144), /// - /// Callback on any edit. Note that InputText() already returns true on edit + you can always use IsItemEdited(). The callback is useful to manipulate the underlying buffer while focus is active.
+ /// To be documented. ///
CallbackEdit = unchecked(524288), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlagsPrivate.cs index d4f6045fe..48996a695 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlagsPrivate.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlagsPrivate.cs @@ -20,7 +20,7 @@ namespace Dalamud.Bindings.ImGui public enum ImGuiInputTextFlagsPrivate : int { /// - /// For internal use by InputTextMultiline()
+ /// To be documented. ///
Multiline = unchecked(67108864), @@ -30,7 +30,7 @@ namespace Dalamud.Bindings.ImGui NoMarkEdited = unchecked(134217728), /// - /// For internal use by TempInputText(), will skip calling ItemAdd(). Require bounding-box to strictly match.
+ /// To be documented. ///
MergedItem = unchecked(268435456), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemFlags.cs index 6cf35a414..437d81ffd 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemFlags.cs @@ -20,17 +20,17 @@ namespace Dalamud.Bindings.ImGui public enum ImGuiItemFlags : int { /// - /// (Default)
+ /// To be documented. ///
None = unchecked(0), /// - /// false Disable keyboard tabbing. This is a "lighter" version of ImGuiItemFlags_NoNav.
+ /// To be documented. ///
NoTabStop = unchecked(1), /// - /// false Any button-like behavior will have repeat mode enabled (based on io.KeyRepeatDelay and io.KeyRepeatRate values). Note that you can also call IsItemActive() after any button to tell if it is being held.
+ /// To be documented. ///
ButtonRepeat = unchecked(2), @@ -40,12 +40,12 @@ namespace Dalamud.Bindings.ImGui Disabled = unchecked(4), /// - /// false Disable any form of focusing (keyboardgamepad directional navigation and SetKeyboardFocusHere() calls).
+ /// To be documented. ///
NoNav = unchecked(8), /// - /// false Disable item being a candidate for default focus (e.g. used by title bar items).
+ /// To be documented. ///
NoNavDefaultFocus = unchecked(16), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemStatusFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemStatusFlags.cs index 4f5d3ae05..d091d4f76 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemStatusFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemStatusFlags.cs @@ -25,42 +25,42 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Mouse position is within item rectangle (does NOT mean that the window is in correct z-order and can be hovered!, this is only one part of the most-common IsItemHovered test)
+ /// To be documented. ///
HoveredRect = unchecked(1), /// - /// g.LastItemData.DisplayRect is valid
+ /// To be documented. ///
HasDisplayRect = unchecked(2), /// - /// Value exposed by item was edited in the current frame (should match the bool return value of most widgets)
+ /// To be documented. ///
Edited = unchecked(4), /// - /// Set when Selectable(), TreeNode() reports toggling a selection. We can't report "Selected", only state changes, in order to easily handle clipping with less issues.
+ /// To be documented. ///
ToggledSelection = unchecked(8), /// - /// Set when TreeNode() reports toggling their open state.
+ /// To be documented. ///
ToggledOpen = unchecked(16), /// - /// Set if the widgetgroup is able to provide data for the ImGuiItemStatusFlags_Deactivated flag.
+ /// To be documented. ///
HasDeactivated = unchecked(32), /// - /// Only valid if ImGuiItemStatusFlags_HasDeactivated is set.
+ /// To be documented. ///
Deactivated = unchecked(64), /// - /// Override the HoveredWindow test to allow cross-window hover testing.
+ /// To be documented. ///
HoveredWindow = unchecked(128), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiMouseCursor.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiMouseCursor.cs index 307967732..59650ffcc 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiMouseCursor.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiMouseCursor.cs @@ -30,42 +30,42 @@ namespace Dalamud.Bindings.ImGui Arrow = unchecked(0), /// - /// When hovering over InputText, etc.
+ /// To be documented. ///
TextInput = unchecked(1), /// - /// (Unused by Dear ImGui functions)
+ /// To be documented. ///
ResizeAll = unchecked(2), /// - /// When hovering over a horizontal border
+ /// To be documented. ///
ResizeNs = unchecked(3), /// - /// When hovering over a vertical border or a column
+ /// To be documented. ///
ResizeEw = unchecked(4), /// - /// When hovering over the bottom-left corner of a window
+ /// To be documented. ///
ResizeNesw = unchecked(5), /// - /// When hovering over the bottom-right corner of a window
+ /// To be documented. ///
ResizeNwse = unchecked(6), /// - /// (Unused by Dear ImGui functions. Use for e.g. hyperlinks)
+ /// To be documented. ///
Hand = unchecked(7), /// - /// When hovering something with disallowed interaction. Usually a crossed circle.
+ /// To be documented. ///
NotAllowed = unchecked(8), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavLayer.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavLayer.cs index ad8caf872..122da9008 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavLayer.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavLayer.cs @@ -20,12 +20,12 @@ namespace Dalamud.Bindings.ImGui public enum ImGuiNavLayer : int { /// - /// Main scrolling layer
+ /// To be documented. ///
Main = unchecked(0), /// - /// Menu layer (access with Alt)
+ /// To be documented. ///
Menu = unchecked(1), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavMoveFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavMoveFlags.cs index 3e8273884..ff1d9f99b 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavMoveFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavMoveFlags.cs @@ -25,7 +25,7 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// On failed request, restart from opposite side
+ /// To be documented. ///
LoopX = unchecked(1), @@ -35,27 +35,27 @@ namespace Dalamud.Bindings.ImGui LoopY = unchecked(2), /// - /// On failed request, request from opposite side one line down (when NavDir==right) or one line up (when NavDir==left)
+ /// To be documented. ///
WrapX = unchecked(4), /// - /// This is not super useful but provided for completeness
+ /// To be documented. ///
WrapY = unchecked(8), /// - /// Allow scoring and considering the current NavId as a move target candidate. This is used when the move source is offset (e.g. pressing PageDown actually needs to send a Up move request, if we are pressing PageDown from the bottom-most item we need to stay in place)
+ /// To be documented. ///
AllowCurrentNavId = unchecked(16), /// - /// Store alternate result in NavMoveResultLocalVisible that only comprise elements that are already fully visible (used by PageUpPageDown)
+ /// To be documented. ///
AlsoScoreVisibleSet = unchecked(32), /// - /// Force scrolling to minmax (used by HomeEnd) FIXME-NAV: Aim to remove or reword, probably unnecessary
+ /// To be documented. ///
ScrollToEdgeY = unchecked(64), @@ -65,12 +65,12 @@ namespace Dalamud.Bindings.ImGui Forwarded = unchecked(128), /// - /// Dummy scoring for debug purpose, don't apply result
+ /// To be documented. ///
DebugNoResult = unchecked(256), /// - /// Requests from focus API can landfocusactivate items even if they are marked with _NoTabStop (see NavProcessItemForTabbingRequest() for details)
+ /// To be documented. ///
FocusApi = unchecked(512), @@ -80,7 +80,7 @@ namespace Dalamud.Bindings.ImGui Tabbing = unchecked(1024), /// - /// Activateselect target item.
+ /// To be documented. ///
Activate = unchecked(2048), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiOldColumnFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiOldColumnFlags.cs index 77bf93cf9..0aeb1977e 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiOldColumnFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiOldColumnFlags.cs @@ -25,27 +25,27 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Disable column dividers
+ /// To be documented. ///
NoBorder = unchecked(1), /// - /// Disable resizing columns when clicking on the dividers
+ /// To be documented. ///
NoResize = unchecked(2), /// - /// Disable column width preservation when adjusting columns
+ /// To be documented. ///
NoPreserveWidths = unchecked(4), /// - /// Disable forcing columns to fit within window
+ /// To be documented. ///
NoForceWithinWindow = unchecked(8), /// - /// Restore pre-1.51 behavior of extending the parent window contents size but _without affecting the columns width at all_. Will eventually remove.
+ /// To be documented. ///
GrowParentContentsSize = unchecked(16), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPopupFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPopupFlags.cs index 9341216b1..5af9be620 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPopupFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPopupFlags.cs @@ -25,17 +25,17 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// For BeginPopupContext*(): open on Left Mouse release. Guaranteed to always be == 0 (same as ImGuiMouseButton_Left)
+ /// To be documented. ///
MouseButtonLeft = unchecked(0), /// - /// For BeginPopupContext*(): open on Right Mouse release. Guaranteed to always be == 1 (same as ImGuiMouseButton_Right)
+ /// To be documented. ///
MouseButtonRight = unchecked(1), /// - /// For BeginPopupContext*(): open on Middle Mouse release. Guaranteed to always be == 2 (same as ImGuiMouseButton_Middle)
+ /// To be documented. ///
MouseButtonMiddle = unchecked(2), @@ -50,22 +50,22 @@ namespace Dalamud.Bindings.ImGui MouseButtonDefault = unchecked(1), /// - /// For OpenPopup*(), BeginPopupContext*(): don't open if there's already a popup at the same level of the popup stack
+ /// To be documented. ///
NoOpenOverExistingPopup = unchecked(32), /// - /// For BeginPopupContextWindow(): don't return true when hovering items, only when hovering empty space
+ /// To be documented. ///
NoOpenOverItems = unchecked(64), /// - /// For IsPopupOpen(): ignore the ImGuiID parameter and test for any popup.
+ /// To be documented. ///
AnyPopupId = unchecked(128), /// - /// For IsPopupOpen(): searchtest at any level of the popup stack (default test in the current level)
+ /// To be documented. ///
AnyPopupLevel = unchecked(256), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiScrollFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiScrollFlags.cs index 14b6fa975..61b6d0df6 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiScrollFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiScrollFlags.cs @@ -25,37 +25,37 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// If item is not visible: scroll as little as possible on X axis to bring item back into view [default for X axis]
+ /// To be documented. ///
KeepVisibleEdgeX = unchecked(1), /// - /// If item is not visible: scroll as little as possible on Y axis to bring item back into view [default for Y axis for windows that are already visible]
+ /// To be documented. ///
KeepVisibleEdgeY = unchecked(2), /// - /// If item is not visible: scroll to make the item centered on X axis [rarely used]
+ /// To be documented. ///
KeepVisibleCenterX = unchecked(4), /// - /// If item is not visible: scroll to make the item centered on Y axis
+ /// To be documented. ///
KeepVisibleCenterY = unchecked(8), /// - /// Always center the result item on X axis [rarely used]
+ /// To be documented. ///
AlwaysCenterX = unchecked(16), /// - /// Always center the result item on Y axis [default for Y axis for appearing window)
+ /// To be documented. ///
AlwaysCenterY = unchecked(32), /// - /// Disable forwarding scrolling to parent window if required to keep itemrect visible (only scroll window the function was applied to).
+ /// To be documented. ///
NoScrollParent = unchecked(64), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlags.cs index 82f727d00..886ba11d7 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlags.cs @@ -30,17 +30,17 @@ namespace Dalamud.Bindings.ImGui DontClosePopups = unchecked(1), /// - /// Frame will span all columns of its container table (text will still fit in current column)
+ /// To be documented. ///
SpanAllColumns = unchecked(2), /// - /// Generate press events on double clicks too
+ /// To be documented. ///
AllowDoubleClick = unchecked(4), /// - /// Cannot be selected, display grayed out text
+ /// To be documented. ///
Disabled = unchecked(8), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlagsPrivate.cs index 47563b270..3f02166cf 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlagsPrivate.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlagsPrivate.cs @@ -25,22 +25,22 @@ namespace Dalamud.Bindings.ImGui NoHoldingActiveId = unchecked(1048576), /// - /// (WIP) Auto-select when moved into. This is not exposed in public API as to handle multi-select and modifiers we will need user to explicitly control focus scope. May be replaced with a BeginSelection() API.
+ /// To be documented. ///
SelectOnNav = unchecked(2097152), /// - /// Override button behavior to react on Click (default is Click+Release)
+ /// To be documented. ///
SelectOnClick = unchecked(4194304), /// - /// Override button behavior to react on Release (default is Click+Release)
+ /// To be documented. ///
SelectOnRelease = unchecked(8388608), /// - /// Span all avail width even if we declared less for layout purpose. FIXME: We may be able to remove this (added in 6251d379, 2bcafc86 for menus)
+ /// To be documented. ///
SpanAvailWidth = unchecked(16777216), @@ -50,12 +50,12 @@ namespace Dalamud.Bindings.ImGui DrawHoveredWhenHeld = unchecked(33554432), /// - /// Set NavFocus ID on mouse hover (used by MenuItem)
+ /// To be documented. ///
SetNavIdOnHover = unchecked(67108864), /// - /// Disable padding each side with ItemSpacing * 0.5f
+ /// To be documented. ///
NoPadWithHalfSpacing = unchecked(134217728), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSeparatorFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSeparatorFlags.cs index 9d729af24..3b439f8cc 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSeparatorFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSeparatorFlags.cs @@ -25,7 +25,7 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Axis default to current layout type, so generally Horizontal unless e.g. in a menu bar
+ /// To be documented. ///
Horizontal = unchecked(1), @@ -35,7 +35,7 @@ namespace Dalamud.Bindings.ImGui Vertical = unchecked(2), /// - /// Make separator cover all columns of a legacy Columns() set.
+ /// To be documented. ///
SpanAllColumns = unchecked(4), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSliderFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSliderFlags.cs index a0de2075b..1c586de61 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSliderFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSliderFlags.cs @@ -30,22 +30,22 @@ namespace Dalamud.Bindings.ImGui AlwaysClamp = unchecked(16), /// - /// Make the widget logarithmic (linear otherwise). Consider using ImGuiSliderFlags_NoRoundToFormat with this if using a format-string with small amount of digits.
+ /// To be documented. ///
Logarithmic = unchecked(32), /// - /// Disable rounding underlying value to match precision of the display format string (e.g. %.3f values are rounded to those 3 digits).
+ /// To be documented. ///
NoRoundToFormat = unchecked(64), /// - /// Disable CTRL+Click or Enter key allowing to input text directly into the widget.
+ /// To be documented. ///
NoInput = unchecked(128), /// - /// [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed.
+ /// To be documented. ///
InvalidMask = unchecked(1879048207), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSliderFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSliderFlagsPrivate.cs index b3cf882aa..d02d4d214 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSliderFlagsPrivate.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSliderFlagsPrivate.cs @@ -20,12 +20,12 @@ namespace Dalamud.Bindings.ImGui public enum ImGuiSliderFlagsPrivate : int { /// - /// Should this slider be orientated vertically?
+ /// To be documented. ///
Vertical = unchecked(1048576), /// - /// Consider using g.NextItemData.ItemFlags |= ImGuiItemFlags_ReadOnly instead.
+ /// To be documented. ///
ReadOnly = unchecked(2097152), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiStyleVar.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiStyleVar.cs index 3673ad74b..415b46b94 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiStyleVar.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiStyleVar.cs @@ -20,127 +20,127 @@ namespace Dalamud.Bindings.ImGui public enum ImGuiStyleVar : int { /// - /// float Alpha
+ /// To be documented. ///
Alpha = unchecked(0), /// - /// ImVec2 WindowPadding
+ /// To be documented. ///
WindowPadding = unchecked(1), /// - /// float WindowRounding
+ /// To be documented. ///
WindowRounding = unchecked(2), /// - /// float WindowBorderSize
+ /// To be documented. ///
WindowBorderSize = unchecked(3), /// - /// ImVec2 WindowMinSize
+ /// To be documented. ///
WindowMinSize = unchecked(4), /// - /// ImVec2 WindowTitleAlign
+ /// To be documented. ///
WindowTitleAlign = unchecked(5), /// - /// float ChildRounding
+ /// To be documented. ///
ChildRounding = unchecked(6), /// - /// float ChildBorderSize
+ /// To be documented. ///
ChildBorderSize = unchecked(7), /// - /// float PopupRounding
+ /// To be documented. ///
PopupRounding = unchecked(8), /// - /// float PopupBorderSize
+ /// To be documented. ///
PopupBorderSize = unchecked(9), /// - /// ImVec2 FramePadding
+ /// To be documented. ///
FramePadding = unchecked(10), /// - /// float FrameRounding
+ /// To be documented. ///
FrameRounding = unchecked(11), /// - /// float FrameBorderSize
+ /// To be documented. ///
FrameBorderSize = unchecked(12), /// - /// ImVec2 ItemSpacing
+ /// To be documented. ///
ItemSpacing = unchecked(13), /// - /// ImVec2 ItemInnerSpacing
+ /// To be documented. ///
ItemInnerSpacing = unchecked(14), /// - /// float IndentSpacing
+ /// To be documented. ///
IndentSpacing = unchecked(15), /// - /// ImVec2 CellPadding
+ /// To be documented. ///
CellPadding = unchecked(16), /// - /// float ScrollbarSize
+ /// To be documented. ///
ScrollbarSize = unchecked(17), /// - /// float ScrollbarRounding
+ /// To be documented. ///
ScrollbarRounding = unchecked(18), /// - /// float GrabMinSize
+ /// To be documented. ///
GrabMinSize = unchecked(19), /// - /// float GrabRounding
+ /// To be documented. ///
GrabRounding = unchecked(20), /// - /// float TabRounding
+ /// To be documented. ///
TabRounding = unchecked(21), /// - /// ImVec2 ButtonTextAlign
+ /// To be documented. ///
ButtonTextAlign = unchecked(22), /// - /// ImVec2 SelectableTextAlign
+ /// To be documented. ///
SelectableTextAlign = unchecked(23), /// - /// float DisabledAlpha
+ /// To be documented. ///
DisabledAlpha = unchecked(24), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlags.cs index fa87464b3..aa1da59b8 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlags.cs @@ -25,42 +25,42 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Allow manually dragging tabs to re-order them + New tabs are appended at the end of list
+ /// To be documented. ///
Reorderable = unchecked(1), /// - /// Automatically select new tabs when they appear
+ /// To be documented. ///
AutoSelectNewTabs = unchecked(2), /// - /// Disable buttons to open the tab list popup
+ /// To be documented. ///
ListPopupButton = unchecked(4), /// - /// Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You may handle this behavior manually on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false.
+ /// To be documented. ///
NoCloseWithMiddleMouseButton = unchecked(8), /// - /// Disable scrolling buttons (apply when fitting policy is ImGuiTabBarFlags_FittingPolicyScroll)
+ /// To be documented. ///
NoTabListScrollingButtons = unchecked(16), /// - /// Disable tooltips when hovering a tab
+ /// To be documented. ///
NoTooltip = unchecked(32), /// - /// Resize tabs when they don't fit
+ /// To be documented. ///
FittingPolicyResizeDown = unchecked(64), /// - /// Add scroll buttons when tabs don't fit
+ /// To be documented. ///
FittingPolicyScroll = unchecked(128), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlagsPrivate.cs index 3fee08ae4..24c15aba9 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlagsPrivate.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlagsPrivate.cs @@ -20,7 +20,7 @@ namespace Dalamud.Bindings.ImGui public enum ImGuiTabBarFlagsPrivate : int { /// - /// Part of a dock node [we don't use this in the master branch but it facilitate branch syncing to keep this around]
+ /// To be documented. ///
DockNode = unchecked(1048576), @@ -30,7 +30,7 @@ namespace Dalamud.Bindings.ImGui IsFocused = unchecked(2097152), /// - /// FIXME: Settings are handled by the docking system, this only request the tab bar to mark settings dirty when reordering tabs
+ /// To be documented. ///
SaveSettings = unchecked(4194304), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabItemFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabItemFlags.cs index da316d3f2..377e93497 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabItemFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabItemFlags.cs @@ -25,42 +25,42 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Display a dot next to the title + set ImGuiTabItemFlags_NoAssumedClosure.
+ /// To be documented. ///
UnsavedDocument = unchecked(1), /// - /// Trigger flag to programmatically make the tab selected when calling BeginTabItem()
+ /// To be documented. ///
SetSelected = unchecked(2), /// - /// Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You may handle this behavior manually on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false.
+ /// To be documented. ///
NoCloseWithMiddleMouseButton = unchecked(4), /// - /// Don't call PushID()PopID() on BeginTabItem()EndTabItem()
+ /// To be documented. ///
NoPushId = unchecked(8), /// - /// Disable tooltip for the given tab
+ /// To be documented. ///
NoTooltip = unchecked(16), /// - /// Disable reordering this tab or having another tab cross over this tab
+ /// To be documented. ///
NoReorder = unchecked(32), /// - /// Enforce the tab position to the left of the tab bar (after the tab list popup button)
+ /// To be documented. ///
Leading = unchecked(64), /// - /// Enforce the tab position to the right of the tab bar (before the scrolling buttons)
+ /// To be documented. ///
Trailing = unchecked(128), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabItemFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabItemFlagsPrivate.cs index a7916a9a3..49bde3c37 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabItemFlagsPrivate.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabItemFlagsPrivate.cs @@ -25,17 +25,17 @@ namespace Dalamud.Bindings.ImGui SectionMask = unchecked(192), /// - /// Track whether p_open was set or not (we'll need this info on the next frame to recompute ContentWidth during layout)
+ /// To be documented. ///
NoCloseButton = unchecked(1048576), /// - /// Used by TabItemButton, change the tab item behavior to mimic a button
+ /// To be documented. ///
Button = unchecked(2097152), /// - /// [Docking] Trailing tabs with the _Unsorted flag will be sorted based on the DockOrder of their Window.
+ /// To be documented. ///
Unsorted = unchecked(4194304), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableBgTarget.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableBgTarget.cs index 7f9b196a7..52c3162ef 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableBgTarget.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableBgTarget.cs @@ -25,17 +25,17 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Set row background color 0 (generally used for background, automatically set when ImGuiTableFlags_RowBg is used)
+ /// To be documented. ///
RowBg0 = unchecked(1), /// - /// Set row background color 1 (generally used for selection marking)
+ /// To be documented. ///
RowBg1 = unchecked(2), /// - /// Set cell background color (top-most color)
+ /// To be documented. ///
CellBg = unchecked(3), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableColumnFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableColumnFlags.cs index 08d20dd2d..8b5233368 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableColumnFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableColumnFlags.cs @@ -25,112 +25,112 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Default as a hiddendisabled column.
+ /// To be documented. ///
DefaultHide = unchecked(1), /// - /// Default as a sorting column.
+ /// To be documented. ///
DefaultSort = unchecked(2), /// - /// Column will stretch. Preferable with horizontal scrolling disabled (default if table sizing policy is _SizingStretchSame or _SizingStretchProp).
+ /// To be documented. ///
WidthStretch = unchecked(4), /// - /// Column will not stretch. Preferable with horizontal scrolling enabled (default if table sizing policy is _SizingFixedFit and table is resizable).
+ /// To be documented. ///
WidthFixed = unchecked(8), /// - /// Disable manual resizing.
+ /// To be documented. ///
NoResize = unchecked(16), /// - /// Disable manual reordering this column, this will also prevent other columns from crossing over this column.
+ /// To be documented. ///
NoReorder = unchecked(32), /// - /// Disable ability to hidedisable this column.
+ /// To be documented. ///
NoHide = unchecked(64), /// - /// Disable clipping for this column (all NoClip columns will render in a same draw command).
+ /// To be documented. ///
NoClip = unchecked(128), /// - /// Disable ability to sort on this field (even if ImGuiTableFlags_Sortable is set on the table).
+ /// To be documented. ///
NoSort = unchecked(256), /// - /// Disable ability to sort in the ascending direction.
+ /// To be documented. ///
NoSortAscending = unchecked(512), /// - /// Disable ability to sort in the descending direction.
+ /// To be documented. ///
NoSortDescending = unchecked(1024), /// - /// Disable header text width contribution to automatic column width.
+ /// To be documented. ///
NoHeaderWidth = unchecked(2048), /// - /// Make the initial sort direction Ascending when first sorting on this column (default).
+ /// To be documented. ///
PreferSortAscending = unchecked(4096), /// - /// Make the initial sort direction Descending when first sorting on this column.
+ /// To be documented. ///
PreferSortDescending = unchecked(8192), /// - /// Use current Indent value when entering cell (default for column 0).
+ /// To be documented. ///
IndentEnable = unchecked(16384), /// - /// Ignore current Indent value when entering cell (default for columns > 0). Indentation changes _within_ the cell will still be honored.
+ /// To be documented. ///
IndentDisable = unchecked(32768), /// - /// Status: is enabled == not hidden by userapi (referred to as "Hide" in _DefaultHide and _NoHide) flags.
+ /// To be documented. ///
IsEnabled = unchecked(1048576), /// - /// Status: is visible == is enabled AND not clipped by scrolling.
+ /// To be documented. ///
IsVisible = unchecked(2097152), /// - /// Status: is currently part of the sort specs
+ /// To be documented. ///
IsSorted = unchecked(4194304), /// - /// Status: is hovered by mouse
+ /// To be documented. ///
IsHovered = unchecked(8388608), /// - /// Overridingmaster disable flag: hide column, won't show in context menu (unlike calling TableSetColumnEnabled() which manipulates the user accessible state)
+ /// To be documented. ///
Disabled = unchecked(65536), /// - /// TableHeadersRow() will submit an empty label for this column. Convenient for some small columns. Name will still appear in context menu or in angled headers. You may append into this cell by calling TableSetColumnIndex() right after the TableHeadersRow() call.
+ /// To be documented. ///
NoHeaderLabel = unchecked(131072), @@ -150,7 +150,7 @@ namespace Dalamud.Bindings.ImGui StatusMask = unchecked(15728640), /// - /// [Internal] Disable user resizing this column directly (it may however we resized indirectly from its left edge)
+ /// To be documented. ///
NoDirectResize = unchecked(1073741824), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableFlags.cs index 2a33f18a0..87996f640 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableFlags.cs @@ -25,172 +25,172 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Enable resizing columns.
+ /// To be documented. ///
Resizable = unchecked(1), /// - /// Enable reordering columns in header row (need calling TableSetupColumn() + TableHeadersRow() to display headers)
+ /// To be documented. ///
Reorderable = unchecked(2), /// - /// Enable hidingdisabling columns in context menu.
+ /// To be documented. ///
Hideable = unchecked(4), /// - /// Enable sorting. Call TableGetSortSpecs() to obtain sort specs. Also see ImGuiTableFlags_SortMulti and ImGuiTableFlags_SortTristate.
+ /// To be documented. ///
Sortable = unchecked(8), /// - /// Disable persisting columns order, width and sort settings in the .ini file.
+ /// To be documented. ///
NoSavedSettings = unchecked(16), /// - /// Right-click on columns bodycontents will display table context menu. By default it is available in TableHeadersRow().
+ /// To be documented. ///
ContextMenuInBody = unchecked(32), /// - /// Set each RowBg color with ImGuiCol_TableRowBg or ImGuiCol_TableRowBgAlt (equivalent of calling TableSetBgColor with ImGuiTableBgFlags_RowBg0 on each row manually)
+ /// To be documented. ///
RowBg = unchecked(64), /// - /// Draw horizontal borders between rows.
+ /// To be documented. ///
BordersInnerH = unchecked(128), /// - /// Draw horizontal borders at the top and bottom.
+ /// To be documented. ///
BordersOuterH = unchecked(256), /// - /// Draw vertical borders between columns.
+ /// To be documented. ///
BordersInnerV = unchecked(512), /// - /// Draw vertical borders on the left and right sides.
+ /// To be documented. ///
BordersOuterV = unchecked(1024), /// - /// Draw horizontal borders.
+ /// To be documented. ///
BordersH = unchecked(384), /// - /// Draw vertical borders.
+ /// To be documented. ///
BordersV = unchecked(1536), /// - /// Draw inner borders.
+ /// To be documented. ///
BordersInner = unchecked(640), /// - /// Draw outer borders.
+ /// To be documented. ///
BordersOuter = unchecked(1280), /// - /// Draw all borders.
+ /// To be documented. ///
Borders = unchecked(1920), /// - /// [ALPHA] Disable vertical borders in columns Body (borders will always appear in Headers). -> May move to style
+ /// To be documented. ///
NoBordersInBody = unchecked(2048), /// - /// [ALPHA] Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers). -> May move to style
+ /// To be documented. ///
NoBordersInBodyUntilResize = unchecked(4096), /// - /// Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching contents width.
+ /// To be documented. ///
SizingFixedFit = unchecked(8192), /// - /// Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching the maximum contents width of all columns. Implicitly enable ImGuiTableFlags_NoKeepColumnsVisible.
+ /// To be documented. ///
SizingFixedSame = unchecked(16384), /// - /// Columns default to _WidthStretch with default weights proportional to each columns contents widths.
+ /// To be documented. ///
SizingStretchProp = unchecked(24576), /// - /// Columns default to _WidthStretch with default weights all equal, unless overridden by TableSetupColumn().
+ /// To be documented. ///
SizingStretchSame = unchecked(32768), /// - /// Make outer width auto-fit to columns, overriding outer_size.x value. Only available when ScrollXScrollY are disabled and Stretch columns are not used.
+ /// To be documented. ///
NoHostExtendX = unchecked(65536), /// - /// Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit). Only available when ScrollXScrollY are disabled. Data below the limit will be clipped and not visible.
+ /// To be documented. ///
NoHostExtendY = unchecked(131072), /// - /// Disable keeping column always minimally visible when ScrollX is off and table gets too small. Not recommended if columns are resizable.
+ /// To be documented. ///
NoKeepColumnsVisible = unchecked(262144), /// - /// Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth.
+ /// To be documented. ///
PreciseWidths = unchecked(524288), /// - /// Disable clipping rectangle for every individual columns (reduce draw command count, items will be able to overflow into other columns). Generally incompatible with TableSetupScrollFreeze().
+ /// To be documented. ///
NoClip = unchecked(1048576), /// - /// Default if BordersOuterV is on. Enable outermost padding. Generally desirable if you have headers.
+ /// To be documented. ///
PadOuterX = unchecked(2097152), /// - /// Default if BordersOuterV is off. Disable outermost padding.
+ /// To be documented. ///
NoPadOuterX = unchecked(4194304), /// - /// Disable inner padding between columns (double inner padding if BordersOuterV is on, single inner padding if BordersOuterV is off).
+ /// To be documented. ///
NoPadInnerX = unchecked(8388608), /// - /// Enable horizontal scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. Changes default sizing policy. Because this creates a child window, ScrollY is currently generally recommended when using ScrollX.
+ /// To be documented. ///
ScrollX = unchecked(16777216), /// - /// Enable vertical scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size.
+ /// To be documented. ///
ScrollY = unchecked(33554432), /// - /// Hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1).
+ /// To be documented. ///
SortMulti = unchecked(67108864), /// - /// Allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0).
+ /// To be documented. ///
SortTristate = unchecked(134217728), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableRowFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableRowFlags.cs index 9325622e5..c37c23e60 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableRowFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableRowFlags.cs @@ -25,7 +25,7 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Identify header row (set default background color + width of its contents accounted differently for auto column width)
+ /// To be documented. ///
Headers = unchecked(1), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlags.cs index 531c2c65f..91e6eaaf4 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlags.cs @@ -25,12 +25,12 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Draw as selected
+ /// To be documented. ///
Selected = unchecked(1), /// - /// Draw frame with background (e.g. for CollapsingHeader)
+ /// To be documented. ///
Framed = unchecked(2), @@ -40,57 +40,57 @@ namespace Dalamud.Bindings.ImGui AllowItemOverlap = unchecked(4), /// - /// Don't do a TreePush() when open (e.g. for CollapsingHeader) = no extra indent nor pushing on ID stack
+ /// To be documented. ///
NoTreePushOnOpen = unchecked(8), /// - /// Don't automatically and temporarily open node when Logging is active (by default logging will automatically open tree nodes)
+ /// To be documented. ///
NoAutoOpenOnLog = unchecked(16), /// - /// Default node to be open
+ /// To be documented. ///
DefaultOpen = unchecked(32), /// - /// Open on double-click instead of simple click (default for multi-select unless any _OpenOnXXX behavior is set explicitly). Both behaviors may be combined.
+ /// To be documented. ///
OpenOnDoubleClick = unchecked(64), /// - /// Open when clicking on the arrow part (default for multi-select unless any _OpenOnXXX behavior is set explicitly). Both behaviors may be combined.
+ /// To be documented. ///
OpenOnArrow = unchecked(128), /// - /// No collapsing, no arrow (use as a convenience for leaf nodes).
+ /// To be documented. ///
Leaf = unchecked(256), /// - /// Display a bullet instead of arrow. IMPORTANT: node can still be marked openclose if you don't set the _Leaf flag!
+ /// To be documented. ///
Bullet = unchecked(512), /// - /// Use FramePadding (even for an unframed text node) to vertically align text baseline to regular widget height. Equivalent to calling AlignTextToFramePadding() before the node.
+ /// To be documented. ///
FramePadding = unchecked(1024), /// - /// Extend hit box to the right-most edge, even if not framed. This is not the default in order to allow adding other items on the same line without using AllowOverlap mode.
+ /// To be documented. ///
SpanAvailWidth = unchecked(2048), /// - /// Extend hit box to the left-most and right-most edges (cover the indent area).
+ /// To be documented. ///
SpanFullWidth = unchecked(4096), /// - /// (WIP) Nav: left direction may move to this TreeNode() from any of its child (items submitted between TreeNode and TreePop)
+ /// To be documented. ///
NavLeftJumpsBackHere = unchecked(8192), diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlagsPrivate.cs index 8d775ac9e..3ae0f77ca 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlagsPrivate.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlagsPrivate.cs @@ -20,7 +20,7 @@ namespace Dalamud.Bindings.ImGui public enum ImGuiTreeNodeFlagsPrivate : int { /// - /// FIXME-WIP: Hard-coded for CollapsingHeader()
+ /// To be documented. ///
ClipLabelForTrailingButton = unchecked(1048576), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiViewportFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiViewportFlags.cs index ab5ffec62..d07f954d4 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiViewportFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiViewportFlags.cs @@ -25,52 +25,52 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Represent a Platform Window
+ /// To be documented. ///
IsPlatformWindow = unchecked(1), /// - /// Represent a Platform Monitor (unused yet)
+ /// To be documented. ///
IsPlatformMonitor = unchecked(2), /// - /// Platform Window: Is createdmanaged by the user application? (rather than our backend)
+ /// To be documented. ///
OwnedByApp = unchecked(4), /// - /// Platform Window: Disable platform decorations: title bar, borders, etc. (generally set all windows, but if ImGuiConfigFlags_ViewportsDecoration is set we only set this on popupstooltips)
+ /// To be documented. ///
NoDecoration = unchecked(8), /// - /// Platform Window: Disable platform task bar icon (generally set on popupstooltips, or all windows if ImGuiConfigFlags_ViewportsNoTaskBarIcon is set)
+ /// To be documented. ///
NoTaskBarIcon = unchecked(16), /// - /// Platform Window: Don't take focus when created.
+ /// To be documented. ///
NoFocusOnAppearing = unchecked(32), /// - /// Platform Window: Don't take focus when clicked on.
+ /// To be documented. ///
NoFocusOnClick = unchecked(64), /// - /// Platform Window: Make mouse pass through so we can drag this window while peaking behind it.
+ /// To be documented. ///
NoInputs = unchecked(128), /// - /// Platform Window: Renderer doesn't need to clear the framebuffer ahead (because we will fill it entirely).
+ /// To be documented. ///
NoRendererClear = unchecked(256), /// - /// Platform Window: Display on top (for tooltips only).
+ /// To be documented. ///
TopMost = unchecked(512), @@ -80,12 +80,12 @@ namespace Dalamud.Bindings.ImGui Minimized = unchecked(1024), /// - /// Platform Window: Avoid merging this window into another host window. This can only be set via ImGuiWindowClass viewport flags override (because we need to now ahead if we are going to create a viewport in the first place!).
+ /// To be documented. ///
NoAutoMerge = unchecked(2048), /// - /// Viewport can host multiple imgui windows (secondary viewports are associated to a single window). FIXME: In practice there's still probably code making the assumption that this is always and only on the MainViewport. Will fix once we add support for "no main viewport".
+ /// To be documented. ///
CanHostOtherWindows = unchecked(4096), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiWindowFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiWindowFlags.cs index 143034e96..6129b8ed2 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiWindowFlags.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiWindowFlags.cs @@ -25,82 +25,82 @@ namespace Dalamud.Bindings.ImGui None = unchecked(0), /// - /// Disable title-bar
+ /// To be documented. ///
NoTitleBar = unchecked(1), /// - /// Disable user resizing with the lower-right grip
+ /// To be documented. ///
NoResize = unchecked(2), /// - /// Disable user moving the window
+ /// To be documented. ///
NoMove = unchecked(4), /// - /// Disable scrollbars (window can still scroll with mouse or programmatically)
+ /// To be documented. ///
NoScrollbar = unchecked(8), /// - /// Disable user vertically scrolling with mouse wheel. On child window, mouse wheel will be forwarded to the parent unless NoScrollbar is also set.
+ /// To be documented. ///
NoScrollWithMouse = unchecked(16), /// - /// Disable user collapsing window by double-clicking on it. Also referred to as Window Menu Button (e.g. within a docking node).
+ /// To be documented. ///
NoCollapse = unchecked(32), /// - /// Resize every window to its content every frame
+ /// To be documented. ///
AlwaysAutoResize = unchecked(64), /// - /// Disable drawing background color (WindowBg, etc.) and outside border. Similar as using SetNextWindowBgAlpha(0.0f).
+ /// To be documented. ///
NoBackground = unchecked(128), /// - /// Never loadsave settings in .ini file
+ /// To be documented. ///
NoSavedSettings = unchecked(256), /// - /// Disable catching mouse, hovering test with pass through.
+ /// To be documented. ///
NoMouseInputs = unchecked(512), /// - /// Has a menu-bar
+ /// To be documented. ///
MenuBar = unchecked(1024), /// - /// Allow horizontal scrollbar to appear (off by default). You may use SetNextWindowContentSize(ImVec2(width,0.0f)); prior to calling Begin() to specify width. Read code in imgui_demo in the "Horizontal Scrolling" section.
+ /// To be documented. ///
HorizontalScrollbar = unchecked(2048), /// - /// Disable taking focus when transitioning from hidden to visible state
+ /// To be documented. ///
NoFocusOnAppearing = unchecked(4096), /// - /// Disable bringing window to front when taking focus (e.g. clicking on it or programmatically giving it focus)
+ /// To be documented. ///
NoBringToFrontOnFocus = unchecked(8192), /// - /// Always show vertical scrollbar (even if ContentSize.y < Size.y)
+ /// To be documented. ///
AlwaysVerticalScrollbar = unchecked(16384), /// - /// Always show horizontal scrollbar (even if ContentSize.x < Size.x)
+ /// To be documented. ///
AlwaysHorizontalScrollbar = unchecked(32768), @@ -110,22 +110,22 @@ namespace Dalamud.Bindings.ImGui AlwaysUseWindowPadding = unchecked(65536), /// - /// No keyboardgamepad navigation within the window
+ /// To be documented. ///
NoNavInputs = unchecked(262144), /// - /// No focusing toward this window with keyboardgamepad navigation (e.g. skipped by CTRL+TAB)
+ /// To be documented. ///
NoNavFocus = unchecked(524288), /// - /// Display a dot next to the title. When used in a tabdocking context, tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar.
+ /// To be documented. ///
UnsavedDocument = unchecked(1048576), /// - /// Disable docking of this window
+ /// To be documented. ///
NoDocking = unchecked(2097152), @@ -150,32 +150,32 @@ namespace Dalamud.Bindings.ImGui NavFlattened = unchecked(8388608), /// - /// Don't use! For internal use by BeginChild()
+ /// To be documented. ///
ChildWindow = unchecked(16777216), /// - /// Don't use! For internal use by BeginTooltip()
+ /// To be documented. ///
Tooltip = unchecked(33554432), /// - /// Don't use! For internal use by BeginPopup()
+ /// To be documented. ///
Popup = unchecked(67108864), /// - /// Don't use! For internal use by BeginPopupModal()
+ /// To be documented. ///
Modal = unchecked(134217728), /// - /// Don't use! For internal use by BeginMenu()
+ /// To be documented. ///
ChildMenu = unchecked(268435456), /// - /// Don't use! For internal use by Begin()NewFrame()
+ /// To be documented. ///
DockNodeHost = unchecked(536870912), } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/FunctionTable.cs b/imgui/Dalamud.Bindings.ImGui/Generated/FunctionTable.cs index 54a27cd21..2c929ccc9 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/FunctionTable.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/FunctionTable.cs @@ -683,236 +683,236 @@ namespace Dalamud.Bindings.ImGui funcTable.Load(655, "ImGuiNextWindowData_destroy"); funcTable.Load(656, "ImGuiNextItemData_destroy"); funcTable.Load(657, "ImGuiLastItemData_destroy"); - funcTable.Load(658, "ImGuiStackSizes_ImGuiStackSizes"); - funcTable.Load(659, "ImGuiStackSizes_destroy"); - funcTable.Load(660, "ImGuiStackSizes_SetToCurrentState"); - funcTable.Load(661, "ImGuiStackSizes_CompareWithCurrentState"); - funcTable.Load(662, "ImGuiPtrOrIndex_destroy"); - funcTable.Load(663, "ImGuiInputEvent_destroy"); - funcTable.Load(664, "ImGuiListClipperData_destroy"); - funcTable.Load(665, "ImGuiNavItemData_destroy"); - funcTable.Load(666, "ImGuiOldColumnData_destroy"); - funcTable.Load(667, "ImGuiOldColumns_destroy"); - funcTable.Load(668, "ImGuiDockContext_destroy"); - funcTable.Load(669, "ImGuiWindowSettings_destroy"); - funcTable.Load(670, "ImGuiSettingsHandler_destroy"); - funcTable.Load(671, "ImGuiMetricsConfig_destroy"); - funcTable.Load(672, "ImGuiStackLevelInfo_destroy"); - funcTable.Load(673, "ImGuiStackTool_ImGuiStackTool"); - funcTable.Load(674, "ImGuiStackTool_destroy"); - funcTable.Load(675, "ImGuiContextHook_destroy"); - funcTable.Load(676, "ImGuiContext_destroy"); - funcTable.Load(677, "ImGuiTabItem_destroy"); - funcTable.Load(678, "ImGuiTabBar_destroy"); - funcTable.Load(679, "ImGuiTableColumn_destroy"); - funcTable.Load(680, "ImGuiTableInstanceData_destroy"); - funcTable.Load(681, "ImGuiTableTempData_destroy"); - funcTable.Load(682, "ImGuiTableColumnSettings_destroy"); - funcTable.Load(683, "ImGuiTableSettings_destroy"); - funcTable.Load(684, "igLogText"); - funcTable.Load(685, "ImGuiTextBuffer_appendf"); - funcTable.Load(686, "igGET_FLT_MAX"); - funcTable.Load(687, "igGET_FLT_MIN"); - funcTable.Load(688, "ImVector_ImWchar_create"); - funcTable.Load(689, "ImVector_ImWchar_destroy"); - funcTable.Load(690, "ImVector_ImWchar_Init"); - funcTable.Load(691, "ImVector_ImWchar_UnInit"); - funcTable.Load(692, "igImHashData"); - funcTable.Load(693, "igImHashStr"); - funcTable.Load(694, "igImQsort"); - funcTable.Load(695, "igImAlphaBlendColors"); - funcTable.Load(696, "igImIsPowerOfTwo_Int"); - funcTable.Load(697, "igImIsPowerOfTwo_U64"); - funcTable.Load(698, "igImUpperPowerOfTwo"); - funcTable.Load(699, "igImStricmp"); - funcTable.Load(700, "igImStrnicmp"); - funcTable.Load(701, "igImStrncpy"); - funcTable.Load(702, "igImStrdup"); - funcTable.Load(703, "igImStrdupcpy"); - funcTable.Load(704, "igImStrchrRange"); - funcTable.Load(705, "igImStrlenW"); - funcTable.Load(706, "igImStreolRange"); - funcTable.Load(707, "igImStrbolW"); - funcTable.Load(708, "igImStristr"); - funcTable.Load(709, "igImStrTrimBlanks"); - funcTable.Load(710, "igImStrSkipBlank"); - funcTable.Load(711, "igImCharIsBlankA"); - funcTable.Load(712, "igImCharIsBlankW"); - funcTable.Load(713, "igImFormatStringToTempBuffer"); - funcTable.Load(714, "igImFormatStringToTempBufferV"); - funcTable.Load(715, "igImParseFormatFindStart"); - funcTable.Load(716, "igImParseFormatFindEnd"); - funcTable.Load(717, "igImParseFormatSanitizeForPrinting"); - funcTable.Load(718, "igImParseFormatSanitizeForScanning"); - funcTable.Load(719, "igImParseFormatPrecision"); - funcTable.Load(720, "igImTextCharToUtf8"); - funcTable.Load(721, "igImTextCharFromUtf8"); - funcTable.Load(722, "igImTextCountCharsFromUtf8"); - funcTable.Load(723, "igImTextCountUtf8BytesFromChar"); - funcTable.Load(724, "igImTextCountUtf8BytesFromStr"); - funcTable.Load(725, "igImFileOpen"); - funcTable.Load(726, "igImFileClose"); - funcTable.Load(727, "igImFileGetSize"); - funcTable.Load(728, "igImFileRead"); - funcTable.Load(729, "igImFileWrite"); - funcTable.Load(730, "igImFileLoadToMemory"); - funcTable.Load(731, "igImPow_Float"); - funcTable.Load(732, "igImPow_double"); - funcTable.Load(733, "igImLog_Float"); - funcTable.Load(734, "igImLog_double"); - funcTable.Load(735, "igImAbs_Int"); - funcTable.Load(736, "igImAbs_Float"); - funcTable.Load(737, "igImAbs_double"); - funcTable.Load(738, "igImSign_Float"); - funcTable.Load(739, "igImSign_double"); - funcTable.Load(740, "igImRsqrt_Float"); - funcTable.Load(741, "igImRsqrt_double"); - funcTable.Load(742, "igImMin"); - funcTable.Load(743, "igImMax"); - funcTable.Load(744, "igImClamp"); - funcTable.Load(745, "igImLerp_Vec2Float"); - funcTable.Load(746, "igImLerp_Vec2Vec2"); - funcTable.Load(747, "igImLerp_Vec4"); - funcTable.Load(748, "igImSaturate"); - funcTable.Load(749, "igImLengthSqr_Vec2"); - funcTable.Load(750, "igImLengthSqr_Vec4"); - funcTable.Load(751, "igImInvLength"); - funcTable.Load(752, "igImFloor_Float"); - funcTable.Load(753, "igImFloorSigned_Float"); - funcTable.Load(754, "igImFloor_Vec2"); - funcTable.Load(755, "igImFloorSigned_Vec2"); - funcTable.Load(756, "igImModPositive"); - funcTable.Load(757, "igImDot"); - funcTable.Load(758, "igImRotate"); - funcTable.Load(759, "igImLinearSweep"); - funcTable.Load(760, "igImMul"); - funcTable.Load(761, "igImIsFloatAboveGuaranteedIntegerPrecision"); - funcTable.Load(762, "igImBezierCubicCalc"); - funcTable.Load(763, "igImBezierCubicClosestPoint"); - funcTable.Load(764, "igImBezierCubicClosestPointCasteljau"); - funcTable.Load(765, "igImBezierQuadraticCalc"); - funcTable.Load(766, "igImLineClosestPoint"); - funcTable.Load(767, "igImTriangleContainsPoint"); - funcTable.Load(768, "igImTriangleClosestPoint"); - funcTable.Load(769, "igImTriangleBarycentricCoords"); - funcTable.Load(770, "igImTriangleArea"); - funcTable.Load(771, "igImGetDirQuadrantFromDelta"); - funcTable.Load(772, "ImVec1_ImVec1_Nil"); - funcTable.Load(773, "ImVec1_ImVec1_Float"); - funcTable.Load(774, "ImVec2ih_ImVec2ih_Nil"); - funcTable.Load(775, "ImVec2ih_ImVec2ih_short"); - funcTable.Load(776, "ImVec2ih_ImVec2ih_Vec2"); - funcTable.Load(777, "ImRect_ImRect_Nil"); - funcTable.Load(778, "ImRect_ImRect_Vec2"); - funcTable.Load(779, "ImRect_ImRect_Vec4"); - funcTable.Load(780, "ImRect_ImRect_Float"); - funcTable.Load(781, "ImRect_GetCenter"); - funcTable.Load(782, "ImRect_GetSize"); - funcTable.Load(783, "ImRect_GetWidth"); - funcTable.Load(784, "ImRect_GetHeight"); - funcTable.Load(785, "ImRect_GetArea"); - funcTable.Load(786, "ImRect_GetTL"); - funcTable.Load(787, "ImRect_GetTR"); - funcTable.Load(788, "ImRect_GetBL"); - funcTable.Load(789, "ImRect_GetBR"); - funcTable.Load(790, "ImRect_Contains_Vec2"); - funcTable.Load(791, "ImRect_Contains_Rect"); - funcTable.Load(792, "ImRect_Overlaps"); - funcTable.Load(793, "ImRect_Add_Vec2"); - funcTable.Load(794, "ImRect_Add_Rect"); - funcTable.Load(795, "ImRect_Expand_Float"); - funcTable.Load(796, "ImRect_Expand_Vec2"); - funcTable.Load(797, "ImRect_Translate"); - funcTable.Load(798, "ImRect_TranslateX"); - funcTable.Load(799, "ImRect_TranslateY"); - funcTable.Load(800, "ImRect_ClipWith"); - funcTable.Load(801, "ImRect_ClipWithFull"); - funcTable.Load(802, "ImRect_Floor"); - funcTable.Load(803, "ImRect_IsInverted"); - funcTable.Load(804, "ImRect_ToVec4"); - funcTable.Load(805, "igImBitArrayTestBit"); - funcTable.Load(806, "igImBitArrayClearBit"); - funcTable.Load(807, "igImBitArraySetBit"); - funcTable.Load(808, "igImBitArraySetBitRange"); - funcTable.Load(809, "ImBitVector_Create"); - funcTable.Load(810, "ImBitVector_Clear"); - funcTable.Load(811, "ImBitVector_TestBit"); - funcTable.Load(812, "ImBitVector_SetBit"); - funcTable.Load(813, "ImBitVector_ClearBit"); - funcTable.Load(814, "ImDrawListSharedData_ImDrawListSharedData"); - funcTable.Load(815, "ImDrawListSharedData_SetCircleTessellationMaxError"); - funcTable.Load(816, "ImDrawDataBuilder_Clear"); - funcTable.Load(817, "ImDrawDataBuilder_ClearFreeMemory"); - funcTable.Load(818, "ImDrawDataBuilder_GetDrawListCount"); - funcTable.Load(819, "ImDrawDataBuilder_FlattenIntoSingleLayer"); - funcTable.Load(820, "ImGuiStyleMod_ImGuiStyleMod_Int"); - funcTable.Load(821, "ImGuiStyleMod_ImGuiStyleMod_Float"); - funcTable.Load(822, "ImGuiStyleMod_ImGuiStyleMod_Vec2"); - funcTable.Load(823, "ImGuiComboPreviewData_ImGuiComboPreviewData"); - funcTable.Load(824, "ImGuiMenuColumns_ImGuiMenuColumns"); - funcTable.Load(825, "ImGuiMenuColumns_Update"); - funcTable.Load(826, "ImGuiMenuColumns_DeclColumns"); - funcTable.Load(827, "ImGuiMenuColumns_CalcNextTotalWidth"); - funcTable.Load(828, "ImGuiInputTextState_ImGuiInputTextState"); - funcTable.Load(829, "ImGuiInputTextState_ClearText"); - funcTable.Load(830, "ImGuiInputTextState_ClearFreeMemory"); - funcTable.Load(831, "ImGuiInputTextState_GetUndoAvailCount"); - funcTable.Load(832, "ImGuiInputTextState_GetRedoAvailCount"); - funcTable.Load(833, "ImGuiInputTextState_OnKeyPressed"); - funcTable.Load(834, "ImGuiInputTextState_CursorAnimReset"); - funcTable.Load(835, "ImGuiInputTextState_CursorClamp"); - funcTable.Load(836, "ImGuiInputTextState_HasSelection"); - funcTable.Load(837, "ImGuiInputTextState_ClearSelection"); - funcTable.Load(838, "ImGuiInputTextState_GetCursorPos"); - funcTable.Load(839, "ImGuiInputTextState_GetSelectionStart"); - funcTable.Load(840, "ImGuiInputTextState_GetSelectionEnd"); - funcTable.Load(841, "ImGuiInputTextState_SelectAll"); - funcTable.Load(842, "ImGuiPopupData_ImGuiPopupData"); - funcTable.Load(843, "ImGuiNextWindowData_ImGuiNextWindowData"); - funcTable.Load(844, "ImGuiNextWindowData_ClearFlags"); - funcTable.Load(845, "ImGuiNextItemData_ImGuiNextItemData"); - funcTable.Load(846, "ImGuiNextItemData_ClearFlags"); - funcTable.Load(847, "ImGuiLastItemData_ImGuiLastItemData"); - funcTable.Load(848, "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr"); - funcTable.Load(849, "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int"); - funcTable.Load(850, "ImGuiInputEvent_ImGuiInputEvent"); - funcTable.Load(851, "ImGuiListClipperRange_FromIndices"); - funcTable.Load(852, "ImGuiListClipperRange_FromPositions"); - funcTable.Load(853, "ImGuiListClipperData_ImGuiListClipperData"); - funcTable.Load(854, "ImGuiListClipperData_Reset"); - funcTable.Load(855, "ImGuiNavItemData_ImGuiNavItemData"); - funcTable.Load(856, "ImGuiNavItemData_Clear"); - funcTable.Load(857, "ImGuiOldColumnData_ImGuiOldColumnData"); - funcTable.Load(858, "ImGuiOldColumns_ImGuiOldColumns"); - funcTable.Load(859, "ImGuiDockNode_ImGuiDockNode"); - funcTable.Load(860, "ImGuiDockNode_destroy"); - funcTable.Load(861, "ImGuiDockNode_IsRootNode"); - funcTable.Load(862, "ImGuiDockNode_IsDockSpace"); - funcTable.Load(863, "ImGuiDockNode_IsFloatingNode"); - funcTable.Load(864, "ImGuiDockNode_IsCentralNode"); - funcTable.Load(865, "ImGuiDockNode_IsHiddenTabBar"); - funcTable.Load(866, "ImGuiDockNode_IsNoTabBar"); - funcTable.Load(867, "ImGuiDockNode_IsSplitNode"); - funcTable.Load(868, "ImGuiDockNode_IsLeafNode"); - funcTable.Load(869, "ImGuiDockNode_IsEmpty"); - funcTable.Load(870, "ImGuiDockNode_Rect"); - funcTable.Load(871, "ImGuiDockNode_SetLocalFlags"); - funcTable.Load(872, "ImGuiDockNode_UpdateMergedFlags"); - funcTable.Load(873, "ImGuiDockContext_ImGuiDockContext"); - funcTable.Load(874, "ImGuiViewportP_ImGuiViewportP"); - funcTable.Load(875, "ImGuiViewportP_destroy"); - funcTable.Load(876, "ImGuiViewportP_ClearRequestFlags"); - funcTable.Load(877, "ImGuiViewportP_CalcWorkRectPos"); - funcTable.Load(878, "ImGuiViewportP_CalcWorkRectSize"); - funcTable.Load(879, "ImGuiViewportP_UpdateWorkRect"); - funcTable.Load(880, "ImGuiViewportP_GetMainRect"); - funcTable.Load(881, "ImGuiViewportP_GetWorkRect"); - funcTable.Load(882, "ImGuiViewportP_GetBuildWorkRect"); - funcTable.Load(883, "ImGuiWindowSettings_ImGuiWindowSettings"); - funcTable.Load(884, "ImGuiWindowSettings_GetName"); - funcTable.Load(885, "ImGuiSettingsHandler_ImGuiSettingsHandler"); - funcTable.Load(886, "ImGuiMetricsConfig_ImGuiMetricsConfig"); - funcTable.Load(887, "ImGuiStackLevelInfo_ImGuiStackLevelInfo"); + funcTable.Load(658, "ImGuiStackSizes_destroy"); + funcTable.Load(659, "ImGuiPtrOrIndex_destroy"); + funcTable.Load(660, "ImGuiInputEvent_destroy"); + funcTable.Load(661, "ImGuiListClipperData_destroy"); + funcTable.Load(662, "ImGuiNavItemData_destroy"); + funcTable.Load(663, "ImGuiOldColumnData_destroy"); + funcTable.Load(664, "ImGuiOldColumns_destroy"); + funcTable.Load(665, "ImGuiDockContext_destroy"); + funcTable.Load(666, "ImGuiWindowSettings_destroy"); + funcTable.Load(667, "ImGuiSettingsHandler_destroy"); + funcTable.Load(668, "ImGuiMetricsConfig_destroy"); + funcTable.Load(669, "ImGuiStackLevelInfo_destroy"); + funcTable.Load(670, "ImGuiStackTool_destroy"); + funcTable.Load(671, "ImGuiContextHook_destroy"); + funcTable.Load(672, "ImGuiContext_destroy"); + funcTable.Load(673, "ImGuiTabItem_destroy"); + funcTable.Load(674, "ImGuiTabBar_destroy"); + funcTable.Load(675, "ImGuiTableColumn_destroy"); + funcTable.Load(676, "ImGuiTableInstanceData_destroy"); + funcTable.Load(677, "ImGuiTableTempData_destroy"); + funcTable.Load(678, "ImGuiTableColumnSettings_destroy"); + funcTable.Load(679, "ImGuiTableSettings_destroy"); + funcTable.Load(680, "igLogText"); + funcTable.Load(681, "ImGuiTextBuffer_appendf"); + funcTable.Load(682, "igGET_FLT_MAX"); + funcTable.Load(683, "igGET_FLT_MIN"); + funcTable.Load(684, "ImVector_ImWchar_create"); + funcTable.Load(685, "ImVector_ImWchar_destroy"); + funcTable.Load(686, "ImVector_ImWchar_Init"); + funcTable.Load(687, "ImVector_ImWchar_UnInit"); + funcTable.Load(688, "igImHashData"); + funcTable.Load(689, "igImHashStr"); + funcTable.Load(690, "igImQsort"); + funcTable.Load(691, "igImAlphaBlendColors"); + funcTable.Load(692, "igImIsPowerOfTwo_Int"); + funcTable.Load(693, "igImIsPowerOfTwo_U64"); + funcTable.Load(694, "igImUpperPowerOfTwo"); + funcTable.Load(695, "igImStricmp"); + funcTable.Load(696, "igImStrnicmp"); + funcTable.Load(697, "igImStrncpy"); + funcTable.Load(698, "igImStrdup"); + funcTable.Load(699, "igImStrdupcpy"); + funcTable.Load(700, "igImStrchrRange"); + funcTable.Load(701, "igImStrlenW"); + funcTable.Load(702, "igImStreolRange"); + funcTable.Load(703, "igImStrbolW"); + funcTable.Load(704, "igImStristr"); + funcTable.Load(705, "igImStrTrimBlanks"); + funcTable.Load(706, "igImStrSkipBlank"); + funcTable.Load(707, "igImCharIsBlankA"); + funcTable.Load(708, "igImCharIsBlankW"); + funcTable.Load(709, "igImFormatStringToTempBuffer"); + funcTable.Load(710, "igImFormatStringToTempBufferV"); + funcTable.Load(711, "igImParseFormatFindStart"); + funcTable.Load(712, "igImParseFormatFindEnd"); + funcTable.Load(713, "igImParseFormatSanitizeForPrinting"); + funcTable.Load(714, "igImParseFormatSanitizeForScanning"); + funcTable.Load(715, "igImParseFormatPrecision"); + funcTable.Load(716, "igImTextCharToUtf8"); + funcTable.Load(717, "igImTextCharFromUtf8"); + funcTable.Load(718, "igImTextCountCharsFromUtf8"); + funcTable.Load(719, "igImTextCountUtf8BytesFromChar"); + funcTable.Load(720, "igImTextCountUtf8BytesFromStr"); + funcTable.Load(721, "igImFileOpen"); + funcTable.Load(722, "igImFileClose"); + funcTable.Load(723, "igImFileGetSize"); + funcTable.Load(724, "igImFileRead"); + funcTable.Load(725, "igImFileWrite"); + funcTable.Load(726, "igImFileLoadToMemory"); + funcTable.Load(727, "igImPow_Float"); + funcTable.Load(728, "igImPow_double"); + funcTable.Load(729, "igImLog_Float"); + funcTable.Load(730, "igImLog_double"); + funcTable.Load(731, "igImAbs_Int"); + funcTable.Load(732, "igImAbs_Float"); + funcTable.Load(733, "igImAbs_double"); + funcTable.Load(734, "igImSign_Float"); + funcTable.Load(735, "igImSign_double"); + funcTable.Load(736, "igImRsqrt_Float"); + funcTable.Load(737, "igImRsqrt_double"); + funcTable.Load(738, "igImMin"); + funcTable.Load(739, "igImMax"); + funcTable.Load(740, "igImClamp"); + funcTable.Load(741, "igImLerp_Vec2Float"); + funcTable.Load(742, "igImLerp_Vec2Vec2"); + funcTable.Load(743, "igImLerp_Vec4"); + funcTable.Load(744, "igImSaturate"); + funcTable.Load(745, "igImLengthSqr_Vec2"); + funcTable.Load(746, "igImLengthSqr_Vec4"); + funcTable.Load(747, "igImInvLength"); + funcTable.Load(748, "igImFloor_Float"); + funcTable.Load(749, "igImFloorSigned_Float"); + funcTable.Load(750, "igImFloor_Vec2"); + funcTable.Load(751, "igImFloorSigned_Vec2"); + funcTable.Load(752, "igImModPositive"); + funcTable.Load(753, "igImDot"); + funcTable.Load(754, "igImRotate"); + funcTable.Load(755, "igImLinearSweep"); + funcTable.Load(756, "igImMul"); + funcTable.Load(757, "igImIsFloatAboveGuaranteedIntegerPrecision"); + funcTable.Load(758, "igImBezierCubicCalc"); + funcTable.Load(759, "igImBezierCubicClosestPoint"); + funcTable.Load(760, "igImBezierCubicClosestPointCasteljau"); + funcTable.Load(761, "igImBezierQuadraticCalc"); + funcTable.Load(762, "igImLineClosestPoint"); + funcTable.Load(763, "igImTriangleContainsPoint"); + funcTable.Load(764, "igImTriangleClosestPoint"); + funcTable.Load(765, "igImTriangleBarycentricCoords"); + funcTable.Load(766, "igImTriangleArea"); + funcTable.Load(767, "igImGetDirQuadrantFromDelta"); + funcTable.Load(768, "ImVec1_ImVec1_Nil"); + funcTable.Load(769, "ImVec1_ImVec1_Float"); + funcTable.Load(770, "ImVec2ih_ImVec2ih_Nil"); + funcTable.Load(771, "ImVec2ih_ImVec2ih_short"); + funcTable.Load(772, "ImVec2ih_ImVec2ih_Vec2"); + funcTable.Load(773, "ImRect_ImRect_Nil"); + funcTable.Load(774, "ImRect_ImRect_Vec2"); + funcTable.Load(775, "ImRect_ImRect_Vec4"); + funcTable.Load(776, "ImRect_ImRect_Float"); + funcTable.Load(777, "ImRect_GetCenter"); + funcTable.Load(778, "ImRect_GetSize"); + funcTable.Load(779, "ImRect_GetWidth"); + funcTable.Load(780, "ImRect_GetHeight"); + funcTable.Load(781, "ImRect_GetArea"); + funcTable.Load(782, "ImRect_GetTL"); + funcTable.Load(783, "ImRect_GetTR"); + funcTable.Load(784, "ImRect_GetBL"); + funcTable.Load(785, "ImRect_GetBR"); + funcTable.Load(786, "ImRect_Contains_Vec2"); + funcTable.Load(787, "ImRect_Contains_Rect"); + funcTable.Load(788, "ImRect_Overlaps"); + funcTable.Load(789, "ImRect_Add_Vec2"); + funcTable.Load(790, "ImRect_Add_Rect"); + funcTable.Load(791, "ImRect_Expand_Float"); + funcTable.Load(792, "ImRect_Expand_Vec2"); + funcTable.Load(793, "ImRect_Translate"); + funcTable.Load(794, "ImRect_TranslateX"); + funcTable.Load(795, "ImRect_TranslateY"); + funcTable.Load(796, "ImRect_ClipWith"); + funcTable.Load(797, "ImRect_ClipWithFull"); + funcTable.Load(798, "ImRect_Floor"); + funcTable.Load(799, "ImRect_IsInverted"); + funcTable.Load(800, "ImRect_ToVec4"); + funcTable.Load(801, "igImBitArrayTestBit"); + funcTable.Load(802, "igImBitArrayClearBit"); + funcTable.Load(803, "igImBitArraySetBit"); + funcTable.Load(804, "igImBitArraySetBitRange"); + funcTable.Load(805, "ImBitVector_Create"); + funcTable.Load(806, "ImBitVector_Clear"); + funcTable.Load(807, "ImBitVector_TestBit"); + funcTable.Load(808, "ImBitVector_SetBit"); + funcTable.Load(809, "ImBitVector_ClearBit"); + funcTable.Load(810, "ImDrawListSharedData_ImDrawListSharedData"); + funcTable.Load(811, "ImDrawListSharedData_SetCircleTessellationMaxError"); + funcTable.Load(812, "ImDrawDataBuilder_Clear"); + funcTable.Load(813, "ImDrawDataBuilder_ClearFreeMemory"); + funcTable.Load(814, "ImDrawDataBuilder_GetDrawListCount"); + funcTable.Load(815, "ImDrawDataBuilder_FlattenIntoSingleLayer"); + funcTable.Load(816, "ImGuiStyleMod_ImGuiStyleMod_Int"); + funcTable.Load(817, "ImGuiStyleMod_ImGuiStyleMod_Float"); + funcTable.Load(818, "ImGuiStyleMod_ImGuiStyleMod_Vec2"); + funcTable.Load(819, "ImGuiComboPreviewData_ImGuiComboPreviewData"); + funcTable.Load(820, "ImGuiMenuColumns_ImGuiMenuColumns"); + funcTable.Load(821, "ImGuiMenuColumns_Update"); + funcTable.Load(822, "ImGuiMenuColumns_DeclColumns"); + funcTable.Load(823, "ImGuiMenuColumns_CalcNextTotalWidth"); + funcTable.Load(824, "ImGuiInputTextState_ImGuiInputTextState"); + funcTable.Load(825, "ImGuiInputTextState_ClearText"); + funcTable.Load(826, "ImGuiInputTextState_ClearFreeMemory"); + funcTable.Load(827, "ImGuiInputTextState_GetUndoAvailCount"); + funcTable.Load(828, "ImGuiInputTextState_GetRedoAvailCount"); + funcTable.Load(829, "ImGuiInputTextState_OnKeyPressed"); + funcTable.Load(830, "ImGuiInputTextState_CursorAnimReset"); + funcTable.Load(831, "ImGuiInputTextState_CursorClamp"); + funcTable.Load(832, "ImGuiInputTextState_HasSelection"); + funcTable.Load(833, "ImGuiInputTextState_ClearSelection"); + funcTable.Load(834, "ImGuiInputTextState_GetCursorPos"); + funcTable.Load(835, "ImGuiInputTextState_GetSelectionStart"); + funcTable.Load(836, "ImGuiInputTextState_GetSelectionEnd"); + funcTable.Load(837, "ImGuiInputTextState_SelectAll"); + funcTable.Load(838, "ImGuiPopupData_ImGuiPopupData"); + funcTable.Load(839, "ImGuiNextWindowData_ImGuiNextWindowData"); + funcTable.Load(840, "ImGuiNextWindowData_ClearFlags"); + funcTable.Load(841, "ImGuiNextItemData_ImGuiNextItemData"); + funcTable.Load(842, "ImGuiNextItemData_ClearFlags"); + funcTable.Load(843, "ImGuiLastItemData_ImGuiLastItemData"); + funcTable.Load(844, "ImGuiStackSizes_ImGuiStackSizes"); + funcTable.Load(845, "ImGuiStackSizes_SetToCurrentState"); + funcTable.Load(846, "ImGuiStackSizes_CompareWithCurrentState"); + funcTable.Load(847, "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr"); + funcTable.Load(848, "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int"); + funcTable.Load(849, "ImGuiInputEvent_ImGuiInputEvent"); + funcTable.Load(850, "ImGuiListClipperRange_FromIndices"); + funcTable.Load(851, "ImGuiListClipperRange_FromPositions"); + funcTable.Load(852, "ImGuiListClipperData_ImGuiListClipperData"); + funcTable.Load(853, "ImGuiListClipperData_Reset"); + funcTable.Load(854, "ImGuiNavItemData_ImGuiNavItemData"); + funcTable.Load(855, "ImGuiNavItemData_Clear"); + funcTable.Load(856, "ImGuiOldColumnData_ImGuiOldColumnData"); + funcTable.Load(857, "ImGuiOldColumns_ImGuiOldColumns"); + funcTable.Load(858, "ImGuiDockNode_ImGuiDockNode"); + funcTable.Load(859, "ImGuiDockNode_destroy"); + funcTable.Load(860, "ImGuiDockNode_IsRootNode"); + funcTable.Load(861, "ImGuiDockNode_IsDockSpace"); + funcTable.Load(862, "ImGuiDockNode_IsFloatingNode"); + funcTable.Load(863, "ImGuiDockNode_IsCentralNode"); + funcTable.Load(864, "ImGuiDockNode_IsHiddenTabBar"); + funcTable.Load(865, "ImGuiDockNode_IsNoTabBar"); + funcTable.Load(866, "ImGuiDockNode_IsSplitNode"); + funcTable.Load(867, "ImGuiDockNode_IsLeafNode"); + funcTable.Load(868, "ImGuiDockNode_IsEmpty"); + funcTable.Load(869, "ImGuiDockNode_Rect"); + funcTable.Load(870, "ImGuiDockNode_SetLocalFlags"); + funcTable.Load(871, "ImGuiDockNode_UpdateMergedFlags"); + funcTable.Load(872, "ImGuiDockContext_ImGuiDockContext"); + funcTable.Load(873, "ImGuiViewportP_ImGuiViewportP"); + funcTable.Load(874, "ImGuiViewportP_destroy"); + funcTable.Load(875, "ImGuiViewportP_ClearRequestFlags"); + funcTable.Load(876, "ImGuiViewportP_CalcWorkRectPos"); + funcTable.Load(877, "ImGuiViewportP_CalcWorkRectSize"); + funcTable.Load(878, "ImGuiViewportP_UpdateWorkRect"); + funcTable.Load(879, "ImGuiViewportP_GetMainRect"); + funcTable.Load(880, "ImGuiViewportP_GetWorkRect"); + funcTable.Load(881, "ImGuiViewportP_GetBuildWorkRect"); + funcTable.Load(882, "ImGuiWindowSettings_ImGuiWindowSettings"); + funcTable.Load(883, "ImGuiWindowSettings_GetName"); + funcTable.Load(884, "ImGuiSettingsHandler_ImGuiSettingsHandler"); + funcTable.Load(885, "ImGuiMetricsConfig_ImGuiMetricsConfig"); + funcTable.Load(886, "ImGuiStackLevelInfo_ImGuiStackLevelInfo"); + funcTable.Load(887, "ImGuiStackTool_ImGuiStackTool"); funcTable.Load(888, "ImGuiContextHook_ImGuiContextHook"); funcTable.Load(889, "ImGuiContext_ImGuiContext"); funcTable.Load(890, "ImGuiWindow_ImGuiWindow"); diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.085.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.085.cs index 623b38517..53742fa7f 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.085.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.085.cs @@ -3035,141 +3035,15 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SetDragDropPayloadNative(byte* type, void* data, ulong sz, ImGuiCond cond) + internal static byte SetDragDropPayloadNative(byte* type, void* data, nuint sz, ImGuiCond cond) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[305])(type, data, sz, cond); + return ((delegate* unmanaged[Cdecl])funcTable[305])(type, data, sz, cond); #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[305])((nint)type, (nint)data, sz, cond); + return (byte)((delegate* unmanaged[Cdecl])funcTable[305])((nint)type, (nint)data, sz, cond); #endif } - /// - /// To be documented. - /// - public static bool SetDragDropPayload(byte* type, void* data, ulong sz, ImGuiCond cond) - { - byte ret = SetDragDropPayloadNative(type, data, sz, cond); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool SetDragDropPayload(byte* type, void* data, ulong sz) - { - byte ret = SetDragDropPayloadNative(type, data, sz, (ImGuiCond)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool SetDragDropPayload(ref byte type, void* data, ulong sz, ImGuiCond cond) - { - fixed (byte* ptype = &type) - { - byte ret = SetDragDropPayloadNative((byte*)ptype, data, sz, cond); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool SetDragDropPayload(ref byte type, void* data, ulong sz) - { - fixed (byte* ptype = &type) - { - byte ret = SetDragDropPayloadNative((byte*)ptype, data, sz, (ImGuiCond)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool SetDragDropPayload(ReadOnlySpan type, void* data, ulong sz, ImGuiCond cond) - { - fixed (byte* ptype = type) - { - byte ret = SetDragDropPayloadNative((byte*)ptype, data, sz, cond); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool SetDragDropPayload(ReadOnlySpan type, void* data, ulong sz) - { - fixed (byte* ptype = type) - { - byte ret = SetDragDropPayloadNative((byte*)ptype, data, sz, (ImGuiCond)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool SetDragDropPayload(string type, void* data, ulong sz, ImGuiCond cond) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SetDragDropPayloadNative(pStr0, data, sz, cond); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool SetDragDropPayload(string type, void* data, ulong sz) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SetDragDropPayloadNative(pStr0, data, sz, (ImGuiCond)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - /// /// To be documented. /// @@ -5022,5 +4896,140 @@ namespace Dalamud.Bindings.ImGui return ret; } } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(ReadOnlySpan text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = text) + { + Vector2 ret; + CalcTextSizeNative(&ret, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(string text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, (byte*)(default), (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(string text, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, textEnd, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void CalcTextSize(Vector2* pOut, string text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, pStr0, (byte*)(default), (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSize(string text, bool hideTextAfterDoubleHash) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeNative(&ret, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.086.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.086.cs index 4e463cb3b..03da217ab 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.086.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.086.cs @@ -18,141 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGui { - /// - /// To be documented. - /// - public static Vector2 CalcTextSize(ReadOnlySpan text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSize(string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, (byte*)(default), (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSize(string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, textEnd, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static void CalcTextSize(Vector2* pOut, string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, (byte*)(default), (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSize(string text, bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - /// /// To be documented. /// @@ -5028,5 +4893,133 @@ namespace Dalamud.Bindings.ImGui } } } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsKeyDownNative(ImGuiKey key) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[354])(key); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[354])(key); + #endif + } + + /// + /// To be documented. + /// + public static bool IsKeyDown(ImGuiKey key) + { + byte ret = IsKeyDownNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsKeyPressedNative(ImGuiKey key, byte repeat) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[355])(key, repeat); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[355])(key, repeat); + #endif + } + + /// + /// To be documented. + /// + public static bool IsKeyPressed(ImGuiKey key, bool repeat) + { + byte ret = IsKeyPressedNative(key, repeat ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsKeyPressed(ImGuiKey key) + { + byte ret = IsKeyPressedNative(key, (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsKeyReleasedNative(ImGuiKey key) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[356])(key); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[356])(key); + #endif + } + + /// + /// To be documented. + /// + public static bool IsKeyReleased(ImGuiKey key) + { + byte ret = IsKeyReleasedNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetKeyPressedAmountNative(ImGuiKey key, float repeatDelay, float rate) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[357])(key, repeatDelay, rate); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[357])(key, repeatDelay, rate); + #endif + } + + /// + /// To be documented. + /// + public static int GetKeyPressedAmount(ImGuiKey key, float repeatDelay, float rate) + { + int ret = GetKeyPressedAmountNative(key, repeatDelay, rate); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetKeyNameNative(ImGuiKey key) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[358])(key); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[358])(key); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetKeyName(ImGuiKey key) + { + byte* ret = GetKeyNameNative(key); + return ret; + } + + /// + /// To be documented. + /// + public static string GetKeyNameS(ImGuiKey key) + { + string ret = Utils.DecodeStringUTF8(GetKeyNameNative(key)); + return ret; + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.087.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.087.cs index d0f6abbd1..a87351fac 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.087.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.087.cs @@ -18,134 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGui { - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsKeyDownNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[354])(key); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[354])(key); - #endif - } - - /// - /// To be documented. - /// - public static bool IsKeyDown(ImGuiKey key) - { - byte ret = IsKeyDownNative(key); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsKeyPressedNative(ImGuiKey key, byte repeat) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[355])(key, repeat); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[355])(key, repeat); - #endif - } - - /// - /// To be documented. - /// - public static bool IsKeyPressed(ImGuiKey key, bool repeat) - { - byte ret = IsKeyPressedNative(key, repeat ? (byte)1 : (byte)0); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsKeyPressed(ImGuiKey key) - { - byte ret = IsKeyPressedNative(key, (byte)(1)); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsKeyReleasedNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[356])(key); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[356])(key); - #endif - } - - /// - /// To be documented. - /// - public static bool IsKeyReleased(ImGuiKey key) - { - byte ret = IsKeyReleasedNative(key); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetKeyPressedAmountNative(ImGuiKey key, float repeatDelay, float rate) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[357])(key, repeatDelay, rate); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[357])(key, repeatDelay, rate); - #endif - } - - /// - /// To be documented. - /// - public static int GetKeyPressedAmount(ImGuiKey key, float repeatDelay, float rate) - { - int ret = GetKeyPressedAmountNative(key, repeatDelay, rate); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetKeyNameNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[358])(key); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[358])(key); - #endif - } - - /// - /// To be documented. - /// - public static byte* GetKeyName(ImGuiKey key) - { - byte* ret = GetKeyNameNative(key); - return ret; - } - - /// - /// To be documented. - /// - public static string GetKeyNameS(ImGuiKey key) - { - string ret = Utils.DecodeStringUTF8(GetKeyNameNative(key)); - return ret; - } - /// /// To be documented. /// @@ -898,19 +770,19 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LoadIniSettingsFromMemoryNative(byte* iniData, ulong iniSize) + internal static void LoadIniSettingsFromMemoryNative(byte* iniData, nuint iniSize) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[379])(iniData, iniSize); + ((delegate* unmanaged[Cdecl])funcTable[379])(iniData, iniSize); #else - ((delegate* unmanaged[Cdecl])funcTable[379])((nint)iniData, iniSize); + ((delegate* unmanaged[Cdecl])funcTable[379])((nint)iniData, iniSize); #endif } /// /// To be documented. /// - public static void LoadIniSettingsFromMemory(byte* iniData, ulong iniSize) + public static void LoadIniSettingsFromMemory(byte* iniData, nuint iniSize) { LoadIniSettingsFromMemoryNative(iniData, iniSize); } @@ -920,13 +792,13 @@ namespace Dalamud.Bindings.ImGui /// public static void LoadIniSettingsFromMemory(byte* iniData) { - LoadIniSettingsFromMemoryNative(iniData, (ulong)(0)); + LoadIniSettingsFromMemoryNative(iniData, (nuint)(0)); } /// /// To be documented. /// - public static void LoadIniSettingsFromMemory(ref byte iniData, ulong iniSize) + public static void LoadIniSettingsFromMemory(ref byte iniData, nuint iniSize) { fixed (byte* piniData = &iniData) { @@ -941,14 +813,14 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* piniData = &iniData) { - LoadIniSettingsFromMemoryNative((byte*)piniData, (ulong)(0)); + LoadIniSettingsFromMemoryNative((byte*)piniData, (nuint)(0)); } } /// /// To be documented. /// - public static void LoadIniSettingsFromMemory(ReadOnlySpan iniData, ulong iniSize) + public static void LoadIniSettingsFromMemory(ReadOnlySpan iniData, nuint iniSize) { fixed (byte* piniData = iniData) { @@ -963,14 +835,14 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* piniData = iniData) { - LoadIniSettingsFromMemoryNative((byte*)piniData, (ulong)(0)); + LoadIniSettingsFromMemoryNative((byte*)piniData, (nuint)(0)); } } /// /// To be documented. /// - public static void LoadIniSettingsFromMemory(string iniData, ulong iniSize) + public static void LoadIniSettingsFromMemory(string iniData, nuint iniSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1018,66 +890,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(iniData, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - LoadIniSettingsFromMemoryNative(pStr0, (ulong)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void LoadIniSettingsFromMemory(byte* iniData, nuint iniSize) - { - LoadIniSettingsFromMemoryNative(iniData, iniSize); - } - - /// - /// To be documented. - /// - public static void LoadIniSettingsFromMemory(ref byte iniData, nuint iniSize) - { - fixed (byte* piniData = &iniData) - { - LoadIniSettingsFromMemoryNative((byte*)piniData, iniSize); - } - } - - /// - /// To be documented. - /// - public static void LoadIniSettingsFromMemory(ReadOnlySpan iniData, nuint iniSize) - { - fixed (byte* piniData = iniData) - { - LoadIniSettingsFromMemoryNative((byte*)piniData, iniSize); - } - } - - /// - /// To be documented. - /// - public static void LoadIniSettingsFromMemory(string iniData, nuint iniSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (iniData != null) - { - pStrSize0 = Utils.GetByteCountUTF8(iniData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(iniData, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LoadIniSettingsFromMemoryNative(pStr0, iniSize); + LoadIniSettingsFromMemoryNative(pStr0, (nuint)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1160,10 +973,10 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* SaveIniSettingsToMemoryNative(ulong* outIniSize) + internal static byte* SaveIniSettingsToMemoryNative(nuint* outIniSize) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[381])(outIniSize); + return ((delegate* unmanaged[Cdecl])funcTable[381])(outIniSize); #else return (byte*)((delegate* unmanaged[Cdecl])funcTable[381])((nint)outIniSize); #endif @@ -1172,7 +985,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static byte* SaveIniSettingsToMemory(ulong* outIniSize) + public static byte* SaveIniSettingsToMemory(nuint* outIniSize) { byte* ret = SaveIniSettingsToMemoryNative(outIniSize); return ret; @@ -1183,7 +996,7 @@ namespace Dalamud.Bindings.ImGui /// public static byte* SaveIniSettingsToMemory() { - byte* ret = SaveIniSettingsToMemoryNative((ulong*)(default)); + byte* ret = SaveIniSettingsToMemoryNative((nuint*)(default)); return ret; } @@ -1192,43 +1005,19 @@ namespace Dalamud.Bindings.ImGui /// public static string SaveIniSettingsToMemoryS() { - string ret = Utils.DecodeStringUTF8(SaveIniSettingsToMemoryNative((ulong*)(default))); + string ret = Utils.DecodeStringUTF8(SaveIniSettingsToMemoryNative((nuint*)(default))); return ret; } /// /// To be documented. /// - public static string SaveIniSettingsToMemoryS(ulong* outIniSize) + public static string SaveIniSettingsToMemoryS(nuint* outIniSize) { string ret = Utils.DecodeStringUTF8(SaveIniSettingsToMemoryNative(outIniSize)); return ret; } - /// - /// To be documented. - /// - public static byte* SaveIniSettingsToMemory(ref nuint outIniSize) - { - fixed (nuint* poutIniSize = &outIniSize) - { - byte* ret = SaveIniSettingsToMemoryNative((ulong*)poutIniSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static string SaveIniSettingsToMemoryS(ref nuint outIniSize) - { - fixed (nuint* poutIniSize = &outIniSize) - { - string ret = Utils.DecodeStringUTF8(SaveIniSettingsToMemoryNative((ulong*)poutIniSize)); - return ret; - } - } - /// /// To be documented. /// @@ -1305,19 +1094,19 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DebugCheckVersionAndDataLayoutNative(byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + internal static byte DebugCheckVersionAndDataLayoutNative(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[383])(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ((delegate* unmanaged[Cdecl])funcTable[383])(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[383])((nint)versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return (byte)((delegate* unmanaged[Cdecl])funcTable[383])((nint)versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); #endif } /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) { byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); return ret != 0; @@ -1326,7 +1115,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) { fixed (byte* pversionStr = &versionStr) { @@ -1338,7 +1127,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) { fixed (byte* pversionStr = versionStr) { @@ -1350,7 +1139,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1380,46 +1169,679 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetAllocatorFunctionsNative(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc, void* userData) { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], delegate*, void*, void>)funcTable[384])((delegate*)Utils.GetFunctionPointerForDelegate(allocFunc), (delegate*)Utils.GetFunctionPointerForDelegate(freeFunc), userData); + #else + ((delegate* unmanaged[Cdecl])funcTable[384])((nint)Utils.GetFunctionPointerForDelegate(allocFunc), (nint)Utils.GetFunctionPointerForDelegate(freeFunc), (nint)userData); + #endif } /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static void SetAllocatorFunctions(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc, void* userData) { - fixed (byte* pversionStr = &versionStr) + SetAllocatorFunctionsNative(allocFunc, freeFunc, userData); + } + + /// + /// To be documented. + /// + public static void SetAllocatorFunctions(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc) + { + SetAllocatorFunctionsNative(allocFunc, freeFunc, (void*)(default)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetAllocatorFunctionsNative(delegate** pAllocFunc, delegate** pFreeFunc, void** pUserData) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, delegate**, void**, void>)funcTable[385])(pAllocFunc, pFreeFunc, pUserData); + #else + ((delegate* unmanaged[Cdecl])funcTable[385])((nint)pAllocFunc, (nint)pFreeFunc, (nint)pUserData); + #endif + } + + /// + /// To be documented. + /// + public static void GetAllocatorFunctions(delegate** pAllocFunc, delegate** pFreeFunc, void** pUserData) + { + GetAllocatorFunctionsNative(pAllocFunc, pFreeFunc, pUserData); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void* MemAllocNative(nuint size) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[386])(size); + #else + return (void*)((delegate* unmanaged[Cdecl])funcTable[386])(size); + #endif + } + + /// + /// To be documented. + /// + public static void* MemAlloc(nuint size) + { + void* ret = MemAllocNative(size); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void MemFreeNative(void* ptr) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[387])(ptr); + #else + ((delegate* unmanaged[Cdecl])funcTable[387])((nint)ptr); + #endif + } + + /// + /// To be documented. + /// + public static void MemFree(void* ptr) + { + MemFreeNative(ptr); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiPlatformIO* GetPlatformIONative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[388])(); + #else + return (ImGuiPlatformIO*)((delegate* unmanaged[Cdecl])funcTable[388])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiPlatformIOPtr GetPlatformIO() + { + ImGuiPlatformIOPtr ret = GetPlatformIONative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void UpdatePlatformWindowsNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[389])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[389])(); + #endif + } + + /// + /// To be documented. + /// + public static void UpdatePlatformWindows() + { + UpdatePlatformWindowsNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderPlatformWindowsDefaultNative(void* platformRenderArg, void* rendererRenderArg) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[390])(platformRenderArg, rendererRenderArg); + #else + ((delegate* unmanaged[Cdecl])funcTable[390])((nint)platformRenderArg, (nint)rendererRenderArg); + #endif + } + + /// + /// To be documented. + /// + public static void RenderPlatformWindowsDefault(void* platformRenderArg, void* rendererRenderArg) + { + RenderPlatformWindowsDefaultNative(platformRenderArg, rendererRenderArg); + } + + /// + /// To be documented. + /// + public static void RenderPlatformWindowsDefault(void* platformRenderArg) + { + RenderPlatformWindowsDefaultNative(platformRenderArg, (void*)(default)); + } + + /// + /// To be documented. + /// + public static void RenderPlatformWindowsDefault() + { + RenderPlatformWindowsDefaultNative((void*)(default), (void*)(default)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyPlatformWindowsNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[391])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[391])(); + #endif + } + + /// + /// To be documented. + /// + public static void DestroyPlatformWindows() + { + DestroyPlatformWindowsNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiViewport* FindViewportByIDNative(uint id) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[392])(id); + #else + return (ImGuiViewport*)((delegate* unmanaged[Cdecl])funcTable[392])(id); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiViewportPtr FindViewportByID(uint id) + { + ImGuiViewportPtr ret = FindViewportByIDNative(id); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiViewport* FindViewportByPlatformHandleNative(void* platformHandle) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[393])(platformHandle); + #else + return (ImGuiViewport*)((delegate* unmanaged[Cdecl])funcTable[393])((nint)platformHandle); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiViewportPtr FindViewportByPlatformHandle(void* platformHandle) + { + ImGuiViewportPtr ret = FindViewportByPlatformHandleNative(platformHandle); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiStyle* ImGuiStyleNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[394])(); + #else + return (ImGuiStyle*)((delegate* unmanaged[Cdecl])funcTable[394])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiStylePtr ImGuiStyle() + { + ImGuiStylePtr ret = ImGuiStyleNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiStyle* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[395])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[395])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiStylePtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiStyle self) + { + fixed (ImGuiStyle* pself = &self) { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; + DestroyNative((ImGuiStyle*)pself); } } /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ScaleAllSizesNative(ImGuiStyle* self, float scaleFactor) { - fixed (byte* pversionStr = versionStr) + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[396])(self, scaleFactor); + #else + ((delegate* unmanaged[Cdecl])funcTable[396])((nint)self, scaleFactor); + #endif + } + + /// + /// To be documented. + /// + public static void ScaleAllSizes(ImGuiStylePtr self, float scaleFactor) + { + ScaleAllSizesNative(self, scaleFactor); + } + + /// + /// To be documented. + /// + public static void ScaleAllSizes(ref ImGuiStyle self, float scaleFactor) + { + fixed (ImGuiStyle* pself = &self) { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; + ScaleAllSizesNative((ImGuiStyle*)pself, scaleFactor); } } /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddKeyEventNative(ImGuiIO* self, ImGuiKey key, byte down) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[397])(self, key, down); + #else + ((delegate* unmanaged[Cdecl])funcTable[397])((nint)self, key, down); + #endif + } + + /// + /// To be documented. + /// + public static void AddKeyEvent(ImGuiIOPtr self, ImGuiKey key, bool down) + { + AddKeyEventNative(self, key, down ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void AddKeyEvent(ref ImGuiIO self, ImGuiKey key, bool down) + { + fixed (ImGuiIO* pself = &self) + { + AddKeyEventNative((ImGuiIO*)pself, key, down ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddKeyAnalogEventNative(ImGuiIO* self, ImGuiKey key, byte down, float v) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[398])(self, key, down, v); + #else + ((delegate* unmanaged[Cdecl])funcTable[398])((nint)self, key, down, v); + #endif + } + + /// + /// To be documented. + /// + public static void AddKeyAnalogEvent(ImGuiIOPtr self, ImGuiKey key, bool down, float v) + { + AddKeyAnalogEventNative(self, key, down ? (byte)1 : (byte)0, v); + } + + /// + /// To be documented. + /// + public static void AddKeyAnalogEvent(ref ImGuiIO self, ImGuiKey key, bool down, float v) + { + fixed (ImGuiIO* pself = &self) + { + AddKeyAnalogEventNative((ImGuiIO*)pself, key, down ? (byte)1 : (byte)0, v); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddMousePosEventNative(ImGuiIO* self, float x, float y) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[399])(self, x, y); + #else + ((delegate* unmanaged[Cdecl])funcTable[399])((nint)self, x, y); + #endif + } + + /// + /// To be documented. + /// + public static void AddMousePosEvent(ImGuiIOPtr self, float x, float y) + { + AddMousePosEventNative(self, x, y); + } + + /// + /// To be documented. + /// + public static void AddMousePosEvent(ref ImGuiIO self, float x, float y) + { + fixed (ImGuiIO* pself = &self) + { + AddMousePosEventNative((ImGuiIO*)pself, x, y); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddMouseButtonEventNative(ImGuiIO* self, int button, byte down) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[400])(self, button, down); + #else + ((delegate* unmanaged[Cdecl])funcTable[400])((nint)self, button, down); + #endif + } + + /// + /// To be documented. + /// + public static void AddMouseButtonEvent(ImGuiIOPtr self, int button, bool down) + { + AddMouseButtonEventNative(self, button, down ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void AddMouseButtonEvent(ref ImGuiIO self, int button, bool down) + { + fixed (ImGuiIO* pself = &self) + { + AddMouseButtonEventNative((ImGuiIO*)pself, button, down ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddMouseWheelEventNative(ImGuiIO* self, float whX, float whY) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[401])(self, whX, whY); + #else + ((delegate* unmanaged[Cdecl])funcTable[401])((nint)self, whX, whY); + #endif + } + + /// + /// To be documented. + /// + public static void AddMouseWheelEvent(ImGuiIOPtr self, float whX, float whY) + { + AddMouseWheelEventNative(self, whX, whY); + } + + /// + /// To be documented. + /// + public static void AddMouseWheelEvent(ref ImGuiIO self, float whX, float whY) + { + fixed (ImGuiIO* pself = &self) + { + AddMouseWheelEventNative((ImGuiIO*)pself, whX, whY); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddMouseViewportEventNative(ImGuiIO* self, uint id) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[402])(self, id); + #else + ((delegate* unmanaged[Cdecl])funcTable[402])((nint)self, id); + #endif + } + + /// + /// To be documented. + /// + public static void AddMouseViewportEvent(ImGuiIOPtr self, uint id) + { + AddMouseViewportEventNative(self, id); + } + + /// + /// To be documented. + /// + public static void AddMouseViewportEvent(ref ImGuiIO self, uint id) + { + fixed (ImGuiIO* pself = &self) + { + AddMouseViewportEventNative((ImGuiIO*)pself, id); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddFocusEventNative(ImGuiIO* self, byte focused) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[403])(self, focused); + #else + ((delegate* unmanaged[Cdecl])funcTable[403])((nint)self, focused); + #endif + } + + /// + /// To be documented. + /// + public static void AddFocusEvent(ImGuiIOPtr self, bool focused) + { + AddFocusEventNative(self, focused ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void AddFocusEvent(ref ImGuiIO self, bool focused) + { + fixed (ImGuiIO* pself = &self) + { + AddFocusEventNative((ImGuiIO*)pself, focused ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddInputCharacterNative(ImGuiIO* self, uint c) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[404])(self, c); + #else + ((delegate* unmanaged[Cdecl])funcTable[404])((nint)self, c); + #endif + } + + /// + /// To be documented. + /// + public static void AddInputCharacter(ImGuiIOPtr self, uint c) + { + AddInputCharacterNative(self, c); + } + + /// + /// To be documented. + /// + public static void AddInputCharacter(ref ImGuiIO self, uint c) + { + fixed (ImGuiIO* pself = &self) + { + AddInputCharacterNative((ImGuiIO*)pself, c); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddInputCharacterUTF16Native(ImGuiIO* self, ushort c) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[405])(self, c); + #else + ((delegate* unmanaged[Cdecl])funcTable[405])((nint)self, c); + #endif + } + + /// + /// To be documented. + /// + public static void AddInputCharacterUTF16(ImGuiIOPtr self, ushort c) + { + AddInputCharacterUTF16Native(self, c); + } + + /// + /// To be documented. + /// + public static void AddInputCharacterUTF16(ref ImGuiIO self, ushort c) + { + fixed (ImGuiIO* pself = &self) + { + AddInputCharacterUTF16Native((ImGuiIO*)pself, c); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddInputCharactersUTF8Native(ImGuiIO* self, byte* str) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[406])(self, str); + #else + ((delegate* unmanaged[Cdecl])funcTable[406])((nint)self, (nint)str); + #endif + } + + /// + /// To be documented. + /// + public static void AddInputCharactersUTF8(ImGuiIOPtr self, byte* str) + { + AddInputCharactersUTF8Native(self, str); + } + + /// + /// To be documented. + /// + public static void AddInputCharactersUTF8(ref ImGuiIO self, byte* str) + { + fixed (ImGuiIO* pself = &self) + { + AddInputCharactersUTF8Native((ImGuiIO*)pself, str); + } + } + + /// + /// To be documented. + /// + public static void AddInputCharactersUTF8(ImGuiIOPtr self, ref byte str) + { + fixed (byte* pstr = &str) + { + AddInputCharactersUTF8Native(self, (byte*)pstr); + } + } + + /// + /// To be documented. + /// + public static void AddInputCharactersUTF8(ImGuiIOPtr self, ReadOnlySpan str) + { + fixed (byte* pstr = str) + { + AddInputCharactersUTF8Native(self, (byte*)pstr); + } + } + + /// + /// To be documented. + /// + public static void AddInputCharactersUTF8(ImGuiIOPtr self, string str) { byte* pStr0 = null; int pStrSize0 = 0; - if (versionStr != null) + if (str != null) { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); + pStrSize0 = Utils.GetByteCountUTF8(str); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1429,10 +1851,1561 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + AddInputCharactersUTF8Native(self, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddInputCharactersUTF8(ref ImGuiIO self, ref byte str) + { + fixed (ImGuiIO* pself = &self) + { + fixed (byte* pstr = &str) + { + AddInputCharactersUTF8Native((ImGuiIO*)pself, (byte*)pstr); + } + } + } + + /// + /// To be documented. + /// + public static void AddInputCharactersUTF8(ref ImGuiIO self, ReadOnlySpan str) + { + fixed (ImGuiIO* pself = &self) + { + fixed (byte* pstr = str) + { + AddInputCharactersUTF8Native((ImGuiIO*)pself, (byte*)pstr); + } + } + } + + /// + /// To be documented. + /// + public static void AddInputCharactersUTF8(ref ImGuiIO self, string str) + { + fixed (ImGuiIO* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddInputCharactersUTF8Native((ImGuiIO*)pself, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetKeyEventNativeDataNative(ImGuiIO* self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[407])(self, key, nativeKeycode, nativeScancode, nativeLegacyIndex); + #else + ((delegate* unmanaged[Cdecl])funcTable[407])((nint)self, key, nativeKeycode, nativeScancode, nativeLegacyIndex); + #endif + } + + /// + /// To be documented. + /// + public static void SetKeyEventNativeData(ImGuiIOPtr self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) + { + SetKeyEventNativeDataNative(self, key, nativeKeycode, nativeScancode, nativeLegacyIndex); + } + + /// + /// To be documented. + /// + public static void SetKeyEventNativeData(ImGuiIOPtr self, ImGuiKey key, int nativeKeycode, int nativeScancode) + { + SetKeyEventNativeDataNative(self, key, nativeKeycode, nativeScancode, (int)(-1)); + } + + /// + /// To be documented. + /// + public static void SetKeyEventNativeData(ref ImGuiIO self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) + { + fixed (ImGuiIO* pself = &self) + { + SetKeyEventNativeDataNative((ImGuiIO*)pself, key, nativeKeycode, nativeScancode, nativeLegacyIndex); + } + } + + /// + /// To be documented. + /// + public static void SetKeyEventNativeData(ref ImGuiIO self, ImGuiKey key, int nativeKeycode, int nativeScancode) + { + fixed (ImGuiIO* pself = &self) + { + SetKeyEventNativeDataNative((ImGuiIO*)pself, key, nativeKeycode, nativeScancode, (int)(-1)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetAppAcceptingEventsNative(ImGuiIO* self, byte acceptingEvents) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[408])(self, acceptingEvents); + #else + ((delegate* unmanaged[Cdecl])funcTable[408])((nint)self, acceptingEvents); + #endif + } + + /// + /// To be documented. + /// + public static void SetAppAcceptingEvents(ImGuiIOPtr self, bool acceptingEvents) + { + SetAppAcceptingEventsNative(self, acceptingEvents ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void SetAppAcceptingEvents(ref ImGuiIO self, bool acceptingEvents) + { + fixed (ImGuiIO* pself = &self) + { + SetAppAcceptingEventsNative((ImGuiIO*)pself, acceptingEvents ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearInputCharactersNative(ImGuiIO* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[409])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[409])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ClearInputCharacters(ImGuiIOPtr self) + { + ClearInputCharactersNative(self); + } + + /// + /// To be documented. + /// + public static void ClearInputCharacters(ref ImGuiIO self) + { + fixed (ImGuiIO* pself = &self) + { + ClearInputCharactersNative((ImGuiIO*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearInputKeysNative(ImGuiIO* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[410])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[410])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ClearInputKeys(ImGuiIOPtr self) + { + ClearInputKeysNative(self); + } + + /// + /// To be documented. + /// + public static void ClearInputKeys(ref ImGuiIO self) + { + fixed (ImGuiIO* pself = &self) + { + ClearInputKeysNative((ImGuiIO*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiIO* ImGuiIONative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[411])(); + #else + return (ImGuiIO*)((delegate* unmanaged[Cdecl])funcTable[411])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiIOPtr ImGuiIO() + { + ImGuiIOPtr ret = ImGuiIONative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiIO* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[412])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[412])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiIOPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiIO self) + { + fixed (ImGuiIO* pself = &self) + { + DestroyNative((ImGuiIO*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiInputTextCallbackData* ImGuiInputTextCallbackDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[413])(); + #else + return (ImGuiInputTextCallbackData*)((delegate* unmanaged[Cdecl])funcTable[413])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiInputTextCallbackDataPtr ImGuiInputTextCallbackData() + { + ImGuiInputTextCallbackDataPtr ret = ImGuiInputTextCallbackDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiInputTextCallbackData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[414])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[414])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiInputTextCallbackDataPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiInputTextCallbackData self) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + DestroyNative((ImGuiInputTextCallbackData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DeleteCharsNative(ImGuiInputTextCallbackData* self, int pos, int bytesCount) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[415])(self, pos, bytesCount); + #else + ((delegate* unmanaged[Cdecl])funcTable[415])((nint)self, pos, bytesCount); + #endif + } + + /// + /// To be documented. + /// + public static void DeleteChars(ImGuiInputTextCallbackDataPtr self, int pos, int bytesCount) + { + DeleteCharsNative(self, pos, bytesCount); + } + + /// + /// To be documented. + /// + public static void DeleteChars(ref ImGuiInputTextCallbackData self, int pos, int bytesCount) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + DeleteCharsNative((ImGuiInputTextCallbackData*)pself, pos, bytesCount); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void InsertCharsNative(ImGuiInputTextCallbackData* self, int pos, byte* text, byte* textEnd) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[416])(self, pos, text, textEnd); + #else + ((delegate* unmanaged[Cdecl])funcTable[416])((nint)self, pos, (nint)text, (nint)textEnd); + #endif + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text, byte* textEnd) + { + InsertCharsNative(self, pos, text, textEnd); + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text) + { + InsertCharsNative(self, pos, text, (byte*)(default)); + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text, byte* textEnd) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, textEnd); + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + InsertCharsNative(self, pos, (byte*)ptext, textEnd); + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text) + { + fixed (byte* ptext = &text) + { + InsertCharsNative(self, pos, (byte*)ptext, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan text, byte* textEnd) + { + fixed (byte* ptext = text) + { + InsertCharsNative(self, pos, (byte*)ptext, textEnd); + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan text) + { + fixed (byte* ptext = text) + { + InsertCharsNative(self, pos, (byte*)ptext, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + InsertCharsNative(self, pos, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + InsertCharsNative(self, pos, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text, byte* textEnd) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + fixed (byte* ptext = &text) + { + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, textEnd); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + fixed (byte* ptext = &text) + { + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan text, byte* textEnd) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + fixed (byte* ptext = text) + { + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, textEnd); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan text) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + fixed (byte* ptext = text) + { + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text, byte* textEnd) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + InsertCharsNative(self, pos, text, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + InsertCharsNative(self, pos, text, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + InsertCharsNative(self, pos, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text, ref byte textEnd) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text, ReadOnlySpan textEnd) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text, string textEnd) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + InsertCharsNative(self, pos, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text, string textEnd) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + InsertCharsNative(self, pos, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan text, ref byte textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan text, string textEnd) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + InsertCharsNative(self, pos, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text, ref byte textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + InsertCharsNative(self, pos, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text, ReadOnlySpan textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + InsertCharsNative(self, pos, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text, ref byte textEnd) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text, string textEnd) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text, ReadOnlySpan textEnd) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text, string textEnd) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan text, ref byte textEnd) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan text, string textEnd) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text, ref byte textEnd) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text, ReadOnlySpan textEnd) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SelectAllNative(ImGuiInputTextCallbackData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[417])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[417])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void SelectAll(ImGuiInputTextCallbackDataPtr self) + { + SelectAllNative(self); + } + + /// + /// To be documented. + /// + public static void SelectAll(ref ImGuiInputTextCallbackData self) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + SelectAllNative((ImGuiInputTextCallbackData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearSelectionNative(ImGuiInputTextCallbackData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[418])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[418])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ClearSelection(ImGuiInputTextCallbackDataPtr self) + { + ClearSelectionNative(self); + } + + /// + /// To be documented. + /// + public static void ClearSelection(ref ImGuiInputTextCallbackData self) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + ClearSelectionNative((ImGuiInputTextCallbackData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte HasSelectionNative(ImGuiInputTextCallbackData* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[419])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[419])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool HasSelection(ImGuiInputTextCallbackDataPtr self) + { + byte ret = HasSelectionNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool HasSelection(ref ImGuiInputTextCallbackData self) + { + fixed (ImGuiInputTextCallbackData* pself = &self) + { + byte ret = HasSelectionNative((ImGuiInputTextCallbackData*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiWindowClass* ImGuiWindowClassNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[420])(); + #else + return (ImGuiWindowClass*)((delegate* unmanaged[Cdecl])funcTable[420])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiWindowClassPtr ImGuiWindowClass() + { + ImGuiWindowClassPtr ret = ImGuiWindowClassNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiWindowClass* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[421])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[421])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiWindowClassPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiWindowClass self) + { + fixed (ImGuiWindowClass* pself = &self) + { + DestroyNative((ImGuiWindowClass*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiPayload* ImGuiPayloadNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[422])(); + #else + return (ImGuiPayload*)((delegate* unmanaged[Cdecl])funcTable[422])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiPayloadPtr ImGuiPayload() + { + ImGuiPayloadPtr ret = ImGuiPayloadNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiPayload* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[423])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[423])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiPayloadPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiPayload self) + { + fixed (ImGuiPayload* pself = &self) + { + DestroyNative((ImGuiPayload*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearNative(ImGuiPayload* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[424])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[424])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Clear(ImGuiPayloadPtr self) + { + ClearNative(self); + } + + /// + /// To be documented. + /// + public static void Clear(ref ImGuiPayload self) + { + fixed (ImGuiPayload* pself = &self) + { + ClearNative((ImGuiPayload*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsDataTypeNative(ImGuiPayload* self, byte* type) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[425])(self, type); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[425])((nint)self, (nint)type); + #endif + } + + /// + /// To be documented. + /// + public static bool IsDataType(ImGuiPayloadPtr self, byte* type) + { + byte ret = IsDataTypeNative(self, type); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsDataType(ref ImGuiPayload self, byte* type) + { + fixed (ImGuiPayload* pself = &self) + { + byte ret = IsDataTypeNative((ImGuiPayload*)pself, type); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool IsDataType(ImGuiPayloadPtr self, ref byte type) + { + fixed (byte* ptype = &type) + { + byte ret = IsDataTypeNative(self, (byte*)ptype); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool IsDataType(ImGuiPayloadPtr self, ReadOnlySpan type) + { + fixed (byte* ptype = type) + { + byte ret = IsDataTypeNative(self, (byte*)ptype); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool IsDataType(ImGuiPayloadPtr self, string type) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (type != null) + { + pStrSize0 = Utils.GetByteCountUTF8(type); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = IsDataTypeNative(self, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1443,20 +3416,96 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool IsDataType(ref ImGuiPayload self, ref byte type) { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + fixed (ImGuiPayload* pself = &self) + { + fixed (byte* ptype = &type) + { + byte ret = IsDataTypeNative((ImGuiPayload*)pself, (byte*)ptype); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool IsDataType(ref ImGuiPayload self, ReadOnlySpan type) + { + fixed (ImGuiPayload* pself = &self) + { + fixed (byte* ptype = type) + { + byte ret = IsDataTypeNative((ImGuiPayload*)pself, (byte*)ptype); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool IsDataType(ref ImGuiPayload self, string type) + { + fixed (ImGuiPayload* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (type != null) + { + pStrSize0 = Utils.GetByteCountUTF8(type); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = IsDataTypeNative((ImGuiPayload*)pself, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsPreviewNative(ImGuiPayload* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[426])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[426])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsPreview(ImGuiPayloadPtr self) + { + byte ret = IsPreviewNative(self); return ret != 0; } /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool IsPreview(ref ImGuiPayload self) { - fixed (byte* pversionStr = &versionStr) + fixed (ImGuiPayload* pself = &self) { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + byte ret = IsPreviewNative((ImGuiPayload*)pself); return ret != 0; } } @@ -1464,11 +3513,33 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsDeliveryNative(ImGuiPayload* self) { - fixed (byte* pversionStr = versionStr) + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[427])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[427])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsDelivery(ImGuiPayloadPtr self) + { + byte ret = IsDeliveryNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsDelivery(ref ImGuiPayload self) + { + fixed (ImGuiPayload* pself = &self) { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + byte ret = IsDeliveryNative((ImGuiPayload*)pself); return ret != 0; } } @@ -1476,13 +3547,230 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecsNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[428])(); + #else + return (ImGuiTableColumnSortSpecs*)((delegate* unmanaged[Cdecl])funcTable[428])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTableColumnSortSpecsPtr ImGuiTableColumnSortSpecs() + { + ImGuiTableColumnSortSpecsPtr ret = ImGuiTableColumnSortSpecsNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiTableColumnSortSpecs* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[429])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[429])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiTableColumnSortSpecsPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiTableColumnSortSpecs self) + { + fixed (ImGuiTableColumnSortSpecs* pself = &self) + { + DestroyNative((ImGuiTableColumnSortSpecs*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTableSortSpecs* ImGuiTableSortSpecsNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[430])(); + #else + return (ImGuiTableSortSpecs*)((delegate* unmanaged[Cdecl])funcTable[430])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTableSortSpecsPtr ImGuiTableSortSpecs() + { + ImGuiTableSortSpecsPtr ret = ImGuiTableSortSpecsNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiTableSortSpecs* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[431])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[431])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiTableSortSpecsPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiTableSortSpecs self) + { + fixed (ImGuiTableSortSpecs* pself = &self) + { + DestroyNative((ImGuiTableSortSpecs*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiOnceUponAFrame* ImGuiOnceUponAFrameNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[432])(); + #else + return (ImGuiOnceUponAFrame*)((delegate* unmanaged[Cdecl])funcTable[432])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiOnceUponAFramePtr ImGuiOnceUponAFrame() + { + ImGuiOnceUponAFramePtr ret = ImGuiOnceUponAFrameNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiOnceUponAFrame* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[433])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[433])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiOnceUponAFramePtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiOnceUponAFrame self) + { + fixed (ImGuiOnceUponAFrame* pself = &self) + { + DestroyNative((ImGuiOnceUponAFrame*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTextFilter* ImGuiTextFilterNative(byte* defaultFilter) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[434])(defaultFilter); + #else + return (ImGuiTextFilter*)((delegate* unmanaged[Cdecl])funcTable[434])((nint)defaultFilter); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTextFilterPtr ImGuiTextFilter(byte* defaultFilter) + { + ImGuiTextFilterPtr ret = ImGuiTextFilterNative(defaultFilter); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiTextFilterPtr ImGuiTextFilter() + { + ImGuiTextFilterPtr ret = ImGuiTextFilter((string)""); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiTextFilterPtr ImGuiTextFilter(ref byte defaultFilter) + { + fixed (byte* pdefaultFilter = &defaultFilter) + { + ImGuiTextFilterPtr ret = ImGuiTextFilterNative((byte*)pdefaultFilter); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiTextFilterPtr ImGuiTextFilter(ReadOnlySpan defaultFilter) + { + fixed (byte* pdefaultFilter = defaultFilter) + { + ImGuiTextFilterPtr ret = ImGuiTextFilterNative((byte*)pdefaultFilter); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiTextFilterPtr ImGuiTextFilter(string defaultFilter) { byte* pStr0 = null; int pStrSize0 = 0; - if (versionStr != null) + if (defaultFilter != null) { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); + pStrSize0 = Utils.GetByteCountUTF8(defaultFilter); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1492,10 +3780,217 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(defaultFilter, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + ImGuiTextFilterPtr ret = ImGuiTextFilterNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiTextFilter* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[435])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[435])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiTextFilterPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiTextFilter self) + { + fixed (ImGuiTextFilter* pself = &self) + { + DestroyNative((ImGuiTextFilter*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DrawNative(ImGuiTextFilter* self, byte* label, float width) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[436])(self, label, width); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[436])((nint)self, (nint)label, width); + #endif + } + + /// + /// To be documented. + /// + public static bool Draw(ImGuiTextFilterPtr self, byte* label, float width) + { + byte ret = DrawNative(self, label, width); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Draw(ImGuiTextFilterPtr self, byte* label) + { + byte ret = DrawNative(self, label, (float)(0.0f)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Draw(ImGuiTextFilterPtr self) + { + bool ret = Draw(self, (string)"Filter(inc,-exc)", (float)(0.0f)); + return ret; + } + + /// + /// To be documented. + /// + public static bool Draw(ImGuiTextFilterPtr self, float width) + { + bool ret = Draw(self, (string)"Filter(inc,-exc)", width); + return ret; + } + + /// + /// To be documented. + /// + public static bool Draw(ref ImGuiTextFilter self, byte* label, float width) + { + fixed (ImGuiTextFilter* pself = &self) + { + byte ret = DrawNative((ImGuiTextFilter*)pself, label, width); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Draw(ref ImGuiTextFilter self, byte* label) + { + fixed (ImGuiTextFilter* pself = &self) + { + byte ret = DrawNative((ImGuiTextFilter*)pself, label, (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Draw(ref ImGuiTextFilter self) + { + fixed (ImGuiTextFilter* pself = &self) + { + bool ret = Draw((ImGuiTextFilter*)pself, (string)"Filter(inc,-exc)", (float)(0.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool Draw(ref ImGuiTextFilter self, float width) + { + fixed (ImGuiTextFilter* pself = &self) + { + bool ret = Draw((ImGuiTextFilter*)pself, (string)"Filter(inc,-exc)", width); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool Draw(ImGuiTextFilterPtr self, ref byte label, float width) + { + fixed (byte* plabel = &label) + { + byte ret = DrawNative(self, (byte*)plabel, width); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Draw(ImGuiTextFilterPtr self, ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = DrawNative(self, (byte*)plabel, (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Draw(ImGuiTextFilterPtr self, ReadOnlySpan label, float width) + { + fixed (byte* plabel = label) + { + byte ret = DrawNative(self, (byte*)plabel, width); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Draw(ImGuiTextFilterPtr self, ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = DrawNative(self, (byte*)plabel, (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Draw(ImGuiTextFilterPtr self, string label, float width) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DrawNative(self, pStr0, width); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1506,46 +4001,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool Draw(ImGuiTextFilterPtr self, string label) { byte* pStr0 = null; int pStrSize0 = 0; - if (versionStr != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1555,10 +4017,10 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + byte ret = DrawNative(self, pStr0, (float)(0.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1569,20 +4031,168 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool Draw(ref ImGuiTextFilter self, ref byte label, float width) { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + fixed (ImGuiTextFilter* pself = &self) + { + fixed (byte* plabel = &label) + { + byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, width); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Draw(ref ImGuiTextFilter self, ref byte label) + { + fixed (ImGuiTextFilter* pself = &self) + { + fixed (byte* plabel = &label) + { + byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, (float)(0.0f)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Draw(ref ImGuiTextFilter self, ReadOnlySpan label, float width) + { + fixed (ImGuiTextFilter* pself = &self) + { + fixed (byte* plabel = label) + { + byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, width); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Draw(ref ImGuiTextFilter self, ReadOnlySpan label) + { + fixed (ImGuiTextFilter* pself = &self) + { + fixed (byte* plabel = label) + { + byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, (float)(0.0f)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool Draw(ref ImGuiTextFilter self, string label, float width) + { + fixed (ImGuiTextFilter* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DrawNative((ImGuiTextFilter*)pself, pStr0, width); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool Draw(ref ImGuiTextFilter self, string label) + { + fixed (ImGuiTextFilter* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DrawNative((ImGuiTextFilter*)pself, pStr0, (float)(0.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte PassFilterNative(ImGuiTextFilter* self, byte* text, byte* textEnd) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[437])(self, text, textEnd); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[437])((nint)self, (nint)text, (nint)textEnd); + #endif + } + + /// + /// To be documented. + /// + public static bool PassFilter(ImGuiTextFilterPtr self, byte* text, byte* textEnd) + { + byte ret = PassFilterNative(self, text, textEnd); return ret != 0; } /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ImGuiTextFilterPtr self, byte* text) { - fixed (byte* pversionStr = &versionStr) + byte ret = PassFilterNative(self, text, (byte*)(default)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool PassFilter(ref ImGuiTextFilter self, byte* text, byte* textEnd) + { + fixed (ImGuiTextFilter* pself = &self) { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, textEnd); return ret != 0; } } @@ -1590,11 +4200,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ref ImGuiTextFilter self, byte* text) { - fixed (byte* pversionStr = versionStr) + fixed (ImGuiTextFilter* pself = &self) { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, (byte*)(default)); return ret != 0; } } @@ -1602,13 +4212,61 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + byte ret = PassFilterNative(self, (byte*)ptext, textEnd); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text) + { + fixed (byte* ptext = &text) + { + byte ret = PassFilterNative(self, (byte*)ptext, (byte*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan text, byte* textEnd) + { + fixed (byte* ptext = text) + { + byte ret = PassFilterNative(self, (byte*)ptext, textEnd); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan text) + { + fixed (byte* ptext = text) + { + byte ret = PassFilterNative(self, (byte*)ptext, (byte*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool PassFilter(ImGuiTextFilterPtr self, string text, byte* textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (versionStr != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1618,10 +4276,10 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + byte ret = PassFilterNative(self, pStr0, textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1632,46 +4290,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ImGuiTextFilterPtr self, string text) { byte* pStr0 = null; int pStrSize0 = 0; - if (versionStr != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1681,10 +4306,10 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + byte ret = PassFilterNative(self, pStr0, (byte*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1695,20 +4320,92 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ref ImGuiTextFilter self, ref byte text, byte* textEnd) { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; + fixed (ImGuiTextFilter* pself = &self) + { + fixed (byte* ptext = &text) + { + byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, textEnd); + return ret != 0; + } + } } /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ref ImGuiTextFilter self, ref byte text) { - fixed (byte* pversionStr = &versionStr) + fixed (ImGuiTextFilter* pself = &self) { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + fixed (byte* ptext = &text) + { + byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan text, byte* textEnd) + { + fixed (ImGuiTextFilter* pself = &self) + { + fixed (byte* ptext = text) + { + byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, textEnd); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan text) + { + fixed (ImGuiTextFilter* pself = &self) + { + fixed (byte* ptext = text) + { + byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool PassFilter(ref ImGuiTextFilter self, string text, byte* textEnd) + { + fixed (ImGuiTextFilter* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } @@ -1716,11 +4413,32 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ref ImGuiTextFilter self, string text) { - fixed (byte* pversionStr = versionStr) + fixed (ImGuiTextFilter* pself = &self) { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } @@ -1728,13 +4446,37 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ImGuiTextFilterPtr self, byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + byte ret = PassFilterNative(self, text, (byte*)ptextEnd); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool PassFilter(ImGuiTextFilterPtr self, byte* text, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + byte ret = PassFilterNative(self, text, (byte*)ptextEnd); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool PassFilter(ImGuiTextFilterPtr self, byte* text, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (versionStr != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1744,10 +4486,10 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + byte ret = PassFilterNative(self, text, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1758,20 +4500,62 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ref ImGuiTextFilter self, byte* text, ref byte textEnd) { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; + fixed (ImGuiTextFilter* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, (byte*)ptextEnd); + return ret != 0; + } + } } /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ref ImGuiTextFilter self, byte* text, ReadOnlySpan textEnd) { - fixed (byte* pversionStr = &versionStr) + fixed (ImGuiTextFilter* pself = &self) { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + fixed (byte* ptextEnd = textEnd) + { + byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, (byte*)ptextEnd); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool PassFilter(ref ImGuiTextFilter self, byte* text, string textEnd) + { + fixed (ImGuiTextFilter* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } @@ -1779,25 +4563,43 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text, ref byte textEnd) { - fixed (byte* pversionStr = versionStr) + fixed (byte* ptext = &text) { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; + fixed (byte* ptextEnd = &textEnd) + { + byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } } } /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool PassFilter(ImGuiTextFilterPtr self, string text, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (versionStr != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1807,10 +4609,31 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = PassFilterNative(self, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1821,20 +4644,47 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text, ReadOnlySpan textEnd) { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } + } } /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text, string textEnd) { - fixed (byte* pversionStr = &versionStr) + fixed (byte* ptext = &text) { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = PassFilterNative(self, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } @@ -1842,11 +4692,47 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan text, ref byte textEnd) { - fixed (byte* pversionStr = versionStr) + fixed (byte* ptext = text) { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + fixed (byte* ptextEnd = &textEnd) + { + byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan text, string textEnd) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = PassFilterNative(self, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } @@ -1854,13 +4740,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ImGuiTextFilterPtr self, string text, ref byte textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (versionStr != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1870,34 +4756,16 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* ptextEnd = &textEnd) { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + byte ret = PassFilterNative(self, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } @@ -1905,25 +4773,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ImGuiTextFilterPtr self, string text, ReadOnlySpan textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (versionStr != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1933,2818 +4789,106 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* ptextEnd = textEnd) { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); + byte ret = PassFilterNative(self, pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + Utils.Free(pStr0); } - else + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool PassFilter(ref ImGuiTextFilter self, ref byte text, ref byte textEnd) + { + fixed (ImGuiTextFilter* pself = &self) + { + fixed (byte* ptext = &text) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* ptextEnd = &textEnd) + { + byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; } } /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan text, ReadOnlySpan textEnd) { - fixed (byte* pversionStr = versionStr) + fixed (ImGuiTextFilter* pself = &self) { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } + } } } /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) + public static bool PassFilter(ref ImGuiTextFilter self, string text, string textEnd) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) + fixed (ImGuiTextFilter* pself = &self) { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + Utils.Free(pStr0); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); return ret != 0; } } @@ -4752,283 +4896,145 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) + public static bool PassFilter(ref ImGuiTextFilter self, ref byte text, ReadOnlySpan textEnd) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) + fixed (ImGuiTextFilter* pself = &self) { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* ptext = &text) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* ptextEnd = textEnd) + { + byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; } } /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) + public static bool PassFilter(ref ImGuiTextFilter self, ref byte text, string textEnd) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) + fixed (ImGuiTextFilter* pself = &self) { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* ptext = &text) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; } } /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) + public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan text, ref byte textEnd) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) + fixed (ImGuiTextFilter* pself = &self) { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* ptext = text) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* ptextEnd = &textEnd) + { + byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; } } /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) + public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan text, string textEnd) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) + fixed (ImGuiTextFilter* pself = &self) { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* ptext = text) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; } } /// /// To be documented. /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) + public static bool PassFilter(ref ImGuiTextFilter self, string text, ref byte textEnd) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) + fixed (ImGuiTextFilter* pself = &self) { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + fixed (byte* ptextEnd = &textEnd) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.088.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.088.cs index 9b956f77a..af94b80dc 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.088.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.088.cs @@ -18,4201 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGui { - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetAllocatorFunctionsNative(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc, void* userData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl], delegate*, void*, void>)funcTable[384])((delegate*)Utils.GetFunctionPointerForDelegate(allocFunc), (delegate*)Utils.GetFunctionPointerForDelegate(freeFunc), userData); - #else - ((delegate* unmanaged[Cdecl])funcTable[384])((nint)Utils.GetFunctionPointerForDelegate(allocFunc), (nint)Utils.GetFunctionPointerForDelegate(freeFunc), (nint)userData); - #endif - } - - /// - /// To be documented. - /// - public static void SetAllocatorFunctions(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc, void* userData) - { - SetAllocatorFunctionsNative(allocFunc, freeFunc, userData); - } - - /// - /// To be documented. - /// - public static void SetAllocatorFunctions(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc) - { - SetAllocatorFunctionsNative(allocFunc, freeFunc, (void*)(default)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetAllocatorFunctionsNative(delegate** pAllocFunc, delegate** pFreeFunc, void** pUserData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]*, delegate**, void**, void>)funcTable[385])(pAllocFunc, pFreeFunc, pUserData); - #else - ((delegate* unmanaged[Cdecl])funcTable[385])((nint)pAllocFunc, (nint)pFreeFunc, (nint)pUserData); - #endif - } - - /// - /// To be documented. - /// - public static void GetAllocatorFunctions(delegate** pAllocFunc, delegate** pFreeFunc, void** pUserData) - { - GetAllocatorFunctionsNative(pAllocFunc, pFreeFunc, pUserData); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void* MemAllocNative(ulong size) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[386])(size); - #else - return (void*)((delegate* unmanaged[Cdecl])funcTable[386])(size); - #endif - } - - /// - /// To be documented. - /// - public static void* MemAlloc(ulong size) - { - void* ret = MemAllocNative(size); - return ret; - } - - /// - /// To be documented. - /// - public static void* MemAlloc(nuint size) - { - void* ret = MemAllocNative(size); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MemFreeNative(void* ptr) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[387])(ptr); - #else - ((delegate* unmanaged[Cdecl])funcTable[387])((nint)ptr); - #endif - } - - /// - /// To be documented. - /// - public static void MemFree(void* ptr) - { - MemFreeNative(ptr); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPlatformIO* GetPlatformIONative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[388])(); - #else - return (ImGuiPlatformIO*)((delegate* unmanaged[Cdecl])funcTable[388])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiPlatformIOPtr GetPlatformIO() - { - ImGuiPlatformIOPtr ret = GetPlatformIONative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UpdatePlatformWindowsNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[389])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[389])(); - #endif - } - - /// - /// To be documented. - /// - public static void UpdatePlatformWindows() - { - UpdatePlatformWindowsNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderPlatformWindowsDefaultNative(void* platformRenderArg, void* rendererRenderArg) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[390])(platformRenderArg, rendererRenderArg); - #else - ((delegate* unmanaged[Cdecl])funcTable[390])((nint)platformRenderArg, (nint)rendererRenderArg); - #endif - } - - /// - /// To be documented. - /// - public static void RenderPlatformWindowsDefault(void* platformRenderArg, void* rendererRenderArg) - { - RenderPlatformWindowsDefaultNative(platformRenderArg, rendererRenderArg); - } - - /// - /// To be documented. - /// - public static void RenderPlatformWindowsDefault(void* platformRenderArg) - { - RenderPlatformWindowsDefaultNative(platformRenderArg, (void*)(default)); - } - - /// - /// To be documented. - /// - public static void RenderPlatformWindowsDefault() - { - RenderPlatformWindowsDefaultNative((void*)(default), (void*)(default)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyPlatformWindowsNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[391])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[391])(); - #endif - } - - /// - /// To be documented. - /// - public static void DestroyPlatformWindows() - { - DestroyPlatformWindowsNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiViewport* FindViewportByIDNative(uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[392])(id); - #else - return (ImGuiViewport*)((delegate* unmanaged[Cdecl])funcTable[392])(id); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiViewportPtr FindViewportByID(uint id) - { - ImGuiViewportPtr ret = FindViewportByIDNative(id); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiViewport* FindViewportByPlatformHandleNative(void* platformHandle) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[393])(platformHandle); - #else - return (ImGuiViewport*)((delegate* unmanaged[Cdecl])funcTable[393])((nint)platformHandle); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiViewportPtr FindViewportByPlatformHandle(void* platformHandle) - { - ImGuiViewportPtr ret = FindViewportByPlatformHandleNative(platformHandle); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStyle* ImGuiStyleNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[394])(); - #else - return (ImGuiStyle*)((delegate* unmanaged[Cdecl])funcTable[394])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiStylePtr ImGuiStyle() - { - ImGuiStylePtr ret = ImGuiStyleNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiStyle* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[395])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[395])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiStylePtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiStyle self) - { - fixed (ImGuiStyle* pself = &self) - { - DestroyNative((ImGuiStyle*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ScaleAllSizesNative(ImGuiStyle* self, float scaleFactor) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[396])(self, scaleFactor); - #else - ((delegate* unmanaged[Cdecl])funcTable[396])((nint)self, scaleFactor); - #endif - } - - /// - /// To be documented. - /// - public static void ScaleAllSizes(ImGuiStylePtr self, float scaleFactor) - { - ScaleAllSizesNative(self, scaleFactor); - } - - /// - /// To be documented. - /// - public static void ScaleAllSizes(ref ImGuiStyle self, float scaleFactor) - { - fixed (ImGuiStyle* pself = &self) - { - ScaleAllSizesNative((ImGuiStyle*)pself, scaleFactor); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddKeyEventNative(ImGuiIO* self, ImGuiKey key, byte down) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[397])(self, key, down); - #else - ((delegate* unmanaged[Cdecl])funcTable[397])((nint)self, key, down); - #endif - } - - /// - /// To be documented. - /// - public static void AddKeyEvent(ImGuiIOPtr self, ImGuiKey key, bool down) - { - AddKeyEventNative(self, key, down ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void AddKeyEvent(ref ImGuiIO self, ImGuiKey key, bool down) - { - fixed (ImGuiIO* pself = &self) - { - AddKeyEventNative((ImGuiIO*)pself, key, down ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddKeyAnalogEventNative(ImGuiIO* self, ImGuiKey key, byte down, float v) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[398])(self, key, down, v); - #else - ((delegate* unmanaged[Cdecl])funcTable[398])((nint)self, key, down, v); - #endif - } - - /// - /// To be documented. - /// - public static void AddKeyAnalogEvent(ImGuiIOPtr self, ImGuiKey key, bool down, float v) - { - AddKeyAnalogEventNative(self, key, down ? (byte)1 : (byte)0, v); - } - - /// - /// To be documented. - /// - public static void AddKeyAnalogEvent(ref ImGuiIO self, ImGuiKey key, bool down, float v) - { - fixed (ImGuiIO* pself = &self) - { - AddKeyAnalogEventNative((ImGuiIO*)pself, key, down ? (byte)1 : (byte)0, v); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddMousePosEventNative(ImGuiIO* self, float x, float y) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[399])(self, x, y); - #else - ((delegate* unmanaged[Cdecl])funcTable[399])((nint)self, x, y); - #endif - } - - /// - /// To be documented. - /// - public static void AddMousePosEvent(ImGuiIOPtr self, float x, float y) - { - AddMousePosEventNative(self, x, y); - } - - /// - /// To be documented. - /// - public static void AddMousePosEvent(ref ImGuiIO self, float x, float y) - { - fixed (ImGuiIO* pself = &self) - { - AddMousePosEventNative((ImGuiIO*)pself, x, y); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddMouseButtonEventNative(ImGuiIO* self, int button, byte down) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[400])(self, button, down); - #else - ((delegate* unmanaged[Cdecl])funcTable[400])((nint)self, button, down); - #endif - } - - /// - /// To be documented. - /// - public static void AddMouseButtonEvent(ImGuiIOPtr self, int button, bool down) - { - AddMouseButtonEventNative(self, button, down ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void AddMouseButtonEvent(ref ImGuiIO self, int button, bool down) - { - fixed (ImGuiIO* pself = &self) - { - AddMouseButtonEventNative((ImGuiIO*)pself, button, down ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddMouseWheelEventNative(ImGuiIO* self, float whX, float whY) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[401])(self, whX, whY); - #else - ((delegate* unmanaged[Cdecl])funcTable[401])((nint)self, whX, whY); - #endif - } - - /// - /// To be documented. - /// - public static void AddMouseWheelEvent(ImGuiIOPtr self, float whX, float whY) - { - AddMouseWheelEventNative(self, whX, whY); - } - - /// - /// To be documented. - /// - public static void AddMouseWheelEvent(ref ImGuiIO self, float whX, float whY) - { - fixed (ImGuiIO* pself = &self) - { - AddMouseWheelEventNative((ImGuiIO*)pself, whX, whY); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddMouseViewportEventNative(ImGuiIO* self, uint id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[402])(self, id); - #else - ((delegate* unmanaged[Cdecl])funcTable[402])((nint)self, id); - #endif - } - - /// - /// To be documented. - /// - public static void AddMouseViewportEvent(ImGuiIOPtr self, uint id) - { - AddMouseViewportEventNative(self, id); - } - - /// - /// To be documented. - /// - public static void AddMouseViewportEvent(ref ImGuiIO self, uint id) - { - fixed (ImGuiIO* pself = &self) - { - AddMouseViewportEventNative((ImGuiIO*)pself, id); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddFocusEventNative(ImGuiIO* self, byte focused) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[403])(self, focused); - #else - ((delegate* unmanaged[Cdecl])funcTable[403])((nint)self, focused); - #endif - } - - /// - /// To be documented. - /// - public static void AddFocusEvent(ImGuiIOPtr self, bool focused) - { - AddFocusEventNative(self, focused ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void AddFocusEvent(ref ImGuiIO self, bool focused) - { - fixed (ImGuiIO* pself = &self) - { - AddFocusEventNative((ImGuiIO*)pself, focused ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddInputCharacterNative(ImGuiIO* self, uint c) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[404])(self, c); - #else - ((delegate* unmanaged[Cdecl])funcTable[404])((nint)self, c); - #endif - } - - /// - /// To be documented. - /// - public static void AddInputCharacter(ImGuiIOPtr self, uint c) - { - AddInputCharacterNative(self, c); - } - - /// - /// To be documented. - /// - public static void AddInputCharacter(ref ImGuiIO self, uint c) - { - fixed (ImGuiIO* pself = &self) - { - AddInputCharacterNative((ImGuiIO*)pself, c); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddInputCharacterUTF16Native(ImGuiIO* self, ushort c) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[405])(self, c); - #else - ((delegate* unmanaged[Cdecl])funcTable[405])((nint)self, c); - #endif - } - - /// - /// To be documented. - /// - public static void AddInputCharacterUTF16(ImGuiIOPtr self, ushort c) - { - AddInputCharacterUTF16Native(self, c); - } - - /// - /// To be documented. - /// - public static void AddInputCharacterUTF16(ref ImGuiIO self, ushort c) - { - fixed (ImGuiIO* pself = &self) - { - AddInputCharacterUTF16Native((ImGuiIO*)pself, c); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddInputCharactersUTF8Native(ImGuiIO* self, byte* str) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[406])(self, str); - #else - ((delegate* unmanaged[Cdecl])funcTable[406])((nint)self, (nint)str); - #endif - } - - /// - /// To be documented. - /// - public static void AddInputCharactersUTF8(ImGuiIOPtr self, byte* str) - { - AddInputCharactersUTF8Native(self, str); - } - - /// - /// To be documented. - /// - public static void AddInputCharactersUTF8(ref ImGuiIO self, byte* str) - { - fixed (ImGuiIO* pself = &self) - { - AddInputCharactersUTF8Native((ImGuiIO*)pself, str); - } - } - - /// - /// To be documented. - /// - public static void AddInputCharactersUTF8(ImGuiIOPtr self, ref byte str) - { - fixed (byte* pstr = &str) - { - AddInputCharactersUTF8Native(self, (byte*)pstr); - } - } - - /// - /// To be documented. - /// - public static void AddInputCharactersUTF8(ImGuiIOPtr self, ReadOnlySpan str) - { - fixed (byte* pstr = str) - { - AddInputCharactersUTF8Native(self, (byte*)pstr); - } - } - - /// - /// To be documented. - /// - public static void AddInputCharactersUTF8(ImGuiIOPtr self, string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddInputCharactersUTF8Native(self, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddInputCharactersUTF8(ref ImGuiIO self, ref byte str) - { - fixed (ImGuiIO* pself = &self) - { - fixed (byte* pstr = &str) - { - AddInputCharactersUTF8Native((ImGuiIO*)pself, (byte*)pstr); - } - } - } - - /// - /// To be documented. - /// - public static void AddInputCharactersUTF8(ref ImGuiIO self, ReadOnlySpan str) - { - fixed (ImGuiIO* pself = &self) - { - fixed (byte* pstr = str) - { - AddInputCharactersUTF8Native((ImGuiIO*)pself, (byte*)pstr); - } - } - } - - /// - /// To be documented. - /// - public static void AddInputCharactersUTF8(ref ImGuiIO self, string str) - { - fixed (ImGuiIO* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddInputCharactersUTF8Native((ImGuiIO*)pself, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetKeyEventNativeDataNative(ImGuiIO* self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[407])(self, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - #else - ((delegate* unmanaged[Cdecl])funcTable[407])((nint)self, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - #endif - } - - /// - /// To be documented. - /// - public static void SetKeyEventNativeData(ImGuiIOPtr self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) - { - SetKeyEventNativeDataNative(self, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - } - - /// - /// To be documented. - /// - public static void SetKeyEventNativeData(ImGuiIOPtr self, ImGuiKey key, int nativeKeycode, int nativeScancode) - { - SetKeyEventNativeDataNative(self, key, nativeKeycode, nativeScancode, (int)(-1)); - } - - /// - /// To be documented. - /// - public static void SetKeyEventNativeData(ref ImGuiIO self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) - { - fixed (ImGuiIO* pself = &self) - { - SetKeyEventNativeDataNative((ImGuiIO*)pself, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - } - } - - /// - /// To be documented. - /// - public static void SetKeyEventNativeData(ref ImGuiIO self, ImGuiKey key, int nativeKeycode, int nativeScancode) - { - fixed (ImGuiIO* pself = &self) - { - SetKeyEventNativeDataNative((ImGuiIO*)pself, key, nativeKeycode, nativeScancode, (int)(-1)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetAppAcceptingEventsNative(ImGuiIO* self, byte acceptingEvents) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[408])(self, acceptingEvents); - #else - ((delegate* unmanaged[Cdecl])funcTable[408])((nint)self, acceptingEvents); - #endif - } - - /// - /// To be documented. - /// - public static void SetAppAcceptingEvents(ImGuiIOPtr self, bool acceptingEvents) - { - SetAppAcceptingEventsNative(self, acceptingEvents ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void SetAppAcceptingEvents(ref ImGuiIO self, bool acceptingEvents) - { - fixed (ImGuiIO* pself = &self) - { - SetAppAcceptingEventsNative((ImGuiIO*)pself, acceptingEvents ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearInputCharactersNative(ImGuiIO* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[409])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[409])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void ClearInputCharacters(ImGuiIOPtr self) - { - ClearInputCharactersNative(self); - } - - /// - /// To be documented. - /// - public static void ClearInputCharacters(ref ImGuiIO self) - { - fixed (ImGuiIO* pself = &self) - { - ClearInputCharactersNative((ImGuiIO*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearInputKeysNative(ImGuiIO* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[410])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[410])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void ClearInputKeys(ImGuiIOPtr self) - { - ClearInputKeysNative(self); - } - - /// - /// To be documented. - /// - public static void ClearInputKeys(ref ImGuiIO self) - { - fixed (ImGuiIO* pself = &self) - { - ClearInputKeysNative((ImGuiIO*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiIO* ImGuiIONative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[411])(); - #else - return (ImGuiIO*)((delegate* unmanaged[Cdecl])funcTable[411])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiIOPtr ImGuiIO() - { - ImGuiIOPtr ret = ImGuiIONative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiIO* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[412])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[412])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiIOPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiIO self) - { - fixed (ImGuiIO* pself = &self) - { - DestroyNative((ImGuiIO*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiInputTextCallbackData* ImGuiInputTextCallbackDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[413])(); - #else - return (ImGuiInputTextCallbackData*)((delegate* unmanaged[Cdecl])funcTable[413])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiInputTextCallbackDataPtr ImGuiInputTextCallbackData() - { - ImGuiInputTextCallbackDataPtr ret = ImGuiInputTextCallbackDataNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiInputTextCallbackData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[414])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[414])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiInputTextCallbackDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiInputTextCallbackData self) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - DestroyNative((ImGuiInputTextCallbackData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DeleteCharsNative(ImGuiInputTextCallbackData* self, int pos, int bytesCount) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[415])(self, pos, bytesCount); - #else - ((delegate* unmanaged[Cdecl])funcTable[415])((nint)self, pos, bytesCount); - #endif - } - - /// - /// To be documented. - /// - public static void DeleteChars(ImGuiInputTextCallbackDataPtr self, int pos, int bytesCount) - { - DeleteCharsNative(self, pos, bytesCount); - } - - /// - /// To be documented. - /// - public static void DeleteChars(ref ImGuiInputTextCallbackData self, int pos, int bytesCount) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - DeleteCharsNative((ImGuiInputTextCallbackData*)pself, pos, bytesCount); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void InsertCharsNative(ImGuiInputTextCallbackData* self, int pos, byte* text, byte* textEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[416])(self, pos, text, textEnd); - #else - ((delegate* unmanaged[Cdecl])funcTable[416])((nint)self, pos, (nint)text, (nint)textEnd); - #endif - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text, byte* textEnd) - { - InsertCharsNative(self, pos, text, textEnd); - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text) - { - InsertCharsNative(self, pos, text, (byte*)(default)); - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text, byte* textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, textEnd); - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, (byte*)(default)); - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - InsertCharsNative(self, pos, (byte*)ptext, textEnd); - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text) - { - fixed (byte* ptext = &text) - { - InsertCharsNative(self, pos, (byte*)ptext, (byte*)(default)); - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan text, byte* textEnd) - { - fixed (byte* ptext = text) - { - InsertCharsNative(self, pos, (byte*)ptext, textEnd); - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan text) - { - fixed (byte* ptext = text) - { - InsertCharsNative(self, pos, (byte*)ptext, (byte*)(default)); - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative(self, pos, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative(self, pos, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text, byte* textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = &text) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, textEnd); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = &text) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan text, byte* textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = text) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, textEnd); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan text) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = text) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text, byte* textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative(self, pos, text, (byte*)ptextEnd); - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text, ReadOnlySpan textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - InsertCharsNative(self, pos, text, (byte*)ptextEnd); - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative(self, pos, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text, ref byte textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text, ReadOnlySpan textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text, string textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan text, ReadOnlySpan textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - InsertCharsNative(self, pos, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text, ReadOnlySpan textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative(self, pos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative(self, pos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative(self, pos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text, ReadOnlySpan textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - InsertCharsNative(self, pos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text, ref byte textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan text, ReadOnlySpan textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text, string textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text, ReadOnlySpan textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text, string textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan text, ref byte textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan text, string textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text, ref byte textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text, ReadOnlySpan textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SelectAllNative(ImGuiInputTextCallbackData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[417])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[417])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void SelectAll(ImGuiInputTextCallbackDataPtr self) - { - SelectAllNative(self); - } - - /// - /// To be documented. - /// - public static void SelectAll(ref ImGuiInputTextCallbackData self) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - SelectAllNative((ImGuiInputTextCallbackData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearSelectionNative(ImGuiInputTextCallbackData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[418])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[418])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void ClearSelection(ImGuiInputTextCallbackDataPtr self) - { - ClearSelectionNative(self); - } - - /// - /// To be documented. - /// - public static void ClearSelection(ref ImGuiInputTextCallbackData self) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - ClearSelectionNative((ImGuiInputTextCallbackData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte HasSelectionNative(ImGuiInputTextCallbackData* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[419])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[419])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool HasSelection(ImGuiInputTextCallbackDataPtr self) - { - byte ret = HasSelectionNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool HasSelection(ref ImGuiInputTextCallbackData self) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte ret = HasSelectionNative((ImGuiInputTextCallbackData*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindowClass* ImGuiWindowClassNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[420])(); - #else - return (ImGuiWindowClass*)((delegate* unmanaged[Cdecl])funcTable[420])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiWindowClassPtr ImGuiWindowClass() - { - ImGuiWindowClassPtr ret = ImGuiWindowClassNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiWindowClass* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[421])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[421])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiWindowClassPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiWindowClass self) - { - fixed (ImGuiWindowClass* pself = &self) - { - DestroyNative((ImGuiWindowClass*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPayload* ImGuiPayloadNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[422])(); - #else - return (ImGuiPayload*)((delegate* unmanaged[Cdecl])funcTable[422])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiPayloadPtr ImGuiPayload() - { - ImGuiPayloadPtr ret = ImGuiPayloadNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiPayload* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[423])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[423])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiPayloadPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiPayload self) - { - fixed (ImGuiPayload* pself = &self) - { - DestroyNative((ImGuiPayload*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearNative(ImGuiPayload* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[424])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[424])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Clear(ImGuiPayloadPtr self) - { - ClearNative(self); - } - - /// - /// To be documented. - /// - public static void Clear(ref ImGuiPayload self) - { - fixed (ImGuiPayload* pself = &self) - { - ClearNative((ImGuiPayload*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsDataTypeNative(ImGuiPayload* self, byte* type) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[425])(self, type); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[425])((nint)self, (nint)type); - #endif - } - - /// - /// To be documented. - /// - public static bool IsDataType(ImGuiPayloadPtr self, byte* type) - { - byte ret = IsDataTypeNative(self, type); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsDataType(ref ImGuiPayload self, byte* type) - { - fixed (ImGuiPayload* pself = &self) - { - byte ret = IsDataTypeNative((ImGuiPayload*)pself, type); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool IsDataType(ImGuiPayloadPtr self, ref byte type) - { - fixed (byte* ptype = &type) - { - byte ret = IsDataTypeNative(self, (byte*)ptype); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool IsDataType(ImGuiPayloadPtr self, ReadOnlySpan type) - { - fixed (byte* ptype = type) - { - byte ret = IsDataTypeNative(self, (byte*)ptype); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool IsDataType(ImGuiPayloadPtr self, string type) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = IsDataTypeNative(self, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsDataType(ref ImGuiPayload self, ref byte type) - { - fixed (ImGuiPayload* pself = &self) - { - fixed (byte* ptype = &type) - { - byte ret = IsDataTypeNative((ImGuiPayload*)pself, (byte*)ptype); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool IsDataType(ref ImGuiPayload self, ReadOnlySpan type) - { - fixed (ImGuiPayload* pself = &self) - { - fixed (byte* ptype = type) - { - byte ret = IsDataTypeNative((ImGuiPayload*)pself, (byte*)ptype); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool IsDataType(ref ImGuiPayload self, string type) - { - fixed (ImGuiPayload* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = IsDataTypeNative((ImGuiPayload*)pself, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsPreviewNative(ImGuiPayload* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[426])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[426])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsPreview(ImGuiPayloadPtr self) - { - byte ret = IsPreviewNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsPreview(ref ImGuiPayload self) - { - fixed (ImGuiPayload* pself = &self) - { - byte ret = IsPreviewNative((ImGuiPayload*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsDeliveryNative(ImGuiPayload* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[427])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[427])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsDelivery(ImGuiPayloadPtr self) - { - byte ret = IsDeliveryNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsDelivery(ref ImGuiPayload self) - { - fixed (ImGuiPayload* pself = &self) - { - byte ret = IsDeliveryNative((ImGuiPayload*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[428])(); - #else - return (ImGuiTableColumnSortSpecs*)((delegate* unmanaged[Cdecl])funcTable[428])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTableColumnSortSpecsPtr ImGuiTableColumnSortSpecs() - { - ImGuiTableColumnSortSpecsPtr ret = ImGuiTableColumnSortSpecsNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTableColumnSortSpecs* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[429])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[429])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiTableColumnSortSpecsPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiTableColumnSortSpecs self) - { - fixed (ImGuiTableColumnSortSpecs* pself = &self) - { - DestroyNative((ImGuiTableColumnSortSpecs*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableSortSpecs* ImGuiTableSortSpecsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[430])(); - #else - return (ImGuiTableSortSpecs*)((delegate* unmanaged[Cdecl])funcTable[430])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTableSortSpecsPtr ImGuiTableSortSpecs() - { - ImGuiTableSortSpecsPtr ret = ImGuiTableSortSpecsNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTableSortSpecs* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[431])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[431])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiTableSortSpecsPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiTableSortSpecs self) - { - fixed (ImGuiTableSortSpecs* pself = &self) - { - DestroyNative((ImGuiTableSortSpecs*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiOnceUponAFrame* ImGuiOnceUponAFrameNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[432])(); - #else - return (ImGuiOnceUponAFrame*)((delegate* unmanaged[Cdecl])funcTable[432])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiOnceUponAFramePtr ImGuiOnceUponAFrame() - { - ImGuiOnceUponAFramePtr ret = ImGuiOnceUponAFrameNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiOnceUponAFrame* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[433])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[433])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiOnceUponAFramePtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiOnceUponAFrame self) - { - fixed (ImGuiOnceUponAFrame* pself = &self) - { - DestroyNative((ImGuiOnceUponAFrame*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTextFilter* ImGuiTextFilterNative(byte* defaultFilter) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[434])(defaultFilter); - #else - return (ImGuiTextFilter*)((delegate* unmanaged[Cdecl])funcTable[434])((nint)defaultFilter); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTextFilterPtr ImGuiTextFilter(byte* defaultFilter) - { - ImGuiTextFilterPtr ret = ImGuiTextFilterNative(defaultFilter); - return ret; - } - - /// - /// To be documented. - /// - public static ImGuiTextFilterPtr ImGuiTextFilter() - { - ImGuiTextFilterPtr ret = ImGuiTextFilter((string)""); - return ret; - } - - /// - /// To be documented. - /// - public static ImGuiTextFilterPtr ImGuiTextFilter(ref byte defaultFilter) - { - fixed (byte* pdefaultFilter = &defaultFilter) - { - ImGuiTextFilterPtr ret = ImGuiTextFilterNative((byte*)pdefaultFilter); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImGuiTextFilterPtr ImGuiTextFilter(ReadOnlySpan defaultFilter) - { - fixed (byte* pdefaultFilter = defaultFilter) - { - ImGuiTextFilterPtr ret = ImGuiTextFilterNative((byte*)pdefaultFilter); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImGuiTextFilterPtr ImGuiTextFilter(string defaultFilter) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (defaultFilter != null) - { - pStrSize0 = Utils.GetByteCountUTF8(defaultFilter); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(defaultFilter, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiTextFilterPtr ret = ImGuiTextFilterNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTextFilter* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[435])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[435])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiTextFilterPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiTextFilter self) - { - fixed (ImGuiTextFilter* pself = &self) - { - DestroyNative((ImGuiTextFilter*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DrawNative(ImGuiTextFilter* self, byte* label, float width) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[436])(self, label, width); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[436])((nint)self, (nint)label, width); - #endif - } - - /// - /// To be documented. - /// - public static bool Draw(ImGuiTextFilterPtr self, byte* label, float width) - { - byte ret = DrawNative(self, label, width); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool Draw(ImGuiTextFilterPtr self, byte* label) - { - byte ret = DrawNative(self, label, (float)(0.0f)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool Draw(ImGuiTextFilterPtr self) - { - bool ret = Draw(self, (string)"Filter(inc,-exc)", (float)(0.0f)); - return ret; - } - - /// - /// To be documented. - /// - public static bool Draw(ImGuiTextFilterPtr self, float width) - { - bool ret = Draw(self, (string)"Filter(inc,-exc)", width); - return ret; - } - - /// - /// To be documented. - /// - public static bool Draw(ref ImGuiTextFilter self, byte* label, float width) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte ret = DrawNative((ImGuiTextFilter*)pself, label, width); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool Draw(ref ImGuiTextFilter self, byte* label) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte ret = DrawNative((ImGuiTextFilter*)pself, label, (float)(0.0f)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool Draw(ref ImGuiTextFilter self) - { - fixed (ImGuiTextFilter* pself = &self) - { - bool ret = Draw((ImGuiTextFilter*)pself, (string)"Filter(inc,-exc)", (float)(0.0f)); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool Draw(ref ImGuiTextFilter self, float width) - { - fixed (ImGuiTextFilter* pself = &self) - { - bool ret = Draw((ImGuiTextFilter*)pself, (string)"Filter(inc,-exc)", width); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool Draw(ImGuiTextFilterPtr self, ref byte label, float width) - { - fixed (byte* plabel = &label) - { - byte ret = DrawNative(self, (byte*)plabel, width); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool Draw(ImGuiTextFilterPtr self, ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = DrawNative(self, (byte*)plabel, (float)(0.0f)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool Draw(ImGuiTextFilterPtr self, ReadOnlySpan label, float width) - { - fixed (byte* plabel = label) - { - byte ret = DrawNative(self, (byte*)plabel, width); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool Draw(ImGuiTextFilterPtr self, ReadOnlySpan label) - { - fixed (byte* plabel = label) - { - byte ret = DrawNative(self, (byte*)plabel, (float)(0.0f)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool Draw(ImGuiTextFilterPtr self, string label, float width) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DrawNative(self, pStr0, width); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool Draw(ImGuiTextFilterPtr self, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DrawNative(self, pStr0, (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool Draw(ref ImGuiTextFilter self, ref byte label, float width) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* plabel = &label) - { - byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, width); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool Draw(ref ImGuiTextFilter self, ref byte label) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* plabel = &label) - { - byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, (float)(0.0f)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool Draw(ref ImGuiTextFilter self, ReadOnlySpan label, float width) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* plabel = label) - { - byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, width); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool Draw(ref ImGuiTextFilter self, ReadOnlySpan label) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* plabel = label) - { - byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, (float)(0.0f)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool Draw(ref ImGuiTextFilter self, string label, float width) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DrawNative((ImGuiTextFilter*)pself, pStr0, width); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool Draw(ref ImGuiTextFilter self, string label) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DrawNative((ImGuiTextFilter*)pself, pStr0, (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte PassFilterNative(ImGuiTextFilter* self, byte* text, byte* textEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[437])(self, text, textEnd); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[437])((nint)self, (nint)text, (nint)textEnd); - #endif - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, byte* text, byte* textEnd) - { - byte ret = PassFilterNative(self, text, textEnd); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, byte* text) - { - byte ret = PassFilterNative(self, text, (byte*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, byte* text, byte* textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, textEnd); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, byte* text) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, (byte*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - byte ret = PassFilterNative(self, (byte*)ptext, textEnd); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text) - { - fixed (byte* ptext = &text) - { - byte ret = PassFilterNative(self, (byte*)ptext, (byte*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan text, byte* textEnd) - { - fixed (byte* ptext = text) - { - byte ret = PassFilterNative(self, (byte*)ptext, textEnd); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan text) - { - fixed (byte* ptext = text) - { - byte ret = PassFilterNative(self, (byte*)ptext, (byte*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative(self, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative(self, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, ref byte text, byte* textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = &text) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, textEnd); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, ref byte text) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = &text) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan text, byte* textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = text) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, textEnd); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan text) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = text) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, string text, byte* textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, string text) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative(self, text, (byte*)ptextEnd); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, byte* text, ReadOnlySpan textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = PassFilterNative(self, text, (byte*)ptextEnd); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative(self, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, byte* text, ref byte textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, byte* text, ReadOnlySpan textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, byte* text, string textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan text, ReadOnlySpan textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = PassFilterNative(self, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text, ReadOnlySpan textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative(self, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative(self, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative(self, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ImGuiTextFilterPtr self, string text, ReadOnlySpan textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - byte ret = PassFilterNative(self, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, ref byte text, ref byte textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan text, ReadOnlySpan textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, string text, string textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, ref byte text, ReadOnlySpan textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, ref byte text, string textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan text, ref byte textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan text, string textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool PassFilter(ref ImGuiTextFilter self, string text, ref byte textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - /// /// To be documented. /// @@ -5028,5 +833,4202 @@ namespace Dalamud.Bindings.ImGui return ret; } } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int sizeNative(ImGuiTextBuffer* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[450])(self); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[450])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static int size(ImGuiTextBufferPtr self) + { + int ret = sizeNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static int size(ref ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* pself = &self) + { + int ret = sizeNative((ImGuiTextBuffer*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte emptyNative(ImGuiTextBuffer* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[451])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[451])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool empty(ImGuiTextBufferPtr self) + { + byte ret = emptyNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool empty(ref ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* pself = &self) + { + byte ret = emptyNative((ImGuiTextBuffer*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void clearNative(ImGuiTextBuffer* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[452])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[452])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void clear(ImGuiTextBufferPtr self) + { + clearNative(self); + } + + /// + /// To be documented. + /// + public static void clear(ref ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* pself = &self) + { + clearNative((ImGuiTextBuffer*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void reserveNative(ImGuiTextBuffer* self, int capacity) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[453])(self, capacity); + #else + ((delegate* unmanaged[Cdecl])funcTable[453])((nint)self, capacity); + #endif + } + + /// + /// To be documented. + /// + public static void reserve(ImGuiTextBufferPtr self, int capacity) + { + reserveNative(self, capacity); + } + + /// + /// To be documented. + /// + public static void reserve(ref ImGuiTextBuffer self, int capacity) + { + fixed (ImGuiTextBuffer* pself = &self) + { + reserveNative((ImGuiTextBuffer*)pself, capacity); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* c_strNative(ImGuiTextBuffer* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[454])(self); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[454])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static byte* c_str(ImGuiTextBufferPtr self) + { + byte* ret = c_strNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static string c_strS(ImGuiTextBufferPtr self) + { + string ret = Utils.DecodeStringUTF8(c_strNative(self)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* c_str(ref ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* pself = &self) + { + byte* ret = c_strNative((ImGuiTextBuffer*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static string c_strS(ref ImGuiTextBuffer self) + { + fixed (ImGuiTextBuffer* pself = &self) + { + string ret = Utils.DecodeStringUTF8(c_strNative((ImGuiTextBuffer*)pself)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void appendNative(ImGuiTextBuffer* self, byte* str, byte* strEnd) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[455])(self, str, strEnd); + #else + ((delegate* unmanaged[Cdecl])funcTable[455])((nint)self, (nint)str, (nint)strEnd); + #endif + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, byte* str, byte* strEnd) + { + appendNative(self, str, strEnd); + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, byte* str) + { + appendNative(self, str, (byte*)(default)); + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, byte* str, byte* strEnd) + { + fixed (ImGuiTextBuffer* pself = &self) + { + appendNative((ImGuiTextBuffer*)pself, str, strEnd); + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, byte* str) + { + fixed (ImGuiTextBuffer* pself = &self) + { + appendNative((ImGuiTextBuffer*)pself, str, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, ref byte str, byte* strEnd) + { + fixed (byte* pstr = &str) + { + appendNative(self, (byte*)pstr, strEnd); + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, ref byte str) + { + fixed (byte* pstr = &str) + { + appendNative(self, (byte*)pstr, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, ReadOnlySpan str, byte* strEnd) + { + fixed (byte* pstr = str) + { + appendNative(self, (byte*)pstr, strEnd); + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, ReadOnlySpan str) + { + fixed (byte* pstr = str) + { + appendNative(self, (byte*)pstr, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, string str, byte* strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendNative(self, pStr0, strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, string str) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendNative(self, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, ref byte str, byte* strEnd) + { + fixed (ImGuiTextBuffer* pself = &self) + { + fixed (byte* pstr = &str) + { + appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, strEnd); + } + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, ref byte str) + { + fixed (ImGuiTextBuffer* pself = &self) + { + fixed (byte* pstr = &str) + { + appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, ReadOnlySpan str, byte* strEnd) + { + fixed (ImGuiTextBuffer* pself = &self) + { + fixed (byte* pstr = str) + { + appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, strEnd); + } + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, ReadOnlySpan str) + { + fixed (ImGuiTextBuffer* pself = &self) + { + fixed (byte* pstr = str) + { + appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, string str, byte* strEnd) + { + fixed (ImGuiTextBuffer* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendNative((ImGuiTextBuffer*)pself, pStr0, strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, string str) + { + fixed (ImGuiTextBuffer* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendNative((ImGuiTextBuffer*)pself, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, byte* str, ref byte strEnd) + { + fixed (byte* pstrEnd = &strEnd) + { + appendNative(self, str, (byte*)pstrEnd); + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, byte* str, ReadOnlySpan strEnd) + { + fixed (byte* pstrEnd = strEnd) + { + appendNative(self, str, (byte*)pstrEnd); + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, byte* str, string strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendNative(self, str, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, byte* str, ref byte strEnd) + { + fixed (ImGuiTextBuffer* pself = &self) + { + fixed (byte* pstrEnd = &strEnd) + { + appendNative((ImGuiTextBuffer*)pself, str, (byte*)pstrEnd); + } + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, byte* str, ReadOnlySpan strEnd) + { + fixed (ImGuiTextBuffer* pself = &self) + { + fixed (byte* pstrEnd = strEnd) + { + appendNative((ImGuiTextBuffer*)pself, str, (byte*)pstrEnd); + } + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, byte* str, string strEnd) + { + fixed (ImGuiTextBuffer* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendNative((ImGuiTextBuffer*)pself, str, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, ref byte str, ref byte strEnd) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = &strEnd) + { + appendNative(self, (byte*)pstr, (byte*)pstrEnd); + } + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, ReadOnlySpan str, ReadOnlySpan strEnd) + { + fixed (byte* pstr = str) + { + fixed (byte* pstrEnd = strEnd) + { + appendNative(self, (byte*)pstr, (byte*)pstrEnd); + } + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, string str, string strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (strEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + appendNative(self, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, ref byte str, ReadOnlySpan strEnd) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = strEnd) + { + appendNative(self, (byte*)pstr, (byte*)pstrEnd); + } + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, ref byte str, string strEnd) + { + fixed (byte* pstr = &str) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendNative(self, (byte*)pstr, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, ReadOnlySpan str, ref byte strEnd) + { + fixed (byte* pstr = str) + { + fixed (byte* pstrEnd = &strEnd) + { + appendNative(self, (byte*)pstr, (byte*)pstrEnd); + } + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, ReadOnlySpan str, string strEnd) + { + fixed (byte* pstr = str) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendNative(self, (byte*)pstr, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, string str, ref byte strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrEnd = &strEnd) + { + appendNative(self, pStr0, (byte*)pstrEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void append(ImGuiTextBufferPtr self, string str, ReadOnlySpan strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrEnd = strEnd) + { + appendNative(self, pStr0, (byte*)pstrEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, ref byte str, ref byte strEnd) + { + fixed (ImGuiTextBuffer* pself = &self) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = &strEnd) + { + appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)pstrEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, ReadOnlySpan str, ReadOnlySpan strEnd) + { + fixed (ImGuiTextBuffer* pself = &self) + { + fixed (byte* pstr = str) + { + fixed (byte* pstrEnd = strEnd) + { + appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)pstrEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, string str, string strEnd) + { + fixed (ImGuiTextBuffer* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (strEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + appendNative((ImGuiTextBuffer*)pself, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, ref byte str, ReadOnlySpan strEnd) + { + fixed (ImGuiTextBuffer* pself = &self) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = strEnd) + { + appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)pstrEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, ref byte str, string strEnd) + { + fixed (ImGuiTextBuffer* pself = &self) + { + fixed (byte* pstr = &str) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, ReadOnlySpan str, ref byte strEnd) + { + fixed (ImGuiTextBuffer* pself = &self) + { + fixed (byte* pstr = str) + { + fixed (byte* pstrEnd = &strEnd) + { + appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)pstrEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, ReadOnlySpan str, string strEnd) + { + fixed (ImGuiTextBuffer* pself = &self) + { + fixed (byte* pstr = str) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, string str, ref byte strEnd) + { + fixed (ImGuiTextBuffer* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrEnd = &strEnd) + { + appendNative((ImGuiTextBuffer*)pself, pStr0, (byte*)pstrEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void append(ref ImGuiTextBuffer self, string str, ReadOnlySpan strEnd) + { + fixed (ImGuiTextBuffer* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrEnd = strEnd) + { + appendNative((ImGuiTextBuffer*)pself, pStr0, (byte*)pstrEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void appendfvNative(ImGuiTextBuffer* self, byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[456])(self, fmt, args); + #else + ((delegate* unmanaged[Cdecl])funcTable[456])((nint)self, (nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static void appendfv(ImGuiTextBufferPtr self, byte* fmt, nuint args) + { + appendfvNative(self, fmt, args); + } + + /// + /// To be documented. + /// + public static void appendfv(ref ImGuiTextBuffer self, byte* fmt, nuint args) + { + fixed (ImGuiTextBuffer* pself = &self) + { + appendfvNative((ImGuiTextBuffer*)pself, fmt, args); + } + } + + /// + /// To be documented. + /// + public static void appendfv(ImGuiTextBufferPtr self, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + appendfvNative(self, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void appendfv(ImGuiTextBufferPtr self, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + appendfvNative(self, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void appendfv(ImGuiTextBufferPtr self, string fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendfvNative(self, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void appendfv(ref ImGuiTextBuffer self, ref byte fmt, nuint args) + { + fixed (ImGuiTextBuffer* pself = &self) + { + fixed (byte* pfmt = &fmt) + { + appendfvNative((ImGuiTextBuffer*)pself, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public static void appendfv(ref ImGuiTextBuffer self, ReadOnlySpan fmt, nuint args) + { + fixed (ImGuiTextBuffer* pself = &self) + { + fixed (byte* pfmt = fmt) + { + appendfvNative((ImGuiTextBuffer*)pself, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public static void appendfv(ref ImGuiTextBuffer self, string fmt, nuint args) + { + fixed (ImGuiTextBuffer* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendfvNative((ImGuiTextBuffer*)pself, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiStoragePair* ImGuiStoragePairNative(uint key, int valI) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[457])(key, valI); + #else + return (ImGuiStoragePair*)((delegate* unmanaged[Cdecl])funcTable[457])(key, valI); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiStoragePairPtr ImGuiStoragePair(uint key, int valI) + { + ImGuiStoragePairPtr ret = ImGuiStoragePairNative(key, valI); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiStoragePair* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[458])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[458])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiStoragePairPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiStoragePair self) + { + fixed (ImGuiStoragePair* pself = &self) + { + DestroyNative((ImGuiStoragePair*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiStoragePair* ImGuiStoragePairNative(uint key, float valF) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[459])(key, valF); + #else + return (ImGuiStoragePair*)((delegate* unmanaged[Cdecl])funcTable[459])(key, valF); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiStoragePairPtr ImGuiStoragePair(uint key, float valF) + { + ImGuiStoragePairPtr ret = ImGuiStoragePairNative(key, valF); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiStoragePair* ImGuiStoragePairNative(uint key, void* valP) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[460])(key, valP); + #else + return (ImGuiStoragePair*)((delegate* unmanaged[Cdecl])funcTable[460])(key, (nint)valP); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiStoragePairPtr ImGuiStoragePair(uint key, void* valP) + { + ImGuiStoragePairPtr ret = ImGuiStoragePairNative(key, valP); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearNative(ImGuiStorage* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[461])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[461])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Clear(ImGuiStoragePtr self) + { + ClearNative(self); + } + + /// + /// To be documented. + /// + public static void Clear(ref ImGuiStorage self) + { + fixed (ImGuiStorage* pself = &self) + { + ClearNative((ImGuiStorage*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetIntNative(ImGuiStorage* self, uint key, int defaultVal) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[462])(self, key, defaultVal); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[462])((nint)self, key, defaultVal); + #endif + } + + /// + /// To be documented. + /// + public static int GetInt(ImGuiStoragePtr self, uint key, int defaultVal) + { + int ret = GetIntNative(self, key, defaultVal); + return ret; + } + + /// + /// To be documented. + /// + public static int GetInt(ImGuiStoragePtr self, uint key) + { + int ret = GetIntNative(self, key, (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static int GetInt(ref ImGuiStorage self, uint key, int defaultVal) + { + fixed (ImGuiStorage* pself = &self) + { + int ret = GetIntNative((ImGuiStorage*)pself, key, defaultVal); + return ret; + } + } + + /// + /// To be documented. + /// + public static int GetInt(ref ImGuiStorage self, uint key) + { + fixed (ImGuiStorage* pself = &self) + { + int ret = GetIntNative((ImGuiStorage*)pself, key, (int)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetIntNative(ImGuiStorage* self, uint key, int val) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[463])(self, key, val); + #else + ((delegate* unmanaged[Cdecl])funcTable[463])((nint)self, key, val); + #endif + } + + /// + /// To be documented. + /// + public static void SetInt(ImGuiStoragePtr self, uint key, int val) + { + SetIntNative(self, key, val); + } + + /// + /// To be documented. + /// + public static void SetInt(ref ImGuiStorage self, uint key, int val) + { + fixed (ImGuiStorage* pself = &self) + { + SetIntNative((ImGuiStorage*)pself, key, val); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte GetBoolNative(ImGuiStorage* self, uint key, byte defaultVal) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[464])(self, key, defaultVal); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[464])((nint)self, key, defaultVal); + #endif + } + + /// + /// To be documented. + /// + public static bool GetBool(ImGuiStoragePtr self, uint key, bool defaultVal) + { + byte ret = GetBoolNative(self, key, defaultVal ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool GetBool(ImGuiStoragePtr self, uint key) + { + byte ret = GetBoolNative(self, key, (byte)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool GetBool(ref ImGuiStorage self, uint key, bool defaultVal) + { + fixed (ImGuiStorage* pself = &self) + { + byte ret = GetBoolNative((ImGuiStorage*)pself, key, defaultVal ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool GetBool(ref ImGuiStorage self, uint key) + { + fixed (ImGuiStorage* pself = &self) + { + byte ret = GetBoolNative((ImGuiStorage*)pself, key, (byte)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetBoolNative(ImGuiStorage* self, uint key, byte val) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[465])(self, key, val); + #else + ((delegate* unmanaged[Cdecl])funcTable[465])((nint)self, key, val); + #endif + } + + /// + /// To be documented. + /// + public static void SetBool(ImGuiStoragePtr self, uint key, bool val) + { + SetBoolNative(self, key, val ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void SetBool(ref ImGuiStorage self, uint key, bool val) + { + fixed (ImGuiStorage* pself = &self) + { + SetBoolNative((ImGuiStorage*)pself, key, val ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetFloatNative(ImGuiStorage* self, uint key, float defaultVal) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[466])(self, key, defaultVal); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[466])((nint)self, key, defaultVal); + #endif + } + + /// + /// To be documented. + /// + public static float GetFloat(ImGuiStoragePtr self, uint key, float defaultVal) + { + float ret = GetFloatNative(self, key, defaultVal); + return ret; + } + + /// + /// To be documented. + /// + public static float GetFloat(ImGuiStoragePtr self, uint key) + { + float ret = GetFloatNative(self, key, (float)(0.0f)); + return ret; + } + + /// + /// To be documented. + /// + public static float GetFloat(ref ImGuiStorage self, uint key, float defaultVal) + { + fixed (ImGuiStorage* pself = &self) + { + float ret = GetFloatNative((ImGuiStorage*)pself, key, defaultVal); + return ret; + } + } + + /// + /// To be documented. + /// + public static float GetFloat(ref ImGuiStorage self, uint key) + { + fixed (ImGuiStorage* pself = &self) + { + float ret = GetFloatNative((ImGuiStorage*)pself, key, (float)(0.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetFloatNative(ImGuiStorage* self, uint key, float val) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[467])(self, key, val); + #else + ((delegate* unmanaged[Cdecl])funcTable[467])((nint)self, key, val); + #endif + } + + /// + /// To be documented. + /// + public static void SetFloat(ImGuiStoragePtr self, uint key, float val) + { + SetFloatNative(self, key, val); + } + + /// + /// To be documented. + /// + public static void SetFloat(ref ImGuiStorage self, uint key, float val) + { + fixed (ImGuiStorage* pself = &self) + { + SetFloatNative((ImGuiStorage*)pself, key, val); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void* GetVoidPtrNative(ImGuiStorage* self, uint key) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[468])(self, key); + #else + return (void*)((delegate* unmanaged[Cdecl])funcTable[468])((nint)self, key); + #endif + } + + /// + /// To be documented. + /// + public static void* GetVoidPtr(ImGuiStoragePtr self, uint key) + { + void* ret = GetVoidPtrNative(self, key); + return ret; + } + + /// + /// To be documented. + /// + public static void* GetVoidPtr(ref ImGuiStorage self, uint key) + { + fixed (ImGuiStorage* pself = &self) + { + void* ret = GetVoidPtrNative((ImGuiStorage*)pself, key); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetVoidPtrNative(ImGuiStorage* self, uint key, void* val) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[469])(self, key, val); + #else + ((delegate* unmanaged[Cdecl])funcTable[469])((nint)self, key, (nint)val); + #endif + } + + /// + /// To be documented. + /// + public static void SetVoidPtr(ImGuiStoragePtr self, uint key, void* val) + { + SetVoidPtrNative(self, key, val); + } + + /// + /// To be documented. + /// + public static void SetVoidPtr(ref ImGuiStorage self, uint key, void* val) + { + fixed (ImGuiStorage* pself = &self) + { + SetVoidPtrNative((ImGuiStorage*)pself, key, val); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int* GetIntRefNative(ImGuiStorage* self, uint key, int defaultVal) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[470])(self, key, defaultVal); + #else + return (int*)((delegate* unmanaged[Cdecl])funcTable[470])((nint)self, key, defaultVal); + #endif + } + + /// + /// To be documented. + /// + public static int* GetIntRef(ImGuiStoragePtr self, uint key, int defaultVal) + { + int* ret = GetIntRefNative(self, key, defaultVal); + return ret; + } + + /// + /// To be documented. + /// + public static int* GetIntRef(ImGuiStoragePtr self, uint key) + { + int* ret = GetIntRefNative(self, key, (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static int* GetIntRef(ref ImGuiStorage self, uint key, int defaultVal) + { + fixed (ImGuiStorage* pself = &self) + { + int* ret = GetIntRefNative((ImGuiStorage*)pself, key, defaultVal); + return ret; + } + } + + /// + /// To be documented. + /// + public static int* GetIntRef(ref ImGuiStorage self, uint key) + { + fixed (ImGuiStorage* pself = &self) + { + int* ret = GetIntRefNative((ImGuiStorage*)pself, key, (int)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static bool* GetBoolRefNative(ImGuiStorage* self, uint key, byte defaultVal) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[471])(self, key, defaultVal); + #else + return (bool*)((delegate* unmanaged[Cdecl])funcTable[471])((nint)self, key, defaultVal); + #endif + } + + /// + /// To be documented. + /// + public static bool* GetBoolRef(ImGuiStoragePtr self, uint key, bool defaultVal) + { + bool* ret = GetBoolRefNative(self, key, defaultVal ? (byte)1 : (byte)0); + return ret; + } + + /// + /// To be documented. + /// + public static bool* GetBoolRef(ImGuiStoragePtr self, uint key) + { + bool* ret = GetBoolRefNative(self, key, (byte)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static bool* GetBoolRef(ref ImGuiStorage self, uint key, bool defaultVal) + { + fixed (ImGuiStorage* pself = &self) + { + bool* ret = GetBoolRefNative((ImGuiStorage*)pself, key, defaultVal ? (byte)1 : (byte)0); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool* GetBoolRef(ref ImGuiStorage self, uint key) + { + fixed (ImGuiStorage* pself = &self) + { + bool* ret = GetBoolRefNative((ImGuiStorage*)pself, key, (byte)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float* GetFloatRefNative(ImGuiStorage* self, uint key, float defaultVal) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[472])(self, key, defaultVal); + #else + return (float*)((delegate* unmanaged[Cdecl])funcTable[472])((nint)self, key, defaultVal); + #endif + } + + /// + /// To be documented. + /// + public static float* GetFloatRef(ImGuiStoragePtr self, uint key, float defaultVal) + { + float* ret = GetFloatRefNative(self, key, defaultVal); + return ret; + } + + /// + /// To be documented. + /// + public static float* GetFloatRef(ImGuiStoragePtr self, uint key) + { + float* ret = GetFloatRefNative(self, key, (float)(0.0f)); + return ret; + } + + /// + /// To be documented. + /// + public static float* GetFloatRef(ref ImGuiStorage self, uint key, float defaultVal) + { + fixed (ImGuiStorage* pself = &self) + { + float* ret = GetFloatRefNative((ImGuiStorage*)pself, key, defaultVal); + return ret; + } + } + + /// + /// To be documented. + /// + public static float* GetFloatRef(ref ImGuiStorage self, uint key) + { + fixed (ImGuiStorage* pself = &self) + { + float* ret = GetFloatRefNative((ImGuiStorage*)pself, key, (float)(0.0f)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void** GetVoidPtrRefNative(ImGuiStorage* self, uint key, void* defaultVal) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[473])(self, key, defaultVal); + #else + return (void**)((delegate* unmanaged[Cdecl])funcTable[473])((nint)self, key, (nint)defaultVal); + #endif + } + + /// + /// To be documented. + /// + public static void** GetVoidPtrRef(ImGuiStoragePtr self, uint key, void* defaultVal) + { + void** ret = GetVoidPtrRefNative(self, key, defaultVal); + return ret; + } + + /// + /// To be documented. + /// + public static void** GetVoidPtrRef(ImGuiStoragePtr self, uint key) + { + void** ret = GetVoidPtrRefNative(self, key, (void*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static void** GetVoidPtrRef(ref ImGuiStorage self, uint key, void* defaultVal) + { + fixed (ImGuiStorage* pself = &self) + { + void** ret = GetVoidPtrRefNative((ImGuiStorage*)pself, key, defaultVal); + return ret; + } + } + + /// + /// To be documented. + /// + public static void** GetVoidPtrRef(ref ImGuiStorage self, uint key) + { + fixed (ImGuiStorage* pself = &self) + { + void** ret = GetVoidPtrRefNative((ImGuiStorage*)pself, key, (void*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetAllIntNative(ImGuiStorage* self, int val) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[474])(self, val); + #else + ((delegate* unmanaged[Cdecl])funcTable[474])((nint)self, val); + #endif + } + + /// + /// To be documented. + /// + public static void SetAllInt(ImGuiStoragePtr self, int val) + { + SetAllIntNative(self, val); + } + + /// + /// To be documented. + /// + public static void SetAllInt(ref ImGuiStorage self, int val) + { + fixed (ImGuiStorage* pself = &self) + { + SetAllIntNative((ImGuiStorage*)pself, val); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BuildSortByKeyNative(ImGuiStorage* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[475])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[475])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void BuildSortByKey(ImGuiStoragePtr self) + { + BuildSortByKeyNative(self); + } + + /// + /// To be documented. + /// + public static void BuildSortByKey(ref ImGuiStorage self) + { + fixed (ImGuiStorage* pself = &self) + { + BuildSortByKeyNative((ImGuiStorage*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiListClipper* ImGuiListClipperNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[476])(); + #else + return (ImGuiListClipper*)((delegate* unmanaged[Cdecl])funcTable[476])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiListClipperPtr ImGuiListClipper() + { + ImGuiListClipperPtr ret = ImGuiListClipperNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiListClipper* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[477])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[477])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiListClipperPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiListClipper self) + { + fixed (ImGuiListClipper* pself = &self) + { + DestroyNative((ImGuiListClipper*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BeginNative(ImGuiListClipper* self, int itemsCount, float itemsHeight) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[478])(self, itemsCount, itemsHeight); + #else + ((delegate* unmanaged[Cdecl])funcTable[478])((nint)self, itemsCount, itemsHeight); + #endif + } + + /// + /// To be documented. + /// + public static void Begin(ImGuiListClipperPtr self, int itemsCount, float itemsHeight) + { + BeginNative(self, itemsCount, itemsHeight); + } + + /// + /// To be documented. + /// + public static void Begin(ImGuiListClipperPtr self, int itemsCount) + { + BeginNative(self, itemsCount, (float)(-1.0f)); + } + + /// + /// To be documented. + /// + public static void Begin(ref ImGuiListClipper self, int itemsCount, float itemsHeight) + { + fixed (ImGuiListClipper* pself = &self) + { + BeginNative((ImGuiListClipper*)pself, itemsCount, itemsHeight); + } + } + + /// + /// To be documented. + /// + public static void Begin(ref ImGuiListClipper self, int itemsCount) + { + fixed (ImGuiListClipper* pself = &self) + { + BeginNative((ImGuiListClipper*)pself, itemsCount, (float)(-1.0f)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndNative(ImGuiListClipper* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[479])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[479])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void End(ImGuiListClipperPtr self) + { + EndNative(self); + } + + /// + /// To be documented. + /// + public static void End(ref ImGuiListClipper self) + { + fixed (ImGuiListClipper* pself = &self) + { + EndNative((ImGuiListClipper*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte StepNative(ImGuiListClipper* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[480])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[480])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool Step(ImGuiListClipperPtr self) + { + byte ret = StepNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Step(ref ImGuiListClipper self) + { + fixed (ImGuiListClipper* pself = &self) + { + byte ret = StepNative((ImGuiListClipper*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ForceDisplayRangeByIndicesNative(ImGuiListClipper* self, int itemMin, int itemMax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[481])(self, itemMin, itemMax); + #else + ((delegate* unmanaged[Cdecl])funcTable[481])((nint)self, itemMin, itemMax); + #endif + } + + /// + /// To be documented. + /// + public static void ForceDisplayRangeByIndices(ImGuiListClipperPtr self, int itemMin, int itemMax) + { + ForceDisplayRangeByIndicesNative(self, itemMin, itemMax); + } + + /// + /// To be documented. + /// + public static void ForceDisplayRangeByIndices(ref ImGuiListClipper self, int itemMin, int itemMax) + { + fixed (ImGuiListClipper* pself = &self) + { + ForceDisplayRangeByIndicesNative((ImGuiListClipper*)pself, itemMin, itemMax); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImColor* ImColorNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[482])(); + #else + return (ImColor*)((delegate* unmanaged[Cdecl])funcTable[482])(); + #endif + } + + /// + /// To be documented. + /// + public static ImColorPtr ImColor() + { + ImColorPtr ret = ImColorNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImColor* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[483])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[483])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImColorPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImColor self) + { + fixed (ImColor* pself = &self) + { + DestroyNative((ImColor*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImColor* ImColorNative(float r, float g, float b, float a) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[484])(r, g, b, a); + #else + return (ImColor*)((delegate* unmanaged[Cdecl])funcTable[484])(r, g, b, a); + #endif + } + + /// + /// To be documented. + /// + public static ImColorPtr ImColor(float r, float g, float b, float a) + { + ImColorPtr ret = ImColorNative(r, g, b, a); + return ret; + } + + /// + /// To be documented. + /// + public static ImColorPtr ImColor(float r, float g, float b) + { + ImColorPtr ret = ImColorNative(r, g, b, (float)(1.0f)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImColor* ImColorNative(Vector4 col) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[485])(col); + #else + return (ImColor*)((delegate* unmanaged[Cdecl])funcTable[485])(col); + #endif + } + + /// + /// To be documented. + /// + public static ImColorPtr ImColor(Vector4 col) + { + ImColorPtr ret = ImColorNative(col); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImColor* ImColorNative(int r, int g, int b, int a) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[486])(r, g, b, a); + #else + return (ImColor*)((delegate* unmanaged[Cdecl])funcTable[486])(r, g, b, a); + #endif + } + + /// + /// To be documented. + /// + public static ImColorPtr ImColor(int r, int g, int b, int a) + { + ImColorPtr ret = ImColorNative(r, g, b, a); + return ret; + } + + /// + /// To be documented. + /// + public static ImColorPtr ImColor(int r, int g, int b) + { + ImColorPtr ret = ImColorNative(r, g, b, (int)(255)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImColor* ImColorNative(uint rgba) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[487])(rgba); + #else + return (ImColor*)((delegate* unmanaged[Cdecl])funcTable[487])(rgba); + #endif + } + + /// + /// To be documented. + /// + public static ImColorPtr ImColor(uint rgba) + { + ImColorPtr ret = ImColorNative(rgba); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetHSVNative(ImColor* self, float h, float s, float v, float a) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[488])(self, h, s, v, a); + #else + ((delegate* unmanaged[Cdecl])funcTable[488])((nint)self, h, s, v, a); + #endif + } + + /// + /// To be documented. + /// + public static void SetHSV(ImColorPtr self, float h, float s, float v, float a) + { + SetHSVNative(self, h, s, v, a); + } + + /// + /// To be documented. + /// + public static void SetHSV(ImColorPtr self, float h, float s, float v) + { + SetHSVNative(self, h, s, v, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public static void SetHSV(ref ImColor self, float h, float s, float v, float a) + { + fixed (ImColor* pself = &self) + { + SetHSVNative((ImColor*)pself, h, s, v, a); + } + } + + /// + /// To be documented. + /// + public static void SetHSV(ref ImColor self, float h, float s, float v) + { + fixed (ImColor* pself = &self) + { + SetHSVNative((ImColor*)pself, h, s, v, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void HSVNative(ImColor* pOut, float h, float s, float v, float a) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[489])(pOut, h, s, v, a); + #else + ((delegate* unmanaged[Cdecl])funcTable[489])((nint)pOut, h, s, v, a); + #endif + } + + /// + /// To be documented. + /// + public static ImColor HSV(float h, float s, float v) + { + ImColor ret; + HSVNative(&ret, h, s, v, (float)(1.0f)); + return ret; + } + + /// + /// To be documented. + /// + public static ImColor HSV(float h, float s, float v, float a) + { + ImColor ret; + HSVNative(&ret, h, s, v, a); + return ret; + } + + /// + /// To be documented. + /// + public static void HSV(ImColorPtr pOut, float h, float s, float v, float a) + { + HSVNative(pOut, h, s, v, a); + } + + /// + /// To be documented. + /// + public static void HSV(ImColorPtr pOut, float h, float s, float v) + { + HSVNative(pOut, h, s, v, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public static void HSV(ref ImColor pOut, float h, float s, float v, float a) + { + fixed (ImColor* ppOut = &pOut) + { + HSVNative((ImColor*)ppOut, h, s, v, a); + } + } + + /// + /// To be documented. + /// + public static void HSV(ref ImColor pOut, float h, float s, float v) + { + fixed (ImColor* ppOut = &pOut) + { + HSVNative((ImColor*)ppOut, h, s, v, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImDrawCmd* ImDrawCmdNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[490])(); + #else + return (ImDrawCmd*)((delegate* unmanaged[Cdecl])funcTable[490])(); + #endif + } + + /// + /// To be documented. + /// + public static ImDrawCmdPtr ImDrawCmd() + { + ImDrawCmdPtr ret = ImDrawCmdNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImDrawCmd* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[491])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[491])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImDrawCmdPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImDrawCmd self) + { + fixed (ImDrawCmd* pself = &self) + { + DestroyNative((ImDrawCmd*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImTextureID GetTexIDNative(ImDrawCmd* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[492])(self); + #else + return (ImTextureID)((delegate* unmanaged[Cdecl])funcTable[492])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ImTextureID GetTexID(ImDrawCmdPtr self) + { + ImTextureID ret = GetTexIDNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static ImTextureID GetTexID(ref ImDrawCmd self) + { + fixed (ImDrawCmd* pself = &self) + { + ImTextureID ret = GetTexIDNative((ImDrawCmd*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImDrawListSplitter* ImDrawListSplitterNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[493])(); + #else + return (ImDrawListSplitter*)((delegate* unmanaged[Cdecl])funcTable[493])(); + #endif + } + + /// + /// To be documented. + /// + public static ImDrawListSplitterPtr ImDrawListSplitter() + { + ImDrawListSplitterPtr ret = ImDrawListSplitterNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImDrawListSplitter* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[494])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[494])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImDrawListSplitterPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImDrawListSplitter self) + { + fixed (ImDrawListSplitter* pself = &self) + { + DestroyNative((ImDrawListSplitter*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearNative(ImDrawListSplitter* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[495])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[495])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Clear(ImDrawListSplitterPtr self) + { + ClearNative(self); + } + + /// + /// To be documented. + /// + public static void Clear(ref ImDrawListSplitter self) + { + fixed (ImDrawListSplitter* pself = &self) + { + ClearNative((ImDrawListSplitter*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearFreeMemoryNative(ImDrawListSplitter* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[496])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[496])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ClearFreeMemory(ImDrawListSplitterPtr self) + { + ClearFreeMemoryNative(self); + } + + /// + /// To be documented. + /// + public static void ClearFreeMemory(ref ImDrawListSplitter self) + { + fixed (ImDrawListSplitter* pself = &self) + { + ClearFreeMemoryNative((ImDrawListSplitter*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SplitNative(ImDrawListSplitter* self, ImDrawList* drawList, int count) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[497])(self, drawList, count); + #else + ((delegate* unmanaged[Cdecl])funcTable[497])((nint)self, (nint)drawList, count); + #endif + } + + /// + /// To be documented. + /// + public static void Split(ImDrawListSplitterPtr self, ImDrawListPtr drawList, int count) + { + SplitNative(self, drawList, count); + } + + /// + /// To be documented. + /// + public static void Split(ref ImDrawListSplitter self, ImDrawListPtr drawList, int count) + { + fixed (ImDrawListSplitter* pself = &self) + { + SplitNative((ImDrawListSplitter*)pself, drawList, count); + } + } + + /// + /// To be documented. + /// + public static void Split(ImDrawListSplitterPtr self, ref ImDrawList drawList, int count) + { + fixed (ImDrawList* pdrawList = &drawList) + { + SplitNative(self, (ImDrawList*)pdrawList, count); + } + } + + /// + /// To be documented. + /// + public static void Split(ref ImDrawListSplitter self, ref ImDrawList drawList, int count) + { + fixed (ImDrawListSplitter* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + SplitNative((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList, count); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void MergeNative(ImDrawListSplitter* self, ImDrawList* drawList) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[498])(self, drawList); + #else + ((delegate* unmanaged[Cdecl])funcTable[498])((nint)self, (nint)drawList); + #endif + } + + /// + /// To be documented. + /// + public static void Merge(ImDrawListSplitterPtr self, ImDrawListPtr drawList) + { + MergeNative(self, drawList); + } + + /// + /// To be documented. + /// + public static void Merge(ref ImDrawListSplitter self, ImDrawListPtr drawList) + { + fixed (ImDrawListSplitter* pself = &self) + { + MergeNative((ImDrawListSplitter*)pself, drawList); + } + } + + /// + /// To be documented. + /// + public static void Merge(ImDrawListSplitterPtr self, ref ImDrawList drawList) + { + fixed (ImDrawList* pdrawList = &drawList) + { + MergeNative(self, (ImDrawList*)pdrawList); + } + } + + /// + /// To be documented. + /// + public static void Merge(ref ImDrawListSplitter self, ref ImDrawList drawList) + { + fixed (ImDrawListSplitter* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + MergeNative((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetCurrentChannelNative(ImDrawListSplitter* self, ImDrawList* drawList, int channelIdx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[499])(self, drawList, channelIdx); + #else + ((delegate* unmanaged[Cdecl])funcTable[499])((nint)self, (nint)drawList, channelIdx); + #endif + } + + /// + /// To be documented. + /// + public static void SetCurrentChannel(ImDrawListSplitterPtr self, ImDrawListPtr drawList, int channelIdx) + { + SetCurrentChannelNative(self, drawList, channelIdx); + } + + /// + /// To be documented. + /// + public static void SetCurrentChannel(ref ImDrawListSplitter self, ImDrawListPtr drawList, int channelIdx) + { + fixed (ImDrawListSplitter* pself = &self) + { + SetCurrentChannelNative((ImDrawListSplitter*)pself, drawList, channelIdx); + } + } + + /// + /// To be documented. + /// + public static void SetCurrentChannel(ImDrawListSplitterPtr self, ref ImDrawList drawList, int channelIdx) + { + fixed (ImDrawList* pdrawList = &drawList) + { + SetCurrentChannelNative(self, (ImDrawList*)pdrawList, channelIdx); + } + } + + /// + /// To be documented. + /// + public static void SetCurrentChannel(ref ImDrawListSplitter self, ref ImDrawList drawList, int channelIdx) + { + fixed (ImDrawListSplitter* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + SetCurrentChannelNative((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList, channelIdx); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImDrawList* ImDrawListNative(ImDrawListSharedData* sharedData) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[500])(sharedData); + #else + return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[500])((nint)sharedData); + #endif + } + + /// + /// To be documented. + /// + public static ImDrawListPtr ImDrawList(ImDrawListSharedDataPtr sharedData) + { + ImDrawListPtr ret = ImDrawListNative(sharedData); + return ret; + } + + /// + /// To be documented. + /// + public static ImDrawListPtr ImDrawList(ref ImDrawListSharedData sharedData) + { + fixed (ImDrawListSharedData* psharedData = &sharedData) + { + ImDrawListPtr ret = ImDrawListNative((ImDrawListSharedData*)psharedData); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImDrawList* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[501])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[501])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImDrawListPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + DestroyNative((ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushClipRectNative(ImDrawList* self, Vector2 clipRectMin, Vector2 clipRectMax, byte intersectWithCurrentClipRect) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[502])(self, clipRectMin, clipRectMax, intersectWithCurrentClipRect); + #else + ((delegate* unmanaged[Cdecl])funcTable[502])((nint)self, clipRectMin, clipRectMax, intersectWithCurrentClipRect); + #endif + } + + /// + /// To be documented. + /// + public static void PushClipRect(ImDrawListPtr self, Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) + { + PushClipRectNative(self, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void PushClipRect(ImDrawListPtr self, Vector2 clipRectMin, Vector2 clipRectMax) + { + PushClipRectNative(self, clipRectMin, clipRectMax, (byte)(0)); + } + + /// + /// To be documented. + /// + public static void PushClipRect(ref ImDrawList self, Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) + { + fixed (ImDrawList* pself = &self) + { + PushClipRectNative((ImDrawList*)pself, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void PushClipRect(ref ImDrawList self, Vector2 clipRectMin, Vector2 clipRectMax) + { + fixed (ImDrawList* pself = &self) + { + PushClipRectNative((ImDrawList*)pself, clipRectMin, clipRectMax, (byte)(0)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushClipRectFullScreenNative(ImDrawList* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[503])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[503])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void PushClipRectFullScreen(ImDrawListPtr self) + { + PushClipRectFullScreenNative(self); + } + + /// + /// To be documented. + /// + public static void PushClipRectFullScreen(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + PushClipRectFullScreenNative((ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopClipRectNative(ImDrawList* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[504])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[504])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void PopClipRect(ImDrawListPtr self) + { + PopClipRectNative(self); + } + + /// + /// To be documented. + /// + public static void PopClipRect(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + PopClipRectNative((ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushTextureIDNative(ImDrawList* self, ImTextureID textureId) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[505])(self, textureId); + #else + ((delegate* unmanaged[Cdecl])funcTable[505])((nint)self, textureId); + #endif + } + + /// + /// To be documented. + /// + public static void PushTextureID(ImDrawListPtr self, ImTextureID textureId) + { + PushTextureIDNative(self, textureId); + } + + /// + /// To be documented. + /// + public static void PushTextureID(ref ImDrawList self, ImTextureID textureId) + { + fixed (ImDrawList* pself = &self) + { + PushTextureIDNative((ImDrawList*)pself, textureId); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopTextureIDNative(ImDrawList* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[506])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[506])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void PopTextureID(ImDrawListPtr self) + { + PopTextureIDNative(self); + } + + /// + /// To be documented. + /// + public static void PopTextureID(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + PopTextureIDNative((ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetClipRectMinNative(Vector2* pOut, ImDrawList* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[507])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[507])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetClipRectMin(ImDrawListPtr self) + { + Vector2 ret; + GetClipRectMinNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void GetClipRectMin(Vector2* pOut, ImDrawListPtr self) + { + GetClipRectMinNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void GetClipRectMin(ref Vector2 pOut, ImDrawListPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + GetClipRectMinNative((Vector2*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static Vector2 GetClipRectMin(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + Vector2 ret; + GetClipRectMinNative(&ret, (ImDrawList*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void GetClipRectMin(Vector2* pOut, ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + GetClipRectMinNative(pOut, (ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + public static void GetClipRectMin(ref Vector2 pOut, ref ImDrawList self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImDrawList* pself = &self) + { + GetClipRectMinNative((Vector2*)ppOut, (ImDrawList*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetClipRectMaxNative(Vector2* pOut, ImDrawList* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[508])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[508])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetClipRectMax(ImDrawListPtr self) + { + Vector2 ret; + GetClipRectMaxNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void GetClipRectMax(Vector2* pOut, ImDrawListPtr self) + { + GetClipRectMaxNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void GetClipRectMax(ref Vector2 pOut, ImDrawListPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + GetClipRectMaxNative((Vector2*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static Vector2 GetClipRectMax(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + Vector2 ret; + GetClipRectMaxNative(&ret, (ImDrawList*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void GetClipRectMax(Vector2* pOut, ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + GetClipRectMaxNative(pOut, (ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + public static void GetClipRectMax(ref Vector2 pOut, ref ImDrawList self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImDrawList* pself = &self) + { + GetClipRectMaxNative((Vector2*)ppOut, (ImDrawList*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddLineNative(ImDrawList* self, Vector2 p1, Vector2 p2, uint col, float thickness) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[509])(self, p1, p2, col, thickness); + #else + ((delegate* unmanaged[Cdecl])funcTable[509])((nint)self, p1, p2, col, thickness); + #endif + } + + /// + /// To be documented. + /// + public static void AddLine(ImDrawListPtr self, Vector2 p1, Vector2 p2, uint col, float thickness) + { + AddLineNative(self, p1, p2, col, thickness); + } + + /// + /// To be documented. + /// + public static void AddLine(ImDrawListPtr self, Vector2 p1, Vector2 p2, uint col) + { + AddLineNative(self, p1, p2, col, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public static void AddLine(ref ImDrawList self, Vector2 p1, Vector2 p2, uint col, float thickness) + { + fixed (ImDrawList* pself = &self) + { + AddLineNative((ImDrawList*)pself, p1, p2, col, thickness); + } + } + + /// + /// To be documented. + /// + public static void AddLine(ref ImDrawList self, Vector2 p1, Vector2 p2, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddLineNative((ImDrawList*)pself, p1, p2, col, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddRectNative(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[510])(self, pMin, pMax, col, rounding, flags, thickness); + #else + ((delegate* unmanaged[Cdecl])funcTable[510])((nint)self, pMin, pMax, col, rounding, flags, thickness); + #endif + } + + /// + /// To be documented. + /// + public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) + { + AddRectNative(self, pMin, pMax, col, rounding, flags, thickness); + } + + /// + /// To be documented. + /// + public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + AddRectNative(self, pMin, pMax, col, rounding, flags, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + AddRectNative(self, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); + } + + /// + /// To be documented. + /// + public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col) + { + AddRectNative(self, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); + } + + /// + /// To be documented. + /// + public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) + { + AddRectNative(self, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) + { + AddRectNative(self, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); + } + + /// + /// To be documented. + /// + public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) + { + AddRectNative(self, pMin, pMax, col, (float)(0.0f), flags, thickness); + } + + /// + /// To be documented. + /// + public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* pself = &self) + { + AddRectNative((ImDrawList*)pself, pMin, pMax, col, rounding, flags, thickness); + } + } + + /// + /// To be documented. + /// + public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* pself = &self) + { + AddRectNative((ImDrawList*)pself, pMin, pMax, col, rounding, flags, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + fixed (ImDrawList* pself = &self) + { + AddRectNative((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddRectNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) + { + fixed (ImDrawList* pself = &self) + { + AddRectNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) + { + fixed (ImDrawList* pself = &self) + { + AddRectNative((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); + } + } + + /// + /// To be documented. + /// + public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* pself = &self) + { + AddRectNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags, thickness); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddRectFilledNative(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[511])(self, pMin, pMax, col, rounding, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[511])((nint)self, pMin, pMax, col, rounding, flags); + #endif + } + + /// + /// To be documented. + /// + public static void AddRectFilled(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + AddRectFilledNative(self, pMin, pMax, col, rounding, flags); + } + + /// + /// To be documented. + /// + public static void AddRectFilled(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + AddRectFilledNative(self, pMin, pMax, col, rounding, (ImDrawFlags)(0)); + } + + /// + /// To be documented. + /// + public static void AddRectFilled(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col) + { + AddRectFilledNative(self, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); + } + + /// + /// To be documented. + /// + public static void AddRectFilled(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) + { + AddRectFilledNative(self, pMin, pMax, col, (float)(0.0f), flags); + } + + /// + /// To be documented. + /// + public static void AddRectFilled(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* pself = &self) + { + AddRectFilledNative((ImDrawList*)pself, pMin, pMax, col, rounding, flags); + } + } + + /// + /// To be documented. + /// + public static void AddRectFilled(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + fixed (ImDrawList* pself = &self) + { + AddRectFilledNative((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void AddRectFilled(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddRectFilledNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void AddRectFilled(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) + { + fixed (ImDrawList* pself = &self) + { + AddRectFilledNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddRectFilledMultiColorNative(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[512])(self, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); + #else + ((delegate* unmanaged[Cdecl])funcTable[512])((nint)self, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); + #endif + } + + /// + /// To be documented. + /// + public static void AddRectFilledMultiColor(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) + { + AddRectFilledMultiColorNative(self, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); + } + + /// + /// To be documented. + /// + public static void AddRectFilledMultiColor(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) + { + fixed (ImDrawList* pself = &self) + { + AddRectFilledMultiColorNative((ImDrawList*)pself, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddQuadNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[513])(self, p1, p2, p3, p4, col, thickness); + #else + ((delegate* unmanaged[Cdecl])funcTable[513])((nint)self, p1, p2, p3, p4, col, thickness); + #endif + } + + /// + /// To be documented. + /// + public static void AddQuad(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + AddQuadNative(self, p1, p2, p3, p4, col, thickness); + } + + /// + /// To be documented. + /// + public static void AddQuad(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + AddQuadNative(self, p1, p2, p3, p4, col, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public static void AddQuad(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + fixed (ImDrawList* pself = &self) + { + AddQuadNative((ImDrawList*)pself, p1, p2, p3, p4, col, thickness); + } + } + + /// + /// To be documented. + /// + public static void AddQuad(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddQuadNative((ImDrawList*)pself, p1, p2, p3, p4, col, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddQuadFilledNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[514])(self, p1, p2, p3, p4, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[514])((nint)self, p1, p2, p3, p4, col); + #endif + } + + /// + /// To be documented. + /// + public static void AddQuadFilled(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + AddQuadFilledNative(self, p1, p2, p3, p4, col); + } + + /// + /// To be documented. + /// + public static void AddQuadFilled(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddQuadFilledNative((ImDrawList*)pself, p1, p2, p3, p4, col); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddTriangleNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[515])(self, p1, p2, p3, col, thickness); + #else + ((delegate* unmanaged[Cdecl])funcTable[515])((nint)self, p1, p2, p3, col, thickness); + #endif + } + + /// + /// To be documented. + /// + public static void AddTriangle(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + AddTriangleNative(self, p1, p2, p3, col, thickness); + } + + /// + /// To be documented. + /// + public static void AddTriangle(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + AddTriangleNative(self, p1, p2, p3, col, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public static void AddTriangle(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + fixed (ImDrawList* pself = &self) + { + AddTriangleNative((ImDrawList*)pself, p1, p2, p3, col, thickness); + } + } + + /// + /// To be documented. + /// + public static void AddTriangle(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddTriangleNative((ImDrawList*)pself, p1, p2, p3, col, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddTriangleFilledNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[516])(self, p1, p2, p3, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[516])((nint)self, p1, p2, p3, col); + #endif + } + + /// + /// To be documented. + /// + public static void AddTriangleFilled(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + AddTriangleFilledNative(self, p1, p2, p3, col); + } + + /// + /// To be documented. + /// + public static void AddTriangleFilled(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddTriangleFilledNative((ImDrawList*)pself, p1, p2, p3, col); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddCircleNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[517])(self, center, radius, col, numSegments, thickness); + #else + ((delegate* unmanaged[Cdecl])funcTable[517])((nint)self, center, radius, col, numSegments, thickness); + #endif + } + + /// + /// To be documented. + /// + public static void AddCircle(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments, float thickness) + { + AddCircleNative(self, center, radius, col, numSegments, thickness); + } + + /// + /// To be documented. + /// + public static void AddCircle(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) + { + AddCircleNative(self, center, radius, col, numSegments, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public static void AddCircle(ImDrawListPtr self, Vector2 center, float radius, uint col) + { + AddCircleNative(self, center, radius, col, (int)(0), (float)(1.0f)); + } + + /// + /// To be documented. + /// + public static void AddCircle(ImDrawListPtr self, Vector2 center, float radius, uint col, float thickness) + { + AddCircleNative(self, center, radius, col, (int)(0), thickness); + } + + /// + /// To be documented. + /// + public static void AddCircle(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments, float thickness) + { + fixed (ImDrawList* pself = &self) + { + AddCircleNative((ImDrawList*)pself, center, radius, col, numSegments, thickness); + } + } + + /// + /// To be documented. + /// + public static void AddCircle(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + AddCircleNative((ImDrawList*)pself, center, radius, col, numSegments, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public static void AddCircle(ref ImDrawList self, Vector2 center, float radius, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddCircleNative((ImDrawList*)pself, center, radius, col, (int)(0), (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public static void AddCircle(ref ImDrawList self, Vector2 center, float radius, uint col, float thickness) + { + fixed (ImDrawList* pself = &self) + { + AddCircleNative((ImDrawList*)pself, center, radius, col, (int)(0), thickness); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddCircleFilledNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[518])(self, center, radius, col, numSegments); + #else + ((delegate* unmanaged[Cdecl])funcTable[518])((nint)self, center, radius, col, numSegments); + #endif + } + + /// + /// To be documented. + /// + public static void AddCircleFilled(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) + { + AddCircleFilledNative(self, center, radius, col, numSegments); + } + + /// + /// To be documented. + /// + public static void AddCircleFilled(ImDrawListPtr self, Vector2 center, float radius, uint col) + { + AddCircleFilledNative(self, center, radius, col, (int)(0)); + } + + /// + /// To be documented. + /// + public static void AddCircleFilled(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + AddCircleFilledNative((ImDrawList*)pself, center, radius, col, numSegments); + } + } + + /// + /// To be documented. + /// + public static void AddCircleFilled(ref ImDrawList self, Vector2 center, float radius, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddCircleFilledNative((ImDrawList*)pself, center, radius, col, (int)(0)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddNgonNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[519])(self, center, radius, col, numSegments, thickness); + #else + ((delegate* unmanaged[Cdecl])funcTable[519])((nint)self, center, radius, col, numSegments, thickness); + #endif + } + + /// + /// To be documented. + /// + public static void AddNgon(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments, float thickness) + { + AddNgonNative(self, center, radius, col, numSegments, thickness); + } + + /// + /// To be documented. + /// + public static void AddNgon(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) + { + AddNgonNative(self, center, radius, col, numSegments, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public static void AddNgon(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments, float thickness) + { + fixed (ImDrawList* pself = &self) + { + AddNgonNative((ImDrawList*)pself, center, radius, col, numSegments, thickness); + } + } + + /// + /// To be documented. + /// + public static void AddNgon(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + AddNgonNative((ImDrawList*)pself, center, radius, col, numSegments, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddNgonFilledNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[520])(self, center, radius, col, numSegments); + #else + ((delegate* unmanaged[Cdecl])funcTable[520])((nint)self, center, radius, col, numSegments); + #endif + } + + /// + /// To be documented. + /// + public static void AddNgonFilled(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) + { + AddNgonFilledNative(self, center, radius, col, numSegments); + } + + /// + /// To be documented. + /// + public static void AddNgonFilled(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + AddNgonFilledNative((ImDrawList*)pself, center, radius, col, numSegments); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddTextNative(ImDrawList* self, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[521])(self, pos, col, textBegin, textEnd); + #else + ((delegate* unmanaged[Cdecl])funcTable[521])((nint)self, pos, col, (nint)textBegin, (nint)textEnd); + #endif + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + AddTextNative(self, pos, col, textBegin, textEnd); + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, byte* textBegin) + { + AddTextNative(self, pos, col, textBegin, (byte*)(default)); + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + fixed (ImDrawList* pself = &self) + { + AddTextNative((ImDrawList*)pself, pos, col, textBegin, textEnd); + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, byte* textBegin) + { + fixed (ImDrawList* pself = &self) + { + AddTextNative((ImDrawList*)pself, pos, col, textBegin, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, pos, col, (byte*)ptextBegin, textEnd); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ref byte textBegin) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, pos, col, (byte*)ptextBegin, textEnd); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ReadOnlySpan textBegin) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, string textBegin, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, pos, col, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, string textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, pos, col, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, textEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ref byte textBegin) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, textEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ReadOnlySpan textBegin) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, string textBegin, byte* textEnd) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, pos, col, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, Vector2 pos, uint col, string textBegin) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, pos, col, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.089.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.089.cs index 502b7a8ac..f96378d21 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.089.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.089.cs @@ -18,4203 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGui { - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int sizeNative(ImGuiTextBuffer* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[450])(self); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[450])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static int size(ImGuiTextBufferPtr self) - { - int ret = sizeNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static int size(ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - int ret = sizeNative((ImGuiTextBuffer*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte emptyNative(ImGuiTextBuffer* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[451])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[451])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool empty(ImGuiTextBufferPtr self) - { - byte ret = emptyNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool empty(ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte ret = emptyNative((ImGuiTextBuffer*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void clearNative(ImGuiTextBuffer* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[452])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[452])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void clear(ImGuiTextBufferPtr self) - { - clearNative(self); - } - - /// - /// To be documented. - /// - public static void clear(ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - clearNative((ImGuiTextBuffer*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void reserveNative(ImGuiTextBuffer* self, int capacity) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[453])(self, capacity); - #else - ((delegate* unmanaged[Cdecl])funcTable[453])((nint)self, capacity); - #endif - } - - /// - /// To be documented. - /// - public static void reserve(ImGuiTextBufferPtr self, int capacity) - { - reserveNative(self, capacity); - } - - /// - /// To be documented. - /// - public static void reserve(ref ImGuiTextBuffer self, int capacity) - { - fixed (ImGuiTextBuffer* pself = &self) - { - reserveNative((ImGuiTextBuffer*)pself, capacity); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* c_strNative(ImGuiTextBuffer* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[454])(self); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[454])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static byte* c_str(ImGuiTextBufferPtr self) - { - byte* ret = c_strNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static string c_strS(ImGuiTextBufferPtr self) - { - string ret = Utils.DecodeStringUTF8(c_strNative(self)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* c_str(ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* ret = c_strNative((ImGuiTextBuffer*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static string c_strS(ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - string ret = Utils.DecodeStringUTF8(c_strNative((ImGuiTextBuffer*)pself)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void appendNative(ImGuiTextBuffer* self, byte* str, byte* strEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[455])(self, str, strEnd); - #else - ((delegate* unmanaged[Cdecl])funcTable[455])((nint)self, (nint)str, (nint)strEnd); - #endif - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, byte* str, byte* strEnd) - { - appendNative(self, str, strEnd); - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, byte* str) - { - appendNative(self, str, (byte*)(default)); - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, byte* str, byte* strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - appendNative((ImGuiTextBuffer*)pself, str, strEnd); - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, byte* str) - { - fixed (ImGuiTextBuffer* pself = &self) - { - appendNative((ImGuiTextBuffer*)pself, str, (byte*)(default)); - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, ref byte str, byte* strEnd) - { - fixed (byte* pstr = &str) - { - appendNative(self, (byte*)pstr, strEnd); - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, ref byte str) - { - fixed (byte* pstr = &str) - { - appendNative(self, (byte*)pstr, (byte*)(default)); - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, ReadOnlySpan str, byte* strEnd) - { - fixed (byte* pstr = str) - { - appendNative(self, (byte*)pstr, strEnd); - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, ReadOnlySpan str) - { - fixed (byte* pstr = str) - { - appendNative(self, (byte*)pstr, (byte*)(default)); - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, string str, byte* strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative(self, pStr0, strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative(self, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, ref byte str, byte* strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = &str) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, strEnd); - } - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, ref byte str) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = &str) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, ReadOnlySpan str, byte* strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = str) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, strEnd); - } - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, ReadOnlySpan str) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = str) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, string str, byte* strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative((ImGuiTextBuffer*)pself, pStr0, strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, string str) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative((ImGuiTextBuffer*)pself, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, byte* str, ref byte strEnd) - { - fixed (byte* pstrEnd = &strEnd) - { - appendNative(self, str, (byte*)pstrEnd); - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, byte* str, ReadOnlySpan strEnd) - { - fixed (byte* pstrEnd = strEnd) - { - appendNative(self, str, (byte*)pstrEnd); - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, byte* str, string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative(self, str, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, byte* str, ref byte strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstrEnd = &strEnd) - { - appendNative((ImGuiTextBuffer*)pself, str, (byte*)pstrEnd); - } - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, byte* str, ReadOnlySpan strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstrEnd = strEnd) - { - appendNative((ImGuiTextBuffer*)pself, str, (byte*)pstrEnd); - } - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, byte* str, string strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative((ImGuiTextBuffer*)pself, str, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, ref byte str, ref byte strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - appendNative(self, (byte*)pstr, (byte*)pstrEnd); - } - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, ReadOnlySpan str, ReadOnlySpan strEnd) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = strEnd) - { - appendNative(self, (byte*)pstr, (byte*)pstrEnd); - } - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, string str, string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - appendNative(self, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, ref byte str, ReadOnlySpan strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = strEnd) - { - appendNative(self, (byte*)pstr, (byte*)pstrEnd); - } - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, ref byte str, string strEnd) - { - fixed (byte* pstr = &str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative(self, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, ReadOnlySpan str, ref byte strEnd) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = &strEnd) - { - appendNative(self, (byte*)pstr, (byte*)pstrEnd); - } - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, ReadOnlySpan str, string strEnd) - { - fixed (byte* pstr = str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative(self, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, string str, ref byte strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = &strEnd) - { - appendNative(self, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void append(ImGuiTextBufferPtr self, string str, ReadOnlySpan strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = strEnd) - { - appendNative(self, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, ref byte str, ref byte strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)pstrEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, ReadOnlySpan str, ReadOnlySpan strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = strEnd) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)pstrEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, string str, string strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - appendNative((ImGuiTextBuffer*)pself, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, ref byte str, ReadOnlySpan strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = strEnd) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)pstrEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, ref byte str, string strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = &str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, ReadOnlySpan str, ref byte strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = &strEnd) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)pstrEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, ReadOnlySpan str, string strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, string str, ref byte strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = &strEnd) - { - appendNative((ImGuiTextBuffer*)pself, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void append(ref ImGuiTextBuffer self, string str, ReadOnlySpan strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = strEnd) - { - appendNative((ImGuiTextBuffer*)pself, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void appendfvNative(ImGuiTextBuffer* self, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[456])(self, fmt, args); - #else - ((delegate* unmanaged[Cdecl])funcTable[456])((nint)self, (nint)fmt, args); - #endif - } - - /// - /// To be documented. - /// - public static void appendfv(ImGuiTextBufferPtr self, byte* fmt, nuint args) - { - appendfvNative(self, fmt, args); - } - - /// - /// To be documented. - /// - public static void appendfv(ref ImGuiTextBuffer self, byte* fmt, nuint args) - { - fixed (ImGuiTextBuffer* pself = &self) - { - appendfvNative((ImGuiTextBuffer*)pself, fmt, args); - } - } - - /// - /// To be documented. - /// - public static void appendfv(ImGuiTextBufferPtr self, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - appendfvNative(self, (byte*)pfmt, args); - } - } - - /// - /// To be documented. - /// - public static void appendfv(ImGuiTextBufferPtr self, ReadOnlySpan fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - appendfvNative(self, (byte*)pfmt, args); - } - } - - /// - /// To be documented. - /// - public static void appendfv(ImGuiTextBufferPtr self, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendfvNative(self, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void appendfv(ref ImGuiTextBuffer self, ref byte fmt, nuint args) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pfmt = &fmt) - { - appendfvNative((ImGuiTextBuffer*)pself, (byte*)pfmt, args); - } - } - } - - /// - /// To be documented. - /// - public static void appendfv(ref ImGuiTextBuffer self, ReadOnlySpan fmt, nuint args) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pfmt = fmt) - { - appendfvNative((ImGuiTextBuffer*)pself, (byte*)pfmt, args); - } - } - } - - /// - /// To be documented. - /// - public static void appendfv(ref ImGuiTextBuffer self, string fmt, nuint args) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendfvNative((ImGuiTextBuffer*)pself, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStoragePair* ImGuiStoragePairNative(uint key, int valI) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[457])(key, valI); - #else - return (ImGuiStoragePair*)((delegate* unmanaged[Cdecl])funcTable[457])(key, valI); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiStoragePairPtr ImGuiStoragePair(uint key, int valI) - { - ImGuiStoragePairPtr ret = ImGuiStoragePairNative(key, valI); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiStoragePair* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[458])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[458])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiStoragePairPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiStoragePair self) - { - fixed (ImGuiStoragePair* pself = &self) - { - DestroyNative((ImGuiStoragePair*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStoragePair* ImGuiStoragePairNative(uint key, float valF) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[459])(key, valF); - #else - return (ImGuiStoragePair*)((delegate* unmanaged[Cdecl])funcTable[459])(key, valF); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiStoragePairPtr ImGuiStoragePair(uint key, float valF) - { - ImGuiStoragePairPtr ret = ImGuiStoragePairNative(key, valF); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStoragePair* ImGuiStoragePairNative(uint key, void* valP) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[460])(key, valP); - #else - return (ImGuiStoragePair*)((delegate* unmanaged[Cdecl])funcTable[460])(key, (nint)valP); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiStoragePairPtr ImGuiStoragePair(uint key, void* valP) - { - ImGuiStoragePairPtr ret = ImGuiStoragePairNative(key, valP); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearNative(ImGuiStorage* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[461])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[461])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Clear(ImGuiStoragePtr self) - { - ClearNative(self); - } - - /// - /// To be documented. - /// - public static void Clear(ref ImGuiStorage self) - { - fixed (ImGuiStorage* pself = &self) - { - ClearNative((ImGuiStorage*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetIntNative(ImGuiStorage* self, uint key, int defaultVal) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[462])(self, key, defaultVal); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[462])((nint)self, key, defaultVal); - #endif - } - - /// - /// To be documented. - /// - public static int GetInt(ImGuiStoragePtr self, uint key, int defaultVal) - { - int ret = GetIntNative(self, key, defaultVal); - return ret; - } - - /// - /// To be documented. - /// - public static int GetInt(ImGuiStoragePtr self, uint key) - { - int ret = GetIntNative(self, key, (int)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static int GetInt(ref ImGuiStorage self, uint key, int defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - int ret = GetIntNative((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - - /// - /// To be documented. - /// - public static int GetInt(ref ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - int ret = GetIntNative((ImGuiStorage*)pself, key, (int)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetIntNative(ImGuiStorage* self, uint key, int val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[463])(self, key, val); - #else - ((delegate* unmanaged[Cdecl])funcTable[463])((nint)self, key, val); - #endif - } - - /// - /// To be documented. - /// - public static void SetInt(ImGuiStoragePtr self, uint key, int val) - { - SetIntNative(self, key, val); - } - - /// - /// To be documented. - /// - public static void SetInt(ref ImGuiStorage self, uint key, int val) - { - fixed (ImGuiStorage* pself = &self) - { - SetIntNative((ImGuiStorage*)pself, key, val); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte GetBoolNative(ImGuiStorage* self, uint key, byte defaultVal) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[464])(self, key, defaultVal); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[464])((nint)self, key, defaultVal); - #endif - } - - /// - /// To be documented. - /// - public static bool GetBool(ImGuiStoragePtr self, uint key, bool defaultVal) - { - byte ret = GetBoolNative(self, key, defaultVal ? (byte)1 : (byte)0); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool GetBool(ImGuiStoragePtr self, uint key) - { - byte ret = GetBoolNative(self, key, (byte)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool GetBool(ref ImGuiStorage self, uint key, bool defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - byte ret = GetBoolNative((ImGuiStorage*)pself, key, defaultVal ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool GetBool(ref ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - byte ret = GetBoolNative((ImGuiStorage*)pself, key, (byte)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetBoolNative(ImGuiStorage* self, uint key, byte val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[465])(self, key, val); - #else - ((delegate* unmanaged[Cdecl])funcTable[465])((nint)self, key, val); - #endif - } - - /// - /// To be documented. - /// - public static void SetBool(ImGuiStoragePtr self, uint key, bool val) - { - SetBoolNative(self, key, val ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void SetBool(ref ImGuiStorage self, uint key, bool val) - { - fixed (ImGuiStorage* pself = &self) - { - SetBoolNative((ImGuiStorage*)pself, key, val ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetFloatNative(ImGuiStorage* self, uint key, float defaultVal) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[466])(self, key, defaultVal); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[466])((nint)self, key, defaultVal); - #endif - } - - /// - /// To be documented. - /// - public static float GetFloat(ImGuiStoragePtr self, uint key, float defaultVal) - { - float ret = GetFloatNative(self, key, defaultVal); - return ret; - } - - /// - /// To be documented. - /// - public static float GetFloat(ImGuiStoragePtr self, uint key) - { - float ret = GetFloatNative(self, key, (float)(0.0f)); - return ret; - } - - /// - /// To be documented. - /// - public static float GetFloat(ref ImGuiStorage self, uint key, float defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - float ret = GetFloatNative((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - - /// - /// To be documented. - /// - public static float GetFloat(ref ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - float ret = GetFloatNative((ImGuiStorage*)pself, key, (float)(0.0f)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetFloatNative(ImGuiStorage* self, uint key, float val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[467])(self, key, val); - #else - ((delegate* unmanaged[Cdecl])funcTable[467])((nint)self, key, val); - #endif - } - - /// - /// To be documented. - /// - public static void SetFloat(ImGuiStoragePtr self, uint key, float val) - { - SetFloatNative(self, key, val); - } - - /// - /// To be documented. - /// - public static void SetFloat(ref ImGuiStorage self, uint key, float val) - { - fixed (ImGuiStorage* pself = &self) - { - SetFloatNative((ImGuiStorage*)pself, key, val); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void* GetVoidPtrNative(ImGuiStorage* self, uint key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[468])(self, key); - #else - return (void*)((delegate* unmanaged[Cdecl])funcTable[468])((nint)self, key); - #endif - } - - /// - /// To be documented. - /// - public static void* GetVoidPtr(ImGuiStoragePtr self, uint key) - { - void* ret = GetVoidPtrNative(self, key); - return ret; - } - - /// - /// To be documented. - /// - public static void* GetVoidPtr(ref ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - void* ret = GetVoidPtrNative((ImGuiStorage*)pself, key); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetVoidPtrNative(ImGuiStorage* self, uint key, void* val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[469])(self, key, val); - #else - ((delegate* unmanaged[Cdecl])funcTable[469])((nint)self, key, (nint)val); - #endif - } - - /// - /// To be documented. - /// - public static void SetVoidPtr(ImGuiStoragePtr self, uint key, void* val) - { - SetVoidPtrNative(self, key, val); - } - - /// - /// To be documented. - /// - public static void SetVoidPtr(ref ImGuiStorage self, uint key, void* val) - { - fixed (ImGuiStorage* pself = &self) - { - SetVoidPtrNative((ImGuiStorage*)pself, key, val); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int* GetIntRefNative(ImGuiStorage* self, uint key, int defaultVal) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[470])(self, key, defaultVal); - #else - return (int*)((delegate* unmanaged[Cdecl])funcTable[470])((nint)self, key, defaultVal); - #endif - } - - /// - /// To be documented. - /// - public static int* GetIntRef(ImGuiStoragePtr self, uint key, int defaultVal) - { - int* ret = GetIntRefNative(self, key, defaultVal); - return ret; - } - - /// - /// To be documented. - /// - public static int* GetIntRef(ImGuiStoragePtr self, uint key) - { - int* ret = GetIntRefNative(self, key, (int)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static int* GetIntRef(ref ImGuiStorage self, uint key, int defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - int* ret = GetIntRefNative((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - - /// - /// To be documented. - /// - public static int* GetIntRef(ref ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - int* ret = GetIntRefNative((ImGuiStorage*)pself, key, (int)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static bool* GetBoolRefNative(ImGuiStorage* self, uint key, byte defaultVal) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[471])(self, key, defaultVal); - #else - return (bool*)((delegate* unmanaged[Cdecl])funcTable[471])((nint)self, key, defaultVal); - #endif - } - - /// - /// To be documented. - /// - public static bool* GetBoolRef(ImGuiStoragePtr self, uint key, bool defaultVal) - { - bool* ret = GetBoolRefNative(self, key, defaultVal ? (byte)1 : (byte)0); - return ret; - } - - /// - /// To be documented. - /// - public static bool* GetBoolRef(ImGuiStoragePtr self, uint key) - { - bool* ret = GetBoolRefNative(self, key, (byte)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static bool* GetBoolRef(ref ImGuiStorage self, uint key, bool defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - bool* ret = GetBoolRefNative((ImGuiStorage*)pself, key, defaultVal ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool* GetBoolRef(ref ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - bool* ret = GetBoolRefNative((ImGuiStorage*)pself, key, (byte)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float* GetFloatRefNative(ImGuiStorage* self, uint key, float defaultVal) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[472])(self, key, defaultVal); - #else - return (float*)((delegate* unmanaged[Cdecl])funcTable[472])((nint)self, key, defaultVal); - #endif - } - - /// - /// To be documented. - /// - public static float* GetFloatRef(ImGuiStoragePtr self, uint key, float defaultVal) - { - float* ret = GetFloatRefNative(self, key, defaultVal); - return ret; - } - - /// - /// To be documented. - /// - public static float* GetFloatRef(ImGuiStoragePtr self, uint key) - { - float* ret = GetFloatRefNative(self, key, (float)(0.0f)); - return ret; - } - - /// - /// To be documented. - /// - public static float* GetFloatRef(ref ImGuiStorage self, uint key, float defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - float* ret = GetFloatRefNative((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - - /// - /// To be documented. - /// - public static float* GetFloatRef(ref ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - float* ret = GetFloatRefNative((ImGuiStorage*)pself, key, (float)(0.0f)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void** GetVoidPtrRefNative(ImGuiStorage* self, uint key, void* defaultVal) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[473])(self, key, defaultVal); - #else - return (void**)((delegate* unmanaged[Cdecl])funcTable[473])((nint)self, key, (nint)defaultVal); - #endif - } - - /// - /// To be documented. - /// - public static void** GetVoidPtrRef(ImGuiStoragePtr self, uint key, void* defaultVal) - { - void** ret = GetVoidPtrRefNative(self, key, defaultVal); - return ret; - } - - /// - /// To be documented. - /// - public static void** GetVoidPtrRef(ImGuiStoragePtr self, uint key) - { - void** ret = GetVoidPtrRefNative(self, key, (void*)(default)); - return ret; - } - - /// - /// To be documented. - /// - public static void** GetVoidPtrRef(ref ImGuiStorage self, uint key, void* defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - void** ret = GetVoidPtrRefNative((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - - /// - /// To be documented. - /// - public static void** GetVoidPtrRef(ref ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - void** ret = GetVoidPtrRefNative((ImGuiStorage*)pself, key, (void*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetAllIntNative(ImGuiStorage* self, int val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[474])(self, val); - #else - ((delegate* unmanaged[Cdecl])funcTable[474])((nint)self, val); - #endif - } - - /// - /// To be documented. - /// - public static void SetAllInt(ImGuiStoragePtr self, int val) - { - SetAllIntNative(self, val); - } - - /// - /// To be documented. - /// - public static void SetAllInt(ref ImGuiStorage self, int val) - { - fixed (ImGuiStorage* pself = &self) - { - SetAllIntNative((ImGuiStorage*)pself, val); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BuildSortByKeyNative(ImGuiStorage* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[475])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[475])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void BuildSortByKey(ImGuiStoragePtr self) - { - BuildSortByKeyNative(self); - } - - /// - /// To be documented. - /// - public static void BuildSortByKey(ref ImGuiStorage self) - { - fixed (ImGuiStorage* pself = &self) - { - BuildSortByKeyNative((ImGuiStorage*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiListClipper* ImGuiListClipperNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[476])(); - #else - return (ImGuiListClipper*)((delegate* unmanaged[Cdecl])funcTable[476])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiListClipperPtr ImGuiListClipper() - { - ImGuiListClipperPtr ret = ImGuiListClipperNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiListClipper* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[477])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[477])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiListClipperPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiListClipper self) - { - fixed (ImGuiListClipper* pself = &self) - { - DestroyNative((ImGuiListClipper*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BeginNative(ImGuiListClipper* self, int itemsCount, float itemsHeight) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[478])(self, itemsCount, itemsHeight); - #else - ((delegate* unmanaged[Cdecl])funcTable[478])((nint)self, itemsCount, itemsHeight); - #endif - } - - /// - /// To be documented. - /// - public static void Begin(ImGuiListClipperPtr self, int itemsCount, float itemsHeight) - { - BeginNative(self, itemsCount, itemsHeight); - } - - /// - /// To be documented. - /// - public static void Begin(ImGuiListClipperPtr self, int itemsCount) - { - BeginNative(self, itemsCount, (float)(-1.0f)); - } - - /// - /// To be documented. - /// - public static void Begin(ref ImGuiListClipper self, int itemsCount, float itemsHeight) - { - fixed (ImGuiListClipper* pself = &self) - { - BeginNative((ImGuiListClipper*)pself, itemsCount, itemsHeight); - } - } - - /// - /// To be documented. - /// - public static void Begin(ref ImGuiListClipper self, int itemsCount) - { - fixed (ImGuiListClipper* pself = &self) - { - BeginNative((ImGuiListClipper*)pself, itemsCount, (float)(-1.0f)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndNative(ImGuiListClipper* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[479])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[479])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void End(ImGuiListClipperPtr self) - { - EndNative(self); - } - - /// - /// To be documented. - /// - public static void End(ref ImGuiListClipper self) - { - fixed (ImGuiListClipper* pself = &self) - { - EndNative((ImGuiListClipper*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte StepNative(ImGuiListClipper* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[480])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[480])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool Step(ImGuiListClipperPtr self) - { - byte ret = StepNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool Step(ref ImGuiListClipper self) - { - fixed (ImGuiListClipper* pself = &self) - { - byte ret = StepNative((ImGuiListClipper*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ForceDisplayRangeByIndicesNative(ImGuiListClipper* self, int itemMin, int itemMax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[481])(self, itemMin, itemMax); - #else - ((delegate* unmanaged[Cdecl])funcTable[481])((nint)self, itemMin, itemMax); - #endif - } - - /// - /// To be documented. - /// - public static void ForceDisplayRangeByIndices(ImGuiListClipperPtr self, int itemMin, int itemMax) - { - ForceDisplayRangeByIndicesNative(self, itemMin, itemMax); - } - - /// - /// To be documented. - /// - public static void ForceDisplayRangeByIndices(ref ImGuiListClipper self, int itemMin, int itemMax) - { - fixed (ImGuiListClipper* pself = &self) - { - ForceDisplayRangeByIndicesNative((ImGuiListClipper*)pself, itemMin, itemMax); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImColor* ImColorNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[482])(); - #else - return (ImColor*)((delegate* unmanaged[Cdecl])funcTable[482])(); - #endif - } - - /// - /// To be documented. - /// - public static ImColorPtr ImColor() - { - ImColorPtr ret = ImColorNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImColor* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[483])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[483])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImColorPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImColor self) - { - fixed (ImColor* pself = &self) - { - DestroyNative((ImColor*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImColor* ImColorNative(float r, float g, float b, float a) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[484])(r, g, b, a); - #else - return (ImColor*)((delegate* unmanaged[Cdecl])funcTable[484])(r, g, b, a); - #endif - } - - /// - /// To be documented. - /// - public static ImColorPtr ImColor(float r, float g, float b, float a) - { - ImColorPtr ret = ImColorNative(r, g, b, a); - return ret; - } - - /// - /// To be documented. - /// - public static ImColorPtr ImColor(float r, float g, float b) - { - ImColorPtr ret = ImColorNative(r, g, b, (float)(1.0f)); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImColor* ImColorNative(Vector4 col) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[485])(col); - #else - return (ImColor*)((delegate* unmanaged[Cdecl])funcTable[485])(col); - #endif - } - - /// - /// To be documented. - /// - public static ImColorPtr ImColor(Vector4 col) - { - ImColorPtr ret = ImColorNative(col); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImColor* ImColorNative(int r, int g, int b, int a) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[486])(r, g, b, a); - #else - return (ImColor*)((delegate* unmanaged[Cdecl])funcTable[486])(r, g, b, a); - #endif - } - - /// - /// To be documented. - /// - public static ImColorPtr ImColor(int r, int g, int b, int a) - { - ImColorPtr ret = ImColorNative(r, g, b, a); - return ret; - } - - /// - /// To be documented. - /// - public static ImColorPtr ImColor(int r, int g, int b) - { - ImColorPtr ret = ImColorNative(r, g, b, (int)(255)); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImColor* ImColorNative(uint rgba) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[487])(rgba); - #else - return (ImColor*)((delegate* unmanaged[Cdecl])funcTable[487])(rgba); - #endif - } - - /// - /// To be documented. - /// - public static ImColorPtr ImColor(uint rgba) - { - ImColorPtr ret = ImColorNative(rgba); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetHSVNative(ImColor* self, float h, float s, float v, float a) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[488])(self, h, s, v, a); - #else - ((delegate* unmanaged[Cdecl])funcTable[488])((nint)self, h, s, v, a); - #endif - } - - /// - /// To be documented. - /// - public static void SetHSV(ImColorPtr self, float h, float s, float v, float a) - { - SetHSVNative(self, h, s, v, a); - } - - /// - /// To be documented. - /// - public static void SetHSV(ImColorPtr self, float h, float s, float v) - { - SetHSVNative(self, h, s, v, (float)(1.0f)); - } - - /// - /// To be documented. - /// - public static void SetHSV(ref ImColor self, float h, float s, float v, float a) - { - fixed (ImColor* pself = &self) - { - SetHSVNative((ImColor*)pself, h, s, v, a); - } - } - - /// - /// To be documented. - /// - public static void SetHSV(ref ImColor self, float h, float s, float v) - { - fixed (ImColor* pself = &self) - { - SetHSVNative((ImColor*)pself, h, s, v, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void HSVNative(ImColor* pOut, float h, float s, float v, float a) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[489])(pOut, h, s, v, a); - #else - ((delegate* unmanaged[Cdecl])funcTable[489])((nint)pOut, h, s, v, a); - #endif - } - - /// - /// To be documented. - /// - public static ImColor HSV(float h, float s, float v) - { - ImColor ret; - HSVNative(&ret, h, s, v, (float)(1.0f)); - return ret; - } - - /// - /// To be documented. - /// - public static ImColor HSV(float h, float s, float v, float a) - { - ImColor ret; - HSVNative(&ret, h, s, v, a); - return ret; - } - - /// - /// To be documented. - /// - public static void HSV(ImColorPtr pOut, float h, float s, float v, float a) - { - HSVNative(pOut, h, s, v, a); - } - - /// - /// To be documented. - /// - public static void HSV(ImColorPtr pOut, float h, float s, float v) - { - HSVNative(pOut, h, s, v, (float)(1.0f)); - } - - /// - /// To be documented. - /// - public static void HSV(ref ImColor pOut, float h, float s, float v, float a) - { - fixed (ImColor* ppOut = &pOut) - { - HSVNative((ImColor*)ppOut, h, s, v, a); - } - } - - /// - /// To be documented. - /// - public static void HSV(ref ImColor pOut, float h, float s, float v) - { - fixed (ImColor* ppOut = &pOut) - { - HSVNative((ImColor*)ppOut, h, s, v, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawCmd* ImDrawCmdNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[490])(); - #else - return (ImDrawCmd*)((delegate* unmanaged[Cdecl])funcTable[490])(); - #endif - } - - /// - /// To be documented. - /// - public static ImDrawCmdPtr ImDrawCmd() - { - ImDrawCmdPtr ret = ImDrawCmdNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImDrawCmd* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[491])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[491])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImDrawCmdPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImDrawCmd self) - { - fixed (ImDrawCmd* pself = &self) - { - DestroyNative((ImDrawCmd*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImTextureID GetTexIDNative(ImDrawCmd* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[492])(self); - #else - return (ImTextureID)((delegate* unmanaged[Cdecl])funcTable[492])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static ImTextureID GetTexID(ImDrawCmdPtr self) - { - ImTextureID ret = GetTexIDNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static ImTextureID GetTexID(ref ImDrawCmd self) - { - fixed (ImDrawCmd* pself = &self) - { - ImTextureID ret = GetTexIDNative((ImDrawCmd*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawListSplitter* ImDrawListSplitterNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[493])(); - #else - return (ImDrawListSplitter*)((delegate* unmanaged[Cdecl])funcTable[493])(); - #endif - } - - /// - /// To be documented. - /// - public static ImDrawListSplitterPtr ImDrawListSplitter() - { - ImDrawListSplitterPtr ret = ImDrawListSplitterNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImDrawListSplitter* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[494])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[494])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImDrawListSplitterPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImDrawListSplitter self) - { - fixed (ImDrawListSplitter* pself = &self) - { - DestroyNative((ImDrawListSplitter*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearNative(ImDrawListSplitter* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[495])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[495])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Clear(ImDrawListSplitterPtr self) - { - ClearNative(self); - } - - /// - /// To be documented. - /// - public static void Clear(ref ImDrawListSplitter self) - { - fixed (ImDrawListSplitter* pself = &self) - { - ClearNative((ImDrawListSplitter*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearFreeMemoryNative(ImDrawListSplitter* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[496])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[496])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void ClearFreeMemory(ImDrawListSplitterPtr self) - { - ClearFreeMemoryNative(self); - } - - /// - /// To be documented. - /// - public static void ClearFreeMemory(ref ImDrawListSplitter self) - { - fixed (ImDrawListSplitter* pself = &self) - { - ClearFreeMemoryNative((ImDrawListSplitter*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SplitNative(ImDrawListSplitter* self, ImDrawList* drawList, int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[497])(self, drawList, count); - #else - ((delegate* unmanaged[Cdecl])funcTable[497])((nint)self, (nint)drawList, count); - #endif - } - - /// - /// To be documented. - /// - public static void Split(ImDrawListSplitterPtr self, ImDrawListPtr drawList, int count) - { - SplitNative(self, drawList, count); - } - - /// - /// To be documented. - /// - public static void Split(ref ImDrawListSplitter self, ImDrawListPtr drawList, int count) - { - fixed (ImDrawListSplitter* pself = &self) - { - SplitNative((ImDrawListSplitter*)pself, drawList, count); - } - } - - /// - /// To be documented. - /// - public static void Split(ImDrawListSplitterPtr self, ref ImDrawList drawList, int count) - { - fixed (ImDrawList* pdrawList = &drawList) - { - SplitNative(self, (ImDrawList*)pdrawList, count); - } - } - - /// - /// To be documented. - /// - public static void Split(ref ImDrawListSplitter self, ref ImDrawList drawList, int count) - { - fixed (ImDrawListSplitter* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - SplitNative((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList, count); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MergeNative(ImDrawListSplitter* self, ImDrawList* drawList) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[498])(self, drawList); - #else - ((delegate* unmanaged[Cdecl])funcTable[498])((nint)self, (nint)drawList); - #endif - } - - /// - /// To be documented. - /// - public static void Merge(ImDrawListSplitterPtr self, ImDrawListPtr drawList) - { - MergeNative(self, drawList); - } - - /// - /// To be documented. - /// - public static void Merge(ref ImDrawListSplitter self, ImDrawListPtr drawList) - { - fixed (ImDrawListSplitter* pself = &self) - { - MergeNative((ImDrawListSplitter*)pself, drawList); - } - } - - /// - /// To be documented. - /// - public static void Merge(ImDrawListSplitterPtr self, ref ImDrawList drawList) - { - fixed (ImDrawList* pdrawList = &drawList) - { - MergeNative(self, (ImDrawList*)pdrawList); - } - } - - /// - /// To be documented. - /// - public static void Merge(ref ImDrawListSplitter self, ref ImDrawList drawList) - { - fixed (ImDrawListSplitter* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - MergeNative((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetCurrentChannelNative(ImDrawListSplitter* self, ImDrawList* drawList, int channelIdx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[499])(self, drawList, channelIdx); - #else - ((delegate* unmanaged[Cdecl])funcTable[499])((nint)self, (nint)drawList, channelIdx); - #endif - } - - /// - /// To be documented. - /// - public static void SetCurrentChannel(ImDrawListSplitterPtr self, ImDrawListPtr drawList, int channelIdx) - { - SetCurrentChannelNative(self, drawList, channelIdx); - } - - /// - /// To be documented. - /// - public static void SetCurrentChannel(ref ImDrawListSplitter self, ImDrawListPtr drawList, int channelIdx) - { - fixed (ImDrawListSplitter* pself = &self) - { - SetCurrentChannelNative((ImDrawListSplitter*)pself, drawList, channelIdx); - } - } - - /// - /// To be documented. - /// - public static void SetCurrentChannel(ImDrawListSplitterPtr self, ref ImDrawList drawList, int channelIdx) - { - fixed (ImDrawList* pdrawList = &drawList) - { - SetCurrentChannelNative(self, (ImDrawList*)pdrawList, channelIdx); - } - } - - /// - /// To be documented. - /// - public static void SetCurrentChannel(ref ImDrawListSplitter self, ref ImDrawList drawList, int channelIdx) - { - fixed (ImDrawListSplitter* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - SetCurrentChannelNative((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList, channelIdx); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawList* ImDrawListNative(ImDrawListSharedData* sharedData) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[500])(sharedData); - #else - return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[500])((nint)sharedData); - #endif - } - - /// - /// To be documented. - /// - public static ImDrawListPtr ImDrawList(ImDrawListSharedDataPtr sharedData) - { - ImDrawListPtr ret = ImDrawListNative(sharedData); - return ret; - } - - /// - /// To be documented. - /// - public static ImDrawListPtr ImDrawList(ref ImDrawListSharedData sharedData) - { - fixed (ImDrawListSharedData* psharedData = &sharedData) - { - ImDrawListPtr ret = ImDrawListNative((ImDrawListSharedData*)psharedData); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[501])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[501])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImDrawListPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - DestroyNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushClipRectNative(ImDrawList* self, Vector2 clipRectMin, Vector2 clipRectMax, byte intersectWithCurrentClipRect) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[502])(self, clipRectMin, clipRectMax, intersectWithCurrentClipRect); - #else - ((delegate* unmanaged[Cdecl])funcTable[502])((nint)self, clipRectMin, clipRectMax, intersectWithCurrentClipRect); - #endif - } - - /// - /// To be documented. - /// - public static void PushClipRect(ImDrawListPtr self, Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) - { - PushClipRectNative(self, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void PushClipRect(ImDrawListPtr self, Vector2 clipRectMin, Vector2 clipRectMax) - { - PushClipRectNative(self, clipRectMin, clipRectMax, (byte)(0)); - } - - /// - /// To be documented. - /// - public static void PushClipRect(ref ImDrawList self, Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) - { - fixed (ImDrawList* pself = &self) - { - PushClipRectNative((ImDrawList*)pself, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void PushClipRect(ref ImDrawList self, Vector2 clipRectMin, Vector2 clipRectMax) - { - fixed (ImDrawList* pself = &self) - { - PushClipRectNative((ImDrawList*)pself, clipRectMin, clipRectMax, (byte)(0)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushClipRectFullScreenNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[503])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[503])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void PushClipRectFullScreen(ImDrawListPtr self) - { - PushClipRectFullScreenNative(self); - } - - /// - /// To be documented. - /// - public static void PushClipRectFullScreen(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - PushClipRectFullScreenNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopClipRectNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[504])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[504])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void PopClipRect(ImDrawListPtr self) - { - PopClipRectNative(self); - } - - /// - /// To be documented. - /// - public static void PopClipRect(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - PopClipRectNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushTextureIDNative(ImDrawList* self, ImTextureID textureId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[505])(self, textureId); - #else - ((delegate* unmanaged[Cdecl])funcTable[505])((nint)self, textureId); - #endif - } - - /// - /// To be documented. - /// - public static void PushTextureID(ImDrawListPtr self, ImTextureID textureId) - { - PushTextureIDNative(self, textureId); - } - - /// - /// To be documented. - /// - public static void PushTextureID(ref ImDrawList self, ImTextureID textureId) - { - fixed (ImDrawList* pself = &self) - { - PushTextureIDNative((ImDrawList*)pself, textureId); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopTextureIDNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[506])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[506])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void PopTextureID(ImDrawListPtr self) - { - PopTextureIDNative(self); - } - - /// - /// To be documented. - /// - public static void PopTextureID(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - PopTextureIDNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetClipRectMinNative(Vector2* pOut, ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[507])(pOut, self); - #else - ((delegate* unmanaged[Cdecl])funcTable[507])((nint)pOut, (nint)self); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 GetClipRectMin(ImDrawListPtr self) - { - Vector2 ret; - GetClipRectMinNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void GetClipRectMin(Vector2* pOut, ImDrawListPtr self) - { - GetClipRectMinNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void GetClipRectMin(ref Vector2 pOut, ImDrawListPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetClipRectMinNative((Vector2*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static Vector2 GetClipRectMin(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - Vector2 ret; - GetClipRectMinNative(&ret, (ImDrawList*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void GetClipRectMin(Vector2* pOut, ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - GetClipRectMinNative(pOut, (ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - public static void GetClipRectMin(ref Vector2 pOut, ref ImDrawList self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImDrawList* pself = &self) - { - GetClipRectMinNative((Vector2*)ppOut, (ImDrawList*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetClipRectMaxNative(Vector2* pOut, ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[508])(pOut, self); - #else - ((delegate* unmanaged[Cdecl])funcTable[508])((nint)pOut, (nint)self); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 GetClipRectMax(ImDrawListPtr self) - { - Vector2 ret; - GetClipRectMaxNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void GetClipRectMax(Vector2* pOut, ImDrawListPtr self) - { - GetClipRectMaxNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void GetClipRectMax(ref Vector2 pOut, ImDrawListPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetClipRectMaxNative((Vector2*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static Vector2 GetClipRectMax(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - Vector2 ret; - GetClipRectMaxNative(&ret, (ImDrawList*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void GetClipRectMax(Vector2* pOut, ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - GetClipRectMaxNative(pOut, (ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - public static void GetClipRectMax(ref Vector2 pOut, ref ImDrawList self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImDrawList* pself = &self) - { - GetClipRectMaxNative((Vector2*)ppOut, (ImDrawList*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddLineNative(ImDrawList* self, Vector2 p1, Vector2 p2, uint col, float thickness) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[509])(self, p1, p2, col, thickness); - #else - ((delegate* unmanaged[Cdecl])funcTable[509])((nint)self, p1, p2, col, thickness); - #endif - } - - /// - /// To be documented. - /// - public static void AddLine(ImDrawListPtr self, Vector2 p1, Vector2 p2, uint col, float thickness) - { - AddLineNative(self, p1, p2, col, thickness); - } - - /// - /// To be documented. - /// - public static void AddLine(ImDrawListPtr self, Vector2 p1, Vector2 p2, uint col) - { - AddLineNative(self, p1, p2, col, (float)(1.0f)); - } - - /// - /// To be documented. - /// - public static void AddLine(ref ImDrawList self, Vector2 p1, Vector2 p2, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddLineNative((ImDrawList*)pself, p1, p2, col, thickness); - } - } - - /// - /// To be documented. - /// - public static void AddLine(ref ImDrawList self, Vector2 p1, Vector2 p2, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddLineNative((ImDrawList*)pself, p1, p2, col, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddRectNative(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[510])(self, pMin, pMax, col, rounding, flags, thickness); - #else - ((delegate* unmanaged[Cdecl])funcTable[510])((nint)self, pMin, pMax, col, rounding, flags, thickness); - #endif - } - - /// - /// To be documented. - /// - public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) - { - AddRectNative(self, pMin, pMax, col, rounding, flags, thickness); - } - - /// - /// To be documented. - /// - public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - AddRectNative(self, pMin, pMax, col, rounding, flags, (float)(1.0f)); - } - - /// - /// To be documented. - /// - public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - AddRectNative(self, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); - } - - /// - /// To be documented. - /// - public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col) - { - AddRectNative(self, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); - } - - /// - /// To be documented. - /// - public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - AddRectNative(self, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); - } - - /// - /// To be documented. - /// - public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) - { - AddRectNative(self, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); - } - - /// - /// To be documented. - /// - public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) - { - AddRectNative(self, pMin, pMax, col, (float)(0.0f), flags, thickness); - } - - /// - /// To be documented. - /// - public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, rounding, flags, thickness); - } - } - - /// - /// To be documented. - /// - public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, rounding, flags, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); - } - } - - /// - /// To be documented. - /// - public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags, thickness); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddRectFilledNative(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[511])(self, pMin, pMax, col, rounding, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[511])((nint)self, pMin, pMax, col, rounding, flags); - #endif - } - - /// - /// To be documented. - /// - public static void AddRectFilled(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - AddRectFilledNative(self, pMin, pMax, col, rounding, flags); - } - - /// - /// To be documented. - /// - public static void AddRectFilled(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - AddRectFilledNative(self, pMin, pMax, col, rounding, (ImDrawFlags)(0)); - } - - /// - /// To be documented. - /// - public static void AddRectFilled(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col) - { - AddRectFilledNative(self, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); - } - - /// - /// To be documented. - /// - public static void AddRectFilled(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - AddRectFilledNative(self, pMin, pMax, col, (float)(0.0f), flags); - } - - /// - /// To be documented. - /// - public static void AddRectFilled(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - AddRectFilledNative((ImDrawList*)pself, pMin, pMax, col, rounding, flags); - } - } - - /// - /// To be documented. - /// - public static void AddRectFilled(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - fixed (ImDrawList* pself = &self) - { - AddRectFilledNative((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void AddRectFilled(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddRectFilledNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void AddRectFilled(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - AddRectFilledNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddRectFilledMultiColorNative(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[512])(self, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - #else - ((delegate* unmanaged[Cdecl])funcTable[512])((nint)self, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - #endif - } - - /// - /// To be documented. - /// - public static void AddRectFilledMultiColor(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) - { - AddRectFilledMultiColorNative(self, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - } - - /// - /// To be documented. - /// - public static void AddRectFilledMultiColor(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) - { - fixed (ImDrawList* pself = &self) - { - AddRectFilledMultiColorNative((ImDrawList*)pself, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddQuadNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[513])(self, p1, p2, p3, p4, col, thickness); - #else - ((delegate* unmanaged[Cdecl])funcTable[513])((nint)self, p1, p2, p3, p4, col, thickness); - #endif - } - - /// - /// To be documented. - /// - public static void AddQuad(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - AddQuadNative(self, p1, p2, p3, p4, col, thickness); - } - - /// - /// To be documented. - /// - public static void AddQuad(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - AddQuadNative(self, p1, p2, p3, p4, col, (float)(1.0f)); - } - - /// - /// To be documented. - /// - public static void AddQuad(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddQuadNative((ImDrawList*)pself, p1, p2, p3, p4, col, thickness); - } - } - - /// - /// To be documented. - /// - public static void AddQuad(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddQuadNative((ImDrawList*)pself, p1, p2, p3, p4, col, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddQuadFilledNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[514])(self, p1, p2, p3, p4, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[514])((nint)self, p1, p2, p3, p4, col); - #endif - } - - /// - /// To be documented. - /// - public static void AddQuadFilled(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - AddQuadFilledNative(self, p1, p2, p3, p4, col); - } - - /// - /// To be documented. - /// - public static void AddQuadFilled(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddQuadFilledNative((ImDrawList*)pself, p1, p2, p3, p4, col); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddTriangleNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[515])(self, p1, p2, p3, col, thickness); - #else - ((delegate* unmanaged[Cdecl])funcTable[515])((nint)self, p1, p2, p3, col, thickness); - #endif - } - - /// - /// To be documented. - /// - public static void AddTriangle(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - AddTriangleNative(self, p1, p2, p3, col, thickness); - } - - /// - /// To be documented. - /// - public static void AddTriangle(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - AddTriangleNative(self, p1, p2, p3, col, (float)(1.0f)); - } - - /// - /// To be documented. - /// - public static void AddTriangle(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddTriangleNative((ImDrawList*)pself, p1, p2, p3, col, thickness); - } - } - - /// - /// To be documented. - /// - public static void AddTriangle(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddTriangleNative((ImDrawList*)pself, p1, p2, p3, col, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddTriangleFilledNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[516])(self, p1, p2, p3, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[516])((nint)self, p1, p2, p3, col); - #endif - } - - /// - /// To be documented. - /// - public static void AddTriangleFilled(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - AddTriangleFilledNative(self, p1, p2, p3, col); - } - - /// - /// To be documented. - /// - public static void AddTriangleFilled(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddTriangleFilledNative((ImDrawList*)pself, p1, p2, p3, col); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddCircleNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[517])(self, center, radius, col, numSegments, thickness); - #else - ((delegate* unmanaged[Cdecl])funcTable[517])((nint)self, center, radius, col, numSegments, thickness); - #endif - } - - /// - /// To be documented. - /// - public static void AddCircle(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - AddCircleNative(self, center, radius, col, numSegments, thickness); - } - - /// - /// To be documented. - /// - public static void AddCircle(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) - { - AddCircleNative(self, center, radius, col, numSegments, (float)(1.0f)); - } - - /// - /// To be documented. - /// - public static void AddCircle(ImDrawListPtr self, Vector2 center, float radius, uint col) - { - AddCircleNative(self, center, radius, col, (int)(0), (float)(1.0f)); - } - - /// - /// To be documented. - /// - public static void AddCircle(ImDrawListPtr self, Vector2 center, float radius, uint col, float thickness) - { - AddCircleNative(self, center, radius, col, (int)(0), thickness); - } - - /// - /// To be documented. - /// - public static void AddCircle(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddCircleNative((ImDrawList*)pself, center, radius, col, numSegments, thickness); - } - } - - /// - /// To be documented. - /// - public static void AddCircle(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddCircleNative((ImDrawList*)pself, center, radius, col, numSegments, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - public static void AddCircle(ref ImDrawList self, Vector2 center, float radius, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddCircleNative((ImDrawList*)pself, center, radius, col, (int)(0), (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - public static void AddCircle(ref ImDrawList self, Vector2 center, float radius, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddCircleNative((ImDrawList*)pself, center, radius, col, (int)(0), thickness); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddCircleFilledNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[518])(self, center, radius, col, numSegments); - #else - ((delegate* unmanaged[Cdecl])funcTable[518])((nint)self, center, radius, col, numSegments); - #endif - } - - /// - /// To be documented. - /// - public static void AddCircleFilled(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) - { - AddCircleFilledNative(self, center, radius, col, numSegments); - } - - /// - /// To be documented. - /// - public static void AddCircleFilled(ImDrawListPtr self, Vector2 center, float radius, uint col) - { - AddCircleFilledNative(self, center, radius, col, (int)(0)); - } - - /// - /// To be documented. - /// - public static void AddCircleFilled(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddCircleFilledNative((ImDrawList*)pself, center, radius, col, numSegments); - } - } - - /// - /// To be documented. - /// - public static void AddCircleFilled(ref ImDrawList self, Vector2 center, float radius, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddCircleFilledNative((ImDrawList*)pself, center, radius, col, (int)(0)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddNgonNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[519])(self, center, radius, col, numSegments, thickness); - #else - ((delegate* unmanaged[Cdecl])funcTable[519])((nint)self, center, radius, col, numSegments, thickness); - #endif - } - - /// - /// To be documented. - /// - public static void AddNgon(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - AddNgonNative(self, center, radius, col, numSegments, thickness); - } - - /// - /// To be documented. - /// - public static void AddNgon(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) - { - AddNgonNative(self, center, radius, col, numSegments, (float)(1.0f)); - } - - /// - /// To be documented. - /// - public static void AddNgon(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddNgonNative((ImDrawList*)pself, center, radius, col, numSegments, thickness); - } - } - - /// - /// To be documented. - /// - public static void AddNgon(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddNgonNative((ImDrawList*)pself, center, radius, col, numSegments, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddNgonFilledNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[520])(self, center, radius, col, numSegments); - #else - ((delegate* unmanaged[Cdecl])funcTable[520])((nint)self, center, radius, col, numSegments); - #endif - } - - /// - /// To be documented. - /// - public static void AddNgonFilled(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) - { - AddNgonFilledNative(self, center, radius, col, numSegments); - } - - /// - /// To be documented. - /// - public static void AddNgonFilled(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddNgonFilledNative((ImDrawList*)pself, center, radius, col, numSegments); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddTextNative(ImDrawList* self, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[521])(self, pos, col, textBegin, textEnd); - #else - ((delegate* unmanaged[Cdecl])funcTable[521])((nint)self, pos, col, (nint)textBegin, (nint)textEnd); - #endif - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - AddTextNative(self, pos, col, textBegin, textEnd); - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, byte* textBegin) - { - AddTextNative(self, pos, col, textBegin, (byte*)(default)); - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, pos, col, textBegin, textEnd); - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, byte* textBegin) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, pos, col, textBegin, (byte*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, pos, col, (byte*)ptextBegin, textEnd); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, pos, col, (byte*)ptextBegin, textEnd); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ReadOnlySpan textBegin) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, pos, col, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, string textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, pos, col, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, textEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ref byte textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, (byte*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, textEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ReadOnlySpan textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, (byte*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, pos, col, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, string textBegin) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, pos, col, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// @@ -5018,5 +821,4230 @@ namespace Dalamud.Bindings.ImGui AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); } } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin) + { + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.090.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.090.cs index 8de479446..d92aff9e9 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.090.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.090.cs @@ -18,4231 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGui { - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// @@ -5044,5 +819,4255 @@ namespace Dalamud.Bindings.ImGui } } } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.091.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.091.cs index 1d248bbd6..f2226190c 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.091.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.091.cs @@ -18,4256 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGui { - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// @@ -5039,5 +789,4246 @@ namespace Dalamud.Bindings.ImGui } } } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* pself = &self) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddPolylineNative(ImDrawList* self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[523])(self, points, numPoints, col, flags, thickness); + #else + ((delegate* unmanaged[Cdecl])funcTable[523])((nint)self, (nint)points, numPoints, col, flags, thickness); + #endif + } + + /// + /// To be documented. + /// + public static void AddPolyline(ImDrawListPtr self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + AddPolylineNative(self, points, numPoints, col, flags, thickness); + } + + /// + /// To be documented. + /// + public static void AddPolyline(ref ImDrawList self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* pself = &self) + { + AddPolylineNative((ImDrawList*)pself, points, numPoints, col, flags, thickness); + } + } + + /// + /// To be documented. + /// + public static void AddPolyline(ImDrawListPtr self, ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + fixed (Vector2* ppoints = &points) + { + AddPolylineNative(self, (Vector2*)ppoints, numPoints, col, flags, thickness); + } + } + + /// + /// To be documented. + /// + public static void AddPolyline(ref ImDrawList self, ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* pself = &self) + { + fixed (Vector2* ppoints = &points) + { + AddPolylineNative((ImDrawList*)pself, (Vector2*)ppoints, numPoints, col, flags, thickness); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddConvexPolyFilledNative(ImDrawList* self, Vector2* points, int numPoints, uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[524])(self, points, numPoints, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[524])((nint)self, (nint)points, numPoints, col); + #endif + } + + /// + /// To be documented. + /// + public static void AddConvexPolyFilled(ImDrawListPtr self, Vector2* points, int numPoints, uint col) + { + AddConvexPolyFilledNative(self, points, numPoints, col); + } + + /// + /// To be documented. + /// + public static void AddConvexPolyFilled(ref ImDrawList self, Vector2* points, int numPoints, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddConvexPolyFilledNative((ImDrawList*)pself, points, numPoints, col); + } + } + + /// + /// To be documented. + /// + public static void AddConvexPolyFilled(ImDrawListPtr self, ref Vector2 points, int numPoints, uint col) + { + fixed (Vector2* ppoints = &points) + { + AddConvexPolyFilledNative(self, (Vector2*)ppoints, numPoints, col); + } + } + + /// + /// To be documented. + /// + public static void AddConvexPolyFilled(ref ImDrawList self, ref Vector2 points, int numPoints, uint col) + { + fixed (ImDrawList* pself = &self) + { + fixed (Vector2* ppoints = &points) + { + AddConvexPolyFilledNative((ImDrawList*)pself, (Vector2*)ppoints, numPoints, col); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddBezierCubicNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[525])(self, p1, p2, p3, p4, col, thickness, numSegments); + #else + ((delegate* unmanaged[Cdecl])funcTable[525])((nint)self, p1, p2, p3, p4, col, thickness, numSegments); + #endif + } + + /// + /// To be documented. + /// + public static void AddBezierCubic(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) + { + AddBezierCubicNative(self, p1, p2, p3, p4, col, thickness, numSegments); + } + + /// + /// To be documented. + /// + public static void AddBezierCubic(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + AddBezierCubicNative(self, p1, p2, p3, p4, col, thickness, (int)(0)); + } + + /// + /// To be documented. + /// + public static void AddBezierCubic(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + AddBezierCubicNative((ImDrawList*)pself, p1, p2, p3, p4, col, thickness, numSegments); + } + } + + /// + /// To be documented. + /// + public static void AddBezierCubic(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + fixed (ImDrawList* pself = &self) + { + AddBezierCubicNative((ImDrawList*)pself, p1, p2, p3, p4, col, thickness, (int)(0)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddBezierQuadraticNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[526])(self, p1, p2, p3, col, thickness, numSegments); + #else + ((delegate* unmanaged[Cdecl])funcTable[526])((nint)self, p1, p2, p3, col, thickness, numSegments); + #endif + } + + /// + /// To be documented. + /// + public static void AddBezierQuadratic(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) + { + AddBezierQuadraticNative(self, p1, p2, p3, col, thickness, numSegments); + } + + /// + /// To be documented. + /// + public static void AddBezierQuadratic(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + AddBezierQuadraticNative(self, p1, p2, p3, col, thickness, (int)(0)); + } + + /// + /// To be documented. + /// + public static void AddBezierQuadratic(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + AddBezierQuadraticNative((ImDrawList*)pself, p1, p2, p3, col, thickness, numSegments); + } + } + + /// + /// To be documented. + /// + public static void AddBezierQuadratic(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + fixed (ImDrawList* pself = &self) + { + AddBezierQuadraticNative((ImDrawList*)pself, p1, p2, p3, col, thickness, (int)(0)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddImageNative(ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[527])(self, userTextureId, pMin, pMax, uvMin, uvMax, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[527])((nint)self, userTextureId, pMin, pMax, uvMin, uvMax, col); + #endif + } + + /// + /// To be documented. + /// + public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) + { + AddImageNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col); + } + + /// + /// To be documented. + /// + public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) + { + AddImageNative(self, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); + } + + /// + /// To be documented. + /// + public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) + { + AddImageNative(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + + /// + /// To be documented. + /// + public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) + { + AddImageNative(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + + /// + /// To be documented. + /// + public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) + { + AddImageNative(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); + } + + /// + /// To be documented. + /// + public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) + { + AddImageNative(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); + } + + /// + /// To be documented. + /// + public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col); + } + } + + /// + /// To be documented. + /// + public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) + { + fixed (ImDrawList* pself = &self) + { + AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); + } + } + + /// + /// To be documented. + /// + public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) + { + fixed (ImDrawList* pself = &self) + { + AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + } + + /// + /// To be documented. + /// + public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) + { + fixed (ImDrawList* pself = &self) + { + AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + } + + /// + /// To be documented. + /// + public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); + } + } + + /// + /// To be documented. + /// + public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddImageQuadNative(ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[528])(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[528])((nint)self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + #endif + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + } + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) + { + fixed (ImDrawList* pself = &self) + { + AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); + } + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) + { + fixed (ImDrawList* pself = &self) + { + AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) + { + fixed (ImDrawList* pself = &self) + { + AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) + { + fixed (ImDrawList* pself = &self) + { + AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) + { + fixed (ImDrawList* pself = &self) + { + AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); + } + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + } + + /// + /// To be documented. + /// + public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + fixed (ImDrawList* pself = &self) + { + AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddImageRoundedNative(ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[529])(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[529])((nint)self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); + #endif + } + + /// + /// To be documented. + /// + public static void AddImageRounded(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) + { + AddImageRoundedNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); + } + + /// + /// To be documented. + /// + public static void AddImageRounded(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) + { + AddImageRoundedNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); + } + + /// + /// To be documented. + /// + public static void AddImageRounded(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* pself = &self) + { + AddImageRoundedNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); + } + } + + /// + /// To be documented. + /// + public static void AddImageRounded(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) + { + fixed (ImDrawList* pself = &self) + { + AddImageRoundedNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PathClearNative(ImDrawList* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[530])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[530])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void PathClear(ImDrawListPtr self) + { + PathClearNative(self); + } + + /// + /// To be documented. + /// + public static void PathClear(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + PathClearNative((ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PathLineToNative(ImDrawList* self, Vector2 pos) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[531])(self, pos); + #else + ((delegate* unmanaged[Cdecl])funcTable[531])((nint)self, pos); + #endif + } + + /// + /// To be documented. + /// + public static void PathLineTo(ImDrawListPtr self, Vector2 pos) + { + PathLineToNative(self, pos); + } + + /// + /// To be documented. + /// + public static void PathLineTo(ref ImDrawList self, Vector2 pos) + { + fixed (ImDrawList* pself = &self) + { + PathLineToNative((ImDrawList*)pself, pos); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PathLineToMergeDuplicateNative(ImDrawList* self, Vector2 pos) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[532])(self, pos); + #else + ((delegate* unmanaged[Cdecl])funcTable[532])((nint)self, pos); + #endif + } + + /// + /// To be documented. + /// + public static void PathLineToMergeDuplicate(ImDrawListPtr self, Vector2 pos) + { + PathLineToMergeDuplicateNative(self, pos); + } + + /// + /// To be documented. + /// + public static void PathLineToMergeDuplicate(ref ImDrawList self, Vector2 pos) + { + fixed (ImDrawList* pself = &self) + { + PathLineToMergeDuplicateNative((ImDrawList*)pself, pos); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PathFillConvexNative(ImDrawList* self, uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[533])(self, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[533])((nint)self, col); + #endif + } + + /// + /// To be documented. + /// + public static void PathFillConvex(ImDrawListPtr self, uint col) + { + PathFillConvexNative(self, col); + } + + /// + /// To be documented. + /// + public static void PathFillConvex(ref ImDrawList self, uint col) + { + fixed (ImDrawList* pself = &self) + { + PathFillConvexNative((ImDrawList*)pself, col); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PathStrokeNative(ImDrawList* self, uint col, ImDrawFlags flags, float thickness) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[534])(self, col, flags, thickness); + #else + ((delegate* unmanaged[Cdecl])funcTable[534])((nint)self, col, flags, thickness); + #endif + } + + /// + /// To be documented. + /// + public static void PathStroke(ImDrawListPtr self, uint col, ImDrawFlags flags, float thickness) + { + PathStrokeNative(self, col, flags, thickness); + } + + /// + /// To be documented. + /// + public static void PathStroke(ImDrawListPtr self, uint col, ImDrawFlags flags) + { + PathStrokeNative(self, col, flags, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public static void PathStroke(ImDrawListPtr self, uint col) + { + PathStrokeNative(self, col, (ImDrawFlags)(0), (float)(1.0f)); + } + + /// + /// To be documented. + /// + public static void PathStroke(ImDrawListPtr self, uint col, float thickness) + { + PathStrokeNative(self, col, (ImDrawFlags)(0), thickness); + } + + /// + /// To be documented. + /// + public static void PathStroke(ref ImDrawList self, uint col, ImDrawFlags flags, float thickness) + { + fixed (ImDrawList* pself = &self) + { + PathStrokeNative((ImDrawList*)pself, col, flags, thickness); + } + } + + /// + /// To be documented. + /// + public static void PathStroke(ref ImDrawList self, uint col, ImDrawFlags flags) + { + fixed (ImDrawList* pself = &self) + { + PathStrokeNative((ImDrawList*)pself, col, flags, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public static void PathStroke(ref ImDrawList self, uint col) + { + fixed (ImDrawList* pself = &self) + { + PathStrokeNative((ImDrawList*)pself, col, (ImDrawFlags)(0), (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + public static void PathStroke(ref ImDrawList self, uint col, float thickness) + { + fixed (ImDrawList* pself = &self) + { + PathStrokeNative((ImDrawList*)pself, col, (ImDrawFlags)(0), thickness); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PathArcToNative(ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[535])(self, center, radius, aMin, aMax, numSegments); + #else + ((delegate* unmanaged[Cdecl])funcTable[535])((nint)self, center, radius, aMin, aMax, numSegments); + #endif + } + + /// + /// To be documented. + /// + public static void PathArcTo(ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + PathArcToNative(self, center, radius, aMin, aMax, numSegments); + } + + /// + /// To be documented. + /// + public static void PathArcTo(ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax) + { + PathArcToNative(self, center, radius, aMin, aMax, (int)(0)); + } + + /// + /// To be documented. + /// + public static void PathArcTo(ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + PathArcToNative((ImDrawList*)pself, center, radius, aMin, aMax, numSegments); + } + } + + /// + /// To be documented. + /// + public static void PathArcTo(ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax) + { + fixed (ImDrawList* pself = &self) + { + PathArcToNative((ImDrawList*)pself, center, radius, aMin, aMax, (int)(0)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PathArcToFastNative(ImDrawList* self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[536])(self, center, radius, aMinOf12, aMaxOf12); + #else + ((delegate* unmanaged[Cdecl])funcTable[536])((nint)self, center, radius, aMinOf12, aMaxOf12); + #endif + } + + /// + /// To be documented. + /// + public static void PathArcToFast(ImDrawListPtr self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) + { + PathArcToFastNative(self, center, radius, aMinOf12, aMaxOf12); + } + + /// + /// To be documented. + /// + public static void PathArcToFast(ref ImDrawList self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) + { + fixed (ImDrawList* pself = &self) + { + PathArcToFastNative((ImDrawList*)pself, center, radius, aMinOf12, aMaxOf12); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PathBezierCubicCurveToNative(ImDrawList* self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[537])(self, p2, p3, p4, numSegments); + #else + ((delegate* unmanaged[Cdecl])funcTable[537])((nint)self, p2, p3, p4, numSegments); + #endif + } + + /// + /// To be documented. + /// + public static void PathBezierCubicCurveTo(ImDrawListPtr self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) + { + PathBezierCubicCurveToNative(self, p2, p3, p4, numSegments); + } + + /// + /// To be documented. + /// + public static void PathBezierCubicCurveTo(ImDrawListPtr self, Vector2 p2, Vector2 p3, Vector2 p4) + { + PathBezierCubicCurveToNative(self, p2, p3, p4, (int)(0)); + } + + /// + /// To be documented. + /// + public static void PathBezierCubicCurveTo(ref ImDrawList self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + PathBezierCubicCurveToNative((ImDrawList*)pself, p2, p3, p4, numSegments); + } + } + + /// + /// To be documented. + /// + public static void PathBezierCubicCurveTo(ref ImDrawList self, Vector2 p2, Vector2 p3, Vector2 p4) + { + fixed (ImDrawList* pself = &self) + { + PathBezierCubicCurveToNative((ImDrawList*)pself, p2, p3, p4, (int)(0)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PathBezierQuadraticCurveToNative(ImDrawList* self, Vector2 p2, Vector2 p3, int numSegments) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[538])(self, p2, p3, numSegments); + #else + ((delegate* unmanaged[Cdecl])funcTable[538])((nint)self, p2, p3, numSegments); + #endif + } + + /// + /// To be documented. + /// + public static void PathBezierQuadraticCurveTo(ImDrawListPtr self, Vector2 p2, Vector2 p3, int numSegments) + { + PathBezierQuadraticCurveToNative(self, p2, p3, numSegments); + } + + /// + /// To be documented. + /// + public static void PathBezierQuadraticCurveTo(ImDrawListPtr self, Vector2 p2, Vector2 p3) + { + PathBezierQuadraticCurveToNative(self, p2, p3, (int)(0)); + } + + /// + /// To be documented. + /// + public static void PathBezierQuadraticCurveTo(ref ImDrawList self, Vector2 p2, Vector2 p3, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + PathBezierQuadraticCurveToNative((ImDrawList*)pself, p2, p3, numSegments); + } + } + + /// + /// To be documented. + /// + public static void PathBezierQuadraticCurveTo(ref ImDrawList self, Vector2 p2, Vector2 p3) + { + fixed (ImDrawList* pself = &self) + { + PathBezierQuadraticCurveToNative((ImDrawList*)pself, p2, p3, (int)(0)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PathRectNative(ImDrawList* self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[539])(self, rectMin, rectMax, rounding, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[539])((nint)self, rectMin, rectMax, rounding, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PathRect(ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) + { + PathRectNative(self, rectMin, rectMax, rounding, flags); + } + + /// + /// To be documented. + /// + public static void PathRect(ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, float rounding) + { + PathRectNative(self, rectMin, rectMax, rounding, (ImDrawFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PathRect(ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax) + { + PathRectNative(self, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PathRect(ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) + { + PathRectNative(self, rectMin, rectMax, (float)(0.0f), flags); + } + + /// + /// To be documented. + /// + public static void PathRect(ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* pself = &self) + { + PathRectNative((ImDrawList*)pself, rectMin, rectMax, rounding, flags); + } + } + + /// + /// To be documented. + /// + public static void PathRect(ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, float rounding) + { + fixed (ImDrawList* pself = &self) + { + PathRectNative((ImDrawList*)pself, rectMin, rectMax, rounding, (ImDrawFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PathRect(ref ImDrawList self, Vector2 rectMin, Vector2 rectMax) + { + fixed (ImDrawList* pself = &self) + { + PathRectNative((ImDrawList*)pself, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PathRect(ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) + { + fixed (ImDrawList* pself = &self) + { + PathRectNative((ImDrawList*)pself, rectMin, rectMax, (float)(0.0f), flags); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddCallbackNative(ImDrawList* self, ImDrawCallback callback, void* callbackData) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, void>)funcTable[540])(self, (delegate*)Utils.GetFunctionPointerForDelegate(callback), callbackData); + #else + ((delegate* unmanaged[Cdecl])funcTable[540])((nint)self, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)callbackData); + #endif + } + + /// + /// To be documented. + /// + public static void AddCallback(ImDrawListPtr self, ImDrawCallback callback, void* callbackData) + { + AddCallbackNative(self, callback, callbackData); + } + + /// + /// To be documented. + /// + public static void AddCallback(ref ImDrawList self, ImDrawCallback callback, void* callbackData) + { + fixed (ImDrawList* pself = &self) + { + AddCallbackNative((ImDrawList*)pself, callback, callbackData); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddDrawCmdNative(ImDrawList* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[541])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[541])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void AddDrawCmd(ImDrawListPtr self) + { + AddDrawCmdNative(self); + } + + /// + /// To be documented. + /// + public static void AddDrawCmd(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + AddDrawCmdNative((ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImDrawList* CloneOutputNative(ImDrawList* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[542])(self); + #else + return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[542])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ImDrawListPtr CloneOutput(ImDrawListPtr self) + { + ImDrawListPtr ret = CloneOutputNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static ImDrawListPtr CloneOutput(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ImDrawListPtr ret = CloneOutputNative((ImDrawList*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ChannelsSplitNative(ImDrawList* self, int count) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[543])(self, count); + #else + ((delegate* unmanaged[Cdecl])funcTable[543])((nint)self, count); + #endif + } + + /// + /// To be documented. + /// + public static void ChannelsSplit(ImDrawListPtr self, int count) + { + ChannelsSplitNative(self, count); + } + + /// + /// To be documented. + /// + public static void ChannelsSplit(ref ImDrawList self, int count) + { + fixed (ImDrawList* pself = &self) + { + ChannelsSplitNative((ImDrawList*)pself, count); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ChannelsMergeNative(ImDrawList* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[544])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[544])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ChannelsMerge(ImDrawListPtr self) + { + ChannelsMergeNative(self); + } + + /// + /// To be documented. + /// + public static void ChannelsMerge(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + ChannelsMergeNative((ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ChannelsSetCurrentNative(ImDrawList* self, int n) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[545])(self, n); + #else + ((delegate* unmanaged[Cdecl])funcTable[545])((nint)self, n); + #endif + } + + /// + /// To be documented. + /// + public static void ChannelsSetCurrent(ImDrawListPtr self, int n) + { + ChannelsSetCurrentNative(self, n); + } + + /// + /// To be documented. + /// + public static void ChannelsSetCurrent(ref ImDrawList self, int n) + { + fixed (ImDrawList* pself = &self) + { + ChannelsSetCurrentNative((ImDrawList*)pself, n); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PrimReserveNative(ImDrawList* self, int idxCount, int vtxCount) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[546])(self, idxCount, vtxCount); + #else + ((delegate* unmanaged[Cdecl])funcTable[546])((nint)self, idxCount, vtxCount); + #endif + } + + /// + /// To be documented. + /// + public static void PrimReserve(ImDrawListPtr self, int idxCount, int vtxCount) + { + PrimReserveNative(self, idxCount, vtxCount); + } + + /// + /// To be documented. + /// + public static void PrimReserve(ref ImDrawList self, int idxCount, int vtxCount) + { + fixed (ImDrawList* pself = &self) + { + PrimReserveNative((ImDrawList*)pself, idxCount, vtxCount); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PrimUnreserveNative(ImDrawList* self, int idxCount, int vtxCount) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[547])(self, idxCount, vtxCount); + #else + ((delegate* unmanaged[Cdecl])funcTable[547])((nint)self, idxCount, vtxCount); + #endif + } + + /// + /// To be documented. + /// + public static void PrimUnreserve(ImDrawListPtr self, int idxCount, int vtxCount) + { + PrimUnreserveNative(self, idxCount, vtxCount); + } + + /// + /// To be documented. + /// + public static void PrimUnreserve(ref ImDrawList self, int idxCount, int vtxCount) + { + fixed (ImDrawList* pself = &self) + { + PrimUnreserveNative((ImDrawList*)pself, idxCount, vtxCount); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PrimRectNative(ImDrawList* self, Vector2 a, Vector2 b, uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[548])(self, a, b, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[548])((nint)self, a, b, col); + #endif + } + + /// + /// To be documented. + /// + public static void PrimRect(ImDrawListPtr self, Vector2 a, Vector2 b, uint col) + { + PrimRectNative(self, a, b, col); + } + + /// + /// To be documented. + /// + public static void PrimRect(ref ImDrawList self, Vector2 a, Vector2 b, uint col) + { + fixed (ImDrawList* pself = &self) + { + PrimRectNative((ImDrawList*)pself, a, b, col); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PrimRectUVNative(ImDrawList* self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[549])(self, a, b, uvA, uvB, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[549])((nint)self, a, b, uvA, uvB, col); + #endif + } + + /// + /// To be documented. + /// + public static void PrimRectUV(ImDrawListPtr self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) + { + PrimRectUVNative(self, a, b, uvA, uvB, col); + } + + /// + /// To be documented. + /// + public static void PrimRectUV(ref ImDrawList self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) + { + fixed (ImDrawList* pself = &self) + { + PrimRectUVNative((ImDrawList*)pself, a, b, uvA, uvB, col); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PrimQuadUVNative(ImDrawList* self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[550])(self, a, b, c, d, uvA, uvB, uvC, uvD, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[550])((nint)self, a, b, c, d, uvA, uvB, uvC, uvD, col); + #endif + } + + /// + /// To be documented. + /// + public static void PrimQuadUV(ImDrawListPtr self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) + { + PrimQuadUVNative(self, a, b, c, d, uvA, uvB, uvC, uvD, col); + } + + /// + /// To be documented. + /// + public static void PrimQuadUV(ref ImDrawList self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) + { + fixed (ImDrawList* pself = &self) + { + PrimQuadUVNative((ImDrawList*)pself, a, b, c, d, uvA, uvB, uvC, uvD, col); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PrimWriteVtxNative(ImDrawList* self, Vector2 pos, Vector2 uv, uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[551])(self, pos, uv, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[551])((nint)self, pos, uv, col); + #endif + } + + /// + /// To be documented. + /// + public static void PrimWriteVtx(ImDrawListPtr self, Vector2 pos, Vector2 uv, uint col) + { + PrimWriteVtxNative(self, pos, uv, col); + } + + /// + /// To be documented. + /// + public static void PrimWriteVtx(ref ImDrawList self, Vector2 pos, Vector2 uv, uint col) + { + fixed (ImDrawList* pself = &self) + { + PrimWriteVtxNative((ImDrawList*)pself, pos, uv, col); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PrimWriteIdxNative(ImDrawList* self, ushort idx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[552])(self, idx); + #else + ((delegate* unmanaged[Cdecl])funcTable[552])((nint)self, idx); + #endif + } + + /// + /// To be documented. + /// + public static void PrimWriteIdx(ImDrawListPtr self, ushort idx) + { + PrimWriteIdxNative(self, idx); + } + + /// + /// To be documented. + /// + public static void PrimWriteIdx(ref ImDrawList self, ushort idx) + { + fixed (ImDrawList* pself = &self) + { + PrimWriteIdxNative((ImDrawList*)pself, idx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PrimVtxNative(ImDrawList* self, Vector2 pos, Vector2 uv, uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[553])(self, pos, uv, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[553])((nint)self, pos, uv, col); + #endif + } + + /// + /// To be documented. + /// + public static void PrimVtx(ImDrawListPtr self, Vector2 pos, Vector2 uv, uint col) + { + PrimVtxNative(self, pos, uv, col); + } + + /// + /// To be documented. + /// + public static void PrimVtx(ref ImDrawList self, Vector2 pos, Vector2 uv, uint col) + { + fixed (ImDrawList* pself = &self) + { + PrimVtxNative((ImDrawList*)pself, pos, uv, col); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void _ResetForNewFrameNative(ImDrawList* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[554])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[554])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void _ResetForNewFrame(ImDrawListPtr self) + { + _ResetForNewFrameNative(self); + } + + /// + /// To be documented. + /// + public static void _ResetForNewFrame(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + _ResetForNewFrameNative((ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void _ClearFreeMemoryNative(ImDrawList* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[555])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[555])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void _ClearFreeMemory(ImDrawListPtr self) + { + _ClearFreeMemoryNative(self); + } + + /// + /// To be documented. + /// + public static void _ClearFreeMemory(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + _ClearFreeMemoryNative((ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void _PopUnusedDrawCmdNative(ImDrawList* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[556])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[556])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void _PopUnusedDrawCmd(ImDrawListPtr self) + { + _PopUnusedDrawCmdNative(self); + } + + /// + /// To be documented. + /// + public static void _PopUnusedDrawCmd(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + _PopUnusedDrawCmdNative((ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void _TryMergeDrawCmdsNative(ImDrawList* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[557])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[557])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void _TryMergeDrawCmds(ImDrawListPtr self) + { + _TryMergeDrawCmdsNative(self); + } + + /// + /// To be documented. + /// + public static void _TryMergeDrawCmds(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + _TryMergeDrawCmdsNative((ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void _OnChangedClipRectNative(ImDrawList* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[558])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[558])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void _OnChangedClipRect(ImDrawListPtr self) + { + _OnChangedClipRectNative(self); + } + + /// + /// To be documented. + /// + public static void _OnChangedClipRect(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + _OnChangedClipRectNative((ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void _OnChangedTextureIDNative(ImDrawList* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[559])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[559])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void _OnChangedTextureID(ImDrawListPtr self) + { + _OnChangedTextureIDNative(self); + } + + /// + /// To be documented. + /// + public static void _OnChangedTextureID(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + _OnChangedTextureIDNative((ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void _OnChangedVtxOffsetNative(ImDrawList* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[560])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[560])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void _OnChangedVtxOffset(ImDrawListPtr self) + { + _OnChangedVtxOffsetNative(self); + } + + /// + /// To be documented. + /// + public static void _OnChangedVtxOffset(ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + _OnChangedVtxOffsetNative((ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int _CalcCircleAutoSegmentCountNative(ImDrawList* self, float radius) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[561])(self, radius); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[561])((nint)self, radius); + #endif + } + + /// + /// To be documented. + /// + public static int _CalcCircleAutoSegmentCount(ImDrawListPtr self, float radius) + { + int ret = _CalcCircleAutoSegmentCountNative(self, radius); + return ret; + } + + /// + /// To be documented. + /// + public static int _CalcCircleAutoSegmentCount(ref ImDrawList self, float radius) + { + fixed (ImDrawList* pself = &self) + { + int ret = _CalcCircleAutoSegmentCountNative((ImDrawList*)pself, radius); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void _PathArcToFastExNative(ImDrawList* self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[562])(self, center, radius, aMinSample, aMaxSample, aStep); + #else + ((delegate* unmanaged[Cdecl])funcTable[562])((nint)self, center, radius, aMinSample, aMaxSample, aStep); + #endif + } + + /// + /// To be documented. + /// + public static void _PathArcToFastEx(ImDrawListPtr self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) + { + _PathArcToFastExNative(self, center, radius, aMinSample, aMaxSample, aStep); + } + + /// + /// To be documented. + /// + public static void _PathArcToFastEx(ref ImDrawList self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) + { + fixed (ImDrawList* pself = &self) + { + _PathArcToFastExNative((ImDrawList*)pself, center, radius, aMinSample, aMaxSample, aStep); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void _PathArcToNNative(ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[563])(self, center, radius, aMin, aMax, numSegments); + #else + ((delegate* unmanaged[Cdecl])funcTable[563])((nint)self, center, radius, aMin, aMax, numSegments); + #endif + } + + /// + /// To be documented. + /// + public static void _PathArcToN(ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + _PathArcToNNative(self, center, radius, aMin, aMax, numSegments); + } + + /// + /// To be documented. + /// + public static void _PathArcToN(ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + fixed (ImDrawList* pself = &self) + { + _PathArcToNNative((ImDrawList*)pself, center, radius, aMin, aMax, numSegments); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImDrawData* ImDrawDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[564])(); + #else + return (ImDrawData*)((delegate* unmanaged[Cdecl])funcTable[564])(); + #endif + } + + /// + /// To be documented. + /// + public static ImDrawDataPtr ImDrawData() + { + ImDrawDataPtr ret = ImDrawDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImDrawData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[565])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[565])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImDrawDataPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImDrawData self) + { + fixed (ImDrawData* pself = &self) + { + DestroyNative((ImDrawData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearNative(ImDrawData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[566])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[566])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Clear(ImDrawDataPtr self) + { + ClearNative(self); + } + + /// + /// To be documented. + /// + public static void Clear(ref ImDrawData self) + { + fixed (ImDrawData* pself = &self) + { + ClearNative((ImDrawData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DeIndexAllBuffersNative(ImDrawData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[567])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[567])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void DeIndexAllBuffers(ImDrawDataPtr self) + { + DeIndexAllBuffersNative(self); + } + + /// + /// To be documented. + /// + public static void DeIndexAllBuffers(ref ImDrawData self) + { + fixed (ImDrawData* pself = &self) + { + DeIndexAllBuffersNative((ImDrawData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ScaleClipRectsNative(ImDrawData* self, Vector2 fbScale) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[568])(self, fbScale); + #else + ((delegate* unmanaged[Cdecl])funcTable[568])((nint)self, fbScale); + #endif + } + + /// + /// To be documented. + /// + public static void ScaleClipRects(ImDrawDataPtr self, Vector2 fbScale) + { + ScaleClipRectsNative(self, fbScale); + } + + /// + /// To be documented. + /// + public static void ScaleClipRects(ref ImDrawData self, Vector2 fbScale) + { + fixed (ImDrawData* pself = &self) + { + ScaleClipRectsNative((ImDrawData*)pself, fbScale); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImFontConfig* ImFontConfigNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[569])(); + #else + return (ImFontConfig*)((delegate* unmanaged[Cdecl])funcTable[569])(); + #endif + } + + /// + /// To be documented. + /// + public static ImFontConfigPtr ImFontConfig() + { + ImFontConfigPtr ret = ImFontConfigNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImFontConfig* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[570])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[570])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImFontConfigPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImFontConfig self) + { + fixed (ImFontConfig* pself = &self) + { + DestroyNative((ImFontConfig*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilderNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[571])(); + #else + return (ImFontGlyphRangesBuilder*)((delegate* unmanaged[Cdecl])funcTable[571])(); + #endif + } + + /// + /// To be documented. + /// + public static ImFontGlyphRangesBuilderPtr ImFontGlyphRangesBuilder() + { + ImFontGlyphRangesBuilderPtr ret = ImFontGlyphRangesBuilderNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImFontGlyphRangesBuilder* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[572])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[572])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImFontGlyphRangesBuilderPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImFontGlyphRangesBuilder self) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + DestroyNative((ImFontGlyphRangesBuilder*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearNative(ImFontGlyphRangesBuilder* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[573])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[573])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Clear(ImFontGlyphRangesBuilderPtr self) + { + ClearNative(self); + } + + /// + /// To be documented. + /// + public static void Clear(ref ImFontGlyphRangesBuilder self) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + ClearNative((ImFontGlyphRangesBuilder*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte GetBitNative(ImFontGlyphRangesBuilder* self, nuint n) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[574])(self, n); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[574])((nint)self, n); + #endif + } + + /// + /// To be documented. + /// + public static bool GetBit(ImFontGlyphRangesBuilderPtr self, nuint n) + { + byte ret = GetBitNative(self, n); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool GetBit(ref ImFontGlyphRangesBuilder self, nuint n) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + byte ret = GetBitNative((ImFontGlyphRangesBuilder*)pself, n); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetBitNative(ImFontGlyphRangesBuilder* self, nuint n) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[575])(self, n); + #else + ((delegate* unmanaged[Cdecl])funcTable[575])((nint)self, n); + #endif + } + + /// + /// To be documented. + /// + public static void SetBit(ImFontGlyphRangesBuilderPtr self, nuint n) + { + SetBitNative(self, n); + } + + /// + /// To be documented. + /// + public static void SetBit(ref ImFontGlyphRangesBuilder self, nuint n) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + SetBitNative((ImFontGlyphRangesBuilder*)pself, n); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddCharNative(ImFontGlyphRangesBuilder* self, ushort c) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[576])(self, c); + #else + ((delegate* unmanaged[Cdecl])funcTable[576])((nint)self, c); + #endif + } + + /// + /// To be documented. + /// + public static void AddChar(ImFontGlyphRangesBuilderPtr self, ushort c) + { + AddCharNative(self, c); + } + + /// + /// To be documented. + /// + public static void AddChar(ref ImFontGlyphRangesBuilder self, ushort c) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + AddCharNative((ImFontGlyphRangesBuilder*)pself, c); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddTextNative(ImFontGlyphRangesBuilder* self, byte* text, byte* textEnd) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[577])(self, text, textEnd); + #else + ((delegate* unmanaged[Cdecl])funcTable[577])((nint)self, (nint)text, (nint)textEnd); + #endif + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text, byte* textEnd) + { + AddTextNative(self, text, textEnd); + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text) + { + AddTextNative(self, text, (byte*)(default)); + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text, byte* textEnd) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + AddTextNative((ImFontGlyphRangesBuilder*)pself, text, textEnd); + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + AddTextNative((ImFontGlyphRangesBuilder*)pself, text, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + AddTextNative(self, (byte*)ptext, textEnd); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text) + { + fixed (byte* ptext = &text) + { + AddTextNative(self, (byte*)ptext, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan text, byte* textEnd) + { + fixed (byte* ptext = text) + { + AddTextNative(self, (byte*)ptext, textEnd); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan text) + { + fixed (byte* ptext = text) + { + AddTextNative(self, (byte*)ptext, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, string text, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, string text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, ref byte text, byte* textEnd) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + fixed (byte* ptext = &text) + { + AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, textEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, ref byte text) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + fixed (byte* ptext = &text) + { + AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, ReadOnlySpan text, byte* textEnd) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + fixed (byte* ptext = text) + { + AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, textEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, ReadOnlySpan text) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + fixed (byte* ptext = text) + { + AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, string text, byte* textEnd) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImFontGlyphRangesBuilder*)pself, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, string text) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImFontGlyphRangesBuilder*)pself, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, text, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, text, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text, ref byte textEnd) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImFontGlyphRangesBuilder*)pself, text, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text, ReadOnlySpan textEnd) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative((ImFontGlyphRangesBuilder*)pself, text, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text, string textEnd) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative((ImFontGlyphRangesBuilder*)pself, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, string text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text, string textEnd) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan text, ref byte textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan text, string textEnd) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, string text, ref byte textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ImFontGlyphRangesBuilderPtr self, string text, ReadOnlySpan textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextNative(self, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddText(ref ImFontGlyphRangesBuilder self, ref byte text, ref byte textEnd) + { + fixed (ImFontGlyphRangesBuilder* pself = &self) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.092.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.092.cs index cc5bad512..108b26583 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.092.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.092.cs @@ -18,4287 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGui { - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddPolylineNative(ImDrawList* self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[523])(self, points, numPoints, col, flags, thickness); - #else - ((delegate* unmanaged[Cdecl])funcTable[523])((nint)self, (nint)points, numPoints, col, flags, thickness); - #endif - } - - /// - /// To be documented. - /// - public static void AddPolyline(ImDrawListPtr self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - AddPolylineNative(self, points, numPoints, col, flags, thickness); - } - - /// - /// To be documented. - /// - public static void AddPolyline(ref ImDrawList self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddPolylineNative((ImDrawList*)pself, points, numPoints, col, flags, thickness); - } - } - - /// - /// To be documented. - /// - public static void AddPolyline(ImDrawListPtr self, ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - fixed (Vector2* ppoints = &points) - { - AddPolylineNative(self, (Vector2*)ppoints, numPoints, col, flags, thickness); - } - } - - /// - /// To be documented. - /// - public static void AddPolyline(ref ImDrawList self, ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector2* ppoints = &points) - { - AddPolylineNative((ImDrawList*)pself, (Vector2*)ppoints, numPoints, col, flags, thickness); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddConvexPolyFilledNative(ImDrawList* self, Vector2* points, int numPoints, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[524])(self, points, numPoints, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[524])((nint)self, (nint)points, numPoints, col); - #endif - } - - /// - /// To be documented. - /// - public static void AddConvexPolyFilled(ImDrawListPtr self, Vector2* points, int numPoints, uint col) - { - AddConvexPolyFilledNative(self, points, numPoints, col); - } - - /// - /// To be documented. - /// - public static void AddConvexPolyFilled(ref ImDrawList self, Vector2* points, int numPoints, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddConvexPolyFilledNative((ImDrawList*)pself, points, numPoints, col); - } - } - - /// - /// To be documented. - /// - public static void AddConvexPolyFilled(ImDrawListPtr self, ref Vector2 points, int numPoints, uint col) - { - fixed (Vector2* ppoints = &points) - { - AddConvexPolyFilledNative(self, (Vector2*)ppoints, numPoints, col); - } - } - - /// - /// To be documented. - /// - public static void AddConvexPolyFilled(ref ImDrawList self, ref Vector2 points, int numPoints, uint col) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector2* ppoints = &points) - { - AddConvexPolyFilledNative((ImDrawList*)pself, (Vector2*)ppoints, numPoints, col); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddBezierCubicNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[525])(self, p1, p2, p3, p4, col, thickness, numSegments); - #else - ((delegate* unmanaged[Cdecl])funcTable[525])((nint)self, p1, p2, p3, p4, col, thickness, numSegments); - #endif - } - - /// - /// To be documented. - /// - public static void AddBezierCubic(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) - { - AddBezierCubicNative(self, p1, p2, p3, p4, col, thickness, numSegments); - } - - /// - /// To be documented. - /// - public static void AddBezierCubic(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - AddBezierCubicNative(self, p1, p2, p3, p4, col, thickness, (int)(0)); - } - - /// - /// To be documented. - /// - public static void AddBezierCubic(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddBezierCubicNative((ImDrawList*)pself, p1, p2, p3, p4, col, thickness, numSegments); - } - } - - /// - /// To be documented. - /// - public static void AddBezierCubic(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddBezierCubicNative((ImDrawList*)pself, p1, p2, p3, p4, col, thickness, (int)(0)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddBezierQuadraticNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[526])(self, p1, p2, p3, col, thickness, numSegments); - #else - ((delegate* unmanaged[Cdecl])funcTable[526])((nint)self, p1, p2, p3, col, thickness, numSegments); - #endif - } - - /// - /// To be documented. - /// - public static void AddBezierQuadratic(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) - { - AddBezierQuadraticNative(self, p1, p2, p3, col, thickness, numSegments); - } - - /// - /// To be documented. - /// - public static void AddBezierQuadratic(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - AddBezierQuadraticNative(self, p1, p2, p3, col, thickness, (int)(0)); - } - - /// - /// To be documented. - /// - public static void AddBezierQuadratic(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddBezierQuadraticNative((ImDrawList*)pself, p1, p2, p3, col, thickness, numSegments); - } - } - - /// - /// To be documented. - /// - public static void AddBezierQuadratic(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddBezierQuadraticNative((ImDrawList*)pself, p1, p2, p3, col, thickness, (int)(0)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddImageNative(ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[527])(self, userTextureId, pMin, pMax, uvMin, uvMax, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[527])((nint)self, userTextureId, pMin, pMax, uvMin, uvMax, col); - #endif - } - - /// - /// To be documented. - /// - public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) - { - AddImageNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col); - } - - /// - /// To be documented. - /// - public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) - { - AddImageNative(self, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); - } - - /// - /// To be documented. - /// - public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) - { - AddImageNative(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - - /// - /// To be documented. - /// - public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) - { - AddImageNative(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - - /// - /// To be documented. - /// - public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) - { - AddImageNative(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); - } - - /// - /// To be documented. - /// - public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) - { - AddImageNative(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); - } - - /// - /// To be documented. - /// - public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col); - } - } - - /// - /// To be documented. - /// - public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); - } - } - - /// - /// To be documented. - /// - public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - } - - /// - /// To be documented. - /// - public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - } - - /// - /// To be documented. - /// - public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); - } - } - - /// - /// To be documented. - /// - public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddImageQuadNative(ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[528])(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[528])((nint)self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - #endif - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - } - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); - } - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); - } - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - - /// - /// To be documented. - /// - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddImageRoundedNative(ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[529])(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[529])((nint)self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - #endif - } - - /// - /// To be documented. - /// - public static void AddImageRounded(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) - { - AddImageRoundedNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - } - - /// - /// To be documented. - /// - public static void AddImageRounded(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) - { - AddImageRoundedNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); - } - - /// - /// To be documented. - /// - public static void AddImageRounded(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - AddImageRoundedNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - } - } - - /// - /// To be documented. - /// - public static void AddImageRounded(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) - { - fixed (ImDrawList* pself = &self) - { - AddImageRoundedNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathClearNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[530])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[530])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void PathClear(ImDrawListPtr self) - { - PathClearNative(self); - } - - /// - /// To be documented. - /// - public static void PathClear(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - PathClearNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathLineToNative(ImDrawList* self, Vector2 pos) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[531])(self, pos); - #else - ((delegate* unmanaged[Cdecl])funcTable[531])((nint)self, pos); - #endif - } - - /// - /// To be documented. - /// - public static void PathLineTo(ImDrawListPtr self, Vector2 pos) - { - PathLineToNative(self, pos); - } - - /// - /// To be documented. - /// - public static void PathLineTo(ref ImDrawList self, Vector2 pos) - { - fixed (ImDrawList* pself = &self) - { - PathLineToNative((ImDrawList*)pself, pos); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathLineToMergeDuplicateNative(ImDrawList* self, Vector2 pos) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[532])(self, pos); - #else - ((delegate* unmanaged[Cdecl])funcTable[532])((nint)self, pos); - #endif - } - - /// - /// To be documented. - /// - public static void PathLineToMergeDuplicate(ImDrawListPtr self, Vector2 pos) - { - PathLineToMergeDuplicateNative(self, pos); - } - - /// - /// To be documented. - /// - public static void PathLineToMergeDuplicate(ref ImDrawList self, Vector2 pos) - { - fixed (ImDrawList* pself = &self) - { - PathLineToMergeDuplicateNative((ImDrawList*)pself, pos); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathFillConvexNative(ImDrawList* self, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[533])(self, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[533])((nint)self, col); - #endif - } - - /// - /// To be documented. - /// - public static void PathFillConvex(ImDrawListPtr self, uint col) - { - PathFillConvexNative(self, col); - } - - /// - /// To be documented. - /// - public static void PathFillConvex(ref ImDrawList self, uint col) - { - fixed (ImDrawList* pself = &self) - { - PathFillConvexNative((ImDrawList*)pself, col); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathStrokeNative(ImDrawList* self, uint col, ImDrawFlags flags, float thickness) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[534])(self, col, flags, thickness); - #else - ((delegate* unmanaged[Cdecl])funcTable[534])((nint)self, col, flags, thickness); - #endif - } - - /// - /// To be documented. - /// - public static void PathStroke(ImDrawListPtr self, uint col, ImDrawFlags flags, float thickness) - { - PathStrokeNative(self, col, flags, thickness); - } - - /// - /// To be documented. - /// - public static void PathStroke(ImDrawListPtr self, uint col, ImDrawFlags flags) - { - PathStrokeNative(self, col, flags, (float)(1.0f)); - } - - /// - /// To be documented. - /// - public static void PathStroke(ImDrawListPtr self, uint col) - { - PathStrokeNative(self, col, (ImDrawFlags)(0), (float)(1.0f)); - } - - /// - /// To be documented. - /// - public static void PathStroke(ImDrawListPtr self, uint col, float thickness) - { - PathStrokeNative(self, col, (ImDrawFlags)(0), thickness); - } - - /// - /// To be documented. - /// - public static void PathStroke(ref ImDrawList self, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* pself = &self) - { - PathStrokeNative((ImDrawList*)pself, col, flags, thickness); - } - } - - /// - /// To be documented. - /// - public static void PathStroke(ref ImDrawList self, uint col, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - PathStrokeNative((ImDrawList*)pself, col, flags, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - public static void PathStroke(ref ImDrawList self, uint col) - { - fixed (ImDrawList* pself = &self) - { - PathStrokeNative((ImDrawList*)pself, col, (ImDrawFlags)(0), (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - public static void PathStroke(ref ImDrawList self, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - PathStrokeNative((ImDrawList*)pself, col, (ImDrawFlags)(0), thickness); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathArcToNative(ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[535])(self, center, radius, aMin, aMax, numSegments); - #else - ((delegate* unmanaged[Cdecl])funcTable[535])((nint)self, center, radius, aMin, aMax, numSegments); - #endif - } - - /// - /// To be documented. - /// - public static void PathArcTo(ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - PathArcToNative(self, center, radius, aMin, aMax, numSegments); - } - - /// - /// To be documented. - /// - public static void PathArcTo(ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax) - { - PathArcToNative(self, center, radius, aMin, aMax, (int)(0)); - } - - /// - /// To be documented. - /// - public static void PathArcTo(ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - PathArcToNative((ImDrawList*)pself, center, radius, aMin, aMax, numSegments); - } - } - - /// - /// To be documented. - /// - public static void PathArcTo(ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax) - { - fixed (ImDrawList* pself = &self) - { - PathArcToNative((ImDrawList*)pself, center, radius, aMin, aMax, (int)(0)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathArcToFastNative(ImDrawList* self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[536])(self, center, radius, aMinOf12, aMaxOf12); - #else - ((delegate* unmanaged[Cdecl])funcTable[536])((nint)self, center, radius, aMinOf12, aMaxOf12); - #endif - } - - /// - /// To be documented. - /// - public static void PathArcToFast(ImDrawListPtr self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) - { - PathArcToFastNative(self, center, radius, aMinOf12, aMaxOf12); - } - - /// - /// To be documented. - /// - public static void PathArcToFast(ref ImDrawList self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) - { - fixed (ImDrawList* pself = &self) - { - PathArcToFastNative((ImDrawList*)pself, center, radius, aMinOf12, aMaxOf12); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathBezierCubicCurveToNative(ImDrawList* self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[537])(self, p2, p3, p4, numSegments); - #else - ((delegate* unmanaged[Cdecl])funcTable[537])((nint)self, p2, p3, p4, numSegments); - #endif - } - - /// - /// To be documented. - /// - public static void PathBezierCubicCurveTo(ImDrawListPtr self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) - { - PathBezierCubicCurveToNative(self, p2, p3, p4, numSegments); - } - - /// - /// To be documented. - /// - public static void PathBezierCubicCurveTo(ImDrawListPtr self, Vector2 p2, Vector2 p3, Vector2 p4) - { - PathBezierCubicCurveToNative(self, p2, p3, p4, (int)(0)); - } - - /// - /// To be documented. - /// - public static void PathBezierCubicCurveTo(ref ImDrawList self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - PathBezierCubicCurveToNative((ImDrawList*)pself, p2, p3, p4, numSegments); - } - } - - /// - /// To be documented. - /// - public static void PathBezierCubicCurveTo(ref ImDrawList self, Vector2 p2, Vector2 p3, Vector2 p4) - { - fixed (ImDrawList* pself = &self) - { - PathBezierCubicCurveToNative((ImDrawList*)pself, p2, p3, p4, (int)(0)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathBezierQuadraticCurveToNative(ImDrawList* self, Vector2 p2, Vector2 p3, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[538])(self, p2, p3, numSegments); - #else - ((delegate* unmanaged[Cdecl])funcTable[538])((nint)self, p2, p3, numSegments); - #endif - } - - /// - /// To be documented. - /// - public static void PathBezierQuadraticCurveTo(ImDrawListPtr self, Vector2 p2, Vector2 p3, int numSegments) - { - PathBezierQuadraticCurveToNative(self, p2, p3, numSegments); - } - - /// - /// To be documented. - /// - public static void PathBezierQuadraticCurveTo(ImDrawListPtr self, Vector2 p2, Vector2 p3) - { - PathBezierQuadraticCurveToNative(self, p2, p3, (int)(0)); - } - - /// - /// To be documented. - /// - public static void PathBezierQuadraticCurveTo(ref ImDrawList self, Vector2 p2, Vector2 p3, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - PathBezierQuadraticCurveToNative((ImDrawList*)pself, p2, p3, numSegments); - } - } - - /// - /// To be documented. - /// - public static void PathBezierQuadraticCurveTo(ref ImDrawList self, Vector2 p2, Vector2 p3) - { - fixed (ImDrawList* pself = &self) - { - PathBezierQuadraticCurveToNative((ImDrawList*)pself, p2, p3, (int)(0)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathRectNative(ImDrawList* self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[539])(self, rectMin, rectMax, rounding, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[539])((nint)self, rectMin, rectMax, rounding, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PathRect(ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) - { - PathRectNative(self, rectMin, rectMax, rounding, flags); - } - - /// - /// To be documented. - /// - public static void PathRect(ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, float rounding) - { - PathRectNative(self, rectMin, rectMax, rounding, (ImDrawFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PathRect(ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax) - { - PathRectNative(self, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PathRect(ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) - { - PathRectNative(self, rectMin, rectMax, (float)(0.0f), flags); - } - - /// - /// To be documented. - /// - public static void PathRect(ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - PathRectNative((ImDrawList*)pself, rectMin, rectMax, rounding, flags); - } - } - - /// - /// To be documented. - /// - public static void PathRect(ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, float rounding) - { - fixed (ImDrawList* pself = &self) - { - PathRectNative((ImDrawList*)pself, rectMin, rectMax, rounding, (ImDrawFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PathRect(ref ImDrawList self, Vector2 rectMin, Vector2 rectMax) - { - fixed (ImDrawList* pself = &self) - { - PathRectNative((ImDrawList*)pself, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PathRect(ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - PathRectNative((ImDrawList*)pself, rectMin, rectMax, (float)(0.0f), flags); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddCallbackNative(ImDrawList* self, ImDrawCallback callback, void* callbackData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl], void*, void>)funcTable[540])(self, (delegate*)Utils.GetFunctionPointerForDelegate(callback), callbackData); - #else - ((delegate* unmanaged[Cdecl])funcTable[540])((nint)self, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)callbackData); - #endif - } - - /// - /// To be documented. - /// - public static void AddCallback(ImDrawListPtr self, ImDrawCallback callback, void* callbackData) - { - AddCallbackNative(self, callback, callbackData); - } - - /// - /// To be documented. - /// - public static void AddCallback(ref ImDrawList self, ImDrawCallback callback, void* callbackData) - { - fixed (ImDrawList* pself = &self) - { - AddCallbackNative((ImDrawList*)pself, callback, callbackData); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddDrawCmdNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[541])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[541])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void AddDrawCmd(ImDrawListPtr self) - { - AddDrawCmdNative(self); - } - - /// - /// To be documented. - /// - public static void AddDrawCmd(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - AddDrawCmdNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawList* CloneOutputNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[542])(self); - #else - return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[542])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static ImDrawListPtr CloneOutput(ImDrawListPtr self) - { - ImDrawListPtr ret = CloneOutputNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static ImDrawListPtr CloneOutput(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImDrawListPtr ret = CloneOutputNative((ImDrawList*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ChannelsSplitNative(ImDrawList* self, int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[543])(self, count); - #else - ((delegate* unmanaged[Cdecl])funcTable[543])((nint)self, count); - #endif - } - - /// - /// To be documented. - /// - public static void ChannelsSplit(ImDrawListPtr self, int count) - { - ChannelsSplitNative(self, count); - } - - /// - /// To be documented. - /// - public static void ChannelsSplit(ref ImDrawList self, int count) - { - fixed (ImDrawList* pself = &self) - { - ChannelsSplitNative((ImDrawList*)pself, count); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ChannelsMergeNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[544])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[544])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void ChannelsMerge(ImDrawListPtr self) - { - ChannelsMergeNative(self); - } - - /// - /// To be documented. - /// - public static void ChannelsMerge(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ChannelsMergeNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ChannelsSetCurrentNative(ImDrawList* self, int n) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[545])(self, n); - #else - ((delegate* unmanaged[Cdecl])funcTable[545])((nint)self, n); - #endif - } - - /// - /// To be documented. - /// - public static void ChannelsSetCurrent(ImDrawListPtr self, int n) - { - ChannelsSetCurrentNative(self, n); - } - - /// - /// To be documented. - /// - public static void ChannelsSetCurrent(ref ImDrawList self, int n) - { - fixed (ImDrawList* pself = &self) - { - ChannelsSetCurrentNative((ImDrawList*)pself, n); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PrimReserveNative(ImDrawList* self, int idxCount, int vtxCount) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[546])(self, idxCount, vtxCount); - #else - ((delegate* unmanaged[Cdecl])funcTable[546])((nint)self, idxCount, vtxCount); - #endif - } - - /// - /// To be documented. - /// - public static void PrimReserve(ImDrawListPtr self, int idxCount, int vtxCount) - { - PrimReserveNative(self, idxCount, vtxCount); - } - - /// - /// To be documented. - /// - public static void PrimReserve(ref ImDrawList self, int idxCount, int vtxCount) - { - fixed (ImDrawList* pself = &self) - { - PrimReserveNative((ImDrawList*)pself, idxCount, vtxCount); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PrimUnreserveNative(ImDrawList* self, int idxCount, int vtxCount) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[547])(self, idxCount, vtxCount); - #else - ((delegate* unmanaged[Cdecl])funcTable[547])((nint)self, idxCount, vtxCount); - #endif - } - - /// - /// To be documented. - /// - public static void PrimUnreserve(ImDrawListPtr self, int idxCount, int vtxCount) - { - PrimUnreserveNative(self, idxCount, vtxCount); - } - - /// - /// To be documented. - /// - public static void PrimUnreserve(ref ImDrawList self, int idxCount, int vtxCount) - { - fixed (ImDrawList* pself = &self) - { - PrimUnreserveNative((ImDrawList*)pself, idxCount, vtxCount); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PrimRectNative(ImDrawList* self, Vector2 a, Vector2 b, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[548])(self, a, b, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[548])((nint)self, a, b, col); - #endif - } - - /// - /// To be documented. - /// - public static void PrimRect(ImDrawListPtr self, Vector2 a, Vector2 b, uint col) - { - PrimRectNative(self, a, b, col); - } - - /// - /// To be documented. - /// - public static void PrimRect(ref ImDrawList self, Vector2 a, Vector2 b, uint col) - { - fixed (ImDrawList* pself = &self) - { - PrimRectNative((ImDrawList*)pself, a, b, col); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PrimRectUVNative(ImDrawList* self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[549])(self, a, b, uvA, uvB, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[549])((nint)self, a, b, uvA, uvB, col); - #endif - } - - /// - /// To be documented. - /// - public static void PrimRectUV(ImDrawListPtr self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) - { - PrimRectUVNative(self, a, b, uvA, uvB, col); - } - - /// - /// To be documented. - /// - public static void PrimRectUV(ref ImDrawList self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) - { - fixed (ImDrawList* pself = &self) - { - PrimRectUVNative((ImDrawList*)pself, a, b, uvA, uvB, col); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PrimQuadUVNative(ImDrawList* self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[550])(self, a, b, c, d, uvA, uvB, uvC, uvD, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[550])((nint)self, a, b, c, d, uvA, uvB, uvC, uvD, col); - #endif - } - - /// - /// To be documented. - /// - public static void PrimQuadUV(ImDrawListPtr self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) - { - PrimQuadUVNative(self, a, b, c, d, uvA, uvB, uvC, uvD, col); - } - - /// - /// To be documented. - /// - public static void PrimQuadUV(ref ImDrawList self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) - { - fixed (ImDrawList* pself = &self) - { - PrimQuadUVNative((ImDrawList*)pself, a, b, c, d, uvA, uvB, uvC, uvD, col); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PrimWriteVtxNative(ImDrawList* self, Vector2 pos, Vector2 uv, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[551])(self, pos, uv, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[551])((nint)self, pos, uv, col); - #endif - } - - /// - /// To be documented. - /// - public static void PrimWriteVtx(ImDrawListPtr self, Vector2 pos, Vector2 uv, uint col) - { - PrimWriteVtxNative(self, pos, uv, col); - } - - /// - /// To be documented. - /// - public static void PrimWriteVtx(ref ImDrawList self, Vector2 pos, Vector2 uv, uint col) - { - fixed (ImDrawList* pself = &self) - { - PrimWriteVtxNative((ImDrawList*)pself, pos, uv, col); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PrimWriteIdxNative(ImDrawList* self, ushort idx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[552])(self, idx); - #else - ((delegate* unmanaged[Cdecl])funcTable[552])((nint)self, idx); - #endif - } - - /// - /// To be documented. - /// - public static void PrimWriteIdx(ImDrawListPtr self, ushort idx) - { - PrimWriteIdxNative(self, idx); - } - - /// - /// To be documented. - /// - public static void PrimWriteIdx(ref ImDrawList self, ushort idx) - { - fixed (ImDrawList* pself = &self) - { - PrimWriteIdxNative((ImDrawList*)pself, idx); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PrimVtxNative(ImDrawList* self, Vector2 pos, Vector2 uv, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[553])(self, pos, uv, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[553])((nint)self, pos, uv, col); - #endif - } - - /// - /// To be documented. - /// - public static void PrimVtx(ImDrawListPtr self, Vector2 pos, Vector2 uv, uint col) - { - PrimVtxNative(self, pos, uv, col); - } - - /// - /// To be documented. - /// - public static void PrimVtx(ref ImDrawList self, Vector2 pos, Vector2 uv, uint col) - { - fixed (ImDrawList* pself = &self) - { - PrimVtxNative((ImDrawList*)pself, pos, uv, col); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _ResetForNewFrameNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[554])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[554])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void _ResetForNewFrame(ImDrawListPtr self) - { - _ResetForNewFrameNative(self); - } - - /// - /// To be documented. - /// - public static void _ResetForNewFrame(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _ResetForNewFrameNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _ClearFreeMemoryNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[555])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[555])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void _ClearFreeMemory(ImDrawListPtr self) - { - _ClearFreeMemoryNative(self); - } - - /// - /// To be documented. - /// - public static void _ClearFreeMemory(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _ClearFreeMemoryNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _PopUnusedDrawCmdNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[556])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[556])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void _PopUnusedDrawCmd(ImDrawListPtr self) - { - _PopUnusedDrawCmdNative(self); - } - - /// - /// To be documented. - /// - public static void _PopUnusedDrawCmd(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _PopUnusedDrawCmdNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _TryMergeDrawCmdsNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[557])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[557])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void _TryMergeDrawCmds(ImDrawListPtr self) - { - _TryMergeDrawCmdsNative(self); - } - - /// - /// To be documented. - /// - public static void _TryMergeDrawCmds(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _TryMergeDrawCmdsNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _OnChangedClipRectNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[558])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[558])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void _OnChangedClipRect(ImDrawListPtr self) - { - _OnChangedClipRectNative(self); - } - - /// - /// To be documented. - /// - public static void _OnChangedClipRect(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _OnChangedClipRectNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _OnChangedTextureIDNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[559])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[559])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void _OnChangedTextureID(ImDrawListPtr self) - { - _OnChangedTextureIDNative(self); - } - - /// - /// To be documented. - /// - public static void _OnChangedTextureID(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _OnChangedTextureIDNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _OnChangedVtxOffsetNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[560])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[560])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void _OnChangedVtxOffset(ImDrawListPtr self) - { - _OnChangedVtxOffsetNative(self); - } - - /// - /// To be documented. - /// - public static void _OnChangedVtxOffset(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _OnChangedVtxOffsetNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int _CalcCircleAutoSegmentCountNative(ImDrawList* self, float radius) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[561])(self, radius); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[561])((nint)self, radius); - #endif - } - - /// - /// To be documented. - /// - public static int _CalcCircleAutoSegmentCount(ImDrawListPtr self, float radius) - { - int ret = _CalcCircleAutoSegmentCountNative(self, radius); - return ret; - } - - /// - /// To be documented. - /// - public static int _CalcCircleAutoSegmentCount(ref ImDrawList self, float radius) - { - fixed (ImDrawList* pself = &self) - { - int ret = _CalcCircleAutoSegmentCountNative((ImDrawList*)pself, radius); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _PathArcToFastExNative(ImDrawList* self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[562])(self, center, radius, aMinSample, aMaxSample, aStep); - #else - ((delegate* unmanaged[Cdecl])funcTable[562])((nint)self, center, radius, aMinSample, aMaxSample, aStep); - #endif - } - - /// - /// To be documented. - /// - public static void _PathArcToFastEx(ImDrawListPtr self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) - { - _PathArcToFastExNative(self, center, radius, aMinSample, aMaxSample, aStep); - } - - /// - /// To be documented. - /// - public static void _PathArcToFastEx(ref ImDrawList self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) - { - fixed (ImDrawList* pself = &self) - { - _PathArcToFastExNative((ImDrawList*)pself, center, radius, aMinSample, aMaxSample, aStep); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _PathArcToNNative(ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[563])(self, center, radius, aMin, aMax, numSegments); - #else - ((delegate* unmanaged[Cdecl])funcTable[563])((nint)self, center, radius, aMin, aMax, numSegments); - #endif - } - - /// - /// To be documented. - /// - public static void _PathArcToN(ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - _PathArcToNNative(self, center, radius, aMin, aMax, numSegments); - } - - /// - /// To be documented. - /// - public static void _PathArcToN(ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - _PathArcToNNative((ImDrawList*)pself, center, radius, aMin, aMax, numSegments); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawData* ImDrawDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[564])(); - #else - return (ImDrawData*)((delegate* unmanaged[Cdecl])funcTable[564])(); - #endif - } - - /// - /// To be documented. - /// - public static ImDrawDataPtr ImDrawData() - { - ImDrawDataPtr ret = ImDrawDataNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImDrawData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[565])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[565])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImDrawDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImDrawData self) - { - fixed (ImDrawData* pself = &self) - { - DestroyNative((ImDrawData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearNative(ImDrawData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[566])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[566])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Clear(ImDrawDataPtr self) - { - ClearNative(self); - } - - /// - /// To be documented. - /// - public static void Clear(ref ImDrawData self) - { - fixed (ImDrawData* pself = &self) - { - ClearNative((ImDrawData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DeIndexAllBuffersNative(ImDrawData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[567])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[567])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void DeIndexAllBuffers(ImDrawDataPtr self) - { - DeIndexAllBuffersNative(self); - } - - /// - /// To be documented. - /// - public static void DeIndexAllBuffers(ref ImDrawData self) - { - fixed (ImDrawData* pself = &self) - { - DeIndexAllBuffersNative((ImDrawData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ScaleClipRectsNative(ImDrawData* self, Vector2 fbScale) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[568])(self, fbScale); - #else - ((delegate* unmanaged[Cdecl])funcTable[568])((nint)self, fbScale); - #endif - } - - /// - /// To be documented. - /// - public static void ScaleClipRects(ImDrawDataPtr self, Vector2 fbScale) - { - ScaleClipRectsNative(self, fbScale); - } - - /// - /// To be documented. - /// - public static void ScaleClipRects(ref ImDrawData self, Vector2 fbScale) - { - fixed (ImDrawData* pself = &self) - { - ScaleClipRectsNative((ImDrawData*)pself, fbScale); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFontConfig* ImFontConfigNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[569])(); - #else - return (ImFontConfig*)((delegate* unmanaged[Cdecl])funcTable[569])(); - #endif - } - - /// - /// To be documented. - /// - public static ImFontConfigPtr ImFontConfig() - { - ImFontConfigPtr ret = ImFontConfigNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImFontConfig* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[570])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[570])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImFontConfigPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImFontConfig self) - { - fixed (ImFontConfig* pself = &self) - { - DestroyNative((ImFontConfig*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilderNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[571])(); - #else - return (ImFontGlyphRangesBuilder*)((delegate* unmanaged[Cdecl])funcTable[571])(); - #endif - } - - /// - /// To be documented. - /// - public static ImFontGlyphRangesBuilderPtr ImFontGlyphRangesBuilder() - { - ImFontGlyphRangesBuilderPtr ret = ImFontGlyphRangesBuilderNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImFontGlyphRangesBuilder* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[572])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[572])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImFontGlyphRangesBuilderPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImFontGlyphRangesBuilder self) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - DestroyNative((ImFontGlyphRangesBuilder*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearNative(ImFontGlyphRangesBuilder* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[573])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[573])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Clear(ImFontGlyphRangesBuilderPtr self) - { - ClearNative(self); - } - - /// - /// To be documented. - /// - public static void Clear(ref ImFontGlyphRangesBuilder self) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - ClearNative((ImFontGlyphRangesBuilder*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte GetBitNative(ImFontGlyphRangesBuilder* self, ulong n) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[574])(self, n); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[574])((nint)self, n); - #endif - } - - /// - /// To be documented. - /// - public static bool GetBit(ImFontGlyphRangesBuilderPtr self, ulong n) - { - byte ret = GetBitNative(self, n); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool GetBit(ref ImFontGlyphRangesBuilder self, ulong n) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte ret = GetBitNative((ImFontGlyphRangesBuilder*)pself, n); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool GetBit(ImFontGlyphRangesBuilderPtr self, nuint n) - { - byte ret = GetBitNative(self, n); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool GetBit(ref ImFontGlyphRangesBuilder self, nuint n) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte ret = GetBitNative((ImFontGlyphRangesBuilder*)pself, n); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetBitNative(ImFontGlyphRangesBuilder* self, ulong n) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[575])(self, n); - #else - ((delegate* unmanaged[Cdecl])funcTable[575])((nint)self, n); - #endif - } - - /// - /// To be documented. - /// - public static void SetBit(ImFontGlyphRangesBuilderPtr self, ulong n) - { - SetBitNative(self, n); - } - - /// - /// To be documented. - /// - public static void SetBit(ref ImFontGlyphRangesBuilder self, ulong n) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - SetBitNative((ImFontGlyphRangesBuilder*)pself, n); - } - } - - /// - /// To be documented. - /// - public static void SetBit(ImFontGlyphRangesBuilderPtr self, nuint n) - { - SetBitNative(self, n); - } - - /// - /// To be documented. - /// - public static void SetBit(ref ImFontGlyphRangesBuilder self, nuint n) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - SetBitNative((ImFontGlyphRangesBuilder*)pself, n); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddCharNative(ImFontGlyphRangesBuilder* self, ushort c) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[576])(self, c); - #else - ((delegate* unmanaged[Cdecl])funcTable[576])((nint)self, c); - #endif - } - - /// - /// To be documented. - /// - public static void AddChar(ImFontGlyphRangesBuilderPtr self, ushort c) - { - AddCharNative(self, c); - } - - /// - /// To be documented. - /// - public static void AddChar(ref ImFontGlyphRangesBuilder self, ushort c) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - AddCharNative((ImFontGlyphRangesBuilder*)pself, c); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddTextNative(ImFontGlyphRangesBuilder* self, byte* text, byte* textEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[577])(self, text, textEnd); - #else - ((delegate* unmanaged[Cdecl])funcTable[577])((nint)self, (nint)text, (nint)textEnd); - #endif - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text, byte* textEnd) - { - AddTextNative(self, text, textEnd); - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text) - { - AddTextNative(self, text, (byte*)(default)); - } - - /// - /// To be documented. - /// - public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text, byte* textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, text, textEnd); - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, text, (byte*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - AddTextNative(self, (byte*)ptext, textEnd); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text) - { - fixed (byte* ptext = &text) - { - AddTextNative(self, (byte*)ptext, (byte*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan text, byte* textEnd) - { - fixed (byte* ptext = text) - { - AddTextNative(self, (byte*)ptext, textEnd); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan text) - { - fixed (byte* ptext = text) - { - AddTextNative(self, (byte*)ptext, (byte*)(default)); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImFontGlyphRangesBuilder self, ref byte text, byte* textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = &text) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, textEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImFontGlyphRangesBuilder self, ref byte text) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = &text) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImFontGlyphRangesBuilder self, ReadOnlySpan text, byte* textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = text) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, textEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImFontGlyphRangesBuilder self, ReadOnlySpan text) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = text) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImFontGlyphRangesBuilder self, string text, byte* textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImFontGlyphRangesBuilder*)pself, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImFontGlyphRangesBuilder self, string text) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImFontGlyphRangesBuilder*)pself, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, text, (byte*)ptextEnd); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text, ReadOnlySpan textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, text, (byte*)ptextEnd); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text, ref byte textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, text, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text, ReadOnlySpan textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, text, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text, string textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImFontGlyphRangesBuilder*)pself, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan text, ReadOnlySpan textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text, ReadOnlySpan textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ImFontGlyphRangesBuilderPtr self, string text, ReadOnlySpan textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddText(ref ImFontGlyphRangesBuilder self, ref byte text, ref byte textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - /// /// To be documented. /// @@ -4575,31 +294,6 @@ namespace Dalamud.Bindings.ImGui } } - /// - /// To be documented. - /// - public static void AddRanges(ImFontGlyphRangesBuilderPtr self, ref ushort ranges) - { - fixed (ushort* pranges = &ranges) - { - AddRangesNative(self, (ushort*)pranges); - } - } - - /// - /// To be documented. - /// - public static void AddRanges(ref ImFontGlyphRangesBuilder self, ref ushort ranges) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (ushort* pranges = &ranges) - { - AddRangesNative((ImFontGlyphRangesBuilder*)pself, (ushort*)pranges); - } - } - } - /// /// To be documented. /// @@ -5026,5 +720,4313 @@ namespace Dalamud.Bindings.ImGui return ret; } } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + fixed (byte* pfilename = &filename) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg) + { + fixed (byte* pfilename = &filename) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels) + { + fixed (byte* pfilename = &filename) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ushort* glyphRanges) + { + fixed (byte* pfilename = &filename) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + fixed (byte* pfilename = filename) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ImFontConfigPtr fontCfg) + { + fixed (byte* pfilename = filename) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels) + { + fixed (byte* pfilename = filename) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ushort* glyphRanges) + { + fixed (byte* pfilename = filename) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ImFontConfigPtr fontCfg) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ushort* glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pfilename = &filename) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pfilename = &filename) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pfilename = &filename) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pfilename = &filename) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pfilename = filename) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ImFontConfigPtr fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pfilename = filename) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pfilename = filename) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pfilename = filename) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ImFontConfigPtr fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels) + { + fixed (ImFontAtlas* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (byte* pfilename = &filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (byte* pfilename = &filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (byte* pfilename = filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (byte* pfilename = filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ref ImFontConfig fontCfg) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pfilename = &filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pfilename = &filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pfilename = filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pfilename = filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImFont* AddFontFromMemoryTTFNative(ImFontAtlas* self, void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[588])(self, fontData, fontSize, sizePixels, fontCfg, glyphRanges); + #else + return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[588])((nint)self, (nint)fontData, fontSize, sizePixels, (nint)fontCfg, (nint)glyphRanges); + #endif + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, fontCfg, glyphRanges); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg) + { + ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels) + { + ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ushort* glyphRanges) + { + ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImFont* AddFontFromMemoryCompressedTTFNative(ImFontAtlas* self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[589])(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); + #else + return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[589])((nint)self, (nint)compressedFontData, compressedFontSize, sizePixels, (nint)fontCfg, (nint)glyphRanges); + #endif + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels) + { + ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ushort* glyphRanges) + { + ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImFont* AddFontFromMemoryCompressedBase85TTFNative(ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[590])(self, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + #else + return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[590])((nint)self, (nint)compressedFontDatabase85, sizePixels, (nint)fontCfg, (nint)glyphRanges); + #endif + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ushort* glyphRanges) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ushort* glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ushort* glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ushort* glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels) + { + fixed (ImFontAtlas* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) + { + fixed (ImFontAtlas* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearInputDataNative(ImFontAtlas* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[591])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[591])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ClearInputData(ImFontAtlasPtr self) + { + ClearInputDataNative(self); + } + + /// + /// To be documented. + /// + public static void ClearInputData(ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ClearInputDataNative((ImFontAtlas*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearTexDataNative(ImFontAtlas* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[592])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[592])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ClearTexData(ImFontAtlasPtr self) + { + ClearTexDataNative(self); + } + + /// + /// To be documented. + /// + public static void ClearTexData(ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ClearTexDataNative((ImFontAtlas*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearFontsNative(ImFontAtlas* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[593])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[593])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ClearFonts(ImFontAtlasPtr self) + { + ClearFontsNative(self); + } + + /// + /// To be documented. + /// + public static void ClearFonts(ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ClearFontsNative((ImFontAtlas*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearNative(ImFontAtlas* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[594])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[594])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Clear(ImFontAtlasPtr self) + { + ClearNative(self); + } + + /// + /// To be documented. + /// + public static void Clear(ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ClearNative((ImFontAtlas*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BuildNative(ImFontAtlas* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[595])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[595])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool Build(ImFontAtlasPtr self) + { + byte ret = BuildNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Build(ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + byte ret = BuildNative((ImFontAtlas*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetTexDataAsAlpha8Native(ImFontAtlas* self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[596])(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + #else + ((delegate* unmanaged[Cdecl])funcTable[596])((nint)self, textureIndex, (nint)outPixels, (nint)outWidth, (nint)outHeight, (nint)outBytesPerPixel); + #endif + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + { + GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetTexDataAsRGBA32Native(ImFontAtlas* self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[597])(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + #else + ((delegate* unmanaged[Cdecl])funcTable[597])((nint)self, textureIndex, (nint)outPixels, (nint)outWidth, (nint)outHeight, (nint)outBytesPerPixel); + #endif + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + { + GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsBuiltNative(ImFontAtlas* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[598])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[598])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsBuilt(ImFontAtlasPtr self) + { + byte ret = IsBuiltNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsBuilt(ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + byte ret = IsBuiltNative((ImFontAtlas*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetTexIDNative(ImFontAtlas* self, int textureIndex, ImTextureID id) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[599])(self, textureIndex, id); + #else + ((delegate* unmanaged[Cdecl])funcTable[599])((nint)self, textureIndex, id); + #endif + } + + /// + /// To be documented. + /// + public static void SetTexID(ImFontAtlasPtr self, int textureIndex, ImTextureID id) + { + SetTexIDNative(self, textureIndex, id); + } + + /// + /// To be documented. + /// + public static void SetTexID(ref ImFontAtlas self, int textureIndex, ImTextureID id) + { + fixed (ImFontAtlas* pself = &self) + { + SetTexIDNative((ImFontAtlas*)pself, textureIndex, id); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearTexIDNative(ImFontAtlas* self, ImTextureID nullId) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[600])(self, nullId); + #else + ((delegate* unmanaged[Cdecl])funcTable[600])((nint)self, nullId); + #endif + } + + /// + /// To be documented. + /// + public static void ClearTexID(ImFontAtlasPtr self, ImTextureID nullId) + { + ClearTexIDNative(self, nullId); + } + + /// + /// To be documented. + /// + public static void ClearTexID(ref ImFontAtlas self, ImTextureID nullId) + { + fixed (ImFontAtlas* pself = &self) + { + ClearTexIDNative((ImFontAtlas*)pself, nullId); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ushort* GetGlyphRangesDefaultNative(ImFontAtlas* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[601])(self); + #else + return (ushort*)((delegate* unmanaged[Cdecl])funcTable[601])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ushort* GetGlyphRangesDefault(ImFontAtlasPtr self) + { + ushort* ret = GetGlyphRangesDefaultNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static ushort* GetGlyphRangesDefault(ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ushort* ret = GetGlyphRangesDefaultNative((ImFontAtlas*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ushort* GetGlyphRangesKoreanNative(ImFontAtlas* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[602])(self); + #else + return (ushort*)((delegate* unmanaged[Cdecl])funcTable[602])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ushort* GetGlyphRangesKorean(ImFontAtlasPtr self) + { + ushort* ret = GetGlyphRangesKoreanNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static ushort* GetGlyphRangesKorean(ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ushort* ret = GetGlyphRangesKoreanNative((ImFontAtlas*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ushort* GetGlyphRangesJapaneseNative(ImFontAtlas* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[603])(self); + #else + return (ushort*)((delegate* unmanaged[Cdecl])funcTable[603])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ushort* GetGlyphRangesJapanese(ImFontAtlasPtr self) + { + ushort* ret = GetGlyphRangesJapaneseNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static ushort* GetGlyphRangesJapanese(ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ushort* ret = GetGlyphRangesJapaneseNative((ImFontAtlas*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ushort* GetGlyphRangesChineseFullNative(ImFontAtlas* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[604])(self); + #else + return (ushort*)((delegate* unmanaged[Cdecl])funcTable[604])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ushort* GetGlyphRangesChineseFull(ImFontAtlasPtr self) + { + ushort* ret = GetGlyphRangesChineseFullNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static ushort* GetGlyphRangesChineseFull(ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ushort* ret = GetGlyphRangesChineseFullNative((ImFontAtlas*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ushort* GetGlyphRangesChineseSimplifiedCommonNative(ImFontAtlas* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[605])(self); + #else + return (ushort*)((delegate* unmanaged[Cdecl])funcTable[605])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ushort* GetGlyphRangesChineseSimplifiedCommon(ImFontAtlasPtr self) + { + ushort* ret = GetGlyphRangesChineseSimplifiedCommonNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static ushort* GetGlyphRangesChineseSimplifiedCommon(ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ushort* ret = GetGlyphRangesChineseSimplifiedCommonNative((ImFontAtlas*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ushort* GetGlyphRangesCyrillicNative(ImFontAtlas* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[606])(self); + #else + return (ushort*)((delegate* unmanaged[Cdecl])funcTable[606])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ushort* GetGlyphRangesCyrillic(ImFontAtlasPtr self) + { + ushort* ret = GetGlyphRangesCyrillicNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static ushort* GetGlyphRangesCyrillic(ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ushort* ret = GetGlyphRangesCyrillicNative((ImFontAtlas*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ushort* GetGlyphRangesThaiNative(ImFontAtlas* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[607])(self); + #else + return (ushort*)((delegate* unmanaged[Cdecl])funcTable[607])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ushort* GetGlyphRangesThai(ImFontAtlasPtr self) + { + ushort* ret = GetGlyphRangesThaiNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static ushort* GetGlyphRangesThai(ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ushort* ret = GetGlyphRangesThaiNative((ImFontAtlas*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ushort* GetGlyphRangesVietnameseNative(ImFontAtlas* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[608])(self); + #else + return (ushort*)((delegate* unmanaged[Cdecl])funcTable[608])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ushort* GetGlyphRangesVietnamese(ImFontAtlasPtr self) + { + ushort* ret = GetGlyphRangesVietnameseNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static ushort* GetGlyphRangesVietnamese(ref ImFontAtlas self) + { + fixed (ImFontAtlas* pself = &self) + { + ushort* ret = GetGlyphRangesVietnameseNative((ImFontAtlas*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int AddCustomRectRegularNative(ImFontAtlas* self, int width, int height) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[609])(self, width, height); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[609])((nint)self, width, height); + #endif + } + + /// + /// To be documented. + /// + public static int AddCustomRectRegular(ImFontAtlasPtr self, int width, int height) + { + int ret = AddCustomRectRegularNative(self, width, height); + return ret; + } + + /// + /// To be documented. + /// + public static int AddCustomRectRegular(ref ImFontAtlas self, int width, int height) + { + fixed (ImFontAtlas* pself = &self) + { + int ret = AddCustomRectRegularNative((ImFontAtlas*)pself, width, height); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int AddCustomRectFontGlyphNative(ImFontAtlas* self, ImFont* font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[610])(self, font, id, width, height, advanceX, offset); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[610])((nint)self, (nint)font, id, width, height, advanceX, offset); + #endif + } + + /// + /// To be documented. + /// + public static int AddCustomRectFontGlyph(ImFontAtlasPtr self, ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + int ret = AddCustomRectFontGlyphNative(self, font, id, width, height, advanceX, offset); + return ret; + } + + /// + /// To be documented. + /// + public static int AddCustomRectFontGlyph(ImFontAtlasPtr self, ImFontPtr font, ushort id, int width, int height, float advanceX) + { + int ret = AddCustomRectFontGlyphNative(self, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + + /// + /// To be documented. + /// + public static int AddCustomRectFontGlyph(ref ImFontAtlas self, ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + fixed (ImFontAtlas* pself = &self) + { + int ret = AddCustomRectFontGlyphNative((ImFontAtlas*)pself, font, id, width, height, advanceX, offset); + return ret; + } + } + + /// + /// To be documented. + /// + public static int AddCustomRectFontGlyph(ref ImFontAtlas self, ImFontPtr font, ushort id, int width, int height, float advanceX) + { + fixed (ImFontAtlas* pself = &self) + { + int ret = AddCustomRectFontGlyphNative((ImFontAtlas*)pself, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + } + + /// + /// To be documented. + /// + public static int AddCustomRectFontGlyph(ImFontAtlasPtr self, ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + fixed (ImFont* pfont = &font) + { + int ret = AddCustomRectFontGlyphNative(self, (ImFont*)pfont, id, width, height, advanceX, offset); + return ret; + } + } + + /// + /// To be documented. + /// + public static int AddCustomRectFontGlyph(ImFontAtlasPtr self, ref ImFont font, ushort id, int width, int height, float advanceX) + { + fixed (ImFont* pfont = &font) + { + int ret = AddCustomRectFontGlyphNative(self, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + } + + /// + /// To be documented. + /// + public static int AddCustomRectFontGlyph(ref ImFontAtlas self, ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFont* pfont = &font) + { + int ret = AddCustomRectFontGlyphNative((ImFontAtlas*)pself, (ImFont*)pfont, id, width, height, advanceX, offset); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int AddCustomRectFontGlyph(ref ImFontAtlas self, ref ImFont font, ushort id, int width, int height, float advanceX) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFont* pfont = &font) + { + int ret = AddCustomRectFontGlyphNative((ImFontAtlas*)pself, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImFontAtlasCustomRect* GetCustomRectByIndexNative(ImFontAtlas* self, int index) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[611])(self, index); + #else + return (ImFontAtlasCustomRect*)((delegate* unmanaged[Cdecl])funcTable[611])((nint)self, index); + #endif + } + + /// + /// To be documented. + /// + public static ImFontAtlasCustomRectPtr GetCustomRectByIndex(ImFontAtlasPtr self, int index) + { + ImFontAtlasCustomRectPtr ret = GetCustomRectByIndexNative(self, index); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontAtlasCustomRectPtr GetCustomRectByIndex(ref ImFontAtlas self, int index) + { + fixed (ImFontAtlas* pself = &self) + { + ImFontAtlasCustomRectPtr ret = GetCustomRectByIndexNative((ImFontAtlas*)pself, index); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalcCustomRectUVNative(ImFontAtlas* self, ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[612])(self, rect, outUvMin, outUvMax); + #else + ((delegate* unmanaged[Cdecl])funcTable[612])((nint)self, (nint)rect, (nint)outUvMin, (nint)outUvMax); + #endif + } + + /// + /// To be documented. + /// + public static void CalcCustomRectUV(ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, Vector2* outUvMax) + { + CalcCustomRectUVNative(self, rect, outUvMin, outUvMax); + } + + /// + /// To be documented. + /// + public static void CalcCustomRectUV(ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* pself = &self) + { + CalcCustomRectUVNative((ImFontAtlas*)pself, rect, outUvMin, outUvMax); + } + } + + /// + /// To be documented. + /// + public static void CalcCustomRectUV(ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); + } + } + + /// + /// To be documented. + /// + public static void CalcCustomRectUV(ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + CalcCustomRectUVNative((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); + } + } + } + + /// + /// To be documented. + /// + public static void CalcCustomRectUV(ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + CalcCustomRectUVNative(self, rect, (Vector2*)poutUvMin, outUvMax); + } + } + + /// + /// To be documented. + /// + public static void CalcCustomRectUV(ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + CalcCustomRectUVNative((ImFontAtlas*)pself, rect, (Vector2*)poutUvMin, outUvMax); + } + } + } + + /// + /// To be documented. + /// + public static void CalcCustomRectUV(ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); + } + } + } + + /// + /// To be documented. + /// + public static void CalcCustomRectUV(ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + CalcCustomRectUVNative((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcCustomRectUV(ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + CalcCustomRectUVNative(self, rect, outUvMin, (Vector2*)poutUvMax); + } + } + + /// + /// To be documented. + /// + public static void CalcCustomRectUV(ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + CalcCustomRectUVNative((ImFontAtlas*)pself, rect, outUvMin, (Vector2*)poutUvMax); + } + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.093.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.093.cs index 385e56939..4fbd264fa 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.093.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.093.cs @@ -21,242 +21,61 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ushort* glyphRanges) + public static void CalcCustomRectUV(ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); + } + } + } + + /// + /// To be documented. + /// + public static void CalcCustomRectUV(ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) { fixed (ImFontAtlas* pself = &self) { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ushort* glyphRanges) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ushort* glyphRanges) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImFontAtlasCustomRect* prect = &rect) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + fixed (Vector2* poutUvMax = &outUvMax) + { + CalcCustomRectUVNative((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); + } } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; } /// /// To be documented. /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ImFontConfigPtr fontCfg) + public static void CalcCustomRectUV(ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, ref Vector2 outUvMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) + fixed (Vector2* poutUvMin = &outUvMin) { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (Vector2* poutUvMax = &outUvMax) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + CalcCustomRectUVNative(self, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; } /// /// To be documented. /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + public static void CalcCustomRectUV(ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, ref Vector2 outUvMax) { fixed (ImFontAtlas* pself = &self) { - fixed (byte* pfilename = &filename) + fixed (Vector2* poutUvMin = &outUvMin) { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); - return ret; + fixed (Vector2* poutUvMax = &outUvMax) + { + CalcCustomRectUVNative((ImFontAtlas*)pself, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } } } } @@ -264,3107 +83,70 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg) + public static void CalcCustomRectUV(ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcCustomRectUV(ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) { fixed (ImFontAtlas* pself = &self) { - fixed (byte* pfilename = &filename) + fixed (ImFontAtlasCustomRect* prect = &rect) { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (Vector2* poutUvMin = &outUvMin) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (byte* pfilename = filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (byte* pfilename = filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ref ImFontConfig fontCfg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ref ushort glyphRanges) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (byte* pfilename = &filename) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ref ushort glyphRanges) - { - fixed (byte* pfilename = &filename) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (byte* pfilename = filename) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ref ushort glyphRanges) - { - fixed (byte* pfilename = filename) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ref ushort glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = filename) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = filename) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (byte* pfilename = filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) + fixed (Vector2* poutUvMax = &outUvMax) { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; + CalcCustomRectUVNative((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); } } } } } - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFont* AddFontFromMemoryTTFNative(ImFontAtlas* self, void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) + internal static byte GetMouseCursorTexDataNative(ImFontAtlas* self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[588])(self, fontData, fontSize, sizePixels, fontCfg, glyphRanges); + return ((delegate* unmanaged[Cdecl])funcTable[613])(self, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); #else - return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[588])((nint)self, (nint)fontData, fontSize, sizePixels, (nint)fontCfg, (nint)glyphRanges); + return (byte)((delegate* unmanaged[Cdecl])funcTable[613])((nint)self, cursor, (nint)outOffset, (nint)outSize, (nint)outUvBorder, (nint)outUvFill, (nint)textureIndex); #endif } /// /// To be documented. /// - public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) { - ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, fontCfg, glyphRanges); - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg) - { - ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels) - { - ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ushort* glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ref ushort glyphRanges) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFont* AddFontFromMemoryCompressedTTFNative(ImFontAtlas* self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[589])(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); - #else - return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[589])((nint)self, (nint)compressedFontData, compressedFontSize, sizePixels, (nint)fontCfg, (nint)glyphRanges); - #endif - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ushort* glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ushort glyphRanges) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFont* AddFontFromMemoryCompressedBase85TTFNative(ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[590])(self, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - #else - return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[590])((nint)self, (nint)compressedFontDatabase85, sizePixels, (nint)fontCfg, (nint)glyphRanges); - #endif - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - } - - /// - /// To be documented. - /// - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearInputDataNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[591])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[591])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void ClearInputData(ImFontAtlasPtr self) - { - ClearInputDataNative(self); - } - - /// - /// To be documented. - /// - public static void ClearInputData(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ClearInputDataNative((ImFontAtlas*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearTexDataNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[592])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[592])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void ClearTexData(ImFontAtlasPtr self) - { - ClearTexDataNative(self); - } - - /// - /// To be documented. - /// - public static void ClearTexData(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ClearTexDataNative((ImFontAtlas*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearFontsNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[593])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[593])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void ClearFonts(ImFontAtlasPtr self) - { - ClearFontsNative(self); - } - - /// - /// To be documented. - /// - public static void ClearFonts(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ClearFontsNative((ImFontAtlas*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[594])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[594])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Clear(ImFontAtlasPtr self) - { - ClearNative(self); - } - - /// - /// To be documented. - /// - public static void Clear(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ClearNative((ImFontAtlas*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BuildNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[595])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[595])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool Build(ImFontAtlasPtr self) - { - byte ret = BuildNative(self); + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); return ret != 0; } /// /// To be documented. /// - public static bool Build(ref ImFontAtlas self) + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - byte ret = BuildNative((ImFontAtlas*)pself); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); return ret != 0; } } @@ -3372,86 +154,26 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetTexDataAsAlpha8Native(ImFontAtlas* self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[596])(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - #else - ((delegate* unmanaged[Cdecl])funcTable[596])((nint)self, textureIndex, (nint)outPixels, (nint)outWidth, (nint)outHeight, (nint)outBytesPerPixel); - #endif + fixed (Vector2* poutOffset = &outOffset) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } } /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) + fixed (Vector2* poutOffset = &outOffset) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; } } } @@ -3459,13 +181,26 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - fixed (byte** poutPixels = &outPixels) + fixed (Vector2* poutSize = &outSize) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; } } } @@ -3473,93 +208,31 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) { - fixed (int* poutWidth = &outWidth) + fixed (Vector2* poutOffset = &outOffset) { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + fixed (Vector2* poutSize = &outSize) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; + } } } /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - fixed (int* poutWidth = &outWidth) + fixed (Vector2* poutOffset = &outOffset) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) + fixed (Vector2* poutSize = &outSize) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); + return ret != 0; } } } @@ -3568,15 +241,100 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - fixed (byte** poutPixels = &outPixels) + fixed (Vector2* poutUvBorder = &outUvBorder) { - fixed (int* poutWidth = &outWidth) + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; } } } @@ -3585,93 +343,16 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - fixed (int* poutHeight = &outHeight) + fixed (Vector2* poutOffset = &outOffset) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) + fixed (Vector2* poutUvBorder = outUvBorder) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; } } } @@ -3680,15 +361,46 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - fixed (byte** poutPixels = &outPixels) + fixed (Vector2* poutSize = &outSize) { - fixed (int* poutHeight = &outHeight) + fixed (Vector2* poutUvBorder = &outUvBorder) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; } } } @@ -3697,43 +409,16 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - fixed (int* poutWidth = &outWidth) + fixed (Vector2* poutSize = &outSize) { - fixed (int* poutHeight = &outHeight) + fixed (Vector2* poutUvBorder = outUvBorder) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; } } } @@ -3742,68 +427,54 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - fixed (int* poutWidth = &outWidth) + fixed (Vector2* poutOffset = &outOffset) { - fixed (int* poutHeight = &outHeight) + fixed (Vector2* poutSize = &outSize) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) + fixed (Vector2* poutUvBorder = &outUvBorder) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; } } } @@ -3813,17 +484,18 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - fixed (byte** poutPixels = &outPixels) + fixed (Vector2* poutOffset = &outOffset) { - fixed (int* poutWidth = &outWidth) + fixed (Vector2* poutSize = &outSize) { - fixed (int* poutHeight = &outHeight) + fixed (Vector2* poutUvBorder = outUvBorder) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); + return ret != 0; } } } @@ -3833,24 +505,38 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) + fixed (Vector2* poutUvFill = &outUvFill) { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; } } /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) + fixed (Vector2* poutUvFill = &outUvFill) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; } } } @@ -3858,13 +544,14 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) { - fixed (byte** poutPixels = &outPixels) + fixed (ImFontAtlas* pself = &self) { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) + fixed (Vector2* poutUvFill = outUvFill) { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; } } } @@ -3872,15 +559,46 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - fixed (byte** poutPixels = &outPixels) + fixed (Vector2* poutOffset = &outOffset) { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) + fixed (Vector2* poutUvFill = &outUvFill) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; } } } @@ -3889,29 +607,16 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - fixed (int* poutWidth = &outWidth) + fixed (Vector2* poutOffset = &outOffset) { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) + fixed (Vector2* poutUvFill = outUvFill) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; } } } @@ -3920,15 +625,46 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) { - fixed (byte** poutPixels = &outPixels) + fixed (Vector2* poutSize = &outSize) { - fixed (int* poutWidth = &outWidth) + fixed (Vector2* poutUvFill = &outUvFill) { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; } } } @@ -3937,17 +673,72 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - fixed (byte** poutPixels = &outPixels) + fixed (Vector2* poutSize = &outSize) { - fixed (int* poutWidth = &outWidth) + fixed (Vector2* poutUvFill = outUvFill) { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; } } } @@ -3957,65 +748,18 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - fixed (int* poutHeight = &outHeight) + fixed (Vector2* poutOffset = &outOffset) { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) + fixed (Vector2* poutSize = &outSize) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) + fixed (Vector2* poutUvFill = outUvFill) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; } } } @@ -4025,15 +769,46 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) { - fixed (int* poutWidth = &outWidth) + fixed (Vector2* poutUvBorder = &outUvBorder) { - fixed (int* poutHeight = &outHeight) + fixed (Vector2* poutUvFill = &outUvFill) { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; } } } @@ -4042,17 +817,72 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - fixed (int* poutWidth = &outWidth) + fixed (Vector2* poutUvBorder = outUvBorder) { - fixed (int* poutHeight = &outHeight) + fixed (Vector2* poutUvFill = outUvFill) { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; } } } @@ -4062,17 +892,18 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) { - fixed (byte** poutPixels = &outPixels) + fixed (ImFontAtlas* pself = &self) { - fixed (int* poutWidth = &outWidth) + fixed (Vector2* poutOffset = &outOffset) { - fixed (int* poutHeight = &outHeight) + fixed (Vector2* poutUvBorder = outUvBorder) { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) + fixed (Vector2* poutUvFill = outUvFill) { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; } } } @@ -4082,19 +913,1280 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) { fixed (ImFontAtlas* pself = &self) { - fixed (byte** poutPixels = &outPixels) + fixed (Vector2* poutSize = &outSize) { - fixed (int* poutWidth = &outWidth) + fixed (Vector2* poutUvBorder = &outUvBorder) { - fixed (int* poutHeight = &outHeight) + fixed (Vector2* poutUvFill = &outUvFill) { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) + { + fixed (ImFontAtlas* pself = &self) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = outUvBorder) + { + fixed (Vector2* poutUvFill = outUvFill) + { + fixed (int* ptextureIndex = &textureIndex) + { + byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); + return ret != 0; + } } } } @@ -4106,732 +2198,53 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetTexDataAsRGBA32Native(ImFontAtlas* self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + internal static ImFont* ImFontNative() { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[597])(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + return ((delegate* unmanaged[Cdecl])funcTable[614])(); #else - ((delegate* unmanaged[Cdecl])funcTable[597])((nint)self, textureIndex, (nint)outPixels, (nint)outWidth, (nint)outHeight, (nint)outBytesPerPixel); + return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[614])(); #endif } /// /// To be documented. /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + public static ImFontPtr ImFont() { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); + ImFontPtr ret = ImFontNative(); + return ret; } /// /// To be documented. /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImFont* self) { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[615])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[615])((nint)self); + #endif } /// /// To be documented. /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + public static void Destroy(ImFontPtr self) { - fixed (ImFontAtlas* pself = &self) + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImFont self) + { + fixed (ImFont* pself = &self) { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } + DestroyNative((ImFont*)pself); } } @@ -4839,32 +2252,168 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsBuiltNative(ImFontAtlas* self) + internal static ImFontGlyph* FindGlyphNative(ImFont* self, ushort c) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[598])(self); + return ((delegate* unmanaged[Cdecl])funcTable[616])(self, c); #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[598])((nint)self); + return (ImFontGlyph*)((delegate* unmanaged[Cdecl])funcTable[616])((nint)self, c); #endif } /// /// To be documented. /// - public static bool IsBuilt(ImFontAtlasPtr self) + public static ImFontGlyphPtr FindGlyph(ImFontPtr self, ushort c) { - byte ret = IsBuiltNative(self); + ImFontGlyphPtr ret = FindGlyphNative(self, c); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontGlyphPtr FindGlyph(ref ImFont self, ushort c) + { + fixed (ImFont* pself = &self) + { + ImFontGlyphPtr ret = FindGlyphNative((ImFont*)pself, c); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImFontGlyph* FindGlyphNoFallbackNative(ImFont* self, ushort c) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[617])(self, c); + #else + return (ImFontGlyph*)((delegate* unmanaged[Cdecl])funcTable[617])((nint)self, c); + #endif + } + + /// + /// To be documented. + /// + public static ImFontGlyphPtr FindGlyphNoFallback(ImFontPtr self, ushort c) + { + ImFontGlyphPtr ret = FindGlyphNoFallbackNative(self, c); + return ret; + } + + /// + /// To be documented. + /// + public static ImFontGlyphPtr FindGlyphNoFallback(ref ImFont self, ushort c) + { + fixed (ImFont* pself = &self) + { + ImFontGlyphPtr ret = FindGlyphNoFallbackNative((ImFont*)pself, c); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetDistanceAdjustmentForPairNative(ImFont* self, ushort leftC, ushort rightC) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[618])(self, leftC, rightC); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[618])((nint)self, leftC, rightC); + #endif + } + + /// + /// To be documented. + /// + public static float GetDistanceAdjustmentForPair(ImFontPtr self, ushort leftC, ushort rightC) + { + float ret = GetDistanceAdjustmentForPairNative(self, leftC, rightC); + return ret; + } + + /// + /// To be documented. + /// + public static float GetDistanceAdjustmentForPair(ref ImFont self, ushort leftC, ushort rightC) + { + fixed (ImFont* pself = &self) + { + float ret = GetDistanceAdjustmentForPairNative((ImFont*)pself, leftC, rightC); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetCharAdvanceNative(ImFont* self, ushort c) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[619])(self, c); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[619])((nint)self, c); + #endif + } + + /// + /// To be documented. + /// + public static float GetCharAdvance(ImFontPtr self, ushort c) + { + float ret = GetCharAdvanceNative(self, c); + return ret; + } + + /// + /// To be documented. + /// + public static float GetCharAdvance(ref ImFont self, ushort c) + { + fixed (ImFont* pself = &self) + { + float ret = GetCharAdvanceNative((ImFont*)pself, c); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsLoadedNative(ImFont* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[620])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[620])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsLoaded(ImFontPtr self) + { + byte ret = IsLoadedNative(self); return ret != 0; } /// /// To be documented. /// - public static bool IsBuilt(ref ImFontAtlas self) + public static bool IsLoaded(ref ImFont self) { - fixed (ImFontAtlas* pself = &self) + fixed (ImFont* pself = &self) { - byte ret = IsBuiltNative((ImFontAtlas*)pself); + byte ret = IsLoadedNative((ImFont*)pself); return ret != 0; } } @@ -4873,96 +2422,53 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetTexIDNative(ImFontAtlas* self, int textureIndex, ImTextureID id) + internal static byte* GetDebugNameNative(ImFont* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[599])(self, textureIndex, id); + return ((delegate* unmanaged[Cdecl])funcTable[621])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[599])((nint)self, textureIndex, id); + return (byte*)((delegate* unmanaged[Cdecl])funcTable[621])((nint)self); #endif } /// /// To be documented. /// - public static void SetTexID(ImFontAtlasPtr self, int textureIndex, ImTextureID id) + public static byte* GetDebugName(ImFontPtr self) { - SetTexIDNative(self, textureIndex, id); - } - - /// - /// To be documented. - /// - public static void SetTexID(ref ImFontAtlas self, int textureIndex, ImTextureID id) - { - fixed (ImFontAtlas* pself = &self) - { - SetTexIDNative((ImFontAtlas*)pself, textureIndex, id); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearTexIDNative(ImFontAtlas* self, ImTextureID nullId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[600])(self, nullId); - #else - ((delegate* unmanaged[Cdecl])funcTable[600])((nint)self, nullId); - #endif - } - - /// - /// To be documented. - /// - public static void ClearTexID(ImFontAtlasPtr self, ImTextureID nullId) - { - ClearTexIDNative(self, nullId); - } - - /// - /// To be documented. - /// - public static void ClearTexID(ref ImFontAtlas self, ImTextureID nullId) - { - fixed (ImFontAtlas* pself = &self) - { - ClearTexIDNative((ImFontAtlas*)pself, nullId); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* GetGlyphRangesDefaultNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[601])(self); - #else - return (ushort*)((delegate* unmanaged[Cdecl])funcTable[601])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static ushort* GetGlyphRangesDefault(ImFontAtlasPtr self) - { - ushort* ret = GetGlyphRangesDefaultNative(self); + byte* ret = GetDebugNameNative(self); return ret; } /// /// To be documented. /// - public static ushort* GetGlyphRangesDefault(ref ImFontAtlas self) + public static string GetDebugNameS(ImFontPtr self) { - fixed (ImFontAtlas* pself = &self) + string ret = Utils.DecodeStringUTF8(GetDebugNameNative(self)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* GetDebugName(ref ImFont self) + { + fixed (ImFont* pself = &self) { - ushort* ret = GetGlyphRangesDefaultNative((ImFontAtlas*)pself); + byte* ret = GetDebugNameNative((ImFont*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static string GetDebugNameS(ref ImFont self) + { + fixed (ImFont* pself = &self) + { + string ret = Utils.DecodeStringUTF8(GetDebugNameNative((ImFont*)pself)); return ret; } } @@ -4971,32 +2477,140 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* GetGlyphRangesKoreanNative(ImFontAtlas* self) + internal static void CalcTextSizeANative(Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[602])(self); + ((delegate* unmanaged[Cdecl])funcTable[622])(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); #else - return (ushort*)((delegate* unmanaged[Cdecl])funcTable[602])((nint)self); + ((delegate* unmanaged[Cdecl])funcTable[622])((nint)pOut, (nint)self, size, maxWidth, wrapWidth, (nint)textBegin, (nint)textEnd, (nint)remaining); #endif } /// /// To be documented. /// - public static ushort* GetGlyphRangesKorean(ImFontAtlasPtr self) + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin) { - ushort* ret = GetGlyphRangesKoreanNative(self); + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); return ret; } /// /// To be documented. /// - public static ushort* GetGlyphRangesKorean(ref ImFontAtlas self) + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) { - fixed (ImFontAtlas* pself = &self) + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); + return ret; + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) { - ushort* ret = GetGlyphRangesKoreanNative((ImFontAtlas*)pself); + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin) + { + fixed (Vector2* ppOut = &pOut) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin) + { + fixed (ImFont* pself = &self) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); return ret; } } @@ -5004,22 +2618,2433 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* GetGlyphRangesJapaneseNative(ImFontAtlas* self) + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[603])(self); - #else - return (ushort*)((delegate* unmanaged[Cdecl])funcTable[603])((nint)self); - #endif + fixed (ImFont* pself = &self) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); + return ret; + } } /// /// To be documented. /// - public static ushort* GetGlyphRangesJapanese(ImFontAtlasPtr self) + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin) { - ushort* ret = GetGlyphRangesJapaneseNative(self); + fixed (ImFont* pself = &self) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) + { + fixed (ImFont* pself = &self) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) + { + fixed (ImFont* pself = &self) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin) + { + fixed (byte* ptextBegin = &textBegin) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin) + { + fixed (byte* ptextBegin = textBegin) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin) + { + fixed (byte* ptextBegin = textBegin) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte** remaining) + { + fixed (byte* ptextBegin = textBegin) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, byte** remaining) + { + fixed (byte* ptextBegin = textBegin) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = textBegin) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = textBegin) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = textBegin) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = textBegin) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, byte** remaining) + { + fixed (byte* ptextBegin = textBegin) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte** remaining) + { + fixed (byte* ptextBegin = textBegin) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret; } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.094.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.094.cs index 88dc280b0..6cf409e14 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.094.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.094.cs @@ -21,3366 +21,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static ushort* GetGlyphRangesJapanese(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = GetGlyphRangesJapaneseNative((ImFontAtlas*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* GetGlyphRangesChineseFullNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[604])(self); - #else - return (ushort*)((delegate* unmanaged[Cdecl])funcTable[604])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static ushort* GetGlyphRangesChineseFull(ImFontAtlasPtr self) - { - ushort* ret = GetGlyphRangesChineseFullNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static ushort* GetGlyphRangesChineseFull(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = GetGlyphRangesChineseFullNative((ImFontAtlas*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* GetGlyphRangesChineseSimplifiedCommonNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[605])(self); - #else - return (ushort*)((delegate* unmanaged[Cdecl])funcTable[605])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static ushort* GetGlyphRangesChineseSimplifiedCommon(ImFontAtlasPtr self) - { - ushort* ret = GetGlyphRangesChineseSimplifiedCommonNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static ushort* GetGlyphRangesChineseSimplifiedCommon(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = GetGlyphRangesChineseSimplifiedCommonNative((ImFontAtlas*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* GetGlyphRangesCyrillicNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[606])(self); - #else - return (ushort*)((delegate* unmanaged[Cdecl])funcTable[606])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static ushort* GetGlyphRangesCyrillic(ImFontAtlasPtr self) - { - ushort* ret = GetGlyphRangesCyrillicNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static ushort* GetGlyphRangesCyrillic(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = GetGlyphRangesCyrillicNative((ImFontAtlas*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* GetGlyphRangesThaiNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[607])(self); - #else - return (ushort*)((delegate* unmanaged[Cdecl])funcTable[607])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static ushort* GetGlyphRangesThai(ImFontAtlasPtr self) - { - ushort* ret = GetGlyphRangesThaiNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static ushort* GetGlyphRangesThai(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = GetGlyphRangesThaiNative((ImFontAtlas*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* GetGlyphRangesVietnameseNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[608])(self); - #else - return (ushort*)((delegate* unmanaged[Cdecl])funcTable[608])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static ushort* GetGlyphRangesVietnamese(ImFontAtlasPtr self) - { - ushort* ret = GetGlyphRangesVietnameseNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static ushort* GetGlyphRangesVietnamese(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = GetGlyphRangesVietnameseNative((ImFontAtlas*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int AddCustomRectRegularNative(ImFontAtlas* self, int width, int height) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[609])(self, width, height); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[609])((nint)self, width, height); - #endif - } - - /// - /// To be documented. - /// - public static int AddCustomRectRegular(ImFontAtlasPtr self, int width, int height) - { - int ret = AddCustomRectRegularNative(self, width, height); - return ret; - } - - /// - /// To be documented. - /// - public static int AddCustomRectRegular(ref ImFontAtlas self, int width, int height) - { - fixed (ImFontAtlas* pself = &self) - { - int ret = AddCustomRectRegularNative((ImFontAtlas*)pself, width, height); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int AddCustomRectFontGlyphNative(ImFontAtlas* self, ImFont* font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[610])(self, font, id, width, height, advanceX, offset); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[610])((nint)self, (nint)font, id, width, height, advanceX, offset); - #endif - } - - /// - /// To be documented. - /// - public static int AddCustomRectFontGlyph(ImFontAtlasPtr self, ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - int ret = AddCustomRectFontGlyphNative(self, font, id, width, height, advanceX, offset); - return ret; - } - - /// - /// To be documented. - /// - public static int AddCustomRectFontGlyph(ImFontAtlasPtr self, ImFontPtr font, ushort id, int width, int height, float advanceX) - { - int ret = AddCustomRectFontGlyphNative(self, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - - /// - /// To be documented. - /// - public static int AddCustomRectFontGlyph(ref ImFontAtlas self, ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - fixed (ImFontAtlas* pself = &self) - { - int ret = AddCustomRectFontGlyphNative((ImFontAtlas*)pself, font, id, width, height, advanceX, offset); - return ret; - } - } - - /// - /// To be documented. - /// - public static int AddCustomRectFontGlyph(ref ImFontAtlas self, ImFontPtr font, ushort id, int width, int height, float advanceX) - { - fixed (ImFontAtlas* pself = &self) - { - int ret = AddCustomRectFontGlyphNative((ImFontAtlas*)pself, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - - /// - /// To be documented. - /// - public static int AddCustomRectFontGlyph(ImFontAtlasPtr self, ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - fixed (ImFont* pfont = &font) - { - int ret = AddCustomRectFontGlyphNative(self, (ImFont*)pfont, id, width, height, advanceX, offset); - return ret; - } - } - - /// - /// To be documented. - /// - public static int AddCustomRectFontGlyph(ImFontAtlasPtr self, ref ImFont font, ushort id, int width, int height, float advanceX) - { - fixed (ImFont* pfont = &font) - { - int ret = AddCustomRectFontGlyphNative(self, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - - /// - /// To be documented. - /// - public static int AddCustomRectFontGlyph(ref ImFontAtlas self, ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFont* pfont = &font) - { - int ret = AddCustomRectFontGlyphNative((ImFontAtlas*)pself, (ImFont*)pfont, id, width, height, advanceX, offset); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int AddCustomRectFontGlyph(ref ImFontAtlas self, ref ImFont font, ushort id, int width, int height, float advanceX) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFont* pfont = &font) - { - int ret = AddCustomRectFontGlyphNative((ImFontAtlas*)pself, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFontAtlasCustomRect* GetCustomRectByIndexNative(ImFontAtlas* self, int index) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[611])(self, index); - #else - return (ImFontAtlasCustomRect*)((delegate* unmanaged[Cdecl])funcTable[611])((nint)self, index); - #endif - } - - /// - /// To be documented. - /// - public static ImFontAtlasCustomRectPtr GetCustomRectByIndex(ImFontAtlasPtr self, int index) - { - ImFontAtlasCustomRectPtr ret = GetCustomRectByIndexNative(self, index); - return ret; - } - - /// - /// To be documented. - /// - public static ImFontAtlasCustomRectPtr GetCustomRectByIndex(ref ImFontAtlas self, int index) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontAtlasCustomRectPtr ret = GetCustomRectByIndexNative((ImFontAtlas*)pself, index); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcCustomRectUVNative(ImFontAtlas* self, ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[612])(self, rect, outUvMin, outUvMax); - #else - ((delegate* unmanaged[Cdecl])funcTable[612])((nint)self, (nint)rect, (nint)outUvMin, (nint)outUvMax); - #endif - } - - /// - /// To be documented. - /// - public static void CalcCustomRectUV(ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, Vector2* outUvMax) - { - CalcCustomRectUVNative(self, rect, outUvMin, outUvMax); - } - - /// - /// To be documented. - /// - public static void CalcCustomRectUV(ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, rect, outUvMin, outUvMax); - } - } - - /// - /// To be documented. - /// - public static void CalcCustomRectUV(ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); - } - } - - /// - /// To be documented. - /// - public static void CalcCustomRectUV(ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); - } - } - } - - /// - /// To be documented. - /// - public static void CalcCustomRectUV(ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - CalcCustomRectUVNative(self, rect, (Vector2*)poutUvMin, outUvMax); - } - } - - /// - /// To be documented. - /// - public static void CalcCustomRectUV(ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, rect, (Vector2*)poutUvMin, outUvMax); - } - } - } - - /// - /// To be documented. - /// - public static void CalcCustomRectUV(ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); - } - } - } - - /// - /// To be documented. - /// - public static void CalcCustomRectUV(ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcCustomRectUV(ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative(self, rect, outUvMin, (Vector2*)poutUvMax); - } - } - - /// - /// To be documented. - /// - public static void CalcCustomRectUV(ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, rect, outUvMin, (Vector2*)poutUvMax); - } - } - } - - /// - /// To be documented. - /// - public static void CalcCustomRectUV(ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); - } - } - } - - /// - /// To be documented. - /// - public static void CalcCustomRectUV(ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcCustomRectUV(ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative(self, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - - /// - /// To be documented. - /// - public static void CalcCustomRectUV(ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcCustomRectUV(ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcCustomRectUV(ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte GetMouseCursorTexDataNative(ImFontAtlas* self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[613])(self, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[613])((nint)self, cursor, (nint)outOffset, (nint)outSize, (nint)outUvBorder, (nint)outUvFill, (nint)textureIndex); - #endif - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan outUvBorder, ReadOnlySpan outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFont* ImFontNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[614])(); - #else - return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[614])(); - #endif - } - - /// - /// To be documented. - /// - public static ImFontPtr ImFont() - { - ImFontPtr ret = ImFontNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImFont* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[615])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[615])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImFontPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImFont self) - { - fixed (ImFont* pself = &self) - { - DestroyNative((ImFont*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFontGlyph* FindGlyphNative(ImFont* self, ushort c) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[616])(self, c); - #else - return (ImFontGlyph*)((delegate* unmanaged[Cdecl])funcTable[616])((nint)self, c); - #endif - } - - /// - /// To be documented. - /// - public static ImFontGlyphPtr FindGlyph(ImFontPtr self, ushort c) - { - ImFontGlyphPtr ret = FindGlyphNative(self, c); - return ret; - } - - /// - /// To be documented. - /// - public static ImFontGlyphPtr FindGlyph(ref ImFont self, ushort c) - { - fixed (ImFont* pself = &self) - { - ImFontGlyphPtr ret = FindGlyphNative((ImFont*)pself, c); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFontGlyph* FindGlyphNoFallbackNative(ImFont* self, ushort c) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[617])(self, c); - #else - return (ImFontGlyph*)((delegate* unmanaged[Cdecl])funcTable[617])((nint)self, c); - #endif - } - - /// - /// To be documented. - /// - public static ImFontGlyphPtr FindGlyphNoFallback(ImFontPtr self, ushort c) - { - ImFontGlyphPtr ret = FindGlyphNoFallbackNative(self, c); - return ret; - } - - /// - /// To be documented. - /// - public static ImFontGlyphPtr FindGlyphNoFallback(ref ImFont self, ushort c) - { - fixed (ImFont* pself = &self) - { - ImFontGlyphPtr ret = FindGlyphNoFallbackNative((ImFont*)pself, c); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetDistanceAdjustmentForPairNative(ImFont* self, ushort leftC, ushort rightC) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[618])(self, leftC, rightC); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[618])((nint)self, leftC, rightC); - #endif - } - - /// - /// To be documented. - /// - public static float GetDistanceAdjustmentForPair(ImFontPtr self, ushort leftC, ushort rightC) - { - float ret = GetDistanceAdjustmentForPairNative(self, leftC, rightC); - return ret; - } - - /// - /// To be documented. - /// - public static float GetDistanceAdjustmentForPair(ref ImFont self, ushort leftC, ushort rightC) - { - fixed (ImFont* pself = &self) - { - float ret = GetDistanceAdjustmentForPairNative((ImFont*)pself, leftC, rightC); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetCharAdvanceNative(ImFont* self, ushort c) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[619])(self, c); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[619])((nint)self, c); - #endif - } - - /// - /// To be documented. - /// - public static float GetCharAdvance(ImFontPtr self, ushort c) - { - float ret = GetCharAdvanceNative(self, c); - return ret; - } - - /// - /// To be documented. - /// - public static float GetCharAdvance(ref ImFont self, ushort c) - { - fixed (ImFont* pself = &self) - { - float ret = GetCharAdvanceNative((ImFont*)pself, c); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsLoadedNative(ImFont* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[620])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[620])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsLoaded(ImFontPtr self) - { - byte ret = IsLoadedNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsLoaded(ref ImFont self) - { - fixed (ImFont* pself = &self) - { - byte ret = IsLoadedNative((ImFont*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetDebugNameNative(ImFont* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[621])(self); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[621])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static byte* GetDebugName(ImFontPtr self) - { - byte* ret = GetDebugNameNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static string GetDebugNameS(ImFontPtr self) - { - string ret = Utils.DecodeStringUTF8(GetDebugNameNative(self)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* GetDebugName(ref ImFont self) - { - fixed (ImFont* pself = &self) - { - byte* ret = GetDebugNameNative((ImFont*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static string GetDebugNameS(ref ImFont self) - { - fixed (ImFont* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetDebugNameNative((ImFont*)pself)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcTextSizeANative(Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[622])(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - #else - ((delegate* unmanaged[Cdecl])funcTable[622])((nint)pOut, (nint)self, size, maxWidth, wrapWidth, (nint)textBegin, (nint)textEnd, (nint)remaining); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); - return ret; - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); - return ret; - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); - return ret; - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - return ret; - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin) - { - fixed (ImFont* pself = &self) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) - { - fixed (ImFont* pself = &self) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - return ret; - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin) - { - fixed (byte* ptextBegin = textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin) + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3399,8 +40,29 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3411,1035 +73,207 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd) { fixed (byte* ptextBegin = &textBegin) { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + return ret; + } } } /// /// To be documented. /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, byte** remaining) { fixed (byte* ptextBegin = &textBegin) { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + return ret; + } } } /// /// To be documented. /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) { fixed (byte* ptextBegin = &textBegin) { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } /// /// To be documented. /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, byte** remaining) + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd) { fixed (byte* ptextBegin = textBegin) { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + return ret; + } } } /// /// To be documented. /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd) + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, byte** remaining) { fixed (byte* ptextBegin = textBegin) { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + return ret; + } } } /// /// To be documented. /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte** remaining) + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd) { fixed (byte* ptextBegin = textBegin) { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } /// /// To be documented. /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, byte** remaining) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4458,260 +292,14 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) - { fixed (byte* ptextEnd = &textEnd) { Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret; } } @@ -4719,12 +307,33 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } fixed (byte* ptextEnd = &textEnd) { Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret; } } @@ -4732,12 +341,33 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd) + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd) { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } fixed (byte* ptextEnd = textEnd) { Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret; } } @@ -4745,12 +375,33 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, byte** remaining) + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, byte** remaining) { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } fixed (byte* ptextEnd = textEnd) { Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret; } } @@ -4758,7 +409,3689 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, byte** remaining) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, byte** remaining) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, byte** remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte* remaining) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte* remaining) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4777,19 +4110,272 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte** premaining = &remaining) { - Utils.Free(pStr0); + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } - return ret; } /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4808,96 +4394,9 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte** premaining = &remaining) { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4908,9 +4407,43 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) { - fixed (Vector2* ppOut = &pOut) + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4929,104 +4462,102 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) + else { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - fixed (byte* ptextEnd = &textEnd) + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - return ret; + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd) - { - fixed (ImFont* pself = &self) + fixed (byte** premaining = &remaining) { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -5034,5 +4565,479 @@ namespace Dalamud.Bindings.ImGui return ret; } } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.095.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.095.cs index e40d2a240..48aa04e39 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.095.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.095.cs @@ -21,1427 +21,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) { fixed (ImFont* pself = &self) { @@ -1449,9 +29,12 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* ptextEnd = &textEnd) { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + return ret; + } } } } @@ -1460,26 +43,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref byte* remaining) { fixed (ImFont* pself = &self) { @@ -1487,9 +51,12 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* ptextEnd = textEnd) { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + return ret; + } } } } @@ -1498,26 +65,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) { fixed (ImFont* pself = &self) { @@ -1555,79 +103,27 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte** premaining = &remaining) { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + Utils.Free(pStr1); } - else + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + return ret; } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; } } /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd) + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, ref byte* remaining) { fixed (ImFont* pself = &self) { @@ -1635,9 +131,12 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* ptextEnd = textEnd) { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + return ret; + } } } } @@ -1646,26 +145,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) { fixed (ImFont* pself = &self) { @@ -1688,50 +168,16 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte** premaining = &remaining) { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + Utils.Free(pStr0); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret; } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; } } } @@ -1739,7 +185,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd) + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, ref byte* remaining) { fixed (ImFont* pself = &self) { @@ -1747,9 +193,12 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* ptextEnd = &textEnd) { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; + fixed (byte** premaining = &remaining) + { + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + return ret; + } } } } @@ -1758,26 +207,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd) + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, ref byte* remaining) { fixed (ImFont* pself = &self) { @@ -1800,50 +230,16 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte** premaining = &remaining) { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + Utils.Free(pStr0); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret; } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; } } } @@ -1851,7 +247,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) { fixed (ImFont* pself = &self) { @@ -1874,13 +270,16 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* ptextEnd = &textEnd) { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte** premaining = &remaining) { - Utils.Free(pStr0); + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } - return ret; } } } @@ -1888,44 +287,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd) + public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, ref byte* remaining) { fixed (ImFont* pself = &self) { @@ -1948,13 +310,16 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* ptextEnd = textEnd) { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte** premaining = &remaining) { - Utils.Free(pStr0); + Vector2 ret; + CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } - return ret; } } } @@ -1962,44 +327,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) { fixed (Vector2* ppOut = &pOut) { @@ -2009,7 +337,10 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* ptextEnd = &textEnd) { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } } } } @@ -2019,27 +350,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, byte** remaining) + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref byte* remaining) { fixed (Vector2* ppOut = &pOut) { @@ -2049,7 +360,10 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* ptextEnd = textEnd) { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } } } } @@ -2059,27 +373,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) { fixed (Vector2* ppOut = &pOut) { @@ -2119,63 +413,577 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte** premaining = &remaining) { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -2191,340 +999,52 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, byte** remaining) + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, ref byte* remaining) { - fixed (Vector2* ppOut = &pOut) + fixed (ImFont* pself = &self) { - fixed (ImFont* pself = &self) + fixed (byte* ptextBegin = &textBegin) { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } fixed (byte* ptextEnd = textEnd) { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2537,11 +1057,2760 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd) + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, ref byte* remaining) { - fixed (Vector2* ppOut = &pOut) + fixed (ImFont* pself = &self) { - fixed (ImFont* pself = &self) + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* CalcWordWrapPositionANative(ImFont* self, float scale, byte* text, byte* textEnd, float wrapWidth) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[623])(self, scale, text, textEnd, wrapWidth); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[623])((nint)self, scale, (nint)text, (nint)textEnd, wrapWidth); + #endif + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, byte* text, byte* textEnd, float wrapWidth) + { + byte* ret = CalcWordWrapPositionANative(self, scale, text, textEnd, wrapWidth); + return ret; + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, byte* text, byte* textEnd, float wrapWidth) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, textEnd, wrapWidth)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, byte* text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, text, textEnd, wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ref ImFont self, float scale, byte* text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, text, textEnd, wrapWidth)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ReadOnlySpan text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ReadOnlySpan text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, string text, byte* textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, textEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, string text, byte* textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, textEnd, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptext = &text) + { + byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, textEnd, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptext = &text) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, textEnd, wrapWidth)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ReadOnlySpan text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptext = text) + { + byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, textEnd, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ReadOnlySpan text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptext = text) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, textEnd, wrapWidth)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, string text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, textEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ref ImFont self, float scale, string text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, textEnd, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, byte* text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = textEnd) + { + byte* ret = CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, byte* text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, byte* text, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = CalcWordWrapPositionANative(self, scale, text, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, byte* text, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, pStr0, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, text, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ref ImFont self, float scale, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, text, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, byte* text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, text, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ref ImFont self, float scale, byte* text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, text, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, byte* text, string textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, text, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ref ImFont self, float scale, byte* text, string textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, text, pStr0, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, string text, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, pStr1, wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, string text, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, pStr1, wrapWidth)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ref byte text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ref byte text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ref byte text, string textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ref byte text, string textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, pStr0, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ReadOnlySpan text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ReadOnlySpan text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ReadOnlySpan text, string textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ReadOnlySpan text, string textEnd, float wrapWidth) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, pStr0, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, string text, ref byte textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, (byte*)ptextEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, string text, ref byte textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, (byte*)ptextEnd, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, string text, ReadOnlySpan textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, (byte*)ptextEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, string text, ReadOnlySpan textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, (byte*)ptextEnd, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, string text, string textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, pStr1, wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ref ImFont self, float scale, string text, string textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, pStr1, wrapWidth)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ref byte text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ref byte text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ref byte text, string textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ref byte text, string textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, pStr0, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ReadOnlySpan text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ReadOnlySpan text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ReadOnlySpan text, string textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ReadOnlySpan text, string textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, pStr0, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, string text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, (byte*)ptextEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ref ImFont self, float scale, string text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, (byte*)ptextEnd, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, string text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, (byte*)ptextEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string CalcWordWrapPositionAS(ref ImFont self, float scale, string text, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, (byte*)ptextEnd, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderCharNative(ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, ushort c) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[624])(self, drawList, size, pos, col, c); + #else + ((delegate* unmanaged[Cdecl])funcTable[624])((nint)self, (nint)drawList, size, pos, col, c); + #endif + } + + /// + /// To be documented. + /// + public static void RenderChar(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) + { + RenderCharNative(self, drawList, size, pos, col, c); + } + + /// + /// To be documented. + /// + public static void RenderChar(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) + { + fixed (ImFont* pself = &self) + { + RenderCharNative((ImFont*)pself, drawList, size, pos, col, c); + } + } + + /// + /// To be documented. + /// + public static void RenderChar(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderCharNative(self, (ImDrawList*)pdrawList, size, pos, col, c); + } + } + + /// + /// To be documented. + /// + public static void RenderChar(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderCharNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, c); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderTextNative(ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, byte cpuFineClip) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[625])(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip); + #else + ((delegate* unmanaged[Cdecl])funcTable[625])((nint)self, (nint)drawList, size, pos, col, clipRect, (nint)textBegin, (nint)textEnd, wrapWidth, cpuFineClip); + #endif + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (byte* ptextBegin = textBegin) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = textBegin) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (byte* ptextBegin = textBegin) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2560,13 +3829,10 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* ptextEnd = textEnd) + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2575,13 +3841,1078 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = &textEnd) { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } } } @@ -2589,13 +4920,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = &textEnd) { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); } } } @@ -2603,13 +4934,41 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, byte** remaining) + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = textEnd) { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } } } @@ -2617,13 +4976,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = textEnd) { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); } } } @@ -2631,7 +4990,35 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2667,7 +5054,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -2677,2348 +5064,5 @@ namespace Dalamud.Bindings.ImGui Utils.Free(pStr0); } } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); - return ret; - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, byte* textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, ref byte* remaining) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, ref byte* remaining) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.096.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.096.cs index 2b8549743..5335f6ec9 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.096.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.096.cs @@ -21,7 +21,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) { byte* pStr0 = null; int pStrSize0 = 0; @@ -57,37 +57,127 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - fixed (byte** premaining = &remaining) + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, ref byte* remaining) + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = textEnd) { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } } } @@ -95,7 +185,49 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) { fixed (byte* ptextBegin = &textBegin) { @@ -116,15 +248,10 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte** premaining = &remaining) + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } } } @@ -132,18 +259,109 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, ref byte* remaining) + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = &textEnd) { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } } } @@ -151,7 +369,49 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, ref byte* remaining) + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth, bool cpuFineClip) { fixed (byte* ptextBegin = textBegin) { @@ -172,15 +432,10 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte** premaining = &remaining) + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } } } @@ -188,7 +443,103 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, bool cpuFineClip) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) { byte* pStr0 = null; int pStrSize0 = 0; @@ -209,15 +560,10 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* ptextEnd = &textEnd) { - fixed (byte** premaining = &remaining) + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } } } @@ -225,7 +571,103 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, ref byte* remaining) + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) { byte* pStr0 = null; int pStrSize0 = 0; @@ -246,15 +688,10 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* ptextEnd = textEnd) { - fixed (byte** premaining = &remaining) + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } } } @@ -262,19 +699,31 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth) { - fixed (Vector2* ppOut = &pOut) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (byte* ptextBegin = &textBegin) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -282,19 +731,31 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref byte* remaining) + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd) { - fixed (Vector2* ppOut = &pOut) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (byte* ptextBegin = textBegin) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -302,55 +763,31 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) + public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, bool cpuFineClip) { - fixed (Vector2* ppOut = &pOut) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) + else { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - fixed (byte** premaining = &remaining) + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -358,199 +795,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* pself = &self) { @@ -558,12 +803,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* ptextEnd = &textEnd) { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } } } @@ -572,7 +812,58 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref byte* remaining) + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* pself = &self) { @@ -580,12 +871,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* ptextEnd = textEnd) { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } } } @@ -594,7 +880,58 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* pself = &self) { @@ -632,19 +969,14 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - fixed (byte** premaining = &remaining) + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -652,7 +984,166 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, ref byte* remaining) + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* pself = &self) { @@ -660,12 +1151,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* ptextEnd = textEnd) { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } } } @@ -674,7 +1160,58 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* pself = &self) { @@ -697,15 +1234,10 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte** premaining = &remaining) + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } } } @@ -714,7 +1246,112 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, ref byte* remaining) + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* pself = &self) { @@ -722,12 +1359,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* ptextEnd = &textEnd) { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } } } @@ -736,7 +1368,58 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, ref byte* remaining) + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* pself = &self) { @@ -759,15 +1442,10 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte** premaining = &remaining) + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } } } @@ -776,7 +1454,112 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* pself = &self) { @@ -799,15 +1582,10 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* ptextEnd = &textEnd) { - fixed (byte** premaining = &remaining) + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } } } @@ -816,7 +1594,112 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, ref byte* remaining) + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* pself = &self) { @@ -839,15 +1722,10 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* ptextEnd = textEnd) { - fixed (byte** premaining = &remaining) + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } } } @@ -856,20 +1734,1166 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth) { - fixed (Vector2* ppOut = &pOut) + fixed (ImFont* pself = &self) { - fixed (ImFont* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = &textEnd) { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } } } @@ -879,20 +2903,77 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref byte* remaining) + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) { - fixed (Vector2* ppOut = &pOut) + fixed (ImFont* pself = &self) { - fixed (ImFont* pself = &self) + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = textEnd) { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } } } @@ -902,11 +2983,71 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) { - fixed (Vector2* ppOut = &pOut) + fixed (ImFont* pself = &self) { - fixed (ImFont* pself = &self) + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) { byte* pStr0 = null; int pStrSize0 = 0; @@ -942,577 +3083,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -1528,37 +3099,17 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan textEnd, ref byte* remaining) + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) { fixed (ImFont* pself = &self) { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) + fixed (ImDrawList* pdrawList = &drawList) { byte* pStr0 = null; int pStrSize0 = 0; - if (textEnd != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1568,1340 +3119,1251 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan textBegin, string textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; + byte* pStr1 = null; + int pStrSize1 = 0; if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStr1 = Utils.Alloc(pStrSize1 + 1); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* CalcWordWrapPositionANative(ImFont* self, float scale, byte* text, byte* textEnd, float wrapWidth) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[623])(self, scale, text, textEnd, wrapWidth); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[623])((nint)self, scale, (nint)text, (nint)textEnd, wrapWidth); - #endif - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, byte* text, byte* textEnd, float wrapWidth) - { - byte* ret = CalcWordWrapPositionANative(self, scale, text, textEnd, wrapWidth); - return ret; - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, byte* text, byte* textEnd, float wrapWidth) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, textEnd, wrapWidth)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, byte* text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, text, textEnd, wrapWidth); - return ret; - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, byte* text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, text, textEnd, wrapWidth)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ref byte text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth); - return ret; - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ref byte text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ReadOnlySpan text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth); - return ret; - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ReadOnlySpan text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, string text, byte* textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, textEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, string text, byte* textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, textEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ref byte text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, textEnd, wrapWidth); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ref byte text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, textEnd, wrapWidth)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ReadOnlySpan text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = text) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, textEnd, wrapWidth); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ReadOnlySpan text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = text) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, textEnd, wrapWidth)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, string text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, textEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, string text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, textEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, byte* text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, byte* text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, byte* text, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, byte* text, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, byte* text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative(self, scale, text, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, byte* text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, byte* text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, text, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, byte* text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, text, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, byte* text, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, text, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, byte* text, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, text, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, byte* text, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, text, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, byte* text, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, text, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ref byte text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ref byte text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, string text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, pStr1, wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, string text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, pStr1, wrapWidth)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ref byte text, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ref byte text, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ref byte text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ref byte text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ReadOnlySpan text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ReadOnlySpan text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ReadOnlySpan text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ReadOnlySpan text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, string text, ref byte textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, (byte*)ptextEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, string text, ref byte textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, (byte*)ptextEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, string text, ReadOnlySpan textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, (byte*)ptextEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, string text, ReadOnlySpan textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, (byte*)ptextEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ref byte text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ref byte text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, string text, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + Utils.Free(pStr1); } - else + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; } - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, pStr1, wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; } } /// /// To be documented. /// - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, string text, string textEnd, float wrapWidth) + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) { fixed (ImFont* pself = &self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) + fixed (ImDrawList* pdrawList = &drawList) { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + Utils.Free(pStr1); } - else + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, pStr1, wrapWidth)); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) { - Utils.Free(pStr1); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) { - Utils.Free(pStr0); + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + { + fixed (ImFont* pself = &self) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BuildLookupTableNative(ImFont* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[626])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[626])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void BuildLookupTable(ImFontPtr self) + { + BuildLookupTableNative(self); + } + + /// + /// To be documented. + /// + public static void BuildLookupTable(ref ImFont self) + { + fixed (ImFont* pself = &self) + { + BuildLookupTableNative((ImFont*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearOutputDataNative(ImFont* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[627])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[627])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ClearOutputData(ImFontPtr self) + { + ClearOutputDataNative(self); + } + + /// + /// To be documented. + /// + public static void ClearOutputData(ref ImFont self) + { + fixed (ImFont* pself = &self) + { + ClearOutputDataNative((ImFont*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GrowIndexNative(ImFont* self, int newSize) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[628])(self, newSize); + #else + ((delegate* unmanaged[Cdecl])funcTable[628])((nint)self, newSize); + #endif + } + + /// + /// To be documented. + /// + public static void GrowIndex(ImFontPtr self, int newSize) + { + GrowIndexNative(self, newSize); + } + + /// + /// To be documented. + /// + public static void GrowIndex(ref ImFont self, int newSize) + { + fixed (ImFont* pself = &self) + { + GrowIndexNative((ImFont*)pself, newSize); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddGlyphNative(ImFont* self, ImFontConfig* srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[629])(self, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + #else + ((delegate* unmanaged[Cdecl])funcTable[629])((nint)self, (nint)srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + #endif + } + + /// + /// To be documented. + /// + public static void AddGlyph(ImFontPtr self, ImFontConfigPtr srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) + { + AddGlyphNative(self, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + + /// + /// To be documented. + /// + public static void AddGlyph(ref ImFont self, ImFontConfigPtr srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) + { + fixed (ImFont* pself = &self) + { + AddGlyphNative((ImFont*)pself, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + } + + /// + /// To be documented. + /// + public static void AddGlyph(ImFontPtr self, ref ImFontConfig srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) + { + fixed (ImFontConfig* psrcCfg = &srcCfg) + { + AddGlyphNative(self, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + } + + /// + /// To be documented. + /// + public static void AddGlyph(ref ImFont self, ref ImFontConfig srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) + { + fixed (ImFont* pself = &self) + { + fixed (ImFontConfig* psrcCfg = &srcCfg) + { + AddGlyphNative((ImFont*)pself, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddRemapCharNative(ImFont* self, ushort dst, ushort src, byte overwriteDst) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[630])(self, dst, src, overwriteDst); + #else + ((delegate* unmanaged[Cdecl])funcTable[630])((nint)self, dst, src, overwriteDst); + #endif + } + + /// + /// To be documented. + /// + public static void AddRemapChar(ImFontPtr self, ushort dst, ushort src, bool overwriteDst) + { + AddRemapCharNative(self, dst, src, overwriteDst ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void AddRemapChar(ImFontPtr self, ushort dst, ushort src) + { + AddRemapCharNative(self, dst, src, (byte)(1)); + } + + /// + /// To be documented. + /// + public static void AddRemapChar(ref ImFont self, ushort dst, ushort src, bool overwriteDst) + { + fixed (ImFont* pself = &self) + { + AddRemapCharNative((ImFont*)pself, dst, src, overwriteDst ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void AddRemapChar(ref ImFont self, ushort dst, ushort src) + { + fixed (ImFont* pself = &self) + { + AddRemapCharNative((ImFont*)pself, dst, src, (byte)(1)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetGlyphVisibleNative(ImFont* self, ushort c, byte visible) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[631])(self, c, visible); + #else + ((delegate* unmanaged[Cdecl])funcTable[631])((nint)self, c, visible); + #endif + } + + /// + /// To be documented. + /// + public static void SetGlyphVisible(ImFontPtr self, ushort c, bool visible) + { + SetGlyphVisibleNative(self, c, visible ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void SetGlyphVisible(ref ImFont self, ushort c, bool visible) + { + fixed (ImFont* pself = &self) + { + SetGlyphVisibleNative((ImFont*)pself, c, visible ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsGlyphRangeUnusedNative(ImFont* self, uint cBegin, uint cLast) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[632])(self, cBegin, cLast); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[632])((nint)self, cBegin, cLast); + #endif + } + + /// + /// To be documented. + /// + public static bool IsGlyphRangeUnused(ImFontPtr self, uint cBegin, uint cLast) + { + byte ret = IsGlyphRangeUnusedNative(self, cBegin, cLast); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsGlyphRangeUnused(ref ImFont self, uint cBegin, uint cLast) + { + fixed (ImFont* pself = &self) + { + byte ret = IsGlyphRangeUnusedNative((ImFont*)pself, cBegin, cLast); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddKerningPairNative(ImFont* self, ushort leftC, ushort rightC, float distanceAdjustment) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[633])(self, leftC, rightC, distanceAdjustment); + #else + ((delegate* unmanaged[Cdecl])funcTable[633])((nint)self, leftC, rightC, distanceAdjustment); + #endif + } + + /// + /// To be documented. + /// + public static void AddKerningPair(ImFontPtr self, ushort leftC, ushort rightC, float distanceAdjustment) + { + AddKerningPairNative(self, leftC, rightC, distanceAdjustment); + } + + /// + /// To be documented. + /// + public static void AddKerningPair(ref ImFont self, ushort leftC, ushort rightC, float distanceAdjustment) + { + fixed (ImFont* pself = &self) + { + AddKerningPairNative((ImFont*)pself, leftC, rightC, distanceAdjustment); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetDistanceAdjustmentForPairFromHotDataNative(ImFont* self, ushort leftC, ImFontGlyphHotData* rightCInfo) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[634])(self, leftC, rightCInfo); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[634])((nint)self, leftC, (nint)rightCInfo); + #endif + } + + /// + /// To be documented. + /// + public static float GetDistanceAdjustmentForPairFromHotData(ImFontPtr self, ushort leftC, ImFontGlyphHotDataPtr rightCInfo) + { + float ret = GetDistanceAdjustmentForPairFromHotDataNative(self, leftC, rightCInfo); + return ret; + } + + /// + /// To be documented. + /// + public static float GetDistanceAdjustmentForPairFromHotData(ref ImFont self, ushort leftC, ImFontGlyphHotDataPtr rightCInfo) + { + fixed (ImFont* pself = &self) + { + float ret = GetDistanceAdjustmentForPairFromHotDataNative((ImFont*)pself, leftC, rightCInfo); return ret; } } @@ -2909,358 +4371,25 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ref byte text, ReadOnlySpan textEnd, float wrapWidth) + public static float GetDistanceAdjustmentForPairFromHotData(ImFontPtr self, ushort leftC, ref ImFontGlyphHotData rightCInfo) { - fixed (ImFont* pself = &self) + fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } + float ret = GetDistanceAdjustmentForPairFromHotDataNative(self, leftC, (ImFontGlyphHotData*)prightCInfo); + return ret; } } /// /// To be documented. /// - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ref byte text, ReadOnlySpan textEnd, float wrapWidth) + public static float GetDistanceAdjustmentForPairFromHotData(ref ImFont self, ushort leftC, ref ImFontGlyphHotData rightCInfo) { fixed (ImFont* pself = &self) { - fixed (byte* ptext = &text) + fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ref byte text, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ref byte text, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ReadOnlySpan text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ReadOnlySpan text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ReadOnlySpan text, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ReadOnlySpan text, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, string text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, (byte*)ptextEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, string text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, (byte*)ptextEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, string text, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, (byte*)ptextEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, string text, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, (byte*)ptextEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + float ret = GetDistanceAdjustmentForPairFromHotDataNative((ImFont*)pself, leftC, (ImFontGlyphHotData*)prightCInfo); return ret; } } @@ -3270,55 +4399,132 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderCharNative(ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, ushort c) + internal static ImGuiViewport* ImGuiViewportNative() { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[624])(self, drawList, size, pos, col, c); + return ((delegate* unmanaged[Cdecl])funcTable[635])(); #else - ((delegate* unmanaged[Cdecl])funcTable[624])((nint)self, (nint)drawList, size, pos, col, c); + return (ImGuiViewport*)((delegate* unmanaged[Cdecl])funcTable[635])(); #endif } /// /// To be documented. /// - public static void RenderChar(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) + public static ImGuiViewportPtr ImGuiViewport() { - RenderCharNative(self, drawList, size, pos, col, c); + ImGuiViewportPtr ret = ImGuiViewportNative(); + return ret; } /// /// To be documented. /// - public static void RenderChar(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiViewport* self) { - fixed (ImFont* pself = &self) + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[636])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[636])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiViewportPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiViewport self) + { + fixed (ImGuiViewport* pself = &self) { - RenderCharNative((ImFont*)pself, drawList, size, pos, col, c); + DestroyNative((ImGuiViewport*)pself); } } /// /// To be documented. /// - public static void RenderChar(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetCenterNative(Vector2* pOut, ImGuiViewport* self) { - fixed (ImDrawList* pdrawList = &drawList) + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[637])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[637])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetCenter(ImGuiViewportPtr self) + { + Vector2 ret; + GetCenterNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void GetCenter(Vector2* pOut, ImGuiViewportPtr self) + { + GetCenterNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void GetCenter(ref Vector2 pOut, ImGuiViewportPtr self) + { + fixed (Vector2* ppOut = &pOut) { - RenderCharNative(self, (ImDrawList*)pdrawList, size, pos, col, c); + GetCenterNative((Vector2*)ppOut, self); } } /// /// To be documented. /// - public static void RenderChar(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) + public static Vector2 GetCenter(ref ImGuiViewport self) { - fixed (ImFont* pself = &self) + fixed (ImGuiViewport* pself = &self) { - fixed (ImDrawList* pdrawList = &drawList) + Vector2 ret; + GetCenterNative(&ret, (ImGuiViewport*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void GetCenter(Vector2* pOut, ref ImGuiViewport self) + { + fixed (ImGuiViewport* pself = &self) + { + GetCenterNative(pOut, (ImGuiViewport*)pself); + } + } + + /// + /// To be documented. + /// + public static void GetCenter(ref Vector2 pOut, ref ImGuiViewport self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImGuiViewport* pself = &self) { - RenderCharNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, c); + GetCenterNative((Vector2*)ppOut, (ImGuiViewport*)pself); } } } @@ -3327,956 +4533,78 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderTextNative(ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, byte cpuFineClip) + internal static void GetWorkCenterNative(Vector2* pOut, ImGuiViewport* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[625])(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip); + ((delegate* unmanaged[Cdecl])funcTable[638])(pOut, self); #else - ((delegate* unmanaged[Cdecl])funcTable[625])((nint)self, (nint)drawList, size, pos, col, clipRect, (nint)textBegin, (nint)textEnd, wrapWidth, cpuFineClip); + ((delegate* unmanaged[Cdecl])funcTable[638])((nint)pOut, (nint)self); #endif } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + public static Vector2 GetWorkCenter(ImGuiViewportPtr self) { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + Vector2 ret; + GetWorkCenterNative(&ret, self); + return ret; } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) + public static void GetWorkCenter(Vector2* pOut, ImGuiViewportPtr self) { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); + GetWorkCenterNative(pOut, self); } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) + public static void GetWorkCenter(ref Vector2 pOut, ImGuiViewportPtr self) { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) + fixed (Vector2* ppOut = &pOut) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } + GetWorkCenterNative((Vector2*)ppOut, self); } } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) + public static Vector2 GetWorkCenter(ref ImGuiViewport self) { - fixed (ImFont* pself = &self) + fixed (ImGuiViewport* pself = &self) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } + Vector2 ret; + GetWorkCenterNative(&ret, (ImGuiViewport*)pself); + return ret; } } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) + public static void GetWorkCenter(Vector2* pOut, ref ImGuiViewport self) { - fixed (ImFont* pself = &self) + fixed (ImGuiViewport* pself = &self) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } + GetWorkCenterNative(pOut, (ImGuiViewport*)pself); } } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + public static void GetWorkCenter(ref Vector2 pOut, ref ImGuiViewport self) { - fixed (ImFont* pself = &self) + fixed (Vector2* ppOut = &pOut) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiViewport* pself = &self) { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } + GetWorkCenterNative((Vector2*)ppOut, (ImGuiViewport*)pself); } } } @@ -4284,748 +4612,422 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, float wrapWidth) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiPlatformIO* ImGuiPlatformIONative() { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[639])(); + #else + return (ImGuiPlatformIO*)((delegate* unmanaged[Cdecl])funcTable[639])(); + #endif } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd) + public static ImGuiPlatformIOPtr ImGuiPlatformIO() { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } + ImGuiPlatformIOPtr ret = ImGuiPlatformIONative(); + return ret; } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, byte* textEnd, bool cpuFineClip) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiPlatformIO* self) { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[640])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[640])((nint)self); + #endif } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + public static void Destroy(ImGuiPlatformIOPtr self) { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + DestroyNative(self); } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) + public static void Destroy(ref ImGuiPlatformIO self) { - fixed (ImFont* pself = &self) + fixed (ImGuiPlatformIO* pself = &self) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + DestroyNative((ImGuiPlatformIO*)pself); } } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiPlatformMonitor* ImGuiPlatformMonitorNative() { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[641])(); + #else + return (ImGuiPlatformMonitor*)((delegate* unmanaged[Cdecl])funcTable[641])(); + #endif } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) + public static ImGuiPlatformMonitorPtr ImGuiPlatformMonitor() { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + ImGuiPlatformMonitorPtr ret = ImGuiPlatformMonitorNative(); + return ret; } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiPlatformMonitor* self) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[642])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[642])((nint)self); + #endif } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) + public static void Destroy(ImGuiPlatformMonitorPtr self) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } + DestroyNative(self); } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) + public static void Destroy(ref ImGuiPlatformMonitor self) { - fixed (byte* ptextEnd = &textEnd) + fixed (ImGuiPlatformMonitor* pself = &self) { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + DestroyNative((ImGuiPlatformMonitor*)pself); } } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiPlatformImeData* ImGuiPlatformImeDataNative() { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[643])(); + #else + return (ImGuiPlatformImeData*)((delegate* unmanaged[Cdecl])funcTable[643])(); + #endif } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + public static ImGuiPlatformImeDataPtr ImGuiPlatformImeData() { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } + ImGuiPlatformImeDataPtr ret = ImGuiPlatformImeDataNative(); + return ret; } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiPlatformImeData* self) { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[644])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[644])((nint)self); + #endif } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd) + public static void Destroy(ImGuiPlatformImeDataPtr self) { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } + DestroyNative(self); } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + public static void Destroy(ref ImGuiPlatformImeData self) { - fixed (byte* ptextEnd = textEnd) + fixed (ImGuiPlatformImeData* pself = &self) { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + DestroyNative((ImGuiPlatformImeData*)pself); } } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetKeyIndexNative(ImGuiKey key) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[645])(key); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[645])(key); + #endif } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) + public static int GetKeyIndex(ImGuiKey key) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + int ret = GetKeyIndexNative(key); + return ret; } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImVec1* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[646])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[646])((nint)self); + #endif } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) + public static void Destroy(ImVec1Ptr self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + DestroyNative(self); } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + public static void Destroy(ref ImVec1 self) { - fixed (ImFont* pself = &self) + fixed (ImVec1* pself = &self) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } + DestroyNative((ImVec1*)pself); } } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImVec2Ih* self) { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[647])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[647])((nint)self); + #endif } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) + public static void Destroy(ImVec2IhPtr self) { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } + DestroyNative(self); } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) + public static void Destroy(ref ImVec2Ih self) { - fixed (ImFont* pself = &self) + fixed (ImVec2Ih* pself = &self) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } + DestroyNative((ImVec2Ih*)pself); } } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImRect* self) { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[648])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[648])((nint)self); + #endif } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + public static void Destroy(ImRectPtr self) { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } + DestroyNative(self); } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd) + public static void Destroy(ref ImRect self) { - fixed (ImFont* pself = &self) + fixed (ImRect* pself = &self) { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } + DestroyNative((ImRect*)pself); } } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImDrawListSharedData* self) { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[649])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[649])((nint)self); + #endif } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + public static void Destroy(ImDrawListSharedDataPtr self) { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + DestroyNative(self); } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) + public static void Destroy(ref ImDrawListSharedData self) { - fixed (ImFont* pself = &self) + fixed (ImDrawListSharedData* pself = &self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + DestroyNative((ImDrawListSharedData*)pself); } } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiStyleMod* self) { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[650])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[650])((nint)self); + #endif } /// /// To be documented. /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) + public static void Destroy(ImGuiStyleModPtr self) { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + DestroyNative(self); } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + public static void Destroy(ref ImGuiStyleMod self) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiStyleMod* pself = &self) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } + DestroyNative((ImGuiStyleMod*)pself); } } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiComboPreviewData* self) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[651])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[651])((nint)self); + #endif } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) + public static void Destroy(ImGuiComboPreviewDataPtr self) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } + DestroyNative(self); } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) + public static void Destroy(ref ImGuiComboPreviewData self) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiComboPreviewData* pself = &self) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } + DestroyNative((ImGuiComboPreviewData*)pself); } } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiMenuColumns* self) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[652])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[652])((nint)self); + #endif } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) + public static void Destroy(ImGuiMenuColumnsPtr self) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } + DestroyNative(self); } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd) + public static void Destroy(ref ImGuiMenuColumns self) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiMenuColumns* pself = &self) { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } + DestroyNative((ImGuiMenuColumns*)pself); } } /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, bool cpuFineClip) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiInputTextState* self) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[653])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[653])((nint)self); + #endif } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.097.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.097.cs index 8e01dc302..d92677067 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.097.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.097.cs @@ -21,4985 +21,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ReadOnlySpan textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BuildLookupTableNative(ImFont* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[626])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[626])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void BuildLookupTable(ImFontPtr self) - { - BuildLookupTableNative(self); - } - - /// - /// To be documented. - /// - public static void BuildLookupTable(ref ImFont self) - { - fixed (ImFont* pself = &self) - { - BuildLookupTableNative((ImFont*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearOutputDataNative(ImFont* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[627])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[627])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void ClearOutputData(ImFontPtr self) - { - ClearOutputDataNative(self); - } - - /// - /// To be documented. - /// - public static void ClearOutputData(ref ImFont self) - { - fixed (ImFont* pself = &self) - { - ClearOutputDataNative((ImFont*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GrowIndexNative(ImFont* self, int newSize) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[628])(self, newSize); - #else - ((delegate* unmanaged[Cdecl])funcTable[628])((nint)self, newSize); - #endif - } - - /// - /// To be documented. - /// - public static void GrowIndex(ImFontPtr self, int newSize) - { - GrowIndexNative(self, newSize); - } - - /// - /// To be documented. - /// - public static void GrowIndex(ref ImFont self, int newSize) - { - fixed (ImFont* pself = &self) - { - GrowIndexNative((ImFont*)pself, newSize); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddGlyphNative(ImFont* self, ImFontConfig* srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[629])(self, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - #else - ((delegate* unmanaged[Cdecl])funcTable[629])((nint)self, (nint)srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - #endif - } - - /// - /// To be documented. - /// - public static void AddGlyph(ImFontPtr self, ImFontConfigPtr srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - AddGlyphNative(self, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - - /// - /// To be documented. - /// - public static void AddGlyph(ref ImFont self, ImFontConfigPtr srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - fixed (ImFont* pself = &self) - { - AddGlyphNative((ImFont*)pself, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - } - - /// - /// To be documented. - /// - public static void AddGlyph(ImFontPtr self, ref ImFontConfig srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - fixed (ImFontConfig* psrcCfg = &srcCfg) - { - AddGlyphNative(self, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - } - - /// - /// To be documented. - /// - public static void AddGlyph(ref ImFont self, ref ImFontConfig srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - fixed (ImFont* pself = &self) - { - fixed (ImFontConfig* psrcCfg = &srcCfg) - { - AddGlyphNative((ImFont*)pself, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddRemapCharNative(ImFont* self, ushort dst, ushort src, byte overwriteDst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[630])(self, dst, src, overwriteDst); - #else - ((delegate* unmanaged[Cdecl])funcTable[630])((nint)self, dst, src, overwriteDst); - #endif - } - - /// - /// To be documented. - /// - public static void AddRemapChar(ImFontPtr self, ushort dst, ushort src, bool overwriteDst) - { - AddRemapCharNative(self, dst, src, overwriteDst ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void AddRemapChar(ImFontPtr self, ushort dst, ushort src) - { - AddRemapCharNative(self, dst, src, (byte)(1)); - } - - /// - /// To be documented. - /// - public static void AddRemapChar(ref ImFont self, ushort dst, ushort src, bool overwriteDst) - { - fixed (ImFont* pself = &self) - { - AddRemapCharNative((ImFont*)pself, dst, src, overwriteDst ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void AddRemapChar(ref ImFont self, ushort dst, ushort src) - { - fixed (ImFont* pself = &self) - { - AddRemapCharNative((ImFont*)pself, dst, src, (byte)(1)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetGlyphVisibleNative(ImFont* self, ushort c, byte visible) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[631])(self, c, visible); - #else - ((delegate* unmanaged[Cdecl])funcTable[631])((nint)self, c, visible); - #endif - } - - /// - /// To be documented. - /// - public static void SetGlyphVisible(ImFontPtr self, ushort c, bool visible) - { - SetGlyphVisibleNative(self, c, visible ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void SetGlyphVisible(ref ImFont self, ushort c, bool visible) - { - fixed (ImFont* pself = &self) - { - SetGlyphVisibleNative((ImFont*)pself, c, visible ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsGlyphRangeUnusedNative(ImFont* self, uint cBegin, uint cLast) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[632])(self, cBegin, cLast); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[632])((nint)self, cBegin, cLast); - #endif - } - - /// - /// To be documented. - /// - public static bool IsGlyphRangeUnused(ImFontPtr self, uint cBegin, uint cLast) - { - byte ret = IsGlyphRangeUnusedNative(self, cBegin, cLast); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsGlyphRangeUnused(ref ImFont self, uint cBegin, uint cLast) - { - fixed (ImFont* pself = &self) - { - byte ret = IsGlyphRangeUnusedNative((ImFont*)pself, cBegin, cLast); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddKerningPairNative(ImFont* self, ushort leftC, ushort rightC, float distanceAdjustment) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[633])(self, leftC, rightC, distanceAdjustment); - #else - ((delegate* unmanaged[Cdecl])funcTable[633])((nint)self, leftC, rightC, distanceAdjustment); - #endif - } - - /// - /// To be documented. - /// - public static void AddKerningPair(ImFontPtr self, ushort leftC, ushort rightC, float distanceAdjustment) - { - AddKerningPairNative(self, leftC, rightC, distanceAdjustment); - } - - /// - /// To be documented. - /// - public static void AddKerningPair(ref ImFont self, ushort leftC, ushort rightC, float distanceAdjustment) - { - fixed (ImFont* pself = &self) - { - AddKerningPairNative((ImFont*)pself, leftC, rightC, distanceAdjustment); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetDistanceAdjustmentForPairFromHotDataNative(ImFont* self, ushort leftC, ImFontGlyphHotData* rightCInfo) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[634])(self, leftC, rightCInfo); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[634])((nint)self, leftC, (nint)rightCInfo); - #endif - } - - /// - /// To be documented. - /// - public static float GetDistanceAdjustmentForPairFromHotData(ImFontPtr self, ushort leftC, ImFontGlyphHotDataPtr rightCInfo) - { - float ret = GetDistanceAdjustmentForPairFromHotDataNative(self, leftC, rightCInfo); - return ret; - } - - /// - /// To be documented. - /// - public static float GetDistanceAdjustmentForPairFromHotData(ref ImFont self, ushort leftC, ImFontGlyphHotDataPtr rightCInfo) - { - fixed (ImFont* pself = &self) - { - float ret = GetDistanceAdjustmentForPairFromHotDataNative((ImFont*)pself, leftC, rightCInfo); - return ret; - } - } - - /// - /// To be documented. - /// - public static float GetDistanceAdjustmentForPairFromHotData(ImFontPtr self, ushort leftC, ref ImFontGlyphHotData rightCInfo) - { - fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) - { - float ret = GetDistanceAdjustmentForPairFromHotDataNative(self, leftC, (ImFontGlyphHotData*)prightCInfo); - return ret; - } - } - - /// - /// To be documented. - /// - public static float GetDistanceAdjustmentForPairFromHotData(ref ImFont self, ushort leftC, ref ImFontGlyphHotData rightCInfo) - { - fixed (ImFont* pself = &self) - { - fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) - { - float ret = GetDistanceAdjustmentForPairFromHotDataNative((ImFont*)pself, leftC, (ImFontGlyphHotData*)prightCInfo); - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiViewport* ImGuiViewportNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[635])(); - #else - return (ImGuiViewport*)((delegate* unmanaged[Cdecl])funcTable[635])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiViewportPtr ImGuiViewport() - { - ImGuiViewportPtr ret = ImGuiViewportNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiViewport* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[636])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[636])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiViewportPtr self) + public static void Destroy(ImGuiInputTextStatePtr self) { DestroyNative(self); } @@ -5007,11 +29,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void Destroy(ref ImGuiViewport self) + public static void Destroy(ref ImGuiInputTextState self) { - fixed (ImGuiViewport* pself = &self) + fixed (ImGuiInputTextState* pself = &self) { - DestroyNative((ImGuiViewport*)pself); + DestroyNative((ImGuiInputTextState*)pself); } } @@ -5019,13 +41,1215 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetCenterNative(Vector2* pOut, ImGuiViewport* self) + internal static void DestroyNative(ImGuiPopupData* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[637])(pOut, self); + ((delegate* unmanaged[Cdecl])funcTable[654])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[637])((nint)pOut, (nint)self); + ((delegate* unmanaged[Cdecl])funcTable[654])((nint)self); #endif } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiPopupDataPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiPopupData self) + { + fixed (ImGuiPopupData* pself = &self) + { + DestroyNative((ImGuiPopupData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiNextWindowData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[655])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[655])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiNextWindowDataPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiNextWindowData self) + { + fixed (ImGuiNextWindowData* pself = &self) + { + DestroyNative((ImGuiNextWindowData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiNextItemData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[656])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[656])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiNextItemDataPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiNextItemData self) + { + fixed (ImGuiNextItemData* pself = &self) + { + DestroyNative((ImGuiNextItemData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiLastItemData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[657])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[657])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiLastItemDataPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiLastItemData self) + { + fixed (ImGuiLastItemData* pself = &self) + { + DestroyNative((ImGuiLastItemData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiStackSizes* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[658])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[658])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiStackSizesPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiStackSizes self) + { + fixed (ImGuiStackSizes* pself = &self) + { + DestroyNative((ImGuiStackSizes*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiPtrOrIndex* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[659])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[659])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiPtrOrIndexPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiPtrOrIndex self) + { + fixed (ImGuiPtrOrIndex* pself = &self) + { + DestroyNative((ImGuiPtrOrIndex*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiInputEvent* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[660])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[660])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiInputEventPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiInputEvent self) + { + fixed (ImGuiInputEvent* pself = &self) + { + DestroyNative((ImGuiInputEvent*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiListClipperData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[661])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[661])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiListClipperDataPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiListClipperData self) + { + fixed (ImGuiListClipperData* pself = &self) + { + DestroyNative((ImGuiListClipperData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiNavItemData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[662])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[662])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiNavItemDataPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiNavItemData self) + { + fixed (ImGuiNavItemData* pself = &self) + { + DestroyNative((ImGuiNavItemData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiOldColumnData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[663])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[663])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiOldColumnDataPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiOldColumnData self) + { + fixed (ImGuiOldColumnData* pself = &self) + { + DestroyNative((ImGuiOldColumnData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiOldColumns* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[664])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[664])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiOldColumnsPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiOldColumns self) + { + fixed (ImGuiOldColumns* pself = &self) + { + DestroyNative((ImGuiOldColumns*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiDockContext* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[665])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[665])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiDockContextPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiDockContext self) + { + fixed (ImGuiDockContext* pself = &self) + { + DestroyNative((ImGuiDockContext*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiWindowSettings* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[666])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[666])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiWindowSettingsPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiWindowSettings self) + { + fixed (ImGuiWindowSettings* pself = &self) + { + DestroyNative((ImGuiWindowSettings*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiSettingsHandler* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[667])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[667])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiSettingsHandlerPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiSettingsHandler self) + { + fixed (ImGuiSettingsHandler* pself = &self) + { + DestroyNative((ImGuiSettingsHandler*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiMetricsConfig* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[668])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[668])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiMetricsConfigPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiMetricsConfig self) + { + fixed (ImGuiMetricsConfig* pself = &self) + { + DestroyNative((ImGuiMetricsConfig*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiStackLevelInfo* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[669])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[669])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiStackLevelInfoPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiStackLevelInfo self) + { + fixed (ImGuiStackLevelInfo* pself = &self) + { + DestroyNative((ImGuiStackLevelInfo*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiStackTool* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[670])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[670])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiStackToolPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiStackTool self) + { + fixed (ImGuiStackTool* pself = &self) + { + DestroyNative((ImGuiStackTool*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiContextHook* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[671])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[671])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiContextHookPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiContextHook self) + { + fixed (ImGuiContextHook* pself = &self) + { + DestroyNative((ImGuiContextHook*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiContext* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[672])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[672])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiContextPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiContext self) + { + fixed (ImGuiContext* pself = &self) + { + DestroyNative((ImGuiContext*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiTabItem* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[673])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[673])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiTabItemPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiTabItem self) + { + fixed (ImGuiTabItem* pself = &self) + { + DestroyNative((ImGuiTabItem*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiTabBar* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[674])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[674])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiTabBarPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiTabBar self) + { + fixed (ImGuiTabBar* pself = &self) + { + DestroyNative((ImGuiTabBar*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiTableColumn* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[675])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[675])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiTableColumnPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiTableColumn self) + { + fixed (ImGuiTableColumn* pself = &self) + { + DestroyNative((ImGuiTableColumn*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiTableInstanceData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[676])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[676])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiTableInstanceDataPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiTableInstanceData self) + { + fixed (ImGuiTableInstanceData* pself = &self) + { + DestroyNative((ImGuiTableInstanceData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiTableTempData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[677])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[677])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiTableTempDataPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiTableTempData self) + { + fixed (ImGuiTableTempData* pself = &self) + { + DestroyNative((ImGuiTableTempData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiTableColumnSettings* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[678])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[678])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiTableColumnSettingsPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiTableColumnSettings self) + { + fixed (ImGuiTableColumnSettings* pself = &self) + { + DestroyNative((ImGuiTableColumnSettings*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiTableSettings* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[679])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[679])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiTableSettingsPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiTableSettings self) + { + fixed (ImGuiTableSettings* pself = &self) + { + DestroyNative((ImGuiTableSettings*)pself); + } + } + + /// + /// //////////////////////hand written functions
+ /// no LogTextV
+ ///
+ [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void LogTextNative(byte* fmt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[680])(fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[680])((nint)fmt); + #endif + } + + /// + /// //////////////////////hand written functions
+ /// no LogTextV
+ ///
+ public static void LogText(byte* fmt) + { + LogTextNative(fmt); + } + + /// + /// //////////////////////hand written functions
+ /// no LogTextV
+ ///
+ public static void LogText(ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + LogTextNative((byte*)pfmt); + } + } + + /// + /// //////////////////////hand written functions
+ /// no LogTextV
+ ///
+ public static void LogText(ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + LogTextNative((byte*)pfmt); + } + } + + /// + /// //////////////////////hand written functions
+ /// no LogTextV
+ ///
+ public static void LogText(string fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogTextNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// no appendfV
+ ///
+ [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void appendfNative(ImGuiTextBuffer* buffer, byte* fmt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[681])(buffer, fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[681])((nint)buffer, (nint)fmt); + #endif + } + + /// + /// no appendfV
+ ///
+ public static void appendf(ImGuiTextBufferPtr buffer, byte* fmt) + { + appendfNative(buffer, fmt); + } + + /// + /// no appendfV
+ ///
+ public static void appendf(ref ImGuiTextBuffer buffer, byte* fmt) + { + fixed (ImGuiTextBuffer* pbuffer = &buffer) + { + appendfNative((ImGuiTextBuffer*)pbuffer, fmt); + } + } + + /// + /// no appendfV
+ ///
+ public static void appendf(ImGuiTextBufferPtr buffer, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + appendfNative(buffer, (byte*)pfmt); + } + } + + /// + /// no appendfV
+ ///
+ public static void appendf(ImGuiTextBufferPtr buffer, ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + appendfNative(buffer, (byte*)pfmt); + } + } + + /// + /// no appendfV
+ ///
+ public static void appendf(ImGuiTextBufferPtr buffer, string fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendfNative(buffer, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// no appendfV
+ ///
+ public static void appendf(ref ImGuiTextBuffer buffer, ref byte fmt) + { + fixed (ImGuiTextBuffer* pbuffer = &buffer) + { + fixed (byte* pfmt = &fmt) + { + appendfNative((ImGuiTextBuffer*)pbuffer, (byte*)pfmt); + } + } + } + + /// + /// no appendfV
+ ///
+ public static void appendf(ref ImGuiTextBuffer buffer, ReadOnlySpan fmt) + { + fixed (ImGuiTextBuffer* pbuffer = &buffer) + { + fixed (byte* pfmt = fmt) + { + appendfNative((ImGuiTextBuffer*)pbuffer, (byte*)pfmt); + } + } + } + + /// + /// no appendfV
+ ///
+ public static void appendf(ref ImGuiTextBuffer buffer, string fmt) + { + fixed (ImGuiTextBuffer* pbuffer = &buffer) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendfNative((ImGuiTextBuffer*)pbuffer, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// for getting FLT_MAX in bindings
+ ///
+ [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GETFLTMAXNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[682])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[682])(); + #endif + } + + /// + /// for getting FLT_MAX in bindings
+ ///
+ public static float GETFLTMAX() + { + float ret = GETFLTMAXNative(); + return ret; + } + + /// + /// for getting FLT_MIN in bindings
+ ///
+ [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GETFLTMINNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[683])(); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[683])(); + #endif + } + + /// + /// for getting FLT_MIN in bindings
+ ///
+ public static float GETFLTMIN() + { + float ret = GETFLTMINNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImVector* ImVectorImWcharCreateNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl]*>)funcTable[684])(); + #else + return (ImVector*)((delegate* unmanaged[Cdecl])funcTable[684])(); + #endif + } + + /// + /// To be documented. + /// + public static ImVector* ImVectorImWcharCreate() + { + ImVector* ret = ImVectorImWcharCreateNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImVectorImWcharDestroyNative(ImVector* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, void>)funcTable[685])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[685])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ImVectorImWcharDestroy(ImVector* self) + { + ImVectorImWcharDestroyNative(self); + } + + /// + /// To be documented. + /// + public static void ImVectorImWcharDestroy(ref ImVector self) + { + fixed (ImVector* pself = &self) + { + ImVectorImWcharDestroyNative((ImVector*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImVectorImWcharInitNative(ImVector* p) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, void>)funcTable[686])(p); + #else + ((delegate* unmanaged[Cdecl])funcTable[686])((nint)p); + #endif + } + + /// + /// To be documented. + /// + public static void ImVectorImWcharInit(ImVector* p) + { + ImVectorImWcharInitNative(p); + } + + /// + /// To be documented. + /// + public static void ImVectorImWcharInit(ref ImVector p) + { + fixed (ImVector* pp = &p) + { + ImVectorImWcharInitNative((ImVector*)pp); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImVectorImWcharUnInitNative(ImVector* p) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, void>)funcTable[687])(p); + #else + ((delegate* unmanaged[Cdecl])funcTable[687])((nint)p); + #endif + } + + /// + /// To be documented. + /// + public static void ImVectorImWcharUnInit(ImVector* p) + { + ImVectorImWcharUnInitNative(p); + } + + /// + /// To be documented. + /// + public static void ImVectorImWcharUnInit(ref ImVector p) + { + fixed (ImVector* pp = &p) + { + ImVectorImWcharUnInitNative((ImVector*)pp); + } + } + } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.098.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.098.cs deleted file mode 100644 index 09fcc91dc..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.098.cs +++ /dev/null @@ -1,1931 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// - /// To be documented. - /// - public static Vector2 GetCenter(ImGuiViewportPtr self) - { - Vector2 ret; - GetCenterNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void GetCenter(Vector2* pOut, ImGuiViewportPtr self) - { - GetCenterNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void GetCenter(ref Vector2 pOut, ImGuiViewportPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetCenterNative((Vector2*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static Vector2 GetCenter(ref ImGuiViewport self) - { - fixed (ImGuiViewport* pself = &self) - { - Vector2 ret; - GetCenterNative(&ret, (ImGuiViewport*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void GetCenter(Vector2* pOut, ref ImGuiViewport self) - { - fixed (ImGuiViewport* pself = &self) - { - GetCenterNative(pOut, (ImGuiViewport*)pself); - } - } - - /// - /// To be documented. - /// - public static void GetCenter(ref Vector2 pOut, ref ImGuiViewport self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiViewport* pself = &self) - { - GetCenterNative((Vector2*)ppOut, (ImGuiViewport*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetWorkCenterNative(Vector2* pOut, ImGuiViewport* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[638])(pOut, self); - #else - ((delegate* unmanaged[Cdecl])funcTable[638])((nint)pOut, (nint)self); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 GetWorkCenter(ImGuiViewportPtr self) - { - Vector2 ret; - GetWorkCenterNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void GetWorkCenter(Vector2* pOut, ImGuiViewportPtr self) - { - GetWorkCenterNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void GetWorkCenter(ref Vector2 pOut, ImGuiViewportPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetWorkCenterNative((Vector2*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static Vector2 GetWorkCenter(ref ImGuiViewport self) - { - fixed (ImGuiViewport* pself = &self) - { - Vector2 ret; - GetWorkCenterNative(&ret, (ImGuiViewport*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void GetWorkCenter(Vector2* pOut, ref ImGuiViewport self) - { - fixed (ImGuiViewport* pself = &self) - { - GetWorkCenterNative(pOut, (ImGuiViewport*)pself); - } - } - - /// - /// To be documented. - /// - public static void GetWorkCenter(ref Vector2 pOut, ref ImGuiViewport self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiViewport* pself = &self) - { - GetWorkCenterNative((Vector2*)ppOut, (ImGuiViewport*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPlatformIO* ImGuiPlatformIONative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[639])(); - #else - return (ImGuiPlatformIO*)((delegate* unmanaged[Cdecl])funcTable[639])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiPlatformIOPtr ImGuiPlatformIO() - { - ImGuiPlatformIOPtr ret = ImGuiPlatformIONative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiPlatformIO* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[640])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[640])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiPlatformIOPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiPlatformIO self) - { - fixed (ImGuiPlatformIO* pself = &self) - { - DestroyNative((ImGuiPlatformIO*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPlatformMonitor* ImGuiPlatformMonitorNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[641])(); - #else - return (ImGuiPlatformMonitor*)((delegate* unmanaged[Cdecl])funcTable[641])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiPlatformMonitorPtr ImGuiPlatformMonitor() - { - ImGuiPlatformMonitorPtr ret = ImGuiPlatformMonitorNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiPlatformMonitor* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[642])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[642])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiPlatformMonitorPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiPlatformMonitor self) - { - fixed (ImGuiPlatformMonitor* pself = &self) - { - DestroyNative((ImGuiPlatformMonitor*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPlatformImeData* ImGuiPlatformImeDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[643])(); - #else - return (ImGuiPlatformImeData*)((delegate* unmanaged[Cdecl])funcTable[643])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiPlatformImeDataPtr ImGuiPlatformImeData() - { - ImGuiPlatformImeDataPtr ret = ImGuiPlatformImeDataNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiPlatformImeData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[644])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[644])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiPlatformImeDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiPlatformImeData self) - { - fixed (ImGuiPlatformImeData* pself = &self) - { - DestroyNative((ImGuiPlatformImeData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetKeyIndexNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[645])(key); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[645])(key); - #endif - } - - /// - /// To be documented. - /// - public static int GetKeyIndex(ImGuiKey key) - { - int ret = GetKeyIndexNative(key); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImVec1* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[646])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[646])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImVec1Ptr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImVec1 self) - { - fixed (ImVec1* pself = &self) - { - DestroyNative((ImVec1*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImVec2Ih* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[647])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[647])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImVec2IhPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImVec2Ih self) - { - fixed (ImVec2Ih* pself = &self) - { - DestroyNative((ImVec2Ih*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[648])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[648])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImRectPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - DestroyNative((ImRect*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImDrawListSharedData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[649])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[649])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImDrawListSharedDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImDrawListSharedData self) - { - fixed (ImDrawListSharedData* pself = &self) - { - DestroyNative((ImDrawListSharedData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiStyleMod* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[650])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[650])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiStyleModPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiStyleMod self) - { - fixed (ImGuiStyleMod* pself = &self) - { - DestroyNative((ImGuiStyleMod*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiComboPreviewData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[651])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[651])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiComboPreviewDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiComboPreviewData self) - { - fixed (ImGuiComboPreviewData* pself = &self) - { - DestroyNative((ImGuiComboPreviewData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiMenuColumns* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[652])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[652])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiMenuColumnsPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiMenuColumns self) - { - fixed (ImGuiMenuColumns* pself = &self) - { - DestroyNative((ImGuiMenuColumns*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiInputTextState* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[653])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[653])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiInputTextStatePtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - DestroyNative((ImGuiInputTextState*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiPopupData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[654])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[654])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiPopupDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiPopupData self) - { - fixed (ImGuiPopupData* pself = &self) - { - DestroyNative((ImGuiPopupData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiNextWindowData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[655])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[655])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiNextWindowDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiNextWindowData self) - { - fixed (ImGuiNextWindowData* pself = &self) - { - DestroyNative((ImGuiNextWindowData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiNextItemData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[656])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[656])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiNextItemDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiNextItemData self) - { - fixed (ImGuiNextItemData* pself = &self) - { - DestroyNative((ImGuiNextItemData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiLastItemData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[657])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[657])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiLastItemDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiLastItemData self) - { - fixed (ImGuiLastItemData* pself = &self) - { - DestroyNative((ImGuiLastItemData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStackSizes* StackSizesImGuiStackSizesNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[658])(); - #else - return (ImGuiStackSizes*)((delegate* unmanaged[Cdecl])funcTable[658])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiStackSizesPtr StackSizesImGuiStackSizes() - { - ImGuiStackSizesPtr ret = StackSizesImGuiStackSizesNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StackSizesDestroyNative(ImGuiStackSizes* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[659])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[659])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void StackSizesDestroy(ImGuiStackSizesPtr self) - { - StackSizesDestroyNative(self); - } - - /// - /// To be documented. - /// - public static void StackSizesDestroy(ref ImGuiStackSizes self) - { - fixed (ImGuiStackSizes* pself = &self) - { - StackSizesDestroyNative((ImGuiStackSizes*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StackSizesSetToCurrentStateNative(ImGuiStackSizes* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[660])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[660])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void StackSizesSetToCurrentState(ImGuiStackSizesPtr self) - { - StackSizesSetToCurrentStateNative(self); - } - - /// - /// To be documented. - /// - public static void StackSizesSetToCurrentState(ref ImGuiStackSizes self) - { - fixed (ImGuiStackSizes* pself = &self) - { - StackSizesSetToCurrentStateNative((ImGuiStackSizes*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StackSizesCompareWithCurrentStateNative(ImGuiStackSizes* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[661])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[661])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void StackSizesCompareWithCurrentState(ImGuiStackSizesPtr self) - { - StackSizesCompareWithCurrentStateNative(self); - } - - /// - /// To be documented. - /// - public static void StackSizesCompareWithCurrentState(ref ImGuiStackSizes self) - { - fixed (ImGuiStackSizes* pself = &self) - { - StackSizesCompareWithCurrentStateNative((ImGuiStackSizes*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiPtrOrIndex* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[662])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[662])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiPtrOrIndexPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiPtrOrIndex self) - { - fixed (ImGuiPtrOrIndex* pself = &self) - { - DestroyNative((ImGuiPtrOrIndex*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiInputEvent* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[663])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[663])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiInputEventPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiInputEvent self) - { - fixed (ImGuiInputEvent* pself = &self) - { - DestroyNative((ImGuiInputEvent*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiListClipperData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[664])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[664])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiListClipperDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiListClipperData self) - { - fixed (ImGuiListClipperData* pself = &self) - { - DestroyNative((ImGuiListClipperData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiNavItemData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[665])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[665])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiNavItemDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiNavItemData self) - { - fixed (ImGuiNavItemData* pself = &self) - { - DestroyNative((ImGuiNavItemData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiOldColumnData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[666])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[666])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiOldColumnDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiOldColumnData self) - { - fixed (ImGuiOldColumnData* pself = &self) - { - DestroyNative((ImGuiOldColumnData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiOldColumns* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[667])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[667])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiOldColumnsPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiOldColumns self) - { - fixed (ImGuiOldColumns* pself = &self) - { - DestroyNative((ImGuiOldColumns*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiDockContext* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[668])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[668])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiDockContextPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiDockContext self) - { - fixed (ImGuiDockContext* pself = &self) - { - DestroyNative((ImGuiDockContext*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiWindowSettings* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[669])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[669])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiWindowSettingsPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiWindowSettings self) - { - fixed (ImGuiWindowSettings* pself = &self) - { - DestroyNative((ImGuiWindowSettings*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiSettingsHandler* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[670])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[670])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiSettingsHandlerPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiSettingsHandler self) - { - fixed (ImGuiSettingsHandler* pself = &self) - { - DestroyNative((ImGuiSettingsHandler*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiMetricsConfig* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[671])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[671])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiMetricsConfigPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiMetricsConfig self) - { - fixed (ImGuiMetricsConfig* pself = &self) - { - DestroyNative((ImGuiMetricsConfig*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiStackLevelInfo* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[672])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[672])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiStackLevelInfoPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiStackLevelInfo self) - { - fixed (ImGuiStackLevelInfo* pself = &self) - { - DestroyNative((ImGuiStackLevelInfo*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStackTool* StackToolImGuiStackToolNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[673])(); - #else - return (ImGuiStackTool*)((delegate* unmanaged[Cdecl])funcTable[673])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiStackToolPtr StackToolImGuiStackTool() - { - ImGuiStackToolPtr ret = StackToolImGuiStackToolNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StackToolDestroyNative(ImGuiStackTool* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[674])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[674])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void StackToolDestroy(ImGuiStackToolPtr self) - { - StackToolDestroyNative(self); - } - - /// - /// To be documented. - /// - public static void StackToolDestroy(ref ImGuiStackTool self) - { - fixed (ImGuiStackTool* pself = &self) - { - StackToolDestroyNative((ImGuiStackTool*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiContextHook* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[675])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[675])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiContextHookPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiContextHook self) - { - fixed (ImGuiContextHook* pself = &self) - { - DestroyNative((ImGuiContextHook*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiContext* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[676])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[676])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiContextPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiContext self) - { - fixed (ImGuiContext* pself = &self) - { - DestroyNative((ImGuiContext*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTabItem* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[677])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[677])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiTabItemPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiTabItem self) - { - fixed (ImGuiTabItem* pself = &self) - { - DestroyNative((ImGuiTabItem*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTabBar* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[678])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[678])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiTabBarPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiTabBar self) - { - fixed (ImGuiTabBar* pself = &self) - { - DestroyNative((ImGuiTabBar*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTableColumn* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[679])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[679])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiTableColumnPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiTableColumn self) - { - fixed (ImGuiTableColumn* pself = &self) - { - DestroyNative((ImGuiTableColumn*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTableInstanceData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[680])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[680])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiTableInstanceDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiTableInstanceData self) - { - fixed (ImGuiTableInstanceData* pself = &self) - { - DestroyNative((ImGuiTableInstanceData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTableTempData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[681])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[681])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiTableTempDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiTableTempData self) - { - fixed (ImGuiTableTempData* pself = &self) - { - DestroyNative((ImGuiTableTempData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTableColumnSettings* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[682])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[682])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiTableColumnSettingsPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiTableColumnSettings self) - { - fixed (ImGuiTableColumnSettings* pself = &self) - { - DestroyNative((ImGuiTableColumnSettings*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTableSettings* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[683])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[683])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiTableSettingsPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiTableSettings self) - { - fixed (ImGuiTableSettings* pself = &self) - { - DestroyNative((ImGuiTableSettings*)pself); - } - } - - /// - /// //////////////////////hand written functions
- /// no LogTextV
- ///
- [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LogTextNative(byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[684])(fmt); - #else - ((delegate* unmanaged[Cdecl])funcTable[684])((nint)fmt); - #endif - } - - /// - /// //////////////////////hand written functions
- /// no LogTextV
- ///
- public static void LogText(byte* fmt) - { - LogTextNative(fmt); - } - - /// - /// //////////////////////hand written functions
- /// no LogTextV
- ///
- public static void LogText(ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - LogTextNative((byte*)pfmt); - } - } - - /// - /// //////////////////////hand written functions
- /// no LogTextV
- ///
- public static void LogText(ReadOnlySpan fmt) - { - fixed (byte* pfmt = fmt) - { - LogTextNative((byte*)pfmt); - } - } - - /// - /// //////////////////////hand written functions
- /// no LogTextV
- ///
- public static void LogText(string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogTextNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// no appendfV
- ///
- [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void appendfNative(ImGuiTextBuffer* buffer, byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[685])(buffer, fmt); - #else - ((delegate* unmanaged[Cdecl])funcTable[685])((nint)buffer, (nint)fmt); - #endif - } - - /// - /// no appendfV
- ///
- public static void appendf(ImGuiTextBufferPtr buffer, byte* fmt) - { - appendfNative(buffer, fmt); - } - - /// - /// no appendfV
- ///
- public static void appendf(ref ImGuiTextBuffer buffer, byte* fmt) - { - fixed (ImGuiTextBuffer* pbuffer = &buffer) - { - appendfNative((ImGuiTextBuffer*)pbuffer, fmt); - } - } - - /// - /// no appendfV
- ///
- public static void appendf(ImGuiTextBufferPtr buffer, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - appendfNative(buffer, (byte*)pfmt); - } - } - - /// - /// no appendfV
- ///
- public static void appendf(ImGuiTextBufferPtr buffer, ReadOnlySpan fmt) - { - fixed (byte* pfmt = fmt) - { - appendfNative(buffer, (byte*)pfmt); - } - } - - /// - /// no appendfV
- ///
- public static void appendf(ImGuiTextBufferPtr buffer, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendfNative(buffer, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// no appendfV
- ///
- public static void appendf(ref ImGuiTextBuffer buffer, ref byte fmt) - { - fixed (ImGuiTextBuffer* pbuffer = &buffer) - { - fixed (byte* pfmt = &fmt) - { - appendfNative((ImGuiTextBuffer*)pbuffer, (byte*)pfmt); - } - } - } - - /// - /// no appendfV
- ///
- public static void appendf(ref ImGuiTextBuffer buffer, ReadOnlySpan fmt) - { - fixed (ImGuiTextBuffer* pbuffer = &buffer) - { - fixed (byte* pfmt = fmt) - { - appendfNative((ImGuiTextBuffer*)pbuffer, (byte*)pfmt); - } - } - } - - /// - /// no appendfV
- ///
- public static void appendf(ref ImGuiTextBuffer buffer, string fmt) - { - fixed (ImGuiTextBuffer* pbuffer = &buffer) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendfNative((ImGuiTextBuffer*)pbuffer, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// for getting FLT_MAX in bindings
- ///
- [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GETFLTMAXNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[686])(); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[686])(); - #endif - } - - /// - /// for getting FLT_MAX in bindings
- ///
- public static float GETFLTMAX() - { - float ret = GETFLTMAXNative(); - return ret; - } - - /// - /// for getting FLT_MIN in bindings
- ///
- [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GETFLTMINNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[687])(); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[687])(); - #endif - } - - /// - /// for getting FLT_MIN in bindings
- ///
- public static float GETFLTMIN() - { - float ret = GETFLTMINNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImVector* ImVectorImWcharCreateNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]*>)funcTable[688])(); - #else - return (ImVector*)((delegate* unmanaged[Cdecl])funcTable[688])(); - #endif - } - - /// - /// To be documented. - /// - public static ImVector* ImVectorImWcharCreate() - { - ImVector* ret = ImVectorImWcharCreateNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImVectorImWcharDestroyNative(ImVector* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]*, void>)funcTable[689])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[689])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void ImVectorImWcharDestroy(ImVector* self) - { - ImVectorImWcharDestroyNative(self); - } - - /// - /// To be documented. - /// - public static void ImVectorImWcharDestroy(ref ImVector self) - { - fixed (ImVector* pself = &self) - { - ImVectorImWcharDestroyNative((ImVector*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImVectorImWcharInitNative(ImVector* p) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]*, void>)funcTable[690])(p); - #else - ((delegate* unmanaged[Cdecl])funcTable[690])((nint)p); - #endif - } - - /// - /// To be documented. - /// - public static void ImVectorImWcharInit(ImVector* p) - { - ImVectorImWcharInitNative(p); - } - - /// - /// To be documented. - /// - public static void ImVectorImWcharInit(ref ImVector p) - { - fixed (ImVector* pp = &p) - { - ImVectorImWcharInitNative((ImVector*)pp); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImVectorImWcharUnInitNative(ImVector* p) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]*, void>)funcTable[691])(p); - #else - ((delegate* unmanaged[Cdecl])funcTable[691])((nint)p); - #endif - } - - /// - /// To be documented. - /// - public static void ImVectorImWcharUnInit(ImVector* p) - { - ImVectorImWcharUnInitNative(p); - } - - /// - /// To be documented. - /// - public static void ImVectorImWcharUnInit(ref ImVector p) - { - fixed (ImVector* pp = &p) - { - ImVectorImWcharUnInitNative((ImVector*)pp); - } - } - - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImBitVector.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImBitVector.cs index 22f41158e..df34d1705 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImBitVector.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImBitVector.cs @@ -17,8 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Helper: ImBitVector
- /// Store 1-bit per value.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImBitVector diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImColor.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImColor.cs index 52597883b..3edcd3c9b 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImColor.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImColor.cs @@ -17,18 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Helpers: ImVec2ImVec4 operators
- /// - It is important that we are keeping those disabled by default so they don't leak in user space.
- /// - This is in order to allow user enabling implicit cast operators between ImVec2ImVec4 and their own types (using IM_VEC2_CLASS_EXTRA in imconfig.h)
- /// - Add '#define IMGUI_DEFINE_MATH_OPERATORS' before including this file (or in imconfig.h) to access courtesy maths operators for ImVec2 and ImVec4.
- /// - We intentionally provide ImVec2*float but not float*ImVec2: this is rare enough and we want to reduce the surface for possible user mistake.
- /// Helpers macros to generate 32-bit encoded colors
- /// - User can declare their own format by #defining the 5 _SHIFT_MASK macros in their imconfig file.
- /// - Any setting other than the default will need custom backend support. The only standard backend that supports anything else than the default is DirectX9.
- /// Helper: ImColor() implicitly converts colors to either ImU32 (packed 4x1 byte) or ImVec4 (4x1 float)
- /// Prefer using IM_COL32() macros if you want a guaranteed compile-time ImU32 for usage with ImDrawList API.
- /// **Avoid storing ImColor! Store either u32 of ImVec4. This is not a full-featured color class. MAY OBSOLETE.
- /// **None of the ImGui API are using ImColor directly but you can use it as a convenience to pass colors in either ImU32 or ImVec4 formats. Explicitly cast to ImU32 or ImVec4 if needed.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImColor diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawChannel.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawChannel.cs index e40c21bab..b2495dff2 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawChannel.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawChannel.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// [Internal] For use by ImDrawListSplitter
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImDrawChannel diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmd.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmd.cs index 1d304bdbd..84094be46 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmd.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmd.cs @@ -17,11 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Typically, 1 command = 1 GPU draw call (unless command is a callback)
- /// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
- /// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
- /// Backends made for <1.71. will typically ignore the VtxOffset fields.
- /// - The ClipRectTextureIdVtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImDrawCmd diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmdHeader.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmdHeader.cs index 66d37ac84..1bc35e4c1 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmdHeader.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmdHeader.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// [Internal] For use by ImDrawList
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImDrawCmdHeader diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawData.cs index 770bb575c..9d32ddbf7 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawData.cs @@ -17,9 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// All draw data to render a Dear ImGui frame
- /// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
- /// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImDrawData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawList.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawList.cs index fd773257c..c5a444006 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawList.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawList.cs @@ -17,15 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Draw command list
- /// This is the low-level list of polygons that ImGui:: functions are filling. At the end of the frame,
- /// all command lists are passed to your ImGuiIO::RenderDrawListFn function for rendering.
- /// Each dear imgui window contains its own ImDrawList. You can use ImGui::GetWindowDrawList() to
- /// access the current window draw list and draw custom primitives.
- /// You can interleave normal ImGui:: calls and adding primitives to the current draw list.
- /// In single viewport mode, top-left is == GetMainViewport()->Pos (generally 0,0), bottom-right is == GetMainViewport()->Pos+Size (generally io.DisplaySize).
- /// You are totally free to apply whatever transformation matrix you want to the data (depending on the use of the transformation you may want to apply it to ClipRect as well!)
- /// Important: Primitives are always added to the list and not culled (culling is done at higher-level by ImGui:: functions), if you use this API a lot consider coarse culling your drawn objects.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImDrawList @@ -14423,9 +14415,9 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public unsafe ImDrawList* CloneOutput() + public unsafe ImDrawListPtr CloneOutput() { - ImDrawList* ret = ImGui.CloneOutputNative(Handle); + ImDrawListPtr ret = ImGui.CloneOutputNative(Handle); return ret; } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSharedData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSharedData.cs index 8a71d18b2..43a947209 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSharedData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSharedData.cs @@ -17,10 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Data shared between all ImDrawList instances
- /// Conceptually this could have been called e.g. ImDrawListSharedContext
- /// Typically one ImGui context would create and maintain one of this.
- /// You may want to create your own instance of you try to ImDrawList completely without ImGui. In that case, watch out for future changes to this structure.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImDrawListSharedData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSplitter.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSplitter.cs index fd7aeceed..3b3c5f827 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSplitter.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSplitter.cs @@ -17,8 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// SplitMerge functions are used to split the draw list into different layers which can be drawn into out of order.
- /// This is used by the ColumnsTables API, so items of each column can be batched together in a same draw call.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImDrawListSplitter diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFont.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFont.cs index f748dca10..4f6afb82c 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFont.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFont.cs @@ -17,8 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Font runtime data and rendering
- /// ImFontAtlas automatically loads a default embedded font for you when you call GetTexDataAsAlpha8() or GetTexDataAsRGBA32().
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImFont diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlas.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlas.cs index 734e336e5..faf7bc68c 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlas.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlas.cs @@ -17,23 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Load and rasterize multiple TTFOTF fonts into a same texture. The font atlas will build a single texture holding:
- /// - One or more fonts.
- /// - Custom graphics data needed to render the shapes needed by Dear ImGui.
- /// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas).
- /// It is the user-code responsibility to setupbuild the atlas, then upload the pixel data into a texture accessible by your graphics api.
- /// - Optionally, call any of the AddFont*** functions. If you don't call any, the default font embedded in the code will be loaded for you.
- /// - Call GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.
- /// - Upload the pixels data into a texture within your graphics system (see imgui_impl_xxxx.cpp examples)
- /// - Call SetTexID(my_tex_id); and pass the pointeridentifier to your texture in a format natural to your graphics API.
- /// This value will be passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID for more details.
- /// Common pitfalls:
- /// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the
- /// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.
- /// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction.
- /// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
- /// - Even though many functions are suffixed with "TTF", OTF data is supported just as well.
- /// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future!
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImFontAtlas @@ -1023,279 +1007,6 @@ namespace Dalamud.Bindings.ImGui } } - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = &filename) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = &filename) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = filename) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = filename) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, fontCfg, (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - /// /// To be documented. /// @@ -1770,279 +1481,6 @@ namespace Dalamud.Bindings.ImGui } } - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, fontCfg, (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - /// /// To be documented. /// @@ -2121,54 +1559,6 @@ namespace Dalamud.Bindings.ImGui } } - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - /// /// To be documented. /// @@ -2247,54 +1637,6 @@ namespace Dalamud.Bindings.ImGui } } - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - /// /// To be documented. /// @@ -5178,243 +4520,6 @@ namespace Dalamud.Bindings.ImGui } } - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, filename, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ref ushort glyphRanges) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, filename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (byte* pfilename = &filename) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ref ushort glyphRanges) - { - fixed (byte* pfilename = &filename) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (byte* pfilename = filename) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels, ref ushort glyphRanges) - { - fixed (byte* pfilename = filename) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, pStr0, sizePixels, fontCfg, (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ref ushort glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (byte* pfilename = filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - /// /// To be documented. /// @@ -5817,243 +4922,6 @@ namespace Dalamud.Bindings.ImGui } } - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, pStr0, sizePixels, fontCfg, (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - /// /// To be documented. /// @@ -6114,45 +4982,6 @@ namespace Dalamud.Bindings.ImGui } } - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(Handle, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ref ushort glyphRanges) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(Handle, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(Handle, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - /// /// To be documented. /// @@ -6213,45 +5042,6 @@ namespace Dalamud.Bindings.ImGui } } - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg, ref ushort glyphRanges) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(Handle, fontData, fontSize, sizePixels, fontCfg, (ushort*)pglyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ref ushort glyphRanges) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(Handle, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); - return ret; - } - } - - /// - /// To be documented. - /// - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (ushort* pglyphRanges = &glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(Handle, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); - return ret; - } - } - } - /// /// To be documented. /// diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlasCustomRect.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlasCustomRect.cs index 49cdb220a..7fdea287f 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlasCustomRect.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlasCustomRect.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// See ImFontAtlas::AddCustomRectXXX functions.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImFontAtlasCustomRect @@ -42,21 +42,7 @@ namespace Dalamud.Bindings.ImGui /// public ushort Y; - /// - /// To be documented. - /// - public uint Reserved; - - /// - /// To be documented. - /// - public uint TextureIndex; - - /// - /// To be documented. - /// - public uint GlyphID; - + public uint RawBits0; /// /// To be documented. /// @@ -91,6 +77,12 @@ namespace Dalamud.Bindings.ImGui } + public uint Reserved { get => Bitfield.Get(RawBits0, 0, 2); set => Bitfield.Set(ref RawBits0, value, 0, 2); } + + public uint TextureIndex { get => Bitfield.Get(RawBits0, 2, 9); set => Bitfield.Set(ref RawBits0, value, 2, 9); } + + public uint GlyphID { get => Bitfield.Get(RawBits0, 11, 21); set => Bitfield.Set(ref RawBits0, value, 11, 21); } + /// /// To be documented. /// @@ -176,15 +168,15 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref uint Reserved => ref Unsafe.AsRef(&Handle->Reserved); + public uint Reserved { get => Handle->Reserved; set => Handle->Reserved = value; } /// /// To be documented. /// - public ref uint TextureIndex => ref Unsafe.AsRef(&Handle->TextureIndex); + public uint TextureIndex { get => Handle->TextureIndex; set => Handle->TextureIndex = value; } /// /// To be documented. /// - public ref uint GlyphID => ref Unsafe.AsRef(&Handle->GlyphID); + public uint GlyphID { get => Handle->GlyphID; set => Handle->GlyphID = value; } /// /// To be documented. /// diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontBuilderIO.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontBuilderIO.cs index 974a91e72..2255c9782 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontBuilderIO.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontBuilderIO.cs @@ -17,8 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// This structure is likely to evolve as we add support for incremental atlas updates.
- /// Conceptually this could be in ImGuiPlatformIO, but we are far from ready to make this public.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImFontBuilderIO diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontConfig.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontConfig.cs index f4ef00210..d83585a93 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontConfig.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontConfig.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// A font inputsource (we may rename this to ImFontSource in the future)
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImFontConfig diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyph.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyph.cs index cd2101443..ba0305be6 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyph.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyph.cs @@ -17,32 +17,12 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Hold rendering data for one glyph.
- /// (Note: some language parsers may fail to convert the 31+1 bitfield members, in this case maybe drop store a single u32 or we can rework this)
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImFontGlyph { - /// - /// To be documented. - /// - public uint Colored; - - /// - /// To be documented. - /// - public uint Visible; - - /// - /// To be documented. - /// - public uint TextureIndex; - - /// - /// To be documented. - /// - public uint Codepoint; - + public uint RawBits0; /// /// To be documented. /// @@ -110,6 +90,14 @@ namespace Dalamud.Bindings.ImGui } + public uint Colored { get => Bitfield.Get(RawBits0, 0, 1); set => Bitfield.Set(ref RawBits0, value, 0, 1); } + + public uint Visible { get => Bitfield.Get(RawBits0, 1, 1); set => Bitfield.Set(ref RawBits0, value, 1, 1); } + + public uint TextureIndex { get => Bitfield.Get(RawBits0, 2, 9); set => Bitfield.Set(ref RawBits0, value, 2, 9); } + + public uint Codepoint { get => Bitfield.Get(RawBits0, 11, 21); set => Bitfield.Set(ref RawBits0, value, 11, 21); } + } /// @@ -156,19 +144,19 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref uint Colored => ref Unsafe.AsRef(&Handle->Colored); + public uint Colored { get => Handle->Colored; set => Handle->Colored = value; } /// /// To be documented. /// - public ref uint Visible => ref Unsafe.AsRef(&Handle->Visible); + public uint Visible { get => Handle->Visible; set => Handle->Visible = value; } /// /// To be documented. /// - public ref uint TextureIndex => ref Unsafe.AsRef(&Handle->TextureIndex); + public uint TextureIndex { get => Handle->TextureIndex; set => Handle->TextureIndex = value; } /// /// To be documented. /// - public ref uint Codepoint => ref Unsafe.AsRef(&Handle->Codepoint); + public uint Codepoint { get => Handle->Codepoint; set => Handle->Codepoint = value; } /// /// To be documented. /// diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphHotData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphHotData.cs index c48c893ad..c1ce2d80d 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphHotData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphHotData.cs @@ -32,21 +32,7 @@ namespace Dalamud.Bindings.ImGui /// public float OccupiedWidth; - /// - /// To be documented. - /// - public uint KerningPairUseBisect; - - /// - /// To be documented. - /// - public uint KerningPairOffset; - - /// - /// To be documented. - /// - public uint KerningPairCount; - + public uint RawBits0; /// /// To be documented. @@ -61,6 +47,12 @@ namespace Dalamud.Bindings.ImGui } + public uint KerningPairUseBisect { get => Bitfield.Get(RawBits0, 0, 1); set => Bitfield.Set(ref RawBits0, value, 0, 1); } + + public uint KerningPairOffset { get => Bitfield.Get(RawBits0, 1, 19); set => Bitfield.Set(ref RawBits0, value, 1, 19); } + + public uint KerningPairCount { get => Bitfield.Get(RawBits0, 20, 12); set => Bitfield.Set(ref RawBits0, value, 20, 12); } + } /// @@ -115,15 +107,15 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref uint KerningPairUseBisect => ref Unsafe.AsRef(&Handle->KerningPairUseBisect); + public uint KerningPairUseBisect { get => Handle->KerningPairUseBisect; set => Handle->KerningPairUseBisect = value; } /// /// To be documented. /// - public ref uint KerningPairOffset => ref Unsafe.AsRef(&Handle->KerningPairOffset); + public uint KerningPairOffset { get => Handle->KerningPairOffset; set => Handle->KerningPairOffset = value; } /// /// To be documented. /// - public ref uint KerningPairCount => ref Unsafe.AsRef(&Handle->KerningPairCount); + public uint KerningPairCount { get => Handle->KerningPairCount; set => Handle->KerningPairCount = value; } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphRangesBuilder.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphRangesBuilder.cs index aec667431..b738aa74e 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphRangesBuilder.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphRangesBuilder.cs @@ -17,8 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Helper to build glyph ranges from textstring data. Feed your application stringscharacters to it then call BuildRanges().
- /// This is essentially a tightly packed of vector of 64k booleans = 8KB storage.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImFontGlyphRangesBuilder @@ -60,20 +59,6 @@ namespace Dalamud.Bindings.ImGui } } - /// - /// To be documented. - /// - public unsafe void AddRanges(ref ushort ranges) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - fixed (ushort* pranges = &ranges) - { - ImGui.AddRangesNative(@this, (ushort*)pranges); - } - } - } - /// /// To be documented. /// @@ -584,18 +569,6 @@ namespace Dalamud.Bindings.ImGui } } - /// - /// To be documented. - /// - public unsafe bool GetBit(ulong n) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - byte ret = ImGui.GetBitNative(@this, n); - return ret != 0; - } - } - /// /// To be documented. /// @@ -608,17 +581,6 @@ namespace Dalamud.Bindings.ImGui } } - /// - /// To be documented. - /// - public unsafe void SetBit(ulong n) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - ImGui.SetBitNative(@this, n); - } - } - /// /// To be documented. /// @@ -693,17 +655,6 @@ namespace Dalamud.Bindings.ImGui ImGui.AddRangesNative(Handle, ranges); } - /// - /// To be documented. - /// - public unsafe void AddRanges(ref ushort ranges) - { - fixed (ushort* pranges = &ranges) - { - ImGui.AddRangesNative(Handle, (ushort*)pranges); - } - } - /// /// To be documented. /// @@ -1142,15 +1093,6 @@ namespace Dalamud.Bindings.ImGui ImGui.DestroyNative(Handle); } - /// - /// To be documented. - /// - public unsafe bool GetBit(ulong n) - { - byte ret = ImGui.GetBitNative(Handle, n); - return ret != 0; - } - /// /// To be documented. /// @@ -1160,14 +1102,6 @@ namespace Dalamud.Bindings.ImGui return ret != 0; } - /// - /// To be documented. - /// - public unsafe void SetBit(ulong n) - { - ImGui.SetBitNative(Handle, n); - } - /// /// To be documented. /// diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiColorMod.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiColorMod.cs index a59e74760..bcefa2cd2 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiColorMod.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiColorMod.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Stacked color modifier, backup of modified data so we can restore it
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiColorMod diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiComboPreviewData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiComboPreviewData.cs index 6064e6deb..037aa2705 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiComboPreviewData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiComboPreviewData.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Storage data for BeginComboPreview()EndComboPreview()
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiComboPreviewData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiContext.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiContext.cs index cc8dcb667..1990fe6d5 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiContext.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiContext.cs @@ -415,7 +415,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ImVector FocusScopeStack; + public ImVector FocusScopeStack; /// /// To be documented. @@ -1005,7 +1005,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ImVector MenusIdSubmittedThisFrame; + public ImVector MenusIdSubmittedThisFrame; /// /// To be documented. @@ -1320,7 +1320,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public unsafe ImGuiContext(bool initialized = default, bool fontAtlasOwnedByContext = default, ImGuiIO io = default, ImGuiPlatformIO platformIo = default, ImVector inputEventsQueue = default, ImVector inputEventsTrail = default, ImGuiStyle style = default, ImGuiConfigFlags configFlagsCurrFrame = default, ImGuiConfigFlags configFlagsLastFrame = default, ImFontPtr font = default, float fontSize = default, float fontBaseSize = default, ImDrawListSharedData drawListSharedData = default, double time = default, int frameCount = default, int frameCountEnded = default, int frameCountPlatformEnded = default, int frameCountRendered = default, bool withinFrameScope = default, bool withinFrameScopeWithImplicitWindow = default, bool withinEndChild = default, bool gcCompactAll = default, bool testEngineHookItems = default, void* testEngine = default, ImVector windows = default, ImVector windowsFocusOrder = default, ImVector windowsTempSortBuffer = default, ImVector currentWindowStack = default, ImGuiStorage windowsById = default, int windowsActiveCount = default, Vector2 windowsHoverPadding = default, ImGuiWindow* currentWindow = default, ImGuiWindow* hoveredWindow = default, ImGuiWindow* hoveredWindowUnderMovingWindow = default, ImGuiDockNode* hoveredDockNode = default, ImGuiWindow* movingWindow = default, ImGuiWindow* wheelingWindow = default, Vector2 wheelingWindowRefMousePos = default, float wheelingWindowTimer = default, uint debugHookIdInfo = default, uint hoveredId = default, uint hoveredIdPreviousFrame = default, bool hoveredIdAllowOverlap = default, bool hoveredIdUsingMouseWheel = default, bool hoveredIdPreviousFrameUsingMouseWheel = default, bool hoveredIdDisabled = default, float hoveredIdTimer = default, float hoveredIdNotActiveTimer = default, uint activeId = default, uint activeIdIsAlive = default, float activeIdTimer = default, bool activeIdIsJustActivated = default, bool activeIdAllowOverlap = default, bool activeIdNoClearOnFocusLoss = default, bool activeIdHasBeenPressedBefore = default, bool activeIdHasBeenEditedBefore = default, bool activeIdHasBeenEditedThisFrame = default, Vector2 activeIdClickOffset = default, ImGuiWindow* activeIdWindow = default, ImGuiInputSource activeIdSource = default, int activeIdMouseButton = default, uint activeIdPreviousFrame = default, bool activeIdPreviousFrameIsAlive = default, bool activeIdPreviousFrameHasBeenEditedBefore = default, ImGuiWindow* activeIdPreviousFrameWindow = default, uint lastActiveId = default, float lastActiveIdTimer = default, bool activeIdUsingMouseWheel = default, uint activeIdUsingNavDirMask = default, uint activeIdUsingNavInputMask = default, nuint activeIdUsingKeyInputMask = default, ImGuiItemFlags currentItemFlags = default, ImGuiNextItemData nextItemData = default, ImGuiLastItemData lastItemData = default, ImGuiNextWindowData nextWindowData = default, ImVector colorStack = default, ImVector styleVarStack = default, ImVector fontStack = default, ImVector focusScopeStack = default, ImVector itemFlagsStack = default, ImVector groupStack = default, ImVector openPopupStack = default, ImVector beginPopupStack = default, int beginMenuCount = default, ImVector viewports = default, float currentDpiScale = default, ImGuiViewportP* currentViewport = default, ImGuiViewportP* mouseViewport = default, ImGuiViewportP* mouseLastHoveredViewport = default, uint platformLastFocusedViewportId = default, ImGuiPlatformMonitor fallbackMonitor = default, int viewportFrontMostStampCount = default, ImGuiWindow* navWindow = default, uint navId = default, uint navFocusScopeId = default, uint navActivateId = default, uint navActivateDownId = default, uint navActivatePressedId = default, uint navActivateInputId = default, ImGuiActivateFlags navActivateFlags = default, uint navJustMovedToId = default, uint navJustMovedToFocusScopeId = default, ImGuiModFlags navJustMovedToKeyMods = default, uint navNextActivateId = default, ImGuiActivateFlags navNextActivateFlags = default, ImGuiInputSource navInputSource = default, ImGuiNavLayer navLayer = default, bool navIdIsAlive = default, bool navMousePosDirty = default, bool navDisableHighlight = default, bool navDisableMouseHover = default, bool navAnyRequest = default, bool navInitRequest = default, bool navInitRequestFromMove = default, uint navInitResultId = default, ImRect navInitResultRectRel = default, bool navMoveSubmitted = default, bool navMoveScoringItems = default, bool navMoveForwardToNextFrame = default, ImGuiNavMoveFlags navMoveFlags = default, ImGuiScrollFlags navMoveScrollFlags = default, ImGuiModFlags navMoveKeyMods = default, ImGuiDir navMoveDir = default, ImGuiDir navMoveDirForDebug = default, ImGuiDir navMoveClipDir = default, ImRect navScoringRect = default, ImRect navScoringNoClipRect = default, int navScoringDebugCount = default, int navTabbingDir = default, int navTabbingCounter = default, ImGuiNavItemData navMoveResultLocal = default, ImGuiNavItemData navMoveResultLocalVisible = default, ImGuiNavItemData navMoveResultOther = default, ImGuiNavItemData navTabbingResultFirst = default, ImGuiWindow* navWindowingTarget = default, ImGuiWindow* navWindowingTargetAnim = default, ImGuiWindow* navWindowingListWindow = default, float navWindowingTimer = default, float navWindowingHighlightAlpha = default, bool navWindowingToggleLayer = default, float dimBgRatio = default, ImGuiMouseCursor mouseCursor = default, bool dragDropActive = default, bool dragDropWithinSource = default, bool dragDropWithinTarget = default, ImGuiDragDropFlags dragDropSourceFlags = default, int dragDropSourceFrameCount = default, int dragDropMouseButton = default, ImGuiPayload dragDropPayload = default, ImRect dragDropTargetRect = default, uint dragDropTargetId = default, ImGuiDragDropFlags dragDropAcceptFlags = default, float dragDropAcceptIdCurrRectSurface = default, uint dragDropAcceptIdCurr = default, uint dragDropAcceptIdPrev = default, int dragDropAcceptFrameCount = default, uint dragDropHoldJustPressedId = default, ImVector dragDropPayloadBufHeap = default, byte* dragDropPayloadBufLocal = default, int clipperTempDataStacked = default, ImVector clipperTempData = default, ImGuiTable* currentTable = default, int tablesTempDataStacked = default, ImVector tablesTempData = default, ImPoolImGuiTable tables = default, ImVector tablesLastTimeActive = default, ImVector drawChannelsTempMergeBuffer = default, ImGuiTabBar* currentTabBar = default, ImPoolImGuiTabBar tabBars = default, ImVector currentTabBarStack = default, ImVector shrinkWidthBuffer = default, Vector2 mouseLastValidPos = default, ImGuiInputTextState inputTextState = default, ImFont inputTextPasswordFont = default, uint tempInputId = default, ImGuiColorEditFlags colorEditOptions = default, float colorEditLastHue = default, float colorEditLastSat = default, uint colorEditLastColor = default, Vector4 colorPickerRef = default, ImGuiComboPreviewData comboPreviewData = default, float sliderGrabClickOffset = default, float sliderCurrentAccum = default, bool sliderCurrentAccumDirty = default, bool dragCurrentAccumDirty = default, float dragCurrentAccum = default, float dragSpeedDefaultRatio = default, float scrollbarClickDeltaToGrabCenter = default, float disabledAlphaBackup = default, short disabledStackSize = default, short tooltipOverrideCount = default, float tooltipSlowDelay = default, ImVector clipboardHandlerData = default, ImVector menusIdSubmittedThisFrame = default, ImGuiPlatformImeData platformImeData = default, ImGuiPlatformImeData platformImeDataPrev = default, uint platformImeViewport = default, byte platformLocaleDecimalPoint = default, ImGuiDockContext dockContext = default, bool settingsLoaded = default, float settingsDirtyTimer = default, ImGuiTextBuffer settingsIniData = default, ImVector settingsHandlers = default, ImChunkStreamImGuiWindowSettings settingsWindows = default, ImChunkStreamImGuiTableSettings settingsTables = default, ImVector hooks = default, uint hookIdNext = default, bool logEnabled = default, ImGuiLogType logType = default, ImFileHandle logFile = default, ImGuiTextBuffer logBuffer = default, byte* logNextPrefix = default, byte* logNextSuffix = default, float logLinePosY = default, bool logLineFirstItem = default, int logDepthRef = default, int logDepthToExpand = default, int logDepthToExpandDefault = default, ImGuiDebugLogFlags debugLogFlags = default, ImGuiTextBuffer debugLogBuf = default, bool debugItemPickerActive = default, uint debugItemPickerBreakId = default, ImGuiMetricsConfig debugMetricsConfig = default, ImGuiStackTool debugStackTool = default, float* framerateSecPerFrame = default, int framerateSecPerFrameIdx = default, int framerateSecPerFrameCount = default, float framerateSecPerFrameAccum = default, int wantCaptureMouseNextFrame = default, int wantCaptureKeyboardNextFrame = default, int wantTextInputNextFrame = default, ImVector tempBuffer = default) + public unsafe ImGuiContext(bool initialized = default, bool fontAtlasOwnedByContext = default, ImGuiIO io = default, ImGuiPlatformIO platformIo = default, ImVector inputEventsQueue = default, ImVector inputEventsTrail = default, ImGuiStyle style = default, ImGuiConfigFlags configFlagsCurrFrame = default, ImGuiConfigFlags configFlagsLastFrame = default, ImFontPtr font = default, float fontSize = default, float fontBaseSize = default, ImDrawListSharedData drawListSharedData = default, double time = default, int frameCount = default, int frameCountEnded = default, int frameCountPlatformEnded = default, int frameCountRendered = default, bool withinFrameScope = default, bool withinFrameScopeWithImplicitWindow = default, bool withinEndChild = default, bool gcCompactAll = default, bool testEngineHookItems = default, void* testEngine = default, ImVector windows = default, ImVector windowsFocusOrder = default, ImVector windowsTempSortBuffer = default, ImVector currentWindowStack = default, ImGuiStorage windowsById = default, int windowsActiveCount = default, Vector2 windowsHoverPadding = default, ImGuiWindow* currentWindow = default, ImGuiWindow* hoveredWindow = default, ImGuiWindow* hoveredWindowUnderMovingWindow = default, ImGuiDockNode* hoveredDockNode = default, ImGuiWindow* movingWindow = default, ImGuiWindow* wheelingWindow = default, Vector2 wheelingWindowRefMousePos = default, float wheelingWindowTimer = default, uint debugHookIdInfo = default, uint hoveredId = default, uint hoveredIdPreviousFrame = default, bool hoveredIdAllowOverlap = default, bool hoveredIdUsingMouseWheel = default, bool hoveredIdPreviousFrameUsingMouseWheel = default, bool hoveredIdDisabled = default, float hoveredIdTimer = default, float hoveredIdNotActiveTimer = default, uint activeId = default, uint activeIdIsAlive = default, float activeIdTimer = default, bool activeIdIsJustActivated = default, bool activeIdAllowOverlap = default, bool activeIdNoClearOnFocusLoss = default, bool activeIdHasBeenPressedBefore = default, bool activeIdHasBeenEditedBefore = default, bool activeIdHasBeenEditedThisFrame = default, Vector2 activeIdClickOffset = default, ImGuiWindow* activeIdWindow = default, ImGuiInputSource activeIdSource = default, int activeIdMouseButton = default, uint activeIdPreviousFrame = default, bool activeIdPreviousFrameIsAlive = default, bool activeIdPreviousFrameHasBeenEditedBefore = default, ImGuiWindow* activeIdPreviousFrameWindow = default, uint lastActiveId = default, float lastActiveIdTimer = default, bool activeIdUsingMouseWheel = default, uint activeIdUsingNavDirMask = default, uint activeIdUsingNavInputMask = default, nuint activeIdUsingKeyInputMask = default, ImGuiItemFlags currentItemFlags = default, ImGuiNextItemData nextItemData = default, ImGuiLastItemData lastItemData = default, ImGuiNextWindowData nextWindowData = default, ImVector colorStack = default, ImVector styleVarStack = default, ImVector fontStack = default, ImVector focusScopeStack = default, ImVector itemFlagsStack = default, ImVector groupStack = default, ImVector openPopupStack = default, ImVector beginPopupStack = default, int beginMenuCount = default, ImVector viewports = default, float currentDpiScale = default, ImGuiViewportP* currentViewport = default, ImGuiViewportP* mouseViewport = default, ImGuiViewportP* mouseLastHoveredViewport = default, uint platformLastFocusedViewportId = default, ImGuiPlatformMonitor fallbackMonitor = default, int viewportFrontMostStampCount = default, ImGuiWindow* navWindow = default, uint navId = default, uint navFocusScopeId = default, uint navActivateId = default, uint navActivateDownId = default, uint navActivatePressedId = default, uint navActivateInputId = default, ImGuiActivateFlags navActivateFlags = default, uint navJustMovedToId = default, uint navJustMovedToFocusScopeId = default, ImGuiModFlags navJustMovedToKeyMods = default, uint navNextActivateId = default, ImGuiActivateFlags navNextActivateFlags = default, ImGuiInputSource navInputSource = default, ImGuiNavLayer navLayer = default, bool navIdIsAlive = default, bool navMousePosDirty = default, bool navDisableHighlight = default, bool navDisableMouseHover = default, bool navAnyRequest = default, bool navInitRequest = default, bool navInitRequestFromMove = default, uint navInitResultId = default, ImRect navInitResultRectRel = default, bool navMoveSubmitted = default, bool navMoveScoringItems = default, bool navMoveForwardToNextFrame = default, ImGuiNavMoveFlags navMoveFlags = default, ImGuiScrollFlags navMoveScrollFlags = default, ImGuiModFlags navMoveKeyMods = default, ImGuiDir navMoveDir = default, ImGuiDir navMoveDirForDebug = default, ImGuiDir navMoveClipDir = default, ImRect navScoringRect = default, ImRect navScoringNoClipRect = default, int navScoringDebugCount = default, int navTabbingDir = default, int navTabbingCounter = default, ImGuiNavItemData navMoveResultLocal = default, ImGuiNavItemData navMoveResultLocalVisible = default, ImGuiNavItemData navMoveResultOther = default, ImGuiNavItemData navTabbingResultFirst = default, ImGuiWindow* navWindowingTarget = default, ImGuiWindow* navWindowingTargetAnim = default, ImGuiWindow* navWindowingListWindow = default, float navWindowingTimer = default, float navWindowingHighlightAlpha = default, bool navWindowingToggleLayer = default, float dimBgRatio = default, ImGuiMouseCursor mouseCursor = default, bool dragDropActive = default, bool dragDropWithinSource = default, bool dragDropWithinTarget = default, ImGuiDragDropFlags dragDropSourceFlags = default, int dragDropSourceFrameCount = default, int dragDropMouseButton = default, ImGuiPayload dragDropPayload = default, ImRect dragDropTargetRect = default, uint dragDropTargetId = default, ImGuiDragDropFlags dragDropAcceptFlags = default, float dragDropAcceptIdCurrRectSurface = default, uint dragDropAcceptIdCurr = default, uint dragDropAcceptIdPrev = default, int dragDropAcceptFrameCount = default, uint dragDropHoldJustPressedId = default, ImVector dragDropPayloadBufHeap = default, byte* dragDropPayloadBufLocal = default, int clipperTempDataStacked = default, ImVector clipperTempData = default, ImGuiTable* currentTable = default, int tablesTempDataStacked = default, ImVector tablesTempData = default, ImPoolImGuiTable tables = default, ImVector tablesLastTimeActive = default, ImVector drawChannelsTempMergeBuffer = default, ImGuiTabBar* currentTabBar = default, ImPoolImGuiTabBar tabBars = default, ImVector currentTabBarStack = default, ImVector shrinkWidthBuffer = default, Vector2 mouseLastValidPos = default, ImGuiInputTextState inputTextState = default, ImFont inputTextPasswordFont = default, uint tempInputId = default, ImGuiColorEditFlags colorEditOptions = default, float colorEditLastHue = default, float colorEditLastSat = default, uint colorEditLastColor = default, Vector4 colorPickerRef = default, ImGuiComboPreviewData comboPreviewData = default, float sliderGrabClickOffset = default, float sliderCurrentAccum = default, bool sliderCurrentAccumDirty = default, bool dragCurrentAccumDirty = default, float dragCurrentAccum = default, float dragSpeedDefaultRatio = default, float scrollbarClickDeltaToGrabCenter = default, float disabledAlphaBackup = default, short disabledStackSize = default, short tooltipOverrideCount = default, float tooltipSlowDelay = default, ImVector clipboardHandlerData = default, ImVector menusIdSubmittedThisFrame = default, ImGuiPlatformImeData platformImeData = default, ImGuiPlatformImeData platformImeDataPrev = default, uint platformImeViewport = default, byte platformLocaleDecimalPoint = default, ImGuiDockContext dockContext = default, bool settingsLoaded = default, float settingsDirtyTimer = default, ImGuiTextBuffer settingsIniData = default, ImVector settingsHandlers = default, ImChunkStreamImGuiWindowSettings settingsWindows = default, ImChunkStreamImGuiTableSettings settingsTables = default, ImVector hooks = default, uint hookIdNext = default, bool logEnabled = default, ImGuiLogType logType = default, ImFileHandle logFile = default, ImGuiTextBuffer logBuffer = default, byte* logNextPrefix = default, byte* logNextSuffix = default, float logLinePosY = default, bool logLineFirstItem = default, int logDepthRef = default, int logDepthToExpand = default, int logDepthToExpandDefault = default, ImGuiDebugLogFlags debugLogFlags = default, ImGuiTextBuffer debugLogBuf = default, bool debugItemPickerActive = default, uint debugItemPickerBreakId = default, ImGuiMetricsConfig debugMetricsConfig = default, ImGuiStackTool debugStackTool = default, float* framerateSecPerFrame = default, int framerateSecPerFrameIdx = default, int framerateSecPerFrameCount = default, float framerateSecPerFrameAccum = default, int wantCaptureMouseNextFrame = default, int wantCaptureKeyboardNextFrame = default, int wantTextInputNextFrame = default, ImVector tempBuffer = default) { Initialized = initialized ? (byte)1 : (byte)0; FontAtlasOwnedByContext = fontAtlasOwnedByContext ? (byte)1 : (byte)0; @@ -1699,7 +1699,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public unsafe ImGuiContext(bool initialized = default, bool fontAtlasOwnedByContext = default, ImGuiIO io = default, ImGuiPlatformIO platformIo = default, ImVector inputEventsQueue = default, ImVector inputEventsTrail = default, ImGuiStyle style = default, ImGuiConfigFlags configFlagsCurrFrame = default, ImGuiConfigFlags configFlagsLastFrame = default, ImFontPtr font = default, float fontSize = default, float fontBaseSize = default, ImDrawListSharedData drawListSharedData = default, double time = default, int frameCount = default, int frameCountEnded = default, int frameCountPlatformEnded = default, int frameCountRendered = default, bool withinFrameScope = default, bool withinFrameScopeWithImplicitWindow = default, bool withinEndChild = default, bool gcCompactAll = default, bool testEngineHookItems = default, void* testEngine = default, ImVector windows = default, ImVector windowsFocusOrder = default, ImVector windowsTempSortBuffer = default, ImVector currentWindowStack = default, ImGuiStorage windowsById = default, int windowsActiveCount = default, Vector2 windowsHoverPadding = default, ImGuiWindow* currentWindow = default, ImGuiWindow* hoveredWindow = default, ImGuiWindow* hoveredWindowUnderMovingWindow = default, ImGuiDockNode* hoveredDockNode = default, ImGuiWindow* movingWindow = default, ImGuiWindow* wheelingWindow = default, Vector2 wheelingWindowRefMousePos = default, float wheelingWindowTimer = default, uint debugHookIdInfo = default, uint hoveredId = default, uint hoveredIdPreviousFrame = default, bool hoveredIdAllowOverlap = default, bool hoveredIdUsingMouseWheel = default, bool hoveredIdPreviousFrameUsingMouseWheel = default, bool hoveredIdDisabled = default, float hoveredIdTimer = default, float hoveredIdNotActiveTimer = default, uint activeId = default, uint activeIdIsAlive = default, float activeIdTimer = default, bool activeIdIsJustActivated = default, bool activeIdAllowOverlap = default, bool activeIdNoClearOnFocusLoss = default, bool activeIdHasBeenPressedBefore = default, bool activeIdHasBeenEditedBefore = default, bool activeIdHasBeenEditedThisFrame = default, Vector2 activeIdClickOffset = default, ImGuiWindow* activeIdWindow = default, ImGuiInputSource activeIdSource = default, int activeIdMouseButton = default, uint activeIdPreviousFrame = default, bool activeIdPreviousFrameIsAlive = default, bool activeIdPreviousFrameHasBeenEditedBefore = default, ImGuiWindow* activeIdPreviousFrameWindow = default, uint lastActiveId = default, float lastActiveIdTimer = default, bool activeIdUsingMouseWheel = default, uint activeIdUsingNavDirMask = default, uint activeIdUsingNavInputMask = default, nuint activeIdUsingKeyInputMask = default, ImGuiItemFlags currentItemFlags = default, ImGuiNextItemData nextItemData = default, ImGuiLastItemData lastItemData = default, ImGuiNextWindowData nextWindowData = default, ImVector colorStack = default, ImVector styleVarStack = default, ImVector fontStack = default, ImVector focusScopeStack = default, ImVector itemFlagsStack = default, ImVector groupStack = default, ImVector openPopupStack = default, ImVector beginPopupStack = default, int beginMenuCount = default, ImVector viewports = default, float currentDpiScale = default, ImGuiViewportP* currentViewport = default, ImGuiViewportP* mouseViewport = default, ImGuiViewportP* mouseLastHoveredViewport = default, uint platformLastFocusedViewportId = default, ImGuiPlatformMonitor fallbackMonitor = default, int viewportFrontMostStampCount = default, ImGuiWindow* navWindow = default, uint navId = default, uint navFocusScopeId = default, uint navActivateId = default, uint navActivateDownId = default, uint navActivatePressedId = default, uint navActivateInputId = default, ImGuiActivateFlags navActivateFlags = default, uint navJustMovedToId = default, uint navJustMovedToFocusScopeId = default, ImGuiModFlags navJustMovedToKeyMods = default, uint navNextActivateId = default, ImGuiActivateFlags navNextActivateFlags = default, ImGuiInputSource navInputSource = default, ImGuiNavLayer navLayer = default, bool navIdIsAlive = default, bool navMousePosDirty = default, bool navDisableHighlight = default, bool navDisableMouseHover = default, bool navAnyRequest = default, bool navInitRequest = default, bool navInitRequestFromMove = default, uint navInitResultId = default, ImRect navInitResultRectRel = default, bool navMoveSubmitted = default, bool navMoveScoringItems = default, bool navMoveForwardToNextFrame = default, ImGuiNavMoveFlags navMoveFlags = default, ImGuiScrollFlags navMoveScrollFlags = default, ImGuiModFlags navMoveKeyMods = default, ImGuiDir navMoveDir = default, ImGuiDir navMoveDirForDebug = default, ImGuiDir navMoveClipDir = default, ImRect navScoringRect = default, ImRect navScoringNoClipRect = default, int navScoringDebugCount = default, int navTabbingDir = default, int navTabbingCounter = default, ImGuiNavItemData navMoveResultLocal = default, ImGuiNavItemData navMoveResultLocalVisible = default, ImGuiNavItemData navMoveResultOther = default, ImGuiNavItemData navTabbingResultFirst = default, ImGuiWindow* navWindowingTarget = default, ImGuiWindow* navWindowingTargetAnim = default, ImGuiWindow* navWindowingListWindow = default, float navWindowingTimer = default, float navWindowingHighlightAlpha = default, bool navWindowingToggleLayer = default, float dimBgRatio = default, ImGuiMouseCursor mouseCursor = default, bool dragDropActive = default, bool dragDropWithinSource = default, bool dragDropWithinTarget = default, ImGuiDragDropFlags dragDropSourceFlags = default, int dragDropSourceFrameCount = default, int dragDropMouseButton = default, ImGuiPayload dragDropPayload = default, ImRect dragDropTargetRect = default, uint dragDropTargetId = default, ImGuiDragDropFlags dragDropAcceptFlags = default, float dragDropAcceptIdCurrRectSurface = default, uint dragDropAcceptIdCurr = default, uint dragDropAcceptIdPrev = default, int dragDropAcceptFrameCount = default, uint dragDropHoldJustPressedId = default, ImVector dragDropPayloadBufHeap = default, Span dragDropPayloadBufLocal = default, int clipperTempDataStacked = default, ImVector clipperTempData = default, ImGuiTable* currentTable = default, int tablesTempDataStacked = default, ImVector tablesTempData = default, ImPoolImGuiTable tables = default, ImVector tablesLastTimeActive = default, ImVector drawChannelsTempMergeBuffer = default, ImGuiTabBar* currentTabBar = default, ImPoolImGuiTabBar tabBars = default, ImVector currentTabBarStack = default, ImVector shrinkWidthBuffer = default, Vector2 mouseLastValidPos = default, ImGuiInputTextState inputTextState = default, ImFont inputTextPasswordFont = default, uint tempInputId = default, ImGuiColorEditFlags colorEditOptions = default, float colorEditLastHue = default, float colorEditLastSat = default, uint colorEditLastColor = default, Vector4 colorPickerRef = default, ImGuiComboPreviewData comboPreviewData = default, float sliderGrabClickOffset = default, float sliderCurrentAccum = default, bool sliderCurrentAccumDirty = default, bool dragCurrentAccumDirty = default, float dragCurrentAccum = default, float dragSpeedDefaultRatio = default, float scrollbarClickDeltaToGrabCenter = default, float disabledAlphaBackup = default, short disabledStackSize = default, short tooltipOverrideCount = default, float tooltipSlowDelay = default, ImVector clipboardHandlerData = default, ImVector menusIdSubmittedThisFrame = default, ImGuiPlatformImeData platformImeData = default, ImGuiPlatformImeData platformImeDataPrev = default, uint platformImeViewport = default, byte platformLocaleDecimalPoint = default, ImGuiDockContext dockContext = default, bool settingsLoaded = default, float settingsDirtyTimer = default, ImGuiTextBuffer settingsIniData = default, ImVector settingsHandlers = default, ImChunkStreamImGuiWindowSettings settingsWindows = default, ImChunkStreamImGuiTableSettings settingsTables = default, ImVector hooks = default, uint hookIdNext = default, bool logEnabled = default, ImGuiLogType logType = default, ImFileHandle logFile = default, ImGuiTextBuffer logBuffer = default, byte* logNextPrefix = default, byte* logNextSuffix = default, float logLinePosY = default, bool logLineFirstItem = default, int logDepthRef = default, int logDepthToExpand = default, int logDepthToExpandDefault = default, ImGuiDebugLogFlags debugLogFlags = default, ImGuiTextBuffer debugLogBuf = default, bool debugItemPickerActive = default, uint debugItemPickerBreakId = default, ImGuiMetricsConfig debugMetricsConfig = default, ImGuiStackTool debugStackTool = default, Span framerateSecPerFrame = default, int framerateSecPerFrameIdx = default, int framerateSecPerFrameCount = default, float framerateSecPerFrameAccum = default, int wantCaptureMouseNextFrame = default, int wantCaptureKeyboardNextFrame = default, int wantTextInputNextFrame = default, ImVector tempBuffer = default) + public unsafe ImGuiContext(bool initialized = default, bool fontAtlasOwnedByContext = default, ImGuiIO io = default, ImGuiPlatformIO platformIo = default, ImVector inputEventsQueue = default, ImVector inputEventsTrail = default, ImGuiStyle style = default, ImGuiConfigFlags configFlagsCurrFrame = default, ImGuiConfigFlags configFlagsLastFrame = default, ImFontPtr font = default, float fontSize = default, float fontBaseSize = default, ImDrawListSharedData drawListSharedData = default, double time = default, int frameCount = default, int frameCountEnded = default, int frameCountPlatformEnded = default, int frameCountRendered = default, bool withinFrameScope = default, bool withinFrameScopeWithImplicitWindow = default, bool withinEndChild = default, bool gcCompactAll = default, bool testEngineHookItems = default, void* testEngine = default, ImVector windows = default, ImVector windowsFocusOrder = default, ImVector windowsTempSortBuffer = default, ImVector currentWindowStack = default, ImGuiStorage windowsById = default, int windowsActiveCount = default, Vector2 windowsHoverPadding = default, ImGuiWindow* currentWindow = default, ImGuiWindow* hoveredWindow = default, ImGuiWindow* hoveredWindowUnderMovingWindow = default, ImGuiDockNode* hoveredDockNode = default, ImGuiWindow* movingWindow = default, ImGuiWindow* wheelingWindow = default, Vector2 wheelingWindowRefMousePos = default, float wheelingWindowTimer = default, uint debugHookIdInfo = default, uint hoveredId = default, uint hoveredIdPreviousFrame = default, bool hoveredIdAllowOverlap = default, bool hoveredIdUsingMouseWheel = default, bool hoveredIdPreviousFrameUsingMouseWheel = default, bool hoveredIdDisabled = default, float hoveredIdTimer = default, float hoveredIdNotActiveTimer = default, uint activeId = default, uint activeIdIsAlive = default, float activeIdTimer = default, bool activeIdIsJustActivated = default, bool activeIdAllowOverlap = default, bool activeIdNoClearOnFocusLoss = default, bool activeIdHasBeenPressedBefore = default, bool activeIdHasBeenEditedBefore = default, bool activeIdHasBeenEditedThisFrame = default, Vector2 activeIdClickOffset = default, ImGuiWindow* activeIdWindow = default, ImGuiInputSource activeIdSource = default, int activeIdMouseButton = default, uint activeIdPreviousFrame = default, bool activeIdPreviousFrameIsAlive = default, bool activeIdPreviousFrameHasBeenEditedBefore = default, ImGuiWindow* activeIdPreviousFrameWindow = default, uint lastActiveId = default, float lastActiveIdTimer = default, bool activeIdUsingMouseWheel = default, uint activeIdUsingNavDirMask = default, uint activeIdUsingNavInputMask = default, nuint activeIdUsingKeyInputMask = default, ImGuiItemFlags currentItemFlags = default, ImGuiNextItemData nextItemData = default, ImGuiLastItemData lastItemData = default, ImGuiNextWindowData nextWindowData = default, ImVector colorStack = default, ImVector styleVarStack = default, ImVector fontStack = default, ImVector focusScopeStack = default, ImVector itemFlagsStack = default, ImVector groupStack = default, ImVector openPopupStack = default, ImVector beginPopupStack = default, int beginMenuCount = default, ImVector viewports = default, float currentDpiScale = default, ImGuiViewportP* currentViewport = default, ImGuiViewportP* mouseViewport = default, ImGuiViewportP* mouseLastHoveredViewport = default, uint platformLastFocusedViewportId = default, ImGuiPlatformMonitor fallbackMonitor = default, int viewportFrontMostStampCount = default, ImGuiWindow* navWindow = default, uint navId = default, uint navFocusScopeId = default, uint navActivateId = default, uint navActivateDownId = default, uint navActivatePressedId = default, uint navActivateInputId = default, ImGuiActivateFlags navActivateFlags = default, uint navJustMovedToId = default, uint navJustMovedToFocusScopeId = default, ImGuiModFlags navJustMovedToKeyMods = default, uint navNextActivateId = default, ImGuiActivateFlags navNextActivateFlags = default, ImGuiInputSource navInputSource = default, ImGuiNavLayer navLayer = default, bool navIdIsAlive = default, bool navMousePosDirty = default, bool navDisableHighlight = default, bool navDisableMouseHover = default, bool navAnyRequest = default, bool navInitRequest = default, bool navInitRequestFromMove = default, uint navInitResultId = default, ImRect navInitResultRectRel = default, bool navMoveSubmitted = default, bool navMoveScoringItems = default, bool navMoveForwardToNextFrame = default, ImGuiNavMoveFlags navMoveFlags = default, ImGuiScrollFlags navMoveScrollFlags = default, ImGuiModFlags navMoveKeyMods = default, ImGuiDir navMoveDir = default, ImGuiDir navMoveDirForDebug = default, ImGuiDir navMoveClipDir = default, ImRect navScoringRect = default, ImRect navScoringNoClipRect = default, int navScoringDebugCount = default, int navTabbingDir = default, int navTabbingCounter = default, ImGuiNavItemData navMoveResultLocal = default, ImGuiNavItemData navMoveResultLocalVisible = default, ImGuiNavItemData navMoveResultOther = default, ImGuiNavItemData navTabbingResultFirst = default, ImGuiWindow* navWindowingTarget = default, ImGuiWindow* navWindowingTargetAnim = default, ImGuiWindow* navWindowingListWindow = default, float navWindowingTimer = default, float navWindowingHighlightAlpha = default, bool navWindowingToggleLayer = default, float dimBgRatio = default, ImGuiMouseCursor mouseCursor = default, bool dragDropActive = default, bool dragDropWithinSource = default, bool dragDropWithinTarget = default, ImGuiDragDropFlags dragDropSourceFlags = default, int dragDropSourceFrameCount = default, int dragDropMouseButton = default, ImGuiPayload dragDropPayload = default, ImRect dragDropTargetRect = default, uint dragDropTargetId = default, ImGuiDragDropFlags dragDropAcceptFlags = default, float dragDropAcceptIdCurrRectSurface = default, uint dragDropAcceptIdCurr = default, uint dragDropAcceptIdPrev = default, int dragDropAcceptFrameCount = default, uint dragDropHoldJustPressedId = default, ImVector dragDropPayloadBufHeap = default, Span dragDropPayloadBufLocal = default, int clipperTempDataStacked = default, ImVector clipperTempData = default, ImGuiTable* currentTable = default, int tablesTempDataStacked = default, ImVector tablesTempData = default, ImPoolImGuiTable tables = default, ImVector tablesLastTimeActive = default, ImVector drawChannelsTempMergeBuffer = default, ImGuiTabBar* currentTabBar = default, ImPoolImGuiTabBar tabBars = default, ImVector currentTabBarStack = default, ImVector shrinkWidthBuffer = default, Vector2 mouseLastValidPos = default, ImGuiInputTextState inputTextState = default, ImFont inputTextPasswordFont = default, uint tempInputId = default, ImGuiColorEditFlags colorEditOptions = default, float colorEditLastHue = default, float colorEditLastSat = default, uint colorEditLastColor = default, Vector4 colorPickerRef = default, ImGuiComboPreviewData comboPreviewData = default, float sliderGrabClickOffset = default, float sliderCurrentAccum = default, bool sliderCurrentAccumDirty = default, bool dragCurrentAccumDirty = default, float dragCurrentAccum = default, float dragSpeedDefaultRatio = default, float scrollbarClickDeltaToGrabCenter = default, float disabledAlphaBackup = default, short disabledStackSize = default, short tooltipOverrideCount = default, float tooltipSlowDelay = default, ImVector clipboardHandlerData = default, ImVector menusIdSubmittedThisFrame = default, ImGuiPlatformImeData platformImeData = default, ImGuiPlatformImeData platformImeDataPrev = default, uint platformImeViewport = default, byte platformLocaleDecimalPoint = default, ImGuiDockContext dockContext = default, bool settingsLoaded = default, float settingsDirtyTimer = default, ImGuiTextBuffer settingsIniData = default, ImVector settingsHandlers = default, ImChunkStreamImGuiWindowSettings settingsWindows = default, ImChunkStreamImGuiTableSettings settingsTables = default, ImVector hooks = default, uint hookIdNext = default, bool logEnabled = default, ImGuiLogType logType = default, ImFileHandle logFile = default, ImGuiTextBuffer logBuffer = default, byte* logNextPrefix = default, byte* logNextSuffix = default, float logLinePosY = default, bool logLineFirstItem = default, int logDepthRef = default, int logDepthToExpand = default, int logDepthToExpandDefault = default, ImGuiDebugLogFlags debugLogFlags = default, ImGuiTextBuffer debugLogBuf = default, bool debugItemPickerActive = default, uint debugItemPickerBreakId = default, ImGuiMetricsConfig debugMetricsConfig = default, ImGuiStackTool debugStackTool = default, Span framerateSecPerFrame = default, int framerateSecPerFrameIdx = default, int framerateSecPerFrameCount = default, float framerateSecPerFrameAccum = default, int wantCaptureMouseNextFrame = default, int wantCaptureKeyboardNextFrame = default, int wantTextInputNextFrame = default, ImVector tempBuffer = default) { Initialized = initialized ? (byte)1 : (byte)0; FontAtlasOwnedByContext = fontAtlasOwnedByContext ? (byte)1 : (byte)0; @@ -2445,7 +2445,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref ImVector FocusScopeStack => ref Unsafe.AsRef>(&Handle->FocusScopeStack); + public ref ImVector FocusScopeStack => ref Unsafe.AsRef>(&Handle->FocusScopeStack); /// /// To be documented. /// @@ -2912,7 +2912,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref ImVector MenusIdSubmittedThisFrame => ref Unsafe.AsRef>(&Handle->MenusIdSubmittedThisFrame); + public ref ImVector MenusIdSubmittedThisFrame => ref Unsafe.AsRef>(&Handle->MenusIdSubmittedThisFrame); /// /// To be documented. /// diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDataTypeInfo.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDataTypeInfo.cs index 03e2a15b0..b00de782b 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDataTypeInfo.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDataTypeInfo.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Type information associated to one ImGuiDataType. Retrieve with DataTypeGetInfo().
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiDataTypeInfo @@ -25,7 +25,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ulong Size; + public nuint Size; /// /// To be documented. @@ -46,7 +46,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public unsafe ImGuiDataTypeInfo(ulong size = default, byte* name = default, byte* printFmt = default, byte* scanFmt = default) + public unsafe ImGuiDataTypeInfo(nuint size = default, byte* name = default, byte* printFmt = default, byte* scanFmt = default) { Size = size; Name = name; @@ -101,7 +101,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref ulong Size => ref Unsafe.AsRef(&Handle->Size); + public ref nuint Size => ref Unsafe.AsRef(&Handle->Size); /// /// To be documented. /// diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockNode.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockNode.cs index 1140c710d..664194eb7 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockNode.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockNode.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// sizeof() 156~192
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiDockNode @@ -158,76 +158,9 @@ namespace Dalamud.Bindings.ImGui ///
public uint WantCloseTabId; - /// - /// To be documented. - /// - public ImGuiDataAuthority AuthorityForPos; - - /// - /// To be documented. - /// - public ImGuiDataAuthority AuthorityForSize; - - /// - /// To be documented. - /// - public ImGuiDataAuthority AuthorityForViewport; - - /// - /// To be documented. - /// - public byte IsVisible; - - /// - /// To be documented. - /// - public byte IsFocused; - - /// - /// To be documented. - /// - public byte IsBgDrawnThisFrame; - - /// - /// To be documented. - /// - public byte HasCloseButton; - - /// - /// To be documented. - /// - public byte HasWindowMenuButton; - - /// - /// To be documented. - /// - public byte HasCentralNodeChild; - - /// - /// To be documented. - /// - public byte WantCloseAll; - - /// - /// To be documented. - /// - public byte WantLockSizeOnce; - - /// - /// To be documented. - /// - public byte WantMouseMove; - - /// - /// To be documented. - /// - public byte WantHiddenTabBarUpdate; - - /// - /// To be documented. - /// - public byte WantHiddenTabBarToggle; - + public ImGuiDataAuthority RawBits0; + public bool RawBits1; + public bool RawBits2; /// /// To be documented. @@ -268,17 +201,17 @@ namespace Dalamud.Bindings.ImGui AuthorityForPos = authorityForPos; AuthorityForSize = authorityForSize; AuthorityForViewport = authorityForViewport; - IsVisible = isVisible ? (byte)1 : (byte)0; - IsFocused = isFocused ? (byte)1 : (byte)0; - IsBgDrawnThisFrame = isBgDrawnThisFrame ? (byte)1 : (byte)0; - HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; - HasWindowMenuButton = hasWindowMenuButton ? (byte)1 : (byte)0; - HasCentralNodeChild = hasCentralNodeChild ? (byte)1 : (byte)0; - WantCloseAll = wantCloseAll ? (byte)1 : (byte)0; - WantLockSizeOnce = wantLockSizeOnce ? (byte)1 : (byte)0; - WantMouseMove = wantMouseMove ? (byte)1 : (byte)0; - WantHiddenTabBarUpdate = wantHiddenTabBarUpdate ? (byte)1 : (byte)0; - WantHiddenTabBarToggle = wantHiddenTabBarToggle ? (byte)1 : (byte)0; + IsVisible = isVisible; + IsFocused = isFocused; + IsBgDrawnThisFrame = isBgDrawnThisFrame; + HasCloseButton = hasCloseButton; + HasWindowMenuButton = hasWindowMenuButton; + HasCentralNodeChild = hasCentralNodeChild; + WantCloseAll = wantCloseAll; + WantLockSizeOnce = wantLockSizeOnce; + WantMouseMove = wantMouseMove; + WantHiddenTabBarUpdate = wantHiddenTabBarUpdate; + WantHiddenTabBarToggle = wantHiddenTabBarToggle; } /// @@ -320,20 +253,48 @@ namespace Dalamud.Bindings.ImGui AuthorityForPos = authorityForPos; AuthorityForSize = authorityForSize; AuthorityForViewport = authorityForViewport; - IsVisible = isVisible ? (byte)1 : (byte)0; - IsFocused = isFocused ? (byte)1 : (byte)0; - IsBgDrawnThisFrame = isBgDrawnThisFrame ? (byte)1 : (byte)0; - HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; - HasWindowMenuButton = hasWindowMenuButton ? (byte)1 : (byte)0; - HasCentralNodeChild = hasCentralNodeChild ? (byte)1 : (byte)0; - WantCloseAll = wantCloseAll ? (byte)1 : (byte)0; - WantLockSizeOnce = wantLockSizeOnce ? (byte)1 : (byte)0; - WantMouseMove = wantMouseMove ? (byte)1 : (byte)0; - WantHiddenTabBarUpdate = wantHiddenTabBarUpdate ? (byte)1 : (byte)0; - WantHiddenTabBarToggle = wantHiddenTabBarToggle ? (byte)1 : (byte)0; + IsVisible = isVisible; + IsFocused = isFocused; + IsBgDrawnThisFrame = isBgDrawnThisFrame; + HasCloseButton = hasCloseButton; + HasWindowMenuButton = hasWindowMenuButton; + HasCentralNodeChild = hasCentralNodeChild; + WantCloseAll = wantCloseAll; + WantLockSizeOnce = wantLockSizeOnce; + WantMouseMove = wantMouseMove; + WantHiddenTabBarUpdate = wantHiddenTabBarUpdate; + WantHiddenTabBarToggle = wantHiddenTabBarToggle; } + public ImGuiDataAuthority AuthorityForPos { get => Bitfield.Get(RawBits0, 0, 3); set => Bitfield.Set(ref RawBits0, value, 0, 3); } + + public ImGuiDataAuthority AuthorityForSize { get => Bitfield.Get(RawBits0, 3, 3); set => Bitfield.Set(ref RawBits0, value, 3, 3); } + + public ImGuiDataAuthority AuthorityForViewport { get => Bitfield.Get(RawBits0, 6, 3); set => Bitfield.Set(ref RawBits0, value, 6, 3); } + + public bool IsVisible { get => Bitfield.Get(RawBits1, 0, 1); set => Bitfield.Set(ref RawBits1, value, 0, 1); } + + public bool IsFocused { get => Bitfield.Get(RawBits1, 1, 1); set => Bitfield.Set(ref RawBits1, value, 1, 1); } + + public bool IsBgDrawnThisFrame { get => Bitfield.Get(RawBits1, 2, 1); set => Bitfield.Set(ref RawBits1, value, 2, 1); } + + public bool HasCloseButton { get => Bitfield.Get(RawBits1, 3, 1); set => Bitfield.Set(ref RawBits1, value, 3, 1); } + + public bool HasWindowMenuButton { get => Bitfield.Get(RawBits1, 4, 1); set => Bitfield.Set(ref RawBits1, value, 4, 1); } + + public bool HasCentralNodeChild { get => Bitfield.Get(RawBits1, 5, 1); set => Bitfield.Set(ref RawBits1, value, 5, 1); } + + public bool WantCloseAll { get => Bitfield.Get(RawBits1, 6, 1); set => Bitfield.Set(ref RawBits1, value, 6, 1); } + + public bool WantLockSizeOnce { get => Bitfield.Get(RawBits1, 7, 1); set => Bitfield.Set(ref RawBits1, value, 7, 1); } + + public bool WantMouseMove { get => Bitfield.Get(RawBits2, 0, 1); set => Bitfield.Set(ref RawBits2, value, 0, 1); } + + public bool WantHiddenTabBarUpdate { get => Bitfield.Get(RawBits2, 1, 1); set => Bitfield.Set(ref RawBits2, value, 1, 1); } + + public bool WantHiddenTabBarToggle { get => Bitfield.Get(RawBits2, 2, 1); set => Bitfield.Set(ref RawBits2, value, 2, 1); } + /// /// To be documented. /// @@ -501,59 +462,59 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref ImGuiDataAuthority AuthorityForPos => ref Unsafe.AsRef(&Handle->AuthorityForPos); + public ImGuiDataAuthority AuthorityForPos { get => Handle->AuthorityForPos; set => Handle->AuthorityForPos = value; } /// /// To be documented. /// - public ref ImGuiDataAuthority AuthorityForSize => ref Unsafe.AsRef(&Handle->AuthorityForSize); + public ImGuiDataAuthority AuthorityForSize { get => Handle->AuthorityForSize; set => Handle->AuthorityForSize = value; } /// /// To be documented. /// - public ref ImGuiDataAuthority AuthorityForViewport => ref Unsafe.AsRef(&Handle->AuthorityForViewport); + public ImGuiDataAuthority AuthorityForViewport { get => Handle->AuthorityForViewport; set => Handle->AuthorityForViewport = value; } /// /// To be documented. /// - public ref bool IsVisible => ref Unsafe.AsRef(&Handle->IsVisible); + public bool IsVisible { get => Handle->IsVisible; set => Handle->IsVisible = value; } /// /// To be documented. /// - public ref bool IsFocused => ref Unsafe.AsRef(&Handle->IsFocused); + public bool IsFocused { get => Handle->IsFocused; set => Handle->IsFocused = value; } /// /// To be documented. /// - public ref bool IsBgDrawnThisFrame => ref Unsafe.AsRef(&Handle->IsBgDrawnThisFrame); + public bool IsBgDrawnThisFrame { get => Handle->IsBgDrawnThisFrame; set => Handle->IsBgDrawnThisFrame = value; } /// /// To be documented. /// - public ref bool HasCloseButton => ref Unsafe.AsRef(&Handle->HasCloseButton); + public bool HasCloseButton { get => Handle->HasCloseButton; set => Handle->HasCloseButton = value; } /// /// To be documented. /// - public ref bool HasWindowMenuButton => ref Unsafe.AsRef(&Handle->HasWindowMenuButton); + public bool HasWindowMenuButton { get => Handle->HasWindowMenuButton; set => Handle->HasWindowMenuButton = value; } /// /// To be documented. /// - public ref bool HasCentralNodeChild => ref Unsafe.AsRef(&Handle->HasCentralNodeChild); + public bool HasCentralNodeChild { get => Handle->HasCentralNodeChild; set => Handle->HasCentralNodeChild = value; } /// /// To be documented. /// - public ref bool WantCloseAll => ref Unsafe.AsRef(&Handle->WantCloseAll); + public bool WantCloseAll { get => Handle->WantCloseAll; set => Handle->WantCloseAll = value; } /// /// To be documented. /// - public ref bool WantLockSizeOnce => ref Unsafe.AsRef(&Handle->WantLockSizeOnce); + public bool WantLockSizeOnce { get => Handle->WantLockSizeOnce; set => Handle->WantLockSizeOnce = value; } /// /// To be documented. /// - public ref bool WantMouseMove => ref Unsafe.AsRef(&Handle->WantMouseMove); + public bool WantMouseMove { get => Handle->WantMouseMove; set => Handle->WantMouseMove = value; } /// /// To be documented. /// - public ref bool WantHiddenTabBarUpdate => ref Unsafe.AsRef(&Handle->WantHiddenTabBarUpdate); + public bool WantHiddenTabBarUpdate { get => Handle->WantHiddenTabBarUpdate; set => Handle->WantHiddenTabBarUpdate = value; } /// /// To be documented. /// - public ref bool WantHiddenTabBarToggle => ref Unsafe.AsRef(&Handle->WantHiddenTabBarToggle); + public bool WantHiddenTabBarToggle { get => Handle->WantHiddenTabBarToggle; set => Handle->WantHiddenTabBarToggle = value; } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiGroupData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiGroupData.cs index aac673a3d..a20ac3662 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiGroupData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiGroupData.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Stacked storage data for BeginGroup()EndGroup()
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiGroupData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiIO.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiIO.cs index e5fd1ada7..2513b6370 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiIO.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiIO.cs @@ -2533,7 +2533,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public byte BackendUsingLegacyKeyArrays; + public sbyte BackendUsingLegacyKeyArrays; /// /// To be documented. @@ -2554,7 +2554,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public unsafe ImGuiIO(ImGuiConfigFlags configFlags = default, ImGuiBackendFlags backendFlags = default, Vector2 displaySize = default, float deltaTime = default, float iniSavingRate = default, byte* iniFilename = default, byte* logFilename = default, float mouseDoubleClickTime = default, float mouseDoubleClickMaxDist = default, float mouseDragThreshold = default, float keyRepeatDelay = default, float keyRepeatRate = default, void* userData = default, ImFontAtlasPtr fonts = default, float fontGlobalScale = default, bool fontAllowUserScaling = default, ImFontPtr fontDefault = default, Vector2 displayFramebufferScale = default, bool configDockingNoSplit = default, bool configDockingWithShift = default, bool configDockingAlwaysTabBar = default, bool configDockingTransparentPayload = default, bool configViewportsNoAutoMerge = default, bool configViewportsNoTaskBarIcon = default, bool configViewportsNoDecoration = default, bool configViewportsNoDefaultParent = default, bool mouseDrawCursor = default, bool configMacOsxBehaviors = default, bool configInputTrickleEventQueue = default, bool configInputTextCursorBlink = default, bool configDragClickToInputText = default, bool configWindowsResizeFromEdges = default, bool configWindowsMoveFromTitleBarOnly = default, float configMemoryCompactTimer = default, byte* backendPlatformName = default, byte* backendRendererName = default, void* backendPlatformUserData = default, void* backendRendererUserData = default, void* backendLanguageUserData = default, delegate* getClipboardTextFn = default, delegate* setClipboardTextFn = default, void* clipboardUserData = default, delegate* setPlatformImeDataFn = default, void* unusedPadding = default, bool wantCaptureMouse = default, bool wantCaptureKeyboard = default, bool wantTextInput = default, bool wantSetMousePos = default, bool wantSaveIniSettings = default, bool navActive = default, bool navVisible = default, float framerate = default, int metricsRenderVertices = default, int metricsRenderIndices = default, int metricsRenderWindows = default, int metricsActiveWindows = default, int metricsActiveAllocations = default, Vector2 mouseDelta = default, int* keyMap = default, bool* keysDown = default, Vector2 mousePos = default, bool* mouseDown = default, float mouseWheel = default, float mouseWheelH = default, uint mouseHoveredViewport = default, bool keyCtrl = default, bool keyShift = default, bool keyAlt = default, bool keySuper = default, float* navInputs = default, ImGuiModFlags keyMods = default, ImGuiKeyData* keysData = default, bool wantCaptureMouseUnlessPopupClose = default, Vector2 mousePosPrev = default, Vector2* mouseClickedPos = default, double* mouseClickedTime = default, bool* mouseClicked = default, bool* mouseDoubleClicked = default, ushort* mouseClickedCount = default, ushort* mouseClickedLastCount = default, bool* mouseReleased = default, bool* mouseDownOwned = default, bool* mouseDownOwnedUnlessPopupClose = default, float* mouseDownDuration = default, float* mouseDownDurationPrev = default, Vector2* mouseDragMaxDistanceAbs = default, float* mouseDragMaxDistanceSqr = default, float* navInputsDownDuration = default, float* navInputsDownDurationPrev = default, float penPressure = default, bool appFocusLost = default, bool appAcceptingEvents = default, byte backendUsingLegacyKeyArrays = default, bool backendUsingLegacyNavInputArray = default, ushort inputQueueSurrogate = default, ImVector inputQueueCharacters = default) + public unsafe ImGuiIO(ImGuiConfigFlags configFlags = default, ImGuiBackendFlags backendFlags = default, Vector2 displaySize = default, float deltaTime = default, float iniSavingRate = default, byte* iniFilename = default, byte* logFilename = default, float mouseDoubleClickTime = default, float mouseDoubleClickMaxDist = default, float mouseDragThreshold = default, float keyRepeatDelay = default, float keyRepeatRate = default, void* userData = default, ImFontAtlasPtr fonts = default, float fontGlobalScale = default, bool fontAllowUserScaling = default, ImFontPtr fontDefault = default, Vector2 displayFramebufferScale = default, bool configDockingNoSplit = default, bool configDockingWithShift = default, bool configDockingAlwaysTabBar = default, bool configDockingTransparentPayload = default, bool configViewportsNoAutoMerge = default, bool configViewportsNoTaskBarIcon = default, bool configViewportsNoDecoration = default, bool configViewportsNoDefaultParent = default, bool mouseDrawCursor = default, bool configMacOsxBehaviors = default, bool configInputTrickleEventQueue = default, bool configInputTextCursorBlink = default, bool configDragClickToInputText = default, bool configWindowsResizeFromEdges = default, bool configWindowsMoveFromTitleBarOnly = default, float configMemoryCompactTimer = default, byte* backendPlatformName = default, byte* backendRendererName = default, void* backendPlatformUserData = default, void* backendRendererUserData = default, void* backendLanguageUserData = default, delegate* getClipboardTextFn = default, delegate* setClipboardTextFn = default, void* clipboardUserData = default, delegate* setPlatformImeDataFn = default, void* unusedPadding = default, bool wantCaptureMouse = default, bool wantCaptureKeyboard = default, bool wantTextInput = default, bool wantSetMousePos = default, bool wantSaveIniSettings = default, bool navActive = default, bool navVisible = default, float framerate = default, int metricsRenderVertices = default, int metricsRenderIndices = default, int metricsRenderWindows = default, int metricsActiveWindows = default, int metricsActiveAllocations = default, Vector2 mouseDelta = default, int* keyMap = default, bool* keysDown = default, Vector2 mousePos = default, bool* mouseDown = default, float mouseWheel = default, float mouseWheelH = default, uint mouseHoveredViewport = default, bool keyCtrl = default, bool keyShift = default, bool keyAlt = default, bool keySuper = default, float* navInputs = default, ImGuiModFlags keyMods = default, ImGuiKeyData* keysData = default, bool wantCaptureMouseUnlessPopupClose = default, Vector2 mousePosPrev = default, Vector2* mouseClickedPos = default, double* mouseClickedTime = default, bool* mouseClicked = default, bool* mouseDoubleClicked = default, ushort* mouseClickedCount = default, ushort* mouseClickedLastCount = default, bool* mouseReleased = default, bool* mouseDownOwned = default, bool* mouseDownOwnedUnlessPopupClose = default, float* mouseDownDuration = default, float* mouseDownDurationPrev = default, Vector2* mouseDragMaxDistanceAbs = default, float* mouseDragMaxDistanceSqr = default, float* navInputsDownDuration = default, float* navInputsDownDurationPrev = default, float penPressure = default, bool appFocusLost = default, bool appAcceptingEvents = default, sbyte backendUsingLegacyKeyArrays = default, bool backendUsingLegacyNavInputArray = default, ushort inputQueueSurrogate = default, ImVector inputQueueCharacters = default) { ConfigFlags = configFlags; BackendFlags = backendFlags; @@ -4765,7 +4765,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public unsafe ImGuiIO(ImGuiConfigFlags configFlags = default, ImGuiBackendFlags backendFlags = default, Vector2 displaySize = default, float deltaTime = default, float iniSavingRate = default, byte* iniFilename = default, byte* logFilename = default, float mouseDoubleClickTime = default, float mouseDoubleClickMaxDist = default, float mouseDragThreshold = default, float keyRepeatDelay = default, float keyRepeatRate = default, void* userData = default, ImFontAtlasPtr fonts = default, float fontGlobalScale = default, bool fontAllowUserScaling = default, ImFontPtr fontDefault = default, Vector2 displayFramebufferScale = default, bool configDockingNoSplit = default, bool configDockingWithShift = default, bool configDockingAlwaysTabBar = default, bool configDockingTransparentPayload = default, bool configViewportsNoAutoMerge = default, bool configViewportsNoTaskBarIcon = default, bool configViewportsNoDecoration = default, bool configViewportsNoDefaultParent = default, bool mouseDrawCursor = default, bool configMacOsxBehaviors = default, bool configInputTrickleEventQueue = default, bool configInputTextCursorBlink = default, bool configDragClickToInputText = default, bool configWindowsResizeFromEdges = default, bool configWindowsMoveFromTitleBarOnly = default, float configMemoryCompactTimer = default, byte* backendPlatformName = default, byte* backendRendererName = default, void* backendPlatformUserData = default, void* backendRendererUserData = default, void* backendLanguageUserData = default, delegate* getClipboardTextFn = default, delegate* setClipboardTextFn = default, void* clipboardUserData = default, delegate* setPlatformImeDataFn = default, void* unusedPadding = default, bool wantCaptureMouse = default, bool wantCaptureKeyboard = default, bool wantTextInput = default, bool wantSetMousePos = default, bool wantSaveIniSettings = default, bool navActive = default, bool navVisible = default, float framerate = default, int metricsRenderVertices = default, int metricsRenderIndices = default, int metricsRenderWindows = default, int metricsActiveWindows = default, int metricsActiveAllocations = default, Vector2 mouseDelta = default, Span keyMap = default, Span keysDown = default, Vector2 mousePos = default, Span mouseDown = default, float mouseWheel = default, float mouseWheelH = default, uint mouseHoveredViewport = default, bool keyCtrl = default, bool keyShift = default, bool keyAlt = default, bool keySuper = default, Span navInputs = default, ImGuiModFlags keyMods = default, Span keysData = default, bool wantCaptureMouseUnlessPopupClose = default, Vector2 mousePosPrev = default, Span mouseClickedPos = default, Span mouseClickedTime = default, Span mouseClicked = default, Span mouseDoubleClicked = default, Span mouseClickedCount = default, Span mouseClickedLastCount = default, Span mouseReleased = default, Span mouseDownOwned = default, Span mouseDownOwnedUnlessPopupClose = default, Span mouseDownDuration = default, Span mouseDownDurationPrev = default, Span mouseDragMaxDistanceAbs = default, Span mouseDragMaxDistanceSqr = default, Span navInputsDownDuration = default, Span navInputsDownDurationPrev = default, float penPressure = default, bool appFocusLost = default, bool appAcceptingEvents = default, byte backendUsingLegacyKeyArrays = default, bool backendUsingLegacyNavInputArray = default, ushort inputQueueSurrogate = default, ImVector inputQueueCharacters = default) + public unsafe ImGuiIO(ImGuiConfigFlags configFlags = default, ImGuiBackendFlags backendFlags = default, Vector2 displaySize = default, float deltaTime = default, float iniSavingRate = default, byte* iniFilename = default, byte* logFilename = default, float mouseDoubleClickTime = default, float mouseDoubleClickMaxDist = default, float mouseDragThreshold = default, float keyRepeatDelay = default, float keyRepeatRate = default, void* userData = default, ImFontAtlasPtr fonts = default, float fontGlobalScale = default, bool fontAllowUserScaling = default, ImFontPtr fontDefault = default, Vector2 displayFramebufferScale = default, bool configDockingNoSplit = default, bool configDockingWithShift = default, bool configDockingAlwaysTabBar = default, bool configDockingTransparentPayload = default, bool configViewportsNoAutoMerge = default, bool configViewportsNoTaskBarIcon = default, bool configViewportsNoDecoration = default, bool configViewportsNoDefaultParent = default, bool mouseDrawCursor = default, bool configMacOsxBehaviors = default, bool configInputTrickleEventQueue = default, bool configInputTextCursorBlink = default, bool configDragClickToInputText = default, bool configWindowsResizeFromEdges = default, bool configWindowsMoveFromTitleBarOnly = default, float configMemoryCompactTimer = default, byte* backendPlatformName = default, byte* backendRendererName = default, void* backendPlatformUserData = default, void* backendRendererUserData = default, void* backendLanguageUserData = default, delegate* getClipboardTextFn = default, delegate* setClipboardTextFn = default, void* clipboardUserData = default, delegate* setPlatformImeDataFn = default, void* unusedPadding = default, bool wantCaptureMouse = default, bool wantCaptureKeyboard = default, bool wantTextInput = default, bool wantSetMousePos = default, bool wantSaveIniSettings = default, bool navActive = default, bool navVisible = default, float framerate = default, int metricsRenderVertices = default, int metricsRenderIndices = default, int metricsRenderWindows = default, int metricsActiveWindows = default, int metricsActiveAllocations = default, Vector2 mouseDelta = default, Span keyMap = default, Span keysDown = default, Vector2 mousePos = default, Span mouseDown = default, float mouseWheel = default, float mouseWheelH = default, uint mouseHoveredViewport = default, bool keyCtrl = default, bool keyShift = default, bool keyAlt = default, bool keySuper = default, Span navInputs = default, ImGuiModFlags keyMods = default, Span keysData = default, bool wantCaptureMouseUnlessPopupClose = default, Vector2 mousePosPrev = default, Span mouseClickedPos = default, Span mouseClickedTime = default, Span mouseClicked = default, Span mouseDoubleClicked = default, Span mouseClickedCount = default, Span mouseClickedLastCount = default, Span mouseReleased = default, Span mouseDownOwned = default, Span mouseDownOwnedUnlessPopupClose = default, Span mouseDownDuration = default, Span mouseDownDurationPrev = default, Span mouseDragMaxDistanceAbs = default, Span mouseDragMaxDistanceSqr = default, Span navInputsDownDuration = default, Span navInputsDownDurationPrev = default, float penPressure = default, bool appFocusLost = default, bool appAcceptingEvents = default, sbyte backendUsingLegacyKeyArrays = default, bool backendUsingLegacyNavInputArray = default, ushort inputQueueSurrogate = default, ImVector inputQueueCharacters = default) { ConfigFlags = configFlags; BackendFlags = backendFlags; @@ -7806,7 +7806,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref byte BackendUsingLegacyKeyArrays => ref Unsafe.AsRef(&Handle->BackendUsingLegacyKeyArrays); + public ref sbyte BackendUsingLegacyKeyArrays => ref Unsafe.AsRef(&Handle->BackendUsingLegacyKeyArrays); /// /// To be documented. /// diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMousePos.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMousePos.cs index 464644e98..e0a243474 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMousePos.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMousePos.cs @@ -17,8 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// FIXME: Structures in the union below need to be declared as anonymous unions appears to be an extension?
- /// Using ImVec2() would fail on Clang 'union member 'MousePos' has a non-trivial default constructor'
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiInputEventMousePos diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextCallbackData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextCallbackData.cs index 562501217..74b16adf8 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextCallbackData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextCallbackData.cs @@ -17,15 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used.
- /// The callback function should return 0 by default.
- /// Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details)
- /// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit. Note that InputText() already returns true on edit + you can always use IsItemEdited(). The callback is useful to manipulate the underlying buffer while focus is active.
- /// - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration
- /// - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB
- /// - ImGuiInputTextFlags_CallbackHistory: Callback on pressing UpDown arrows
- /// - ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard.
- /// - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiInputTextCallbackData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextState.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextState.cs index a56d1d46c..16900a641 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextState.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextState.cs @@ -17,8 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Internal state of the currently focusededited text input box
- /// For a given item ID, access with ImGui::GetInputTextState()
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiInputTextState diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiKeyData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiKeyData.cs index 9772e13b0..e59b3e65a 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiKeyData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiKeyData.cs @@ -17,8 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// [Internal] Storage used by IsKeyDown(), IsKeyPressed() etc functions.
- /// If prior to 1.87 you used io.KeysDownDuration[] (which was marked as internal), you should use GetKeyData(key)->DownDuration and *NOT* io.KeysData[key]->DownDuration.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiKeyData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiLastItemData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiLastItemData.cs index f1021c1bb..489b207e0 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiLastItemData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiLastItemData.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Status storage for the last submitted item
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiLastItemData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipper.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipper.cs index 772f64ce2..4e732c6e6 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipper.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipper.cs @@ -17,26 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Helper: Manually clip large list of items.
- /// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
- /// clipping based on visibility to only submit items that are in view.
- /// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
- /// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
- /// fetchingsubmitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
- /// scale using lists with tens of thousands of items without a problem)
- /// Usage:
- /// ImGuiListClipper clipper;
- /// clipper.Begin(1000); We have 1000 elements, evenly spaced.
- /// while (clipper.Step())
- /// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
- /// ImGui::Text("line number %d", i);
- /// Generally what happens is:
- /// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
- /// - User code submit that one element.
- /// - Clipper can measure the height of the first element
- /// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
- /// - User code submit visible elements.
- /// - The clipper also handles various subtleties related to keyboardgamepad navigation, wrapping etc.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiListClipper diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperData.cs index b02ca9ce7..f30c4c4c0 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperData.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Temporary clipper data, buffers sharedreused between instances
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiListClipperData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperRange.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperRange.cs index 8bd346367..aeccdf4de 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperRange.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperRange.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Note that Max is exclusive, so perhaps should be using a BeginEnd convention.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiListClipperRange @@ -40,18 +40,18 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public byte PosToIndexOffsetMin; + public sbyte PosToIndexOffsetMin; /// /// To be documented. /// - public byte PosToIndexOffsetMax; + public sbyte PosToIndexOffsetMax; /// /// To be documented. /// - public unsafe ImGuiListClipperRange(int min = default, int max = default, bool posToIndexConvert = default, byte posToIndexOffsetMin = default, byte posToIndexOffsetMax = default) + public unsafe ImGuiListClipperRange(int min = default, int max = default, bool posToIndexConvert = default, sbyte posToIndexOffsetMin = default, sbyte posToIndexOffsetMax = default) { Min = min; Max = max; @@ -119,11 +119,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref byte PosToIndexOffsetMin => ref Unsafe.AsRef(&Handle->PosToIndexOffsetMin); + public ref sbyte PosToIndexOffsetMin => ref Unsafe.AsRef(&Handle->PosToIndexOffsetMin); /// /// To be documented. /// - public ref byte PosToIndexOffsetMax => ref Unsafe.AsRef(&Handle->PosToIndexOffsetMax); + public ref sbyte PosToIndexOffsetMax => ref Unsafe.AsRef(&Handle->PosToIndexOffsetMax); } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiMenuColumns.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiMenuColumns.cs index 41dad1a83..c1d528633 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiMenuColumns.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiMenuColumns.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Simple column measurement, currently used for MenuItem() only.. This is very short-sightedthrow-away code and NOT a generic helper.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiMenuColumns diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNavItemData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNavItemData.cs index a9ab3183f..4c272cfaa 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNavItemData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNavItemData.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Storage for navigation queryresults
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiNavItemData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNextWindowData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNextWindowData.cs index 4e357b72f..7ef6d0590 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNextWindowData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNextWindowData.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Storage for SetNexWindow** functions
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiNextWindowData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOnceUponAFrame.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOnceUponAFrame.cs index bec674b8e..68533d36c 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOnceUponAFrame.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOnceUponAFrame.cs @@ -17,8 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Helper: Execute a block of code at maximum once a frame. Convenient if you want to quickly create a UI within deep-nested code that runs multiple times every frame.
- /// Usage: static ImGuiOnceUponAFrame oaf; if (oaf) ImGui::Text("This will be called only once per frame");
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiOnceUponAFrame diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPayload.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPayload.cs index 14bf1f2bb..a96f66ef4 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPayload.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPayload.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Data payload for Drag and Drop operations: AcceptDragDropPayload(), GetDragDropPayload()
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiPayload diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformIO.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformIO.cs index 5be5ba4d6..2f649346e 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformIO.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformIO.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Access via ImGui::GetPlatformIO()
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiPlatformIO diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformImeData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformImeData.cs index 4e19399df..aca26e254 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformImeData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformImeData.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiPlatformImeData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformMonitor.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformMonitor.cs index 7be8f94fb..baae4df87 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformMonitor.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformMonitor.cs @@ -17,8 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitordisplay and their DPI.
- /// We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiPlatformMonitor diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPopupData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPopupData.cs index 06c128e99..4e03965aa 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPopupData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPopupData.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiPopupData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiSizeCallbackData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiSizeCallbackData.cs index 02c493228..037782ef3 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiSizeCallbackData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiSizeCallbackData.cs @@ -17,8 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin().
- /// NB: For basic minmax size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiSizeCallbackData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackLevelInfo.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackLevelInfo.cs index a3cacb8f5..041d31f21 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackLevelInfo.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackLevelInfo.cs @@ -30,18 +30,14 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public byte QueryFrameCount; + public sbyte QueryFrameCount; /// /// To be documented. /// public byte QuerySuccess; - /// - /// To be documented. - /// - public ImGuiDataType DataType; - + public ImGuiDataType RawBits0; /// /// To be documented. /// @@ -107,7 +103,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public unsafe ImGuiStackLevelInfo(uint id = default, byte queryFrameCount = default, bool querySuccess = default, ImGuiDataType dataType = default, byte* desc = default) + public unsafe ImGuiStackLevelInfo(uint id = default, sbyte queryFrameCount = default, bool querySuccess = default, ImGuiDataType dataType = default, byte* desc = default) { ID = id; QueryFrameCount = queryFrameCount; @@ -178,7 +174,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public unsafe ImGuiStackLevelInfo(uint id = default, byte queryFrameCount = default, bool querySuccess = default, ImGuiDataType dataType = default, Span desc = default) + public unsafe ImGuiStackLevelInfo(uint id = default, sbyte queryFrameCount = default, bool querySuccess = default, ImGuiDataType dataType = default, Span desc = default) { ID = id; QueryFrameCount = queryFrameCount; @@ -247,6 +243,8 @@ namespace Dalamud.Bindings.ImGui } + public ImGuiDataType DataType { get => Bitfield.Get(RawBits0, 0, 8); set => Bitfield.Set(ref RawBits0, value, 0, 8); } + /// /// To be documented. /// @@ -308,7 +306,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref byte QueryFrameCount => ref Unsafe.AsRef(&Handle->QueryFrameCount); + public ref sbyte QueryFrameCount => ref Unsafe.AsRef(&Handle->QueryFrameCount); /// /// To be documented. /// @@ -316,7 +314,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref ImGuiDataType DataType => ref Unsafe.AsRef(&Handle->DataType); + public ImGuiDataType DataType { get => Handle->DataType; set => Handle->DataType = value; } /// /// To be documented. /// diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackSizes.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackSizes.cs index 5766263fe..98c2a4e14 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackSizes.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackSizes.cs @@ -85,6 +85,17 @@ namespace Dalamud.Bindings.ImGui } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiStackSizes* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + } /// @@ -164,6 +175,14 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// public ref short SizeOfDisabledStack => ref Unsafe.AsRef(&Handle->SizeOfDisabledStack); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackTool.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackTool.cs index c6f535f2c..9858fbd65 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackTool.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackTool.cs @@ -67,6 +67,17 @@ namespace Dalamud.Bindings.ImGui } + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImGuiStackTool* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + } /// @@ -134,6 +145,14 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// public ref float CopyToClipboardLastTime => ref Unsafe.AsRef(&Handle->CopyToClipboardLastTime); + /// + /// To be documented. + /// + public unsafe void Destroy() + { + ImGui.DestroyNative(Handle); + } + } } diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStorage.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStorage.cs index 72a5966ac..372738d35 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStorage.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStorage.cs @@ -17,14 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Helper: Key->Value storage
- /// Typically you don't have to worry about this since a storage is held within each Window.
- /// We use it to e.g. store collapse state for a tree (Int 01)
- /// This is optimized for efficient lookup (dichotomy into a contiguous buffer) and rare insertion (typically tied to user interactions aka max once a frame)
- /// You can use it as custom user storage for temporary values. Declare your own storage if, for example:
- /// - You want to manipulate the openclose state of a particular sub-tree in your interface (tree node uses Int 01 to store their state).
- /// - You want to store custom debug data easily without adding or editing structures in your code (probably not efficient, but convenient)
- /// Types are NOT stored, so it is up to you to make sure your Key don't collide with different types.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiStorage diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStoragePair.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStoragePair.cs index 5a91621f5..b25d13477 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStoragePair.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStoragePair.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// [Internal] Key+Value for ImGuiStorage
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiStoragePair diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStyleMod.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStyleMod.cs index ee814877b..90fbe1204 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStyleMod.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStyleMod.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Stacked style modifier, backup of modified data so we can restore it. Data type inferred from the variable.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiStyleMod diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabBar.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabBar.cs index b2cf157a0..e2ad5f169 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabBar.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabBar.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Storage for a tab bar (sizeof() 160 bytes)
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTabBar @@ -130,7 +130,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public byte BeginCount; + public sbyte BeginCount; /// /// To be documented. @@ -181,7 +181,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public unsafe ImGuiTabBar(ImVector tabs = default, ImGuiTabBarFlags flags = default, uint id = default, uint selectedTabId = default, uint nextSelectedTabId = default, uint visibleTabId = default, int currFrameVisible = default, int prevFrameVisible = default, ImRect barRect = default, float currTabsContentsHeight = default, float prevTabsContentsHeight = default, float widthAllTabs = default, float widthAllTabsIdeal = default, float scrollingAnim = default, float scrollingTarget = default, float scrollingTargetDistToVisibility = default, float scrollingSpeed = default, float scrollingRectMinX = default, float scrollingRectMaxX = default, uint reorderRequestTabId = default, short reorderRequestOffset = default, byte beginCount = default, bool wantLayout = default, bool visibleTabWasSubmitted = default, bool tabsAddedNew = default, short tabsActiveCount = default, short lastTabItemIdx = default, float itemSpacingY = default, Vector2 framePadding = default, Vector2 backupCursorPos = default, ImGuiTextBuffer tabsNames = default) + public unsafe ImGuiTabBar(ImVector tabs = default, ImGuiTabBarFlags flags = default, uint id = default, uint selectedTabId = default, uint nextSelectedTabId = default, uint visibleTabId = default, int currFrameVisible = default, int prevFrameVisible = default, ImRect barRect = default, float currTabsContentsHeight = default, float prevTabsContentsHeight = default, float widthAllTabs = default, float widthAllTabsIdeal = default, float scrollingAnim = default, float scrollingTarget = default, float scrollingTargetDistToVisibility = default, float scrollingSpeed = default, float scrollingRectMinX = default, float scrollingRectMaxX = default, uint reorderRequestTabId = default, short reorderRequestOffset = default, sbyte beginCount = default, bool wantLayout = default, bool visibleTabWasSubmitted = default, bool tabsAddedNew = default, short tabsActiveCount = default, short lastTabItemIdx = default, float itemSpacingY = default, Vector2 framePadding = default, Vector2 backupCursorPos = default, ImGuiTextBuffer tabsNames = default) { Tabs = tabs; Flags = flags; @@ -358,7 +358,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref byte BeginCount => ref Unsafe.AsRef(&Handle->BeginCount); + public ref sbyte BeginCount => ref Unsafe.AsRef(&Handle->BeginCount); /// /// To be documented. /// diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabItem.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabItem.cs index 835cba689..ecb52d50c 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabItem.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabItem.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Storage for one active tab item (sizeof() 48 bytes)
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTabItem diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTable.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTable.cs index cd68bc471..f57d974c8 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTable.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTable.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// sizeof() ~ 592 bytes + heap allocs described in TableBeginInitMemory()
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTable @@ -142,16 +142,7 @@ namespace Dalamud.Bindings.ImGui ///
public float RowIndentOffsetX; - /// - /// To be documented. - /// - public ImGuiTableRowFlags RowFlags; - - /// - /// To be documented. - /// - public ImGuiTableRowFlags LastRowFlags; - + public ImGuiTableRowFlags RawBits0; /// /// To be documented. /// @@ -775,6 +766,10 @@ namespace Dalamud.Bindings.ImGui } + public ImGuiTableRowFlags RowFlags { get => Bitfield.Get(RawBits0, 0, 16); set => Bitfield.Set(ref RawBits0, value, 0, 16); } + + public ImGuiTableRowFlags LastRowFlags { get => Bitfield.Get(RawBits0, 16, 16); set => Bitfield.Set(ref RawBits0, value, 16, 16); } + } /// @@ -917,11 +912,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref ImGuiTableRowFlags RowFlags => ref Unsafe.AsRef(&Handle->RowFlags); + public ImGuiTableRowFlags RowFlags { get => Handle->RowFlags; set => Handle->RowFlags = value; } /// /// To be documented. /// - public ref ImGuiTableRowFlags LastRowFlags => ref Unsafe.AsRef(&Handle->LastRowFlags); + public ImGuiTableRowFlags LastRowFlags { get => Handle->LastRowFlags; set => Handle->LastRowFlags = value; } /// /// To be documented. /// diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableCellData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableCellData.cs index e321c25be..0b5790a96 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableCellData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableCellData.cs @@ -17,8 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Transient cell data stored per row.
- /// sizeof() ~ 6 bytes
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableCellData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumn.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumn.cs index 037a9f5f7..c21d809e1 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumn.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumn.cs @@ -17,10 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// [Internal] sizeof() ~ 112
- /// We use the terminology "Enabled" to refer to a column that is not Hidden by userapi.
- /// We use the terminology "Clipped" to refer to a column that is out of sight because of scrollingclipping.
- /// This is in contrast with some user-facing api such as IsItemVisible() IsRectVisible() which use "Visible" to mean "not clipped".
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableColumn @@ -198,7 +195,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public byte NavLayerCurrent; + public sbyte NavLayerCurrent; /// /// To be documented. @@ -210,21 +207,7 @@ namespace Dalamud.Bindings.ImGui /// public byte CannotSkipItemsQueue; - /// - /// To be documented. - /// - public byte SortDirection; - - /// - /// To be documented. - /// - public byte SortDirectionsAvailCount; - - /// - /// To be documented. - /// - public byte SortDirectionsAvailMask; - + public byte RawBits0; /// /// To be documented. /// @@ -234,7 +217,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public unsafe ImGuiTableColumn(ImGuiTableColumnFlags flags = default, float widthGiven = default, float minX = default, float maxX = default, float widthRequest = default, float widthAuto = default, float stretchWeight = default, float initStretchWeightOrWidth = default, ImRect clipRect = default, uint userId = default, float workMinX = default, float workMaxX = default, float itemWidth = default, float contentMaxXFrozen = default, float contentMaxXUnfrozen = default, float contentMaxXHeadersUsed = default, float contentMaxXHeadersIdeal = default, short nameOffset = default, sbyte displayOrder = default, sbyte indexWithinEnabledSet = default, sbyte prevEnabledColumn = default, sbyte nextEnabledColumn = default, sbyte sortOrder = default, byte drawChannelCurrent = default, byte drawChannelFrozen = default, byte drawChannelUnfrozen = default, bool isEnabled = default, bool isUserEnabled = default, bool isUserEnabledNextFrame = default, bool isVisibleX = default, bool isVisibleY = default, bool isRequestOutput = default, bool isSkipItems = default, bool isPreserveWidthAuto = default, byte navLayerCurrent = default, byte autoFitQueue = default, byte cannotSkipItemsQueue = default, byte sortDirection = default, byte sortDirectionsAvailCount = default, byte sortDirectionsAvailMask = default, byte sortDirectionsAvailList = default) + public unsafe ImGuiTableColumn(ImGuiTableColumnFlags flags = default, float widthGiven = default, float minX = default, float maxX = default, float widthRequest = default, float widthAuto = default, float stretchWeight = default, float initStretchWeightOrWidth = default, ImRect clipRect = default, uint userId = default, float workMinX = default, float workMaxX = default, float itemWidth = default, float contentMaxXFrozen = default, float contentMaxXUnfrozen = default, float contentMaxXHeadersUsed = default, float contentMaxXHeadersIdeal = default, short nameOffset = default, sbyte displayOrder = default, sbyte indexWithinEnabledSet = default, sbyte prevEnabledColumn = default, sbyte nextEnabledColumn = default, sbyte sortOrder = default, byte drawChannelCurrent = default, byte drawChannelFrozen = default, byte drawChannelUnfrozen = default, bool isEnabled = default, bool isUserEnabled = default, bool isUserEnabledNextFrame = default, bool isVisibleX = default, bool isVisibleY = default, bool isRequestOutput = default, bool isSkipItems = default, bool isPreserveWidthAuto = default, sbyte navLayerCurrent = default, byte autoFitQueue = default, byte cannotSkipItemsQueue = default, byte sortDirection = default, byte sortDirectionsAvailCount = default, byte sortDirectionsAvailMask = default, byte sortDirectionsAvailList = default) { Flags = flags; WidthGiven = widthGiven; @@ -280,6 +263,12 @@ namespace Dalamud.Bindings.ImGui } + public byte SortDirection { get => Bitfield.Get(RawBits0, 0, 2); set => Bitfield.Set(ref RawBits0, value, 0, 2); } + + public byte SortDirectionsAvailCount { get => Bitfield.Get(RawBits0, 2, 2); set => Bitfield.Set(ref RawBits0, value, 2, 2); } + + public byte SortDirectionsAvailMask { get => Bitfield.Get(RawBits0, 4, 4); set => Bitfield.Set(ref RawBits0, value, 4, 4); } + /// /// To be documented. /// @@ -473,7 +462,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref byte NavLayerCurrent => ref Unsafe.AsRef(&Handle->NavLayerCurrent); + public ref sbyte NavLayerCurrent => ref Unsafe.AsRef(&Handle->NavLayerCurrent); /// /// To be documented. /// @@ -485,15 +474,15 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref byte SortDirection => ref Unsafe.AsRef(&Handle->SortDirection); + public byte SortDirection { get => Handle->SortDirection; set => Handle->SortDirection = value; } /// /// To be documented. /// - public ref byte SortDirectionsAvailCount => ref Unsafe.AsRef(&Handle->SortDirectionsAvailCount); + public byte SortDirectionsAvailCount { get => Handle->SortDirectionsAvailCount; set => Handle->SortDirectionsAvailCount = value; } /// /// To be documented. /// - public ref byte SortDirectionsAvailMask => ref Unsafe.AsRef(&Handle->SortDirectionsAvailMask); + public byte SortDirectionsAvailMask { get => Handle->SortDirectionsAvailMask; set => Handle->SortDirectionsAvailMask = value; } /// /// To be documented. /// diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSettings.cs index a57aa666b..13316f03e 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSettings.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSettings.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// sizeof() ~ 16
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableColumnSettings @@ -47,21 +47,7 @@ namespace Dalamud.Bindings.ImGui ///
public sbyte SortOrder; - /// - /// To be documented. - /// - public byte SortDirection; - - /// - /// To be documented. - /// - public byte IsEnabled; - - /// - /// To be documented. - /// - public byte IsStretch; - + public byte RawBits0; /// /// To be documented. @@ -79,6 +65,12 @@ namespace Dalamud.Bindings.ImGui } + public byte SortDirection { get => Bitfield.Get(RawBits0, 0, 2); set => Bitfield.Set(ref RawBits0, value, 0, 2); } + + public byte IsEnabled { get => Bitfield.Get(RawBits0, 2, 1); set => Bitfield.Set(ref RawBits0, value, 2, 1); } + + public byte IsStretch { get => Bitfield.Get(RawBits0, 3, 1); set => Bitfield.Set(ref RawBits0, value, 3, 1); } + /// /// To be documented. /// @@ -156,15 +148,15 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref byte SortDirection => ref Unsafe.AsRef(&Handle->SortDirection); + public byte SortDirection { get => Handle->SortDirection; set => Handle->SortDirection = value; } /// /// To be documented. /// - public ref byte IsEnabled => ref Unsafe.AsRef(&Handle->IsEnabled); + public byte IsEnabled { get => Handle->IsEnabled; set => Handle->IsEnabled = value; } /// /// To be documented. /// - public ref byte IsStretch => ref Unsafe.AsRef(&Handle->IsStretch); + public byte IsStretch { get => Handle->IsStretch; set => Handle->IsStretch = value; } /// /// To be documented. /// diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSortSpecs.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSortSpecs.cs index b61fb18fb..c4a74254d 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSortSpecs.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSortSpecs.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Sorting specification for one column of a table (sizeof == 12 bytes)
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableColumnSortSpecs @@ -37,11 +37,7 @@ namespace Dalamud.Bindings.ImGui ///
public short SortOrder; - /// - /// To be documented. - /// - public ImGuiSortDirection SortDirection; - + public ImGuiSortDirection RawBits0; /// /// To be documented. @@ -55,6 +51,8 @@ namespace Dalamud.Bindings.ImGui } + public ImGuiSortDirection SortDirection { get => Bitfield.Get(RawBits0, 0, 8); set => Bitfield.Set(ref RawBits0, value, 0, 8); } + /// /// To be documented. /// @@ -124,7 +122,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref ImGuiSortDirection SortDirection => ref Unsafe.AsRef(&Handle->SortDirection); + public ImGuiSortDirection SortDirection { get => Handle->SortDirection; set => Handle->SortDirection = value; } /// /// To be documented. /// diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableInstanceData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableInstanceData.cs index e8e5f310a..8d17461ef 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableInstanceData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableInstanceData.cs @@ -17,8 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Per-instance data that needs preserving across frames (seemingly most others do not need to be preserved aside from debug needs. Does that means they could be moved to ImGuiTableTempData?)
- /// sizeof() ~ 24 bytes
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableInstanceData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSettings.cs index 140412e28..383cd2a22 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSettings.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSettings.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// This is designed to be stored in a single ImChunkStream (1 header followed by N ImGuiTableColumnSettings, etc.)
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableSettings diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSortSpecs.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSortSpecs.cs index b21410265..1543c6da8 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSortSpecs.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSortSpecs.cs @@ -17,10 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Sorting specifications for a table (often handling sort specs for a single column, occasionally more)
- /// Obtained by calling TableGetSortSpecs().
- /// When 'SpecsDirty == true' you can sort your data. It will be true with sorting specs have changed since last call, or the first time.
- /// Make sure to set 'SpecsDirty = false' after sorting, else you may wastefully sort your data every frame!
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableSortSpecs diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableTempData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableTempData.cs index 6a1e2992c..06bb694c9 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableTempData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableTempData.cs @@ -17,11 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Transient data that are only needed between BeginTable() and EndTable(), those buffers are shared (1 per level of stacked table).
- /// - Accessing those requires chasing an extra pointer so for very frequently used data we leave them in the main table structure.
- /// - We also leave out of this structure data that tend to be particularly useful for debuggingmetrics.
- /// FIXME-TABLE: more transient data could be stored in a stacked ImGuiTableTempData: e.g. SortSpecs.
- /// sizeof() ~ 136 bytes.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableTempData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextBuffer.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextBuffer.cs index f33c8df35..ff3ec7e37 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextBuffer.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextBuffer.cs @@ -17,8 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Helper: Growable text buffer for loggingaccumulating text
- /// (this could be called 'ImGuiTextBuilder' 'ImGuiStringBuilder')
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTextBuffer diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextFilter.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextFilter.cs index b9d4a76c9..305833d44 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextFilter.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextFilter.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]"
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTextFilter diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextRange.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextRange.cs index 9d6b1392d..6724cbc1b 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextRange.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextRange.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// [Internal]
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTextRange diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewport.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewport.cs index bc73a5ba9..bdc46a98c 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewport.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewport.cs @@ -17,13 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
- /// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
- /// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
- /// - About Main Area vs Work Area:
- /// - Main Area = entire viewport.
- /// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
- /// - Windows are generally trying to stay within the Work Area of their host viewport.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiViewport diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewportP.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewportP.cs index 03306d160..1db47d6a6 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewportP.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewportP.cs @@ -17,8 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// ImGuiViewport PrivateInternals fields (cardinal sin: we are using inheritance!)
- /// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiViewportP diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindow.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindow.cs index 4ea3b3d60..59f1af13c 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindow.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindow.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Storage for one window
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiWindow @@ -265,17 +265,17 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public byte AutoFitFramesX; + public sbyte AutoFitFramesX; /// /// To be documented. /// - public byte AutoFitFramesY; + public sbyte AutoFitFramesY; /// /// To be documented. /// - public byte AutoFitChildAxises; + public sbyte AutoFitChildAxises; /// /// To be documented. @@ -290,43 +290,24 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public byte HiddenFramesCanSkipItems; + public sbyte HiddenFramesCanSkipItems; /// /// To be documented. /// - public byte HiddenFramesCannotSkipItems; + public sbyte HiddenFramesCannotSkipItems; /// /// To be documented. /// - public byte HiddenFramesForRenderOnly; + public sbyte HiddenFramesForRenderOnly; /// /// To be documented. /// - public byte DisableInputsFrames; - - /// - /// To be documented. - /// - public ImGuiCond SetWindowPosAllowFlags; - - /// - /// To be documented. - /// - public ImGuiCond SetWindowSizeAllowFlags; - - /// - /// To be documented. - /// - public ImGuiCond SetWindowCollapsedAllowFlags; - - /// - /// To be documented. - /// - public ImGuiCond SetWindowDockAllowFlags; + public sbyte DisableInputsFrames; + public ImGuiCond RawBits0; /// /// To be documented. /// @@ -340,7 +321,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ImVector IDStack; + public ImVector IDStack; /// /// To be documented. @@ -514,26 +495,7 @@ namespace Dalamud.Bindings.ImGui /// public byte MemoryCompacted; - /// - /// To be documented. - /// - public byte DockIsActive; - - /// - /// To be documented. - /// - public byte DockNodeIsVisible; - - /// - /// To be documented. - /// - public byte DockTabIsVisible; - - /// - /// To be documented. - /// - public byte DockTabWantClose; - + public bool RawBits1; /// /// To be documented. /// @@ -578,7 +540,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public unsafe ImGuiWindow(byte* name = default, uint id = default, ImGuiWindowFlags flags = default, ImGuiWindowFlags flagsPreviousFrame = default, ImGuiWindowClass windowClass = default, ImGuiViewportP* viewport = default, uint viewportId = default, Vector2 viewportPos = default, int viewportAllowPlatformMonitorExtend = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeFull = default, Vector2 contentSize = default, Vector2 contentSizeIdeal = default, Vector2 contentSizeExplicit = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, int nameBufLen = default, uint moveId = default, uint tabId = default, uint childId = default, Vector2 scroll = default, Vector2 scrollMax = default, Vector2 scrollTarget = default, Vector2 scrollTargetCenterRatio = default, Vector2 scrollTargetEdgeSnapDist = default, Vector2 scrollbarSizes = default, bool scrollbarX = default, bool scrollbarY = default, bool viewportOwned = default, bool active = default, bool wasActive = default, bool writeAccessed = default, bool collapsed = default, bool wantCollapseToggle = default, bool skipItems = default, bool appearing = default, bool hidden = default, bool isFallbackWindow = default, bool isExplicitChild = default, bool hasCloseButton = default, byte resizeBorderHeld = default, short beginCount = default, short beginOrderWithinParent = default, short beginOrderWithinContext = default, short focusOrder = default, uint popupId = default, byte autoFitFramesX = default, byte autoFitFramesY = default, byte autoFitChildAxises = default, bool autoFitOnlyGrows = default, ImGuiDir autoPosLastDirection = default, byte hiddenFramesCanSkipItems = default, byte hiddenFramesCannotSkipItems = default, byte hiddenFramesForRenderOnly = default, byte disableInputsFrames = default, ImGuiCond setWindowPosAllowFlags = default, ImGuiCond setWindowSizeAllowFlags = default, ImGuiCond setWindowCollapsedAllowFlags = default, ImGuiCond setWindowDockAllowFlags = default, Vector2 setWindowPosVal = default, Vector2 setWindowPosPivot = default, ImVector idStack = default, ImGuiWindowTempData dc = default, ImRect outerRectClipped = default, ImRect innerRect = default, ImRect innerClipRect = default, ImRect workRect = default, ImRect parentWorkRect = default, ImRect clipRect = default, ImRect contentRegionRect = default, ImVec2Ih hitTestHoleSize = default, ImVec2Ih hitTestHoleOffset = default, int lastFrameActive = default, int lastFrameJustFocused = default, float lastTimeActive = default, float itemWidthDefault = default, ImGuiStorage stateStorage = default, ImVector columnsStorage = default, float fontWindowScale = default, float fontDpiScale = default, int settingsOffset = default, ImDrawListPtr drawList = default, ImDrawList drawListInst = default, ImGuiWindow* parentWindow = default, ImGuiWindow* parentWindowInBeginStack = default, ImGuiWindow* rootWindow = default, ImGuiWindow* rootWindowPopupTree = default, ImGuiWindow* rootWindowDockTree = default, ImGuiWindow* rootWindowForTitleBarHighlight = default, ImGuiWindow* rootWindowForNav = default, ImGuiWindow* navLastChildNavWindow = default, uint* navLastIds = default, ImRect* navRectRel = default, int memoryDrawListIdxCapacity = default, int memoryDrawListVtxCapacity = default, bool memoryCompacted = default, bool dockIsActive = default, bool dockNodeIsVisible = default, bool dockTabIsVisible = default, bool dockTabWantClose = default, short dockOrder = default, ImGuiWindowDockStyle dockStyle = default, ImGuiDockNode* dockNode = default, ImGuiDockNode* dockNodeAsHost = default, uint dockId = default, ImGuiItemStatusFlags dockTabItemStatusFlags = default, ImRect dockTabItemRect = default, bool inheritNoInputs = default) + public unsafe ImGuiWindow(byte* name = default, uint id = default, ImGuiWindowFlags flags = default, ImGuiWindowFlags flagsPreviousFrame = default, ImGuiWindowClass windowClass = default, ImGuiViewportP* viewport = default, uint viewportId = default, Vector2 viewportPos = default, int viewportAllowPlatformMonitorExtend = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeFull = default, Vector2 contentSize = default, Vector2 contentSizeIdeal = default, Vector2 contentSizeExplicit = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, int nameBufLen = default, uint moveId = default, uint tabId = default, uint childId = default, Vector2 scroll = default, Vector2 scrollMax = default, Vector2 scrollTarget = default, Vector2 scrollTargetCenterRatio = default, Vector2 scrollTargetEdgeSnapDist = default, Vector2 scrollbarSizes = default, bool scrollbarX = default, bool scrollbarY = default, bool viewportOwned = default, bool active = default, bool wasActive = default, bool writeAccessed = default, bool collapsed = default, bool wantCollapseToggle = default, bool skipItems = default, bool appearing = default, bool hidden = default, bool isFallbackWindow = default, bool isExplicitChild = default, bool hasCloseButton = default, byte resizeBorderHeld = default, short beginCount = default, short beginOrderWithinParent = default, short beginOrderWithinContext = default, short focusOrder = default, uint popupId = default, sbyte autoFitFramesX = default, sbyte autoFitFramesY = default, sbyte autoFitChildAxises = default, bool autoFitOnlyGrows = default, ImGuiDir autoPosLastDirection = default, sbyte hiddenFramesCanSkipItems = default, sbyte hiddenFramesCannotSkipItems = default, sbyte hiddenFramesForRenderOnly = default, sbyte disableInputsFrames = default, ImGuiCond setWindowPosAllowFlags = default, ImGuiCond setWindowSizeAllowFlags = default, ImGuiCond setWindowCollapsedAllowFlags = default, ImGuiCond setWindowDockAllowFlags = default, Vector2 setWindowPosVal = default, Vector2 setWindowPosPivot = default, ImVector idStack = default, ImGuiWindowTempData dc = default, ImRect outerRectClipped = default, ImRect innerRect = default, ImRect innerClipRect = default, ImRect workRect = default, ImRect parentWorkRect = default, ImRect clipRect = default, ImRect contentRegionRect = default, ImVec2Ih hitTestHoleSize = default, ImVec2Ih hitTestHoleOffset = default, int lastFrameActive = default, int lastFrameJustFocused = default, float lastTimeActive = default, float itemWidthDefault = default, ImGuiStorage stateStorage = default, ImVector columnsStorage = default, float fontWindowScale = default, float fontDpiScale = default, int settingsOffset = default, ImDrawListPtr drawList = default, ImDrawList drawListInst = default, ImGuiWindow* parentWindow = default, ImGuiWindow* parentWindowInBeginStack = default, ImGuiWindow* rootWindow = default, ImGuiWindow* rootWindowPopupTree = default, ImGuiWindow* rootWindowDockTree = default, ImGuiWindow* rootWindowForTitleBarHighlight = default, ImGuiWindow* rootWindowForNav = default, ImGuiWindow* navLastChildNavWindow = default, uint* navLastIds = default, ImRect* navRectRel = default, int memoryDrawListIdxCapacity = default, int memoryDrawListVtxCapacity = default, bool memoryCompacted = default, bool dockIsActive = default, bool dockNodeIsVisible = default, bool dockTabIsVisible = default, bool dockTabWantClose = default, short dockOrder = default, ImGuiWindowDockStyle dockStyle = default, ImGuiDockNode* dockNode = default, ImGuiDockNode* dockNodeAsHost = default, uint dockId = default, ImGuiItemStatusFlags dockTabItemStatusFlags = default, ImRect dockTabItemRect = default, bool inheritNoInputs = default) { Name = name; ID = id; @@ -686,10 +648,10 @@ namespace Dalamud.Bindings.ImGui MemoryDrawListIdxCapacity = memoryDrawListIdxCapacity; MemoryDrawListVtxCapacity = memoryDrawListVtxCapacity; MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; - DockIsActive = dockIsActive ? (byte)1 : (byte)0; - DockNodeIsVisible = dockNodeIsVisible ? (byte)1 : (byte)0; - DockTabIsVisible = dockTabIsVisible ? (byte)1 : (byte)0; - DockTabWantClose = dockTabWantClose ? (byte)1 : (byte)0; + DockIsActive = dockIsActive; + DockNodeIsVisible = dockNodeIsVisible; + DockTabIsVisible = dockTabIsVisible; + DockTabWantClose = dockTabWantClose; DockOrder = dockOrder; DockStyle = dockStyle; DockNode = dockNode; @@ -703,7 +665,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public unsafe ImGuiWindow(byte* name = default, uint id = default, ImGuiWindowFlags flags = default, ImGuiWindowFlags flagsPreviousFrame = default, ImGuiWindowClass windowClass = default, ImGuiViewportP* viewport = default, uint viewportId = default, Vector2 viewportPos = default, int viewportAllowPlatformMonitorExtend = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeFull = default, Vector2 contentSize = default, Vector2 contentSizeIdeal = default, Vector2 contentSizeExplicit = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, int nameBufLen = default, uint moveId = default, uint tabId = default, uint childId = default, Vector2 scroll = default, Vector2 scrollMax = default, Vector2 scrollTarget = default, Vector2 scrollTargetCenterRatio = default, Vector2 scrollTargetEdgeSnapDist = default, Vector2 scrollbarSizes = default, bool scrollbarX = default, bool scrollbarY = default, bool viewportOwned = default, bool active = default, bool wasActive = default, bool writeAccessed = default, bool collapsed = default, bool wantCollapseToggle = default, bool skipItems = default, bool appearing = default, bool hidden = default, bool isFallbackWindow = default, bool isExplicitChild = default, bool hasCloseButton = default, byte resizeBorderHeld = default, short beginCount = default, short beginOrderWithinParent = default, short beginOrderWithinContext = default, short focusOrder = default, uint popupId = default, byte autoFitFramesX = default, byte autoFitFramesY = default, byte autoFitChildAxises = default, bool autoFitOnlyGrows = default, ImGuiDir autoPosLastDirection = default, byte hiddenFramesCanSkipItems = default, byte hiddenFramesCannotSkipItems = default, byte hiddenFramesForRenderOnly = default, byte disableInputsFrames = default, ImGuiCond setWindowPosAllowFlags = default, ImGuiCond setWindowSizeAllowFlags = default, ImGuiCond setWindowCollapsedAllowFlags = default, ImGuiCond setWindowDockAllowFlags = default, Vector2 setWindowPosVal = default, Vector2 setWindowPosPivot = default, ImVector idStack = default, ImGuiWindowTempData dc = default, ImRect outerRectClipped = default, ImRect innerRect = default, ImRect innerClipRect = default, ImRect workRect = default, ImRect parentWorkRect = default, ImRect clipRect = default, ImRect contentRegionRect = default, ImVec2Ih hitTestHoleSize = default, ImVec2Ih hitTestHoleOffset = default, int lastFrameActive = default, int lastFrameJustFocused = default, float lastTimeActive = default, float itemWidthDefault = default, ImGuiStorage stateStorage = default, ImVector columnsStorage = default, float fontWindowScale = default, float fontDpiScale = default, int settingsOffset = default, ImDrawListPtr drawList = default, ImDrawList drawListInst = default, ImGuiWindow* parentWindow = default, ImGuiWindow* parentWindowInBeginStack = default, ImGuiWindow* rootWindow = default, ImGuiWindow* rootWindowPopupTree = default, ImGuiWindow* rootWindowDockTree = default, ImGuiWindow* rootWindowForTitleBarHighlight = default, ImGuiWindow* rootWindowForNav = default, ImGuiWindow* navLastChildNavWindow = default, Span navLastIds = default, Span navRectRel = default, int memoryDrawListIdxCapacity = default, int memoryDrawListVtxCapacity = default, bool memoryCompacted = default, bool dockIsActive = default, bool dockNodeIsVisible = default, bool dockTabIsVisible = default, bool dockTabWantClose = default, short dockOrder = default, ImGuiWindowDockStyle dockStyle = default, ImGuiDockNode* dockNode = default, ImGuiDockNode* dockNodeAsHost = default, uint dockId = default, ImGuiItemStatusFlags dockTabItemStatusFlags = default, ImRect dockTabItemRect = default, bool inheritNoInputs = default) + public unsafe ImGuiWindow(byte* name = default, uint id = default, ImGuiWindowFlags flags = default, ImGuiWindowFlags flagsPreviousFrame = default, ImGuiWindowClass windowClass = default, ImGuiViewportP* viewport = default, uint viewportId = default, Vector2 viewportPos = default, int viewportAllowPlatformMonitorExtend = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeFull = default, Vector2 contentSize = default, Vector2 contentSizeIdeal = default, Vector2 contentSizeExplicit = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, int nameBufLen = default, uint moveId = default, uint tabId = default, uint childId = default, Vector2 scroll = default, Vector2 scrollMax = default, Vector2 scrollTarget = default, Vector2 scrollTargetCenterRatio = default, Vector2 scrollTargetEdgeSnapDist = default, Vector2 scrollbarSizes = default, bool scrollbarX = default, bool scrollbarY = default, bool viewportOwned = default, bool active = default, bool wasActive = default, bool writeAccessed = default, bool collapsed = default, bool wantCollapseToggle = default, bool skipItems = default, bool appearing = default, bool hidden = default, bool isFallbackWindow = default, bool isExplicitChild = default, bool hasCloseButton = default, byte resizeBorderHeld = default, short beginCount = default, short beginOrderWithinParent = default, short beginOrderWithinContext = default, short focusOrder = default, uint popupId = default, sbyte autoFitFramesX = default, sbyte autoFitFramesY = default, sbyte autoFitChildAxises = default, bool autoFitOnlyGrows = default, ImGuiDir autoPosLastDirection = default, sbyte hiddenFramesCanSkipItems = default, sbyte hiddenFramesCannotSkipItems = default, sbyte hiddenFramesForRenderOnly = default, sbyte disableInputsFrames = default, ImGuiCond setWindowPosAllowFlags = default, ImGuiCond setWindowSizeAllowFlags = default, ImGuiCond setWindowCollapsedAllowFlags = default, ImGuiCond setWindowDockAllowFlags = default, Vector2 setWindowPosVal = default, Vector2 setWindowPosPivot = default, ImVector idStack = default, ImGuiWindowTempData dc = default, ImRect outerRectClipped = default, ImRect innerRect = default, ImRect innerClipRect = default, ImRect workRect = default, ImRect parentWorkRect = default, ImRect clipRect = default, ImRect contentRegionRect = default, ImVec2Ih hitTestHoleSize = default, ImVec2Ih hitTestHoleOffset = default, int lastFrameActive = default, int lastFrameJustFocused = default, float lastTimeActive = default, float itemWidthDefault = default, ImGuiStorage stateStorage = default, ImVector columnsStorage = default, float fontWindowScale = default, float fontDpiScale = default, int settingsOffset = default, ImDrawListPtr drawList = default, ImDrawList drawListInst = default, ImGuiWindow* parentWindow = default, ImGuiWindow* parentWindowInBeginStack = default, ImGuiWindow* rootWindow = default, ImGuiWindow* rootWindowPopupTree = default, ImGuiWindow* rootWindowDockTree = default, ImGuiWindow* rootWindowForTitleBarHighlight = default, ImGuiWindow* rootWindowForNav = default, ImGuiWindow* navLastChildNavWindow = default, Span navLastIds = default, Span navRectRel = default, int memoryDrawListIdxCapacity = default, int memoryDrawListVtxCapacity = default, bool memoryCompacted = default, bool dockIsActive = default, bool dockNodeIsVisible = default, bool dockTabIsVisible = default, bool dockTabWantClose = default, short dockOrder = default, ImGuiWindowDockStyle dockStyle = default, ImGuiDockNode* dockNode = default, ImGuiDockNode* dockNodeAsHost = default, uint dockId = default, ImGuiItemStatusFlags dockTabItemStatusFlags = default, ImRect dockTabItemRect = default, bool inheritNoInputs = default) { Name = name; ID = id; @@ -811,10 +773,10 @@ namespace Dalamud.Bindings.ImGui MemoryDrawListIdxCapacity = memoryDrawListIdxCapacity; MemoryDrawListVtxCapacity = memoryDrawListVtxCapacity; MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; - DockIsActive = dockIsActive ? (byte)1 : (byte)0; - DockNodeIsVisible = dockNodeIsVisible ? (byte)1 : (byte)0; - DockTabIsVisible = dockTabIsVisible ? (byte)1 : (byte)0; - DockTabWantClose = dockTabWantClose ? (byte)1 : (byte)0; + DockIsActive = dockIsActive; + DockNodeIsVisible = dockNodeIsVisible; + DockTabIsVisible = dockTabIsVisible; + DockTabWantClose = dockTabWantClose; DockOrder = dockOrder; DockStyle = dockStyle; DockNode = dockNode; @@ -826,6 +788,22 @@ namespace Dalamud.Bindings.ImGui } + public ImGuiCond SetWindowPosAllowFlags { get => Bitfield.Get(RawBits0, 0, 8); set => Bitfield.Set(ref RawBits0, value, 0, 8); } + + public ImGuiCond SetWindowSizeAllowFlags { get => Bitfield.Get(RawBits0, 8, 8); set => Bitfield.Set(ref RawBits0, value, 8, 8); } + + public ImGuiCond SetWindowCollapsedAllowFlags { get => Bitfield.Get(RawBits0, 16, 8); set => Bitfield.Set(ref RawBits0, value, 16, 8); } + + public ImGuiCond SetWindowDockAllowFlags { get => Bitfield.Get(RawBits0, 24, 8); set => Bitfield.Set(ref RawBits0, value, 24, 8); } + + public bool DockIsActive { get => Bitfield.Get(RawBits1, 0, 1); set => Bitfield.Set(ref RawBits1, value, 0, 1); } + + public bool DockNodeIsVisible { get => Bitfield.Get(RawBits1, 1, 1); set => Bitfield.Set(ref RawBits1, value, 1, 1); } + + public bool DockTabIsVisible { get => Bitfield.Get(RawBits1, 2, 1); set => Bitfield.Set(ref RawBits1, value, 2, 1); } + + public bool DockTabWantClose { get => Bitfield.Get(RawBits1, 3, 1); set => Bitfield.Set(ref RawBits1, value, 3, 1); } + /// /// To be documented. /// @@ -1078,15 +1056,15 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref byte AutoFitFramesX => ref Unsafe.AsRef(&Handle->AutoFitFramesX); + public ref sbyte AutoFitFramesX => ref Unsafe.AsRef(&Handle->AutoFitFramesX); /// /// To be documented. /// - public ref byte AutoFitFramesY => ref Unsafe.AsRef(&Handle->AutoFitFramesY); + public ref sbyte AutoFitFramesY => ref Unsafe.AsRef(&Handle->AutoFitFramesY); /// /// To be documented. /// - public ref byte AutoFitChildAxises => ref Unsafe.AsRef(&Handle->AutoFitChildAxises); + public ref sbyte AutoFitChildAxises => ref Unsafe.AsRef(&Handle->AutoFitChildAxises); /// /// To be documented. /// @@ -1098,35 +1076,35 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref byte HiddenFramesCanSkipItems => ref Unsafe.AsRef(&Handle->HiddenFramesCanSkipItems); + public ref sbyte HiddenFramesCanSkipItems => ref Unsafe.AsRef(&Handle->HiddenFramesCanSkipItems); /// /// To be documented. /// - public ref byte HiddenFramesCannotSkipItems => ref Unsafe.AsRef(&Handle->HiddenFramesCannotSkipItems); + public ref sbyte HiddenFramesCannotSkipItems => ref Unsafe.AsRef(&Handle->HiddenFramesCannotSkipItems); /// /// To be documented. /// - public ref byte HiddenFramesForRenderOnly => ref Unsafe.AsRef(&Handle->HiddenFramesForRenderOnly); + public ref sbyte HiddenFramesForRenderOnly => ref Unsafe.AsRef(&Handle->HiddenFramesForRenderOnly); /// /// To be documented. /// - public ref byte DisableInputsFrames => ref Unsafe.AsRef(&Handle->DisableInputsFrames); + public ref sbyte DisableInputsFrames => ref Unsafe.AsRef(&Handle->DisableInputsFrames); /// /// To be documented. /// - public ref ImGuiCond SetWindowPosAllowFlags => ref Unsafe.AsRef(&Handle->SetWindowPosAllowFlags); + public ImGuiCond SetWindowPosAllowFlags { get => Handle->SetWindowPosAllowFlags; set => Handle->SetWindowPosAllowFlags = value; } /// /// To be documented. /// - public ref ImGuiCond SetWindowSizeAllowFlags => ref Unsafe.AsRef(&Handle->SetWindowSizeAllowFlags); + public ImGuiCond SetWindowSizeAllowFlags { get => Handle->SetWindowSizeAllowFlags; set => Handle->SetWindowSizeAllowFlags = value; } /// /// To be documented. /// - public ref ImGuiCond SetWindowCollapsedAllowFlags => ref Unsafe.AsRef(&Handle->SetWindowCollapsedAllowFlags); + public ImGuiCond SetWindowCollapsedAllowFlags { get => Handle->SetWindowCollapsedAllowFlags; set => Handle->SetWindowCollapsedAllowFlags = value; } /// /// To be documented. /// - public ref ImGuiCond SetWindowDockAllowFlags => ref Unsafe.AsRef(&Handle->SetWindowDockAllowFlags); + public ImGuiCond SetWindowDockAllowFlags { get => Handle->SetWindowDockAllowFlags; set => Handle->SetWindowDockAllowFlags = value; } /// /// To be documented. /// @@ -1138,7 +1116,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref ImVector IDStack => ref Unsafe.AsRef>(&Handle->IDStack); + public ref ImVector IDStack => ref Unsafe.AsRef>(&Handle->IDStack); /// /// To be documented. /// @@ -1292,19 +1270,19 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public ref bool DockIsActive => ref Unsafe.AsRef(&Handle->DockIsActive); + public bool DockIsActive { get => Handle->DockIsActive; set => Handle->DockIsActive = value; } /// /// To be documented. /// - public ref bool DockNodeIsVisible => ref Unsafe.AsRef(&Handle->DockNodeIsVisible); + public bool DockNodeIsVisible { get => Handle->DockNodeIsVisible; set => Handle->DockNodeIsVisible = value; } /// /// To be documented. /// - public ref bool DockTabIsVisible => ref Unsafe.AsRef(&Handle->DockTabIsVisible); + public bool DockTabIsVisible { get => Handle->DockTabIsVisible; set => Handle->DockTabIsVisible = value; } /// /// To be documented. /// - public ref bool DockTabWantClose => ref Unsafe.AsRef(&Handle->DockTabWantClose); + public bool DockTabWantClose { get => Handle->DockTabWantClose; set => Handle->DockTabWantClose = value; } /// /// To be documented. /// diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowClass.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowClass.cs index 5d59abe50..8e2df005f 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowClass.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowClass.cs @@ -17,13 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// [ALPHA] Rarely used very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
- /// Important: the content of this class is still highly WIP and likely to change and be refactored
- /// before we stabilize Docking features. Please be mindful if using this.
- /// Provide hints:
- /// - To the platform backend via altered viewport flags (enabledisable OS decoration, OS task bar icons, etc.)
- /// - To the platform backend for OS level parentchild relationships of viewport.
- /// - To the docking system for various options and filtering.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiWindowClass diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowDockStyle.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowDockStyle.cs index 02231bf6e..8125cf9bd 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowDockStyle.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowDockStyle.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// We don't store style.Alpha: dock_node->LastBgColor embeds it and otherwise it would only affect the docking tab, which intuitively I would say we don't want to.
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiWindowDockStyle diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowSettings.cs index 62a5b9c07..6345c2151 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowSettings.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowSettings.cs @@ -17,9 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Windows data saved in imgui.ini file
- /// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
- /// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiWindowSettings diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowStackData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowStackData.cs index c8e06e67e..307059db4 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowStackData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowStackData.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Data saved for each window pushed into the stack
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiWindowStackData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowTempData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowTempData.cs index 4942136fe..118d62337 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowTempData.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowTempData.cs @@ -17,9 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Transient per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the DC variable name in ImGuiWindow.
- /// (That's theory, in practice the delimitation between ImGuiWindow and ImGuiWindowTempData is quite tenuous and could be reconsidered..)
- /// (This doesn't need a constructor because we zero-clear it as part of ImGuiWindow and all frame-temporary data are setup on Begin)
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiWindowTempData diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImRect.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImRect.cs index e808e70d4..0130247c9 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImRect.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImRect.cs @@ -17,8 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Helper: ImRect (2D axis aligned bounding-box)
- /// NB: we can't rely on ImVec2 math operators being available here!
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImRect diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec2Ih.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec2Ih.cs index 04b4399c7..2b4457e0b 100644 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec2Ih.cs +++ b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec2Ih.cs @@ -17,7 +17,7 @@ using System.Numerics; namespace Dalamud.Bindings.ImGui { /// - /// Helper: ImVec2ih (2D vector, half-size integer, for long-term packed storage)
+ /// To be documented. ///
[StructLayout(LayoutKind.Sequential)] public partial struct ImVec2Ih diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.000.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.000.cs index be6cbf60e..46d424749 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.000.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.000.cs @@ -21,33 +21,15 @@ namespace Dalamud.Bindings.ImGui /// To be documented. ///
[MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImHashDataNative(void* data, ulong dataSize, uint seed) + internal static uint ImHashDataNative(void* data, nuint dataSize, uint seed) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[692])(data, dataSize, seed); + return ((delegate* unmanaged[Cdecl])funcTable[688])(data, dataSize, seed); #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[692])((nint)data, dataSize, seed); + return (uint)((delegate* unmanaged[Cdecl])funcTable[688])((nint)data, dataSize, seed); #endif } - /// - /// To be documented. - /// - public static uint ImHashData(void* data, ulong dataSize, uint seed) - { - uint ret = ImHashDataNative(data, dataSize, seed); - return ret; - } - - /// - /// To be documented. - /// - public static uint ImHashData(void* data, ulong dataSize) - { - uint ret = ImHashDataNative(data, dataSize, (uint)(0)); - return ret; - } - /// /// To be documented. /// @@ -70,267 +52,15 @@ namespace Dalamud.Bindings.ImGui /// To be documented. ///
[MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImHashStrNative(byte* data, ulong dataSize, uint seed) + internal static uint ImHashStrNative(byte* data, nuint dataSize, uint seed) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[693])(data, dataSize, seed); + return ((delegate* unmanaged[Cdecl])funcTable[689])(data, dataSize, seed); #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[693])((nint)data, dataSize, seed); + return (uint)((delegate* unmanaged[Cdecl])funcTable[689])((nint)data, dataSize, seed); #endif } - /// - /// To be documented. - /// - public static uint ImHashStr(byte* data, ulong dataSize, uint seed) - { - uint ret = ImHashStrNative(data, dataSize, seed); - return ret; - } - - /// - /// To be documented. - /// - public static uint ImHashStr(byte* data, ulong dataSize) - { - uint ret = ImHashStrNative(data, dataSize, (uint)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static uint ImHashStr(byte* data) - { - uint ret = ImHashStrNative(data, (ulong)(0), (uint)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static uint ImHashStr(byte* data, uint seed) - { - uint ret = ImHashStrNative(data, (ulong)(0), seed); - return ret; - } - - /// - /// To be documented. - /// - public static uint ImHashStr(ref byte data, ulong dataSize, uint seed) - { - fixed (byte* pdata = &data) - { - uint ret = ImHashStrNative((byte*)pdata, dataSize, seed); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint ImHashStr(ref byte data, ulong dataSize) - { - fixed (byte* pdata = &data) - { - uint ret = ImHashStrNative((byte*)pdata, dataSize, (uint)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint ImHashStr(ref byte data) - { - fixed (byte* pdata = &data) - { - uint ret = ImHashStrNative((byte*)pdata, (ulong)(0), (uint)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint ImHashStr(ref byte data, uint seed) - { - fixed (byte* pdata = &data) - { - uint ret = ImHashStrNative((byte*)pdata, (ulong)(0), seed); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint ImHashStr(ReadOnlySpan data, ulong dataSize, uint seed) - { - fixed (byte* pdata = data) - { - uint ret = ImHashStrNative((byte*)pdata, dataSize, seed); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint ImHashStr(ReadOnlySpan data, ulong dataSize) - { - fixed (byte* pdata = data) - { - uint ret = ImHashStrNative((byte*)pdata, dataSize, (uint)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint ImHashStr(ReadOnlySpan data) - { - fixed (byte* pdata = data) - { - uint ret = ImHashStrNative((byte*)pdata, (ulong)(0), (uint)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint ImHashStr(ReadOnlySpan data, uint seed) - { - fixed (byte* pdata = data) - { - uint ret = ImHashStrNative((byte*)pdata, (ulong)(0), seed); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint ImHashStr(string data, ulong dataSize, uint seed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (data != null) - { - pStrSize0 = Utils.GetByteCountUTF8(data); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(data, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = ImHashStrNative(pStr0, dataSize, seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static uint ImHashStr(string data, ulong dataSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (data != null) - { - pStrSize0 = Utils.GetByteCountUTF8(data); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(data, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = ImHashStrNative(pStr0, dataSize, (uint)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static uint ImHashStr(string data) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (data != null) - { - pStrSize0 = Utils.GetByteCountUTF8(data); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(data, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = ImHashStrNative(pStr0, (ulong)(0), (uint)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static uint ImHashStr(string data, uint seed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (data != null) - { - pStrSize0 = Utils.GetByteCountUTF8(data); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(data, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = ImHashStrNative(pStr0, (ulong)(0), seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - /// /// To be documented. /// @@ -349,6 +79,24 @@ namespace Dalamud.Bindings.ImGui return ret; } + /// + /// To be documented. + /// + public static uint ImHashStr(byte* data) + { + uint ret = ImHashStrNative(data, (nuint)(0), (uint)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static uint ImHashStr(byte* data, uint seed) + { + uint ret = ImHashStrNative(data, (nuint)(0), seed); + return ret; + } + /// /// To be documented. /// @@ -373,6 +121,30 @@ namespace Dalamud.Bindings.ImGui } } + /// + /// To be documented. + /// + public static uint ImHashStr(ref byte data) + { + fixed (byte* pdata = &data) + { + uint ret = ImHashStrNative((byte*)pdata, (nuint)(0), (uint)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint ImHashStr(ref byte data, uint seed) + { + fixed (byte* pdata = &data) + { + uint ret = ImHashStrNative((byte*)pdata, (nuint)(0), seed); + return ret; + } + } + /// /// To be documented. /// @@ -397,6 +169,30 @@ namespace Dalamud.Bindings.ImGui } } + /// + /// To be documented. + /// + public static uint ImHashStr(ReadOnlySpan data) + { + fixed (byte* pdata = data) + { + uint ret = ImHashStrNative((byte*)pdata, (nuint)(0), (uint)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint ImHashStr(ReadOnlySpan data, uint seed) + { + fixed (byte* pdata = data) + { + uint ret = ImHashStrNative((byte*)pdata, (nuint)(0), seed); + return ret; + } + } + /// /// To be documented. /// @@ -457,47 +253,83 @@ namespace Dalamud.Bindings.ImGui return ret; } + /// + /// To be documented. + /// + public static uint ImHashStr(string data) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (data != null) + { + pStrSize0 = Utils.GetByteCountUTF8(data); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(data, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = ImHashStrNative(pStr0, (nuint)(0), (uint)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static uint ImHashStr(string data, uint seed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (data != null) + { + pStrSize0 = Utils.GetByteCountUTF8(data); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(data, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = ImHashStrNative(pStr0, (nuint)(0), seed); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImQsortNative(void* baseValue, ulong count, ulong sizeOfElement, delegate*, int> compareFunc) + internal static void ImQsortNative(void* baseValue, nuint count, nuint sizeOfElement, delegate*, int> compareFunc) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl], int>, void>)funcTable[694])(baseValue, count, sizeOfElement, compareFunc); + ((delegate* unmanaged[Cdecl], int>, void>)funcTable[690])(baseValue, count, sizeOfElement, compareFunc); #else - ((delegate* unmanaged[Cdecl])funcTable[694])((nint)baseValue, count, sizeOfElement, (nint)compareFunc); + ((delegate* unmanaged[Cdecl])funcTable[690])((nint)baseValue, count, sizeOfElement, (nint)compareFunc); #endif } /// /// To be documented. /// - public static void ImQsort(void* baseValue, ulong count, ulong sizeOfElement, delegate*, int> compareFunc) - { - ImQsortNative(baseValue, count, sizeOfElement, compareFunc); - } - - /// - /// To be documented. - /// - public static void ImQsort(void* baseValue, nuint count, ulong sizeOfElement, delegate*, int> compareFunc) - { - ImQsortNative(baseValue, count, sizeOfElement, compareFunc); - } - - /// - /// To be documented. - /// - public static void ImQsort(void* baseValue, ulong count, nuint sizeOfElement, delegate*, int> compareFunc) - { - ImQsortNative(baseValue, count, sizeOfElement, compareFunc); - } - - /// - /// To be documented. - /// - public static void ImQsort(void* baseValue, nuint count, nuint sizeOfElement, delegate*, int> compareFunc) + public static void ImQsort(void* baseValue, nuint count, nuint sizeOfElement, delegate*, int> compareFunc) { ImQsortNative(baseValue, count, sizeOfElement, compareFunc); } @@ -509,9 +341,9 @@ namespace Dalamud.Bindings.ImGui internal static uint ImAlphaBlendColorsNative(uint colA, uint colB) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[695])(colA, colB); + return ((delegate* unmanaged[Cdecl])funcTable[691])(colA, colB); #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[695])(colA, colB); + return (uint)((delegate* unmanaged[Cdecl])funcTable[691])(colA, colB); #endif } @@ -531,9 +363,9 @@ namespace Dalamud.Bindings.ImGui internal static byte ImIsPowerOfTwoNative(int v) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[696])(v); + return ((delegate* unmanaged[Cdecl])funcTable[692])(v); #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[696])(v); + return (byte)((delegate* unmanaged[Cdecl])funcTable[692])(v); #endif } @@ -553,9 +385,9 @@ namespace Dalamud.Bindings.ImGui internal static byte ImIsPowerOfTwoNative(ulong v) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[697])(v); + return ((delegate* unmanaged[Cdecl])funcTable[693])(v); #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[697])(v); + return (byte)((delegate* unmanaged[Cdecl])funcTable[693])(v); #endif } @@ -575,9 +407,9 @@ namespace Dalamud.Bindings.ImGui internal static int ImUpperPowerOfTwoNative(int v) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[698])(v); + return ((delegate* unmanaged[Cdecl])funcTable[694])(v); #else - return (int)((delegate* unmanaged[Cdecl])funcTable[698])(v); + return (int)((delegate* unmanaged[Cdecl])funcTable[694])(v); #endif } @@ -597,9 +429,9 @@ namespace Dalamud.Bindings.ImGui internal static int ImStricmpNative(byte* str1, byte* str2) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[699])(str1, str2); + return ((delegate* unmanaged[Cdecl])funcTable[695])(str1, str2); #else - return (int)((delegate* unmanaged[Cdecl])funcTable[699])((nint)str1, (nint)str2); + return (int)((delegate* unmanaged[Cdecl])funcTable[695])((nint)str1, (nint)str2); #endif } @@ -967,375 +799,15 @@ namespace Dalamud.Bindings.ImGui /// To be documented. ///
[MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImStrnicmpNative(byte* str1, byte* str2, ulong count) + internal static int ImStrnicmpNative(byte* str1, byte* str2, nuint count) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[700])(str1, str2, count); + return ((delegate* unmanaged[Cdecl])funcTable[696])(str1, str2, count); #else - return (int)((delegate* unmanaged[Cdecl])funcTable[700])((nint)str1, (nint)str2, count); + return (int)((delegate* unmanaged[Cdecl])funcTable[696])((nint)str1, (nint)str2, count); #endif } - /// - /// To be documented. - /// - public static int ImStrnicmp(byte* str1, byte* str2, ulong count) - { - int ret = ImStrnicmpNative(str1, str2, count); - return ret; - } - - /// - /// To be documented. - /// - public static int ImStrnicmp(ref byte str1, byte* str2, ulong count) - { - fixed (byte* pstr1 = &str1) - { - int ret = ImStrnicmpNative((byte*)pstr1, str2, count); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImStrnicmp(ReadOnlySpan str1, byte* str2, ulong count) - { - fixed (byte* pstr1 = str1) - { - int ret = ImStrnicmpNative((byte*)pstr1, str2, count); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImStrnicmp(string str1, byte* str2, ulong count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str1 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str1); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImStrnicmpNative(pStr0, str2, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImStrnicmp(byte* str1, ref byte str2, ulong count) - { - fixed (byte* pstr2 = &str2) - { - int ret = ImStrnicmpNative(str1, (byte*)pstr2, count); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImStrnicmp(byte* str1, ReadOnlySpan str2, ulong count) - { - fixed (byte* pstr2 = str2) - { - int ret = ImStrnicmpNative(str1, (byte*)pstr2, count); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImStrnicmp(byte* str1, string str2, ulong count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str2 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImStrnicmpNative(str1, pStr0, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImStrnicmp(ref byte str1, ref byte str2, ulong count) - { - fixed (byte* pstr1 = &str1) - { - fixed (byte* pstr2 = &str2) - { - int ret = ImStrnicmpNative((byte*)pstr1, (byte*)pstr2, count); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImStrnicmp(ReadOnlySpan str1, ReadOnlySpan str2, ulong count) - { - fixed (byte* pstr1 = str1) - { - fixed (byte* pstr2 = str2) - { - int ret = ImStrnicmpNative((byte*)pstr1, (byte*)pstr2, count); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImStrnicmp(string str1, string str2, ulong count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str1 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str1); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (str2 != null) - { - pStrSize1 = Utils.GetByteCountUTF8(str2); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(str2, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImStrnicmpNative(pStr0, pStr1, count); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImStrnicmp(ref byte str1, ReadOnlySpan str2, ulong count) - { - fixed (byte* pstr1 = &str1) - { - fixed (byte* pstr2 = str2) - { - int ret = ImStrnicmpNative((byte*)pstr1, (byte*)pstr2, count); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImStrnicmp(ref byte str1, string str2, ulong count) - { - fixed (byte* pstr1 = &str1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str2 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImStrnicmpNative((byte*)pstr1, pStr0, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImStrnicmp(ReadOnlySpan str1, ref byte str2, ulong count) - { - fixed (byte* pstr1 = str1) - { - fixed (byte* pstr2 = &str2) - { - int ret = ImStrnicmpNative((byte*)pstr1, (byte*)pstr2, count); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImStrnicmp(ReadOnlySpan str1, string str2, ulong count) - { - fixed (byte* pstr1 = str1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str2 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImStrnicmpNative((byte*)pstr1, pStr0, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImStrnicmp(string str1, ref byte str2, ulong count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str1 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str1); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstr2 = &str2) - { - int ret = ImStrnicmpNative(pStr0, (byte*)pstr2, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImStrnicmp(string str1, ReadOnlySpan str2, ulong count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str1 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str1); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstr2 = str2) - { - int ret = ImStrnicmpNative(pStr0, (byte*)pstr2, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - /// /// To be documented. /// @@ -1700,292 +1172,15 @@ namespace Dalamud.Bindings.ImGui /// To be documented. ///
[MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImStrncpyNative(byte* dst, byte* src, ulong count) + internal static void ImStrncpyNative(byte* dst, byte* src, nuint count) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[701])(dst, src, count); + ((delegate* unmanaged[Cdecl])funcTable[697])(dst, src, count); #else - ((delegate* unmanaged[Cdecl])funcTable[701])((nint)dst, (nint)src, count); + ((delegate* unmanaged[Cdecl])funcTable[697])((nint)dst, (nint)src, count); #endif } - /// - /// To be documented. - /// - public static void ImStrncpy(byte* dst, byte* src, ulong count) - { - ImStrncpyNative(dst, src, count); - } - - /// - /// To be documented. - /// - public static void ImStrncpy(ref byte dst, byte* src, ulong count) - { - fixed (byte* pdst = &dst) - { - ImStrncpyNative((byte*)pdst, src, count); - } - } - - /// - /// To be documented. - /// - public static void ImStrncpy(ref string dst, byte* src, ulong count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImStrncpyNative(pStr0, src, count); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ImStrncpy(byte* dst, ref byte src, ulong count) - { - fixed (byte* psrc = &src) - { - ImStrncpyNative(dst, (byte*)psrc, count); - } - } - - /// - /// To be documented. - /// - public static void ImStrncpy(byte* dst, ReadOnlySpan src, ulong count) - { - fixed (byte* psrc = src) - { - ImStrncpyNative(dst, (byte*)psrc, count); - } - } - - /// - /// To be documented. - /// - public static void ImStrncpy(byte* dst, string src, ulong count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (src != null) - { - pStrSize0 = Utils.GetByteCountUTF8(src); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(src, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImStrncpyNative(dst, pStr0, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ImStrncpy(ref byte dst, ref byte src, ulong count) - { - fixed (byte* pdst = &dst) - { - fixed (byte* psrc = &src) - { - ImStrncpyNative((byte*)pdst, (byte*)psrc, count); - } - } - } - - /// - /// To be documented. - /// - public static void ImStrncpy(ref byte dst, ReadOnlySpan src, ulong count) - { - fixed (byte* pdst = &dst) - { - fixed (byte* psrc = src) - { - ImStrncpyNative((byte*)pdst, (byte*)psrc, count); - } - } - } - - /// - /// To be documented. - /// - public static void ImStrncpy(ref string dst, string src, ulong count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (src != null) - { - pStrSize1 = Utils.GetByteCountUTF8(src); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(src, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImStrncpyNative(pStr0, pStr1, count); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ImStrncpy(ref byte dst, string src, ulong count) - { - fixed (byte* pdst = &dst) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (src != null) - { - pStrSize0 = Utils.GetByteCountUTF8(src); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(src, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImStrncpyNative((byte*)pdst, pStr0, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ImStrncpy(ref string dst, ref byte src, ulong count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* psrc = &src) - { - ImStrncpyNative(pStr0, (byte*)psrc, count); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ImStrncpy(ref string dst, ReadOnlySpan src, ulong count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* psrc = src) - { - ImStrncpyNative(pStr0, (byte*)psrc, count); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// @@ -2270,9 +1465,9 @@ namespace Dalamud.Bindings.ImGui internal static byte* ImStrdupNative(byte* str) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[702])(str); + return ((delegate* unmanaged[Cdecl])funcTable[698])(str); #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[702])((nint)str); + return (byte*)((delegate* unmanaged[Cdecl])funcTable[698])((nint)str); #endif } @@ -2406,19 +1601,19 @@ namespace Dalamud.Bindings.ImGui /// To be documented. ///
[MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* ImStrdupcpyNative(byte* dst, ulong* pDstSize, byte* str) + internal static byte* ImStrdupcpyNative(byte* dst, nuint* pDstSize, byte* str) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[703])(dst, pDstSize, str); + return ((delegate* unmanaged[Cdecl])funcTable[699])(dst, pDstSize, str); #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[703])((nint)dst, (nint)pDstSize, (nint)str); + return (byte*)((delegate* unmanaged[Cdecl])funcTable[699])((nint)dst, (nint)pDstSize, (nint)str); #endif } /// /// To be documented. /// - public static byte* ImStrdupcpy(byte* dst, ulong* pDstSize, byte* str) + public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, byte* str) { byte* ret = ImStrdupcpyNative(dst, pDstSize, str); return ret; @@ -2427,7 +1622,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static string ImStrdupcpyS(byte* dst, ulong* pDstSize, byte* str) + public static string ImStrdupcpyS(byte* dst, nuint* pDstSize, byte* str) { string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, str)); return ret; @@ -2436,7 +1631,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static byte* ImStrdupcpy(ref byte dst, ulong* pDstSize, byte* str) + public static byte* ImStrdupcpy(ref byte dst, nuint* pDstSize, byte* str) { fixed (byte* pdst = &dst) { @@ -2448,7 +1643,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static string ImStrdupcpyS(ref byte dst, ulong* pDstSize, byte* str) + public static string ImStrdupcpyS(ref byte dst, nuint* pDstSize, byte* str) { fixed (byte* pdst = &dst) { @@ -2460,7 +1655,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static byte* ImStrdupcpy(ref string dst, ulong* pDstSize, byte* str) + public static byte* ImStrdupcpy(ref string dst, nuint* pDstSize, byte* str) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2491,7 +1686,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static string ImStrdupcpyS(ref string dst, ulong* pDstSize, byte* str) + public static string ImStrdupcpyS(ref string dst, nuint* pDstSize, byte* str) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2522,129 +1717,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static byte* ImStrdupcpy(byte* dst, ref nuint pDstSize, byte* str) - { - fixed (nuint* ppDstSize = &pDstSize) - { - byte* ret = ImStrdupcpyNative(dst, (ulong*)ppDstSize, str); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStrdupcpyS(byte* dst, ref nuint pDstSize, byte* str) - { - fixed (nuint* ppDstSize = &pDstSize) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, (ulong*)ppDstSize, str)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStrdupcpy(ref byte dst, ref nuint pDstSize, byte* str) - { - fixed (byte* pdst = &dst) - { - fixed (nuint* ppDstSize = &pDstSize) - { - byte* ret = ImStrdupcpyNative((byte*)pdst, (ulong*)ppDstSize, str); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStrdupcpyS(ref byte dst, ref nuint pDstSize, byte* str) - { - fixed (byte* pdst = &dst) - { - fixed (nuint* ppDstSize = &pDstSize) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative((byte*)pdst, (ulong*)ppDstSize, str)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStrdupcpy(ref string dst, ref nuint pDstSize, byte* str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* ppDstSize = &pDstSize) - { - byte* ret = ImStrdupcpyNative(pStr0, (ulong*)ppDstSize, str); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStrdupcpyS(ref string dst, ref nuint pDstSize, byte* str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* ppDstSize = &pDstSize) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(pStr0, (ulong*)ppDstSize, str)); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStrdupcpy(byte* dst, ulong* pDstSize, ref byte str) + public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, ref byte str) { fixed (byte* pstr = &str) { @@ -2656,7 +1729,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static string ImStrdupcpyS(byte* dst, ulong* pDstSize, ref byte str) + public static string ImStrdupcpyS(byte* dst, nuint* pDstSize, ref byte str) { fixed (byte* pstr = &str) { @@ -2668,7 +1741,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static byte* ImStrdupcpy(byte* dst, ulong* pDstSize, ReadOnlySpan str) + public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, ReadOnlySpan str) { fixed (byte* pstr = str) { @@ -2680,7 +1753,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static string ImStrdupcpyS(byte* dst, ulong* pDstSize, ReadOnlySpan str) + public static string ImStrdupcpyS(byte* dst, nuint* pDstSize, ReadOnlySpan str) { fixed (byte* pstr = str) { @@ -2692,7 +1765,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static byte* ImStrdupcpy(byte* dst, ulong* pDstSize, string str) + public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, string str) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2722,7 +1795,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static string ImStrdupcpyS(byte* dst, ulong* pDstSize, string str) + public static string ImStrdupcpyS(byte* dst, nuint* pDstSize, string str) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2752,7 +1825,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static byte* ImStrdupcpy(ref byte dst, ulong* pDstSize, ref byte str) + public static byte* ImStrdupcpy(ref byte dst, nuint* pDstSize, ref byte str) { fixed (byte* pdst = &dst) { @@ -2767,7 +1840,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static string ImStrdupcpyS(ref byte dst, ulong* pDstSize, ref byte str) + public static string ImStrdupcpyS(ref byte dst, nuint* pDstSize, ref byte str) { fixed (byte* pdst = &dst) { @@ -2782,7 +1855,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static byte* ImStrdupcpy(ref byte dst, ulong* pDstSize, ReadOnlySpan str) + public static byte* ImStrdupcpy(ref byte dst, nuint* pDstSize, ReadOnlySpan str) { fixed (byte* pdst = &dst) { @@ -2797,7 +1870,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static string ImStrdupcpyS(ref byte dst, ulong* pDstSize, ReadOnlySpan str) + public static string ImStrdupcpyS(ref byte dst, nuint* pDstSize, ReadOnlySpan str) { fixed (byte* pdst = &dst) { @@ -2812,7 +1885,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static byte* ImStrdupcpy(ref string dst, ulong* pDstSize, string str) + public static byte* ImStrdupcpy(ref string dst, nuint* pDstSize, string str) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2864,7 +1937,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static string ImStrdupcpyS(ref string dst, ulong* pDstSize, string str) + public static string ImStrdupcpyS(ref string dst, nuint* pDstSize, string str) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2916,7 +1989,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static byte* ImStrdupcpy(ref byte dst, ulong* pDstSize, string str) + public static byte* ImStrdupcpy(ref byte dst, nuint* pDstSize, string str) { fixed (byte* pdst = &dst) { @@ -2949,7 +2022,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static string ImStrdupcpyS(ref byte dst, ulong* pDstSize, string str) + public static string ImStrdupcpyS(ref byte dst, nuint* pDstSize, string str) { fixed (byte* pdst = &dst) { @@ -2982,7 +2055,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static byte* ImStrdupcpy(ref string dst, ulong* pDstSize, ref byte str) + public static byte* ImStrdupcpy(ref string dst, nuint* pDstSize, ref byte str) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3016,7 +2089,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static string ImStrdupcpyS(ref string dst, ulong* pDstSize, ref byte str) + public static string ImStrdupcpyS(ref string dst, nuint* pDstSize, ref byte str) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3050,7 +2123,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static byte* ImStrdupcpy(ref string dst, ulong* pDstSize, ReadOnlySpan str) + public static byte* ImStrdupcpy(ref string dst, nuint* pDstSize, ReadOnlySpan str) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3084,7 +2157,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static string ImStrdupcpyS(ref string dst, ulong* pDstSize, ReadOnlySpan str) + public static string ImStrdupcpyS(ref string dst, nuint* pDstSize, ReadOnlySpan str) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3115,534 +2188,6 @@ namespace Dalamud.Bindings.ImGui } } - /// - /// To be documented. - /// - public static byte* ImStrdupcpy(byte* dst, ref nuint pDstSize, ref byte str) - { - fixed (nuint* ppDstSize = &pDstSize) - { - fixed (byte* pstr = &str) - { - byte* ret = ImStrdupcpyNative(dst, (ulong*)ppDstSize, (byte*)pstr); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStrdupcpyS(byte* dst, ref nuint pDstSize, ref byte str) - { - fixed (nuint* ppDstSize = &pDstSize) - { - fixed (byte* pstr = &str) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, (ulong*)ppDstSize, (byte*)pstr)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStrdupcpy(byte* dst, ref nuint pDstSize, ReadOnlySpan str) - { - fixed (nuint* ppDstSize = &pDstSize) - { - fixed (byte* pstr = str) - { - byte* ret = ImStrdupcpyNative(dst, (ulong*)ppDstSize, (byte*)pstr); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStrdupcpyS(byte* dst, ref nuint pDstSize, ReadOnlySpan str) - { - fixed (nuint* ppDstSize = &pDstSize) - { - fixed (byte* pstr = str) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, (ulong*)ppDstSize, (byte*)pstr)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStrdupcpy(byte* dst, ref nuint pDstSize, string str) - { - fixed (nuint* ppDstSize = &pDstSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStrdupcpyNative(dst, (ulong*)ppDstSize, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStrdupcpyS(byte* dst, ref nuint pDstSize, string str) - { - fixed (nuint* ppDstSize = &pDstSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, (ulong*)ppDstSize, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStrdupcpy(ref byte dst, ref nuint pDstSize, ref byte str) - { - fixed (byte* pdst = &dst) - { - fixed (nuint* ppDstSize = &pDstSize) - { - fixed (byte* pstr = &str) - { - byte* ret = ImStrdupcpyNative((byte*)pdst, (ulong*)ppDstSize, (byte*)pstr); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStrdupcpyS(ref byte dst, ref nuint pDstSize, ref byte str) - { - fixed (byte* pdst = &dst) - { - fixed (nuint* ppDstSize = &pDstSize) - { - fixed (byte* pstr = &str) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative((byte*)pdst, (ulong*)ppDstSize, (byte*)pstr)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStrdupcpy(ref byte dst, ref nuint pDstSize, ReadOnlySpan str) - { - fixed (byte* pdst = &dst) - { - fixed (nuint* ppDstSize = &pDstSize) - { - fixed (byte* pstr = str) - { - byte* ret = ImStrdupcpyNative((byte*)pdst, (ulong*)ppDstSize, (byte*)pstr); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStrdupcpyS(ref byte dst, ref nuint pDstSize, ReadOnlySpan str) - { - fixed (byte* pdst = &dst) - { - fixed (nuint* ppDstSize = &pDstSize) - { - fixed (byte* pstr = str) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative((byte*)pdst, (ulong*)ppDstSize, (byte*)pstr)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStrdupcpy(ref string dst, ref nuint pDstSize, string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* ppDstSize = &pDstSize) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (str != null) - { - pStrSize1 = Utils.GetByteCountUTF8(str); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(str, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStrdupcpyNative(pStr0, (ulong*)ppDstSize, pStr1); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStrdupcpyS(ref string dst, ref nuint pDstSize, string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* ppDstSize = &pDstSize) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (str != null) - { - pStrSize1 = Utils.GetByteCountUTF8(str); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(str, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(pStr0, (ulong*)ppDstSize, pStr1)); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStrdupcpy(ref byte dst, ref nuint pDstSize, string str) - { - fixed (byte* pdst = &dst) - { - fixed (nuint* ppDstSize = &pDstSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStrdupcpyNative((byte*)pdst, (ulong*)ppDstSize, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStrdupcpyS(ref byte dst, ref nuint pDstSize, string str) - { - fixed (byte* pdst = &dst) - { - fixed (nuint* ppDstSize = &pDstSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative((byte*)pdst, (ulong*)ppDstSize, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStrdupcpy(ref string dst, ref nuint pDstSize, ref byte str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* ppDstSize = &pDstSize) - { - fixed (byte* pstr = &str) - { - byte* ret = ImStrdupcpyNative(pStr0, (ulong*)ppDstSize, (byte*)pstr); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStrdupcpyS(ref string dst, ref nuint pDstSize, ref byte str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* ppDstSize = &pDstSize) - { - fixed (byte* pstr = &str) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(pStr0, (ulong*)ppDstSize, (byte*)pstr)); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStrdupcpy(ref string dst, ref nuint pDstSize, ReadOnlySpan str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* ppDstSize = &pDstSize) - { - fixed (byte* pstr = str) - { - byte* ret = ImStrdupcpyNative(pStr0, (ulong*)ppDstSize, (byte*)pstr); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStrdupcpyS(ref string dst, ref nuint pDstSize, ReadOnlySpan str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* ppDstSize = &pDstSize) - { - fixed (byte* pstr = str) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(pStr0, (ulong*)ppDstSize, (byte*)pstr)); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - /// /// To be documented. /// @@ -3650,9 +2195,9 @@ namespace Dalamud.Bindings.ImGui internal static byte* ImStrchrRangeNative(byte* strBegin, byte* strEnd, byte c) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[704])(strBegin, strEnd, c); + return ((delegate* unmanaged[Cdecl])funcTable[700])(strBegin, strEnd, c); #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[704])((nint)strBegin, (nint)strEnd, c); + return (byte*)((delegate* unmanaged[Cdecl])funcTable[700])((nint)strBegin, (nint)strEnd, c); #endif } @@ -4383,9 +2928,9 @@ namespace Dalamud.Bindings.ImGui internal static int ImStrlenWNative(ushort* str) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[705])(str); + return ((delegate* unmanaged[Cdecl])funcTable[701])(str); #else - return (int)((delegate* unmanaged[Cdecl])funcTable[705])((nint)str); + return (int)((delegate* unmanaged[Cdecl])funcTable[701])((nint)str); #endif } @@ -4398,18 +2943,6 @@ namespace Dalamud.Bindings.ImGui return ret; } - /// - /// To be documented. - /// - public static int ImStrlenW(ref ushort str) - { - fixed (ushort* pstr = &str) - { - int ret = ImStrlenWNative((ushort*)pstr); - return ret; - } - } - /// /// To be documented. /// @@ -4417,9 +2950,9 @@ namespace Dalamud.Bindings.ImGui internal static byte* ImStreolRangeNative(byte* str, byte* strEnd) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[706])(str, strEnd); + return ((delegate* unmanaged[Cdecl])funcTable[702])(str, strEnd); #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[706])((nint)str, (nint)strEnd); + return (byte*)((delegate* unmanaged[Cdecl])funcTable[702])((nint)str, (nint)strEnd); #endif } @@ -5043,5 +3576,1453 @@ namespace Dalamud.Bindings.ImGui return ret; } } + + /// + /// To be documented. + /// + public static string ImStreolRangeS(string str, ref byte strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrEnd = &strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(pStr0, (byte*)pstrEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStreolRange(string str, ReadOnlySpan strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrEnd = strEnd) + { + byte* ret = ImStreolRangeNative(pStr0, (byte*)pstrEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStreolRangeS(string str, ReadOnlySpan strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrEnd = strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(pStr0, (byte*)pstrEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ushort* ImStrbolWNative(ushort* bufMidLine, ushort* bufBegin) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[703])(bufMidLine, bufBegin); + #else + return (ushort*)((delegate* unmanaged[Cdecl])funcTable[703])((nint)bufMidLine, (nint)bufBegin); + #endif + } + + /// + /// To be documented. + /// + public static ushort* ImStrbolW(ushort* bufMidLine, ushort* bufBegin) + { + ushort* ret = ImStrbolWNative(bufMidLine, bufBegin); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* ImStristrNative(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[704])(haystack, haystackEnd, needle, needleEnd); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[704])((nint)haystack, (nint)haystackEnd, (nint)needle, (nint)needleEnd); + #endif + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) + { + byte* ret = ImStristrNative(haystack, haystackEnd, needle, needleEnd); + return ret; + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, needleEnd)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, byte* haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, needleEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, byte* haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, needleEnd)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, needleEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, needleEnd)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, byte* haystackEnd, byte* needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative(pStr0, haystackEnd, needle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, byte* haystackEnd, byte* needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, needle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, string haystackEnd, byte* needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative(haystack, pStr0, needle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, string haystackEnd, byte* needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, needle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, string haystackEnd, byte* needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (haystackEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImStristrNative(pStr0, pStr1, needle, needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, string haystackEnd, byte* needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (haystackEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, needle, needleEnd)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, string haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, string haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = haystackEnd) + { + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = haystackEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* pneedle = needle) + { + byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* pneedle = needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, byte* haystackEnd, string needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative(haystack, haystackEnd, pStr0, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, byte* haystackEnd, string needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, pStr0, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* pneedle = needle) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* pneedle = needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, byte* haystackEnd, string needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImStristrNative(pStr0, haystackEnd, pStr1, needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, byte* haystackEnd, string needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, pStr1, needleEnd)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* pneedle = needle) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* pneedle = needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, byte* haystackEnd, string needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, pStr0, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, byte* haystackEnd, string needle, byte* needleEnd) + { + fixed (byte* phaystack = &haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, pStr0, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, string needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, pStr0, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, string needle, byte* needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, pStr0, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = needle) + { + byte* ret = ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.001.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.001.cs index c36a152a4..72b23b295 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.001.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.001.cs @@ -18,1493 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGuiP { - /// - /// To be documented. - /// - public static string ImStreolRangeS(string str, ref byte strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = &strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(pStr0, (byte*)pstrEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStreolRange(string str, ReadOnlySpan strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = strEnd) - { - byte* ret = ImStreolRangeNative(pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStreolRangeS(string str, ReadOnlySpan strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(pStr0, (byte*)pstrEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* ImStrbolWNative(ushort* bufMidLine, ushort* bufBegin) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[707])(bufMidLine, bufBegin); - #else - return (ushort*)((delegate* unmanaged[Cdecl])funcTable[707])((nint)bufMidLine, (nint)bufBegin); - #endif - } - - /// - /// To be documented. - /// - public static ushort* ImStrbolW(ushort* bufMidLine, ushort* bufBegin) - { - ushort* ret = ImStrbolWNative(bufMidLine, bufBegin); - return ret; - } - - /// - /// To be documented. - /// - public static ushort* ImStrbolW(ref ushort bufMidLine, ushort* bufBegin) - { - fixed (ushort* pbufMidLine = &bufMidLine) - { - ushort* ret = ImStrbolWNative((ushort*)pbufMidLine, bufBegin); - return ret; - } - } - - /// - /// To be documented. - /// - public static ushort* ImStrbolW(ushort* bufMidLine, ref ushort bufBegin) - { - fixed (ushort* pbufBegin = &bufBegin) - { - ushort* ret = ImStrbolWNative(bufMidLine, (ushort*)pbufBegin); - return ret; - } - } - - /// - /// To be documented. - /// - public static ushort* ImStrbolW(ref ushort bufMidLine, ref ushort bufBegin) - { - fixed (ushort* pbufMidLine = &bufMidLine) - { - fixed (ushort* pbufBegin = &bufBegin) - { - ushort* ret = ImStrbolWNative((ushort*)pbufMidLine, (ushort*)pbufBegin); - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* ImStristrNative(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[708])(haystack, haystackEnd, needle, needleEnd); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[708])((nint)haystack, (nint)haystackEnd, (nint)needle, (nint)needleEnd); - #endif - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - byte* ret = ImStristrNative(haystack, haystackEnd, needle, needleEnd); - return ret; - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, needleEnd)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, needleEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, needleEnd)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, needleEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, needleEnd)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(pStr0, haystackEnd, needle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, needle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, string haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, pStr0, needle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, string haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, needle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, string haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, pStr1, needle, needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, string haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, needle, needleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ref byte haystack, string haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, string haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd) - { - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd) - { - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, byte* haystackEnd, string needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, haystackEnd, pStr0, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, byte* haystackEnd, string needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, pStr0, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, byte* haystackEnd, string needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, haystackEnd, pStr1, needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, byte* haystackEnd, string needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, pStr1, needleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, pStr0, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, byte* haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, pStr0, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, pStr0, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, byte* haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, pStr0, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - /// /// To be documented. /// @@ -5032,5 +3545,1499 @@ namespace Dalamud.Bindings.ImGui } } } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, string haystackEnd, byte* needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (haystackEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (needleEnd != null) + { + pStrSize2 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte* ret = ImStristrNative(pStr0, pStr1, needle, pStr2); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, string haystackEnd, byte* needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (haystackEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (needleEnd != null) + { + pStrSize2 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, needle, pStr2)); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, byte* needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needleEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ref byte haystackEnd, byte* needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needleEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needleEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needleEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, string haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, string haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, string haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = &haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, string haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = &haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, string haystackEnd, byte* needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, string haystackEnd, byte* needle, string needleEnd) + { + fixed (byte* phaystack = &haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, pStr1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needleEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needleEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needleEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needleEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, byte* needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, byte* needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, pStr1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ref byte haystackEnd, byte* needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ref byte haystackEnd, byte* needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, pStr1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ReadOnlySpan haystackEnd, byte* needle, ref byte needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.002.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.002.cs index 95b9ba988..df197992c 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.002.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.002.cs @@ -18,1500 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGuiP { - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, string haystackEnd, byte* needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* ret = ImStristrNative(pStr0, pStr1, needle, pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, string haystackEnd, byte* needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, needle, pStr2)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ref byte haystack, string haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, string haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ref byte haystack, string haystackEnd, byte* needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, string haystackEnd, byte* needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ref byte haystack, string haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, string haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, byte* needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, byte* needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, ref byte haystackEnd, byte* needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, ref byte haystackEnd, byte* needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, ReadOnlySpan haystackEnd, byte* needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - /// /// To be documented. /// @@ -5039,5 +3545,1553 @@ namespace Dalamud.Bindings.ImGui return ret; } } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ref byte haystackEnd, string needle, string needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, pStr1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, ref byte needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, ref byte needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, ref byte needle, string needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = &needle) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needleEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, ref byte needle, string needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = &needle) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needleEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, string needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = needle) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needleEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, string needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = needle) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needleEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, string needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, string needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, string needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, string needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, string needle, string needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, string needle, string needleEnd) + { + fixed (byte* phaystackEnd = haystackEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, pStr1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, string haystackEnd, ref byte needle, ref byte needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, string haystackEnd, ref byte needle, ref byte needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, string haystackEnd, ref byte needle, ReadOnlySpan needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, string haystackEnd, ref byte needle, ReadOnlySpan needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, string haystackEnd, ref byte needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = &needle) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, string haystackEnd, ref byte needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = &needle) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, pStr1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, string haystackEnd, ReadOnlySpan needle, ref byte needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, string haystackEnd, ReadOnlySpan needle, ref byte needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, string haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, string haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, string haystackEnd, ReadOnlySpan needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = needle) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, string haystackEnd, ReadOnlySpan needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = needle) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, pStr1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, string haystackEnd, string needle, ref byte needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, pStr0, pStr1, (byte*)pneedleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, string haystackEnd, string needle, ref byte needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, pStr1, (byte*)pneedleEnd)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(byte* haystack, string haystackEnd, string needle, ReadOnlySpan needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(haystack, pStr0, pStr1, (byte*)pneedleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(byte* haystack, string haystackEnd, string needle, ReadOnlySpan needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, pStr1, (byte*)pneedleEnd)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ref byte haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* phaystack = &haystack) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + fixed (byte* phaystackEnd = haystackEnd) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, string haystackEnd, string needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (haystackEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (needle != null) + { + pStrSize2 = Utils.GetByteCountUTF8(needle); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte* pStr3 = null; + int pStrSize3 = 0; + if (needleEnd != null) + { + pStrSize3 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize3 >= Utils.MaxStackallocSize) + { + pStr3 = Utils.Alloc(pStrSize3 + 1); + } + else + { + byte* pStrStack3 = stackalloc byte[pStrSize3 + 1]; + pStr3 = pStrStack3; + } + int pStrOffset3 = Utils.EncodeStringUTF8(needleEnd, pStr3, pStrSize3); + pStr3[pStrOffset3] = 0; + } + byte* ret = ImStristrNative(pStr0, pStr1, pStr2, pStr3); + if (pStrSize3 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr3); + } + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, string haystackEnd, string needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (haystackEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (needle != null) + { + pStrSize2 = Utils.GetByteCountUTF8(needle); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte* pStr3 = null; + int pStrSize3 = 0; + if (needleEnd != null) + { + pStrSize3 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize3 >= Utils.MaxStackallocSize) + { + pStr3 = Utils.Alloc(pStrSize3 + 1); + } + else + { + byte* pStrStack3 = stackalloc byte[pStrSize3 + 1]; + pStr3 = pStrStack3; + } + int pStrOffset3 = Utils.EncodeStringUTF8(needleEnd, pStr3, pStrSize3); + pStr3[pStrOffset3] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, pStr2, pStr3)); + if (pStrSize3 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr3); + } + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.003.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.003.cs index a6384ecff..a886b0486 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.003.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.003.cs @@ -18,1554 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGuiP { - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, ref byte haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, ref byte needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, ref byte needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, string needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, string needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, string needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, string needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, ReadOnlySpan haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, string haystackEnd, ref byte needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, string haystackEnd, ref byte needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, string haystackEnd, ref byte needle, ReadOnlySpan needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, string haystackEnd, ref byte needle, ReadOnlySpan needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, string haystackEnd, ref byte needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, string haystackEnd, ref byte needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, string haystackEnd, ReadOnlySpan needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, string haystackEnd, ReadOnlySpan needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, string haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, string haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, string haystackEnd, ReadOnlySpan needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, string haystackEnd, ReadOnlySpan needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, string haystackEnd, string needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, pStr0, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, string haystackEnd, string needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(byte* haystack, string haystackEnd, string needle, ReadOnlySpan needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, pStr0, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(byte* haystack, string haystackEnd, string needle, ReadOnlySpan needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, string haystackEnd, string needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needle != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needle); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* pStr3 = null; - int pStrSize3 = 0; - if (needleEnd != null) - { - pStrSize3 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize3 >= Utils.MaxStackallocSize) - { - pStr3 = Utils.Alloc(pStrSize3 + 1); - } - else - { - byte* pStrStack3 = stackalloc byte[pStrSize3 + 1]; - pStr3 = pStrStack3; - } - int pStrOffset3 = Utils.EncodeStringUTF8(needleEnd, pStr3, pStrSize3); - pStr3[pStrOffset3] = 0; - } - byte* ret = ImStristrNative(pStr0, pStr1, pStr2, pStr3); - if (pStrSize3 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr3); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, string haystackEnd, string needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needle != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needle); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* pStr3 = null; - int pStrSize3 = 0; - if (needleEnd != null) - { - pStrSize3 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize3 >= Utils.MaxStackallocSize) - { - pStr3 = Utils.Alloc(pStrSize3 + 1); - } - else - { - byte* pStrStack3 = stackalloc byte[pStrSize3 + 1]; - pStr3 = pStrStack3; - } - int pStrOffset3 = Utils.EncodeStringUTF8(needleEnd, pStr3, pStrSize3); - pStr3[pStrOffset3] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, pStr2, pStr3)); - if (pStrSize3 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr3); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - /// /// To be documented. /// @@ -5045,5 +3497,1571 @@ namespace Dalamud.Bindings.ImGui } } } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, ReadOnlySpan needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, ReadOnlySpan needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, ReadOnlySpan needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = needle) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, ReadOnlySpan needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pneedle = needle) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, pStr1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, string needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, pStr0, pStr1, (byte*)pneedleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, string needle, ref byte needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, pStr1, (byte*)pneedleEnd)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, string needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative((byte*)phaystack, pStr0, pStr1, (byte*)pneedleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, string needle, ReadOnlySpan needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, pStr1, (byte*)pneedleEnd)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, string needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (needleEnd != null) + { + pStrSize2 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte* ret = ImStristrNative((byte*)phaystack, pStr0, pStr1, pStr2); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, string needle, string needleEnd) + { + fixed (byte* phaystack = haystack) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (needleEnd != null) + { + pStrSize2 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, pStr1, pStr2)); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ref byte haystackEnd, ref byte needle, ReadOnlySpan needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ref byte haystackEnd, ref byte needle, ReadOnlySpan needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ref byte haystackEnd, ref byte needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ref byte haystackEnd, ref byte needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, pStr1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ref byte haystackEnd, ReadOnlySpan needle, ref byte needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ref byte haystackEnd, ReadOnlySpan needle, ref byte needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ref byte haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ref byte haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = needle) + { + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ref byte haystackEnd, ReadOnlySpan needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = needle) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ref byte haystackEnd, ReadOnlySpan needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = needle) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, pStr1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ref byte haystackEnd, string needle, ref byte needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, (byte*)pneedleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ref byte haystackEnd, string needle, ref byte needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, (byte*)pneedleEnd)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ref byte haystackEnd, string needle, ReadOnlySpan needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pneedleEnd = needleEnd) + { + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, (byte*)pneedleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ref byte haystackEnd, string needle, ReadOnlySpan needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pneedleEnd = needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, (byte*)pneedleEnd)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImStristr(string haystack, ref byte haystackEnd, string needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (needleEnd != null) + { + pStrSize2 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, pStr2); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImStristrS(string haystack, ref byte haystackEnd, string needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystack != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystack); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (needleEnd != null) + { + pStrSize2 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, pStr2)); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.004.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.004.cs index da24f8dee..e9231ce91 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.004.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.004.cs @@ -18,1572 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGuiP { - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, ReadOnlySpan needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, ReadOnlySpan needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, ReadOnlySpan needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, ReadOnlySpan needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, string needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, string needle, ReadOnlySpan needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, pStr1, pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(ReadOnlySpan haystack, string haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, pStr1, pStr2)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, ref byte haystackEnd, ref byte needle, ReadOnlySpan needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, ref byte haystackEnd, ref byte needle, ReadOnlySpan needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, ref byte haystackEnd, ref byte needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, ref byte haystackEnd, ref byte needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, ref byte haystackEnd, ReadOnlySpan needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, ref byte haystackEnd, ReadOnlySpan needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, ref byte haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, ref byte haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, ref byte haystackEnd, ReadOnlySpan needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, ref byte haystackEnd, ReadOnlySpan needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, ref byte haystackEnd, string needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, ref byte haystackEnd, string needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, ref byte haystackEnd, string needle, ReadOnlySpan needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, ref byte haystackEnd, string needle, ReadOnlySpan needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImStristr(string haystack, ref byte haystackEnd, string needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImStristrS(string haystack, ref byte haystackEnd, string needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, pStr2)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - /// /// To be documented. /// @@ -3565,9 +1999,9 @@ namespace Dalamud.Bindings.ImGui internal static void ImStrTrimBlanksNative(byte* str) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[709])(str); + ((delegate* unmanaged[Cdecl])funcTable[705])(str); #else - ((delegate* unmanaged[Cdecl])funcTable[709])((nint)str); + ((delegate* unmanaged[Cdecl])funcTable[705])((nint)str); #endif } @@ -3627,9 +2061,9 @@ namespace Dalamud.Bindings.ImGui internal static byte* ImStrSkipBlankNative(byte* str) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[710])(str); + return ((delegate* unmanaged[Cdecl])funcTable[706])(str); #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[710])((nint)str); + return (byte*)((delegate* unmanaged[Cdecl])funcTable[706])((nint)str); #endif } @@ -3766,9 +2200,9 @@ namespace Dalamud.Bindings.ImGui internal static byte ImCharIsBlankANative(byte c) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[711])(c); + return ((delegate* unmanaged[Cdecl])funcTable[707])(c); #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[711])(c); + return (byte)((delegate* unmanaged[Cdecl])funcTable[707])(c); #endif } @@ -3788,9 +2222,9 @@ namespace Dalamud.Bindings.ImGui internal static byte ImCharIsBlankWNative(uint c) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[712])(c); + return ((delegate* unmanaged[Cdecl])funcTable[708])(c); #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[712])(c); + return (byte)((delegate* unmanaged[Cdecl])funcTable[708])(c); #endif } @@ -3810,9 +2244,9 @@ namespace Dalamud.Bindings.ImGui internal static void ImFormatStringToTempBufferNative(byte** outBuf, byte** outBufEnd, byte* fmt) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[713])(outBuf, outBufEnd, fmt); + ((delegate* unmanaged[Cdecl])funcTable[709])(outBuf, outBufEnd, fmt); #else - ((delegate* unmanaged[Cdecl])funcTable[713])((nint)outBuf, (nint)outBufEnd, (nint)fmt); + ((delegate* unmanaged[Cdecl])funcTable[709])((nint)outBuf, (nint)outBufEnd, (nint)fmt); #endif } @@ -4107,9 +2541,9 @@ namespace Dalamud.Bindings.ImGui internal static void ImFormatStringToTempBufferVNative(byte** outBuf, byte** outBufEnd, byte* fmt, nuint args) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[714])(outBuf, outBufEnd, fmt, args); + ((delegate* unmanaged[Cdecl])funcTable[710])(outBuf, outBufEnd, fmt, args); #else - ((delegate* unmanaged[Cdecl])funcTable[714])((nint)outBuf, (nint)outBufEnd, (nint)fmt, args); + ((delegate* unmanaged[Cdecl])funcTable[710])((nint)outBuf, (nint)outBufEnd, (nint)fmt, args); #endif } @@ -4404,9 +2838,9 @@ namespace Dalamud.Bindings.ImGui internal static byte* ImParseFormatFindStartNative(byte* format) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[715])(format); + return ((delegate* unmanaged[Cdecl])funcTable[711])(format); #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[715])((nint)format); + return (byte*)((delegate* unmanaged[Cdecl])funcTable[711])((nint)format); #endif } @@ -4543,9 +2977,9 @@ namespace Dalamud.Bindings.ImGui internal static byte* ImParseFormatFindEndNative(byte* format) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[716])(format); + return ((delegate* unmanaged[Cdecl])funcTable[712])(format); #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[716])((nint)format); + return (byte*)((delegate* unmanaged[Cdecl])funcTable[712])((nint)format); #endif } @@ -4679,292 +3113,15 @@ namespace Dalamud.Bindings.ImGui /// To be documented. ///
[MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImParseFormatSanitizeForPrintingNative(byte* fmtIn, byte* fmtOut, ulong fmtOutSize) + internal static void ImParseFormatSanitizeForPrintingNative(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[717])(fmtIn, fmtOut, fmtOutSize); + ((delegate* unmanaged[Cdecl])funcTable[713])(fmtIn, fmtOut, fmtOutSize); #else - ((delegate* unmanaged[Cdecl])funcTable[717])((nint)fmtIn, (nint)fmtOut, fmtOutSize); + ((delegate* unmanaged[Cdecl])funcTable[713])((nint)fmtIn, (nint)fmtOut, fmtOutSize); #endif } - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(byte* fmtIn, byte* fmtOut, ulong fmtOutSize) - { - ImParseFormatSanitizeForPrintingNative(fmtIn, fmtOut, fmtOutSize); - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(ref byte fmtIn, byte* fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, fmtOut, fmtOutSize); - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(ReadOnlySpan fmtIn, byte* fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, fmtOut, fmtOutSize); - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(string fmtIn, byte* fmtOut, ulong fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImParseFormatSanitizeForPrintingNative(pStr0, fmtOut, fmtOutSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(byte* fmtIn, ref byte fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtOut = &fmtOut) - { - ImParseFormatSanitizeForPrintingNative(fmtIn, (byte*)pfmtOut, fmtOutSize); - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(byte* fmtIn, ref string fmtOut, ulong fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImParseFormatSanitizeForPrintingNative(fmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(ref byte fmtIn, ref byte fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); - } - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(ReadOnlySpan fmtIn, ref byte fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); - } - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(string fmtIn, ref string fmtOut, ulong fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmtOut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmtOut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImParseFormatSanitizeForPrintingNative(pStr0, pStr1, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(ref byte fmtIn, ref string fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(ReadOnlySpan fmtIn, ref string fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(string fmtIn, ref byte fmtOut, ulong fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmtOut = &fmtOut) - { - ImParseFormatSanitizeForPrintingNative(pStr0, (byte*)pfmtOut, fmtOutSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// @@ -5023,5 +3180,1850 @@ namespace Dalamud.Bindings.ImGui Utils.Free(pStr0); } } + + /// + /// To be documented. + /// + public static void ImParseFormatSanitizeForPrinting(byte* fmtIn, ref byte fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtOut = &fmtOut) + { + ImParseFormatSanitizeForPrintingNative(fmtIn, (byte*)pfmtOut, fmtOutSize); + } + } + + /// + /// To be documented. + /// + public static void ImParseFormatSanitizeForPrinting(byte* fmtIn, ref string fmtOut, nuint fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImParseFormatSanitizeForPrintingNative(fmtIn, pStr0, fmtOutSize); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ImParseFormatSanitizeForPrinting(ref byte fmtIn, ref byte fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = &fmtIn) + { + fixed (byte* pfmtOut = &fmtOut) + { + ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); + } + } + } + + /// + /// To be documented. + /// + public static void ImParseFormatSanitizeForPrinting(ReadOnlySpan fmtIn, ref byte fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = fmtIn) + { + fixed (byte* pfmtOut = &fmtOut) + { + ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); + } + } + } + + /// + /// To be documented. + /// + public static void ImParseFormatSanitizeForPrinting(string fmtIn, ref string fmtOut, nuint fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtIn != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtIn); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (fmtOut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(fmtOut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImParseFormatSanitizeForPrintingNative(pStr0, pStr1, fmtOutSize); + fmtOut = Utils.DecodeStringUTF8(pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ImParseFormatSanitizeForPrinting(ref byte fmtIn, ref string fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = &fmtIn) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, pStr0, fmtOutSize); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ImParseFormatSanitizeForPrinting(ReadOnlySpan fmtIn, ref string fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = fmtIn) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, pStr0, fmtOutSize); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ImParseFormatSanitizeForPrinting(string fmtIn, ref byte fmtOut, nuint fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtIn != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtIn); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pfmtOut = &fmtOut) + { + ImParseFormatSanitizeForPrintingNative(pStr0, (byte*)pfmtOut, fmtOutSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* ImParseFormatSanitizeForScanningNative(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[714])(fmtIn, fmtOut, fmtOutSize); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[714])((nint)fmtIn, (nint)fmtOut, fmtOutSize); + #endif + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatSanitizeForScanning(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) + { + byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize); + return ret; + } + + /// + /// To be documented. + /// + public static string ImParseFormatSanitizeForScanningS(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatSanitizeForScanning(ref byte fmtIn, byte* fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = &fmtIn) + { + byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatSanitizeForScanningS(ref byte fmtIn, byte* fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = &fmtIn) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatSanitizeForScanning(ReadOnlySpan fmtIn, byte* fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = fmtIn) + { + byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatSanitizeForScanningS(ReadOnlySpan fmtIn, byte* fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = fmtIn) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatSanitizeForScanning(string fmtIn, byte* fmtOut, nuint fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtIn != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtIn); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImParseFormatSanitizeForScanningNative(pStr0, fmtOut, fmtOutSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImParseFormatSanitizeForScanningS(string fmtIn, byte* fmtOut, nuint fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtIn != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtIn); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(pStr0, fmtOut, fmtOutSize)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatSanitizeForScanning(byte* fmtIn, ref byte fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtOut = &fmtOut) + { + byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatSanitizeForScanningS(byte* fmtIn, ref byte fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtOut = &fmtOut) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatSanitizeForScanning(byte* fmtIn, ref string fmtOut, nuint fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImParseFormatSanitizeForScanningS(byte* fmtIn, ref string fmtOut, nuint fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize)); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatSanitizeForScanning(ref byte fmtIn, ref byte fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = &fmtIn) + { + fixed (byte* pfmtOut = &fmtOut) + { + byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatSanitizeForScanningS(ref byte fmtIn, ref byte fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = &fmtIn) + { + fixed (byte* pfmtOut = &fmtOut) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatSanitizeForScanning(ReadOnlySpan fmtIn, ref byte fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = fmtIn) + { + fixed (byte* pfmtOut = &fmtOut) + { + byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatSanitizeForScanningS(ReadOnlySpan fmtIn, ref byte fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = fmtIn) + { + fixed (byte* pfmtOut = &fmtOut) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatSanitizeForScanning(string fmtIn, ref string fmtOut, nuint fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtIn != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtIn); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (fmtOut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(fmtOut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImParseFormatSanitizeForScanningNative(pStr0, pStr1, fmtOutSize); + fmtOut = Utils.DecodeStringUTF8(pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImParseFormatSanitizeForScanningS(string fmtIn, ref string fmtOut, nuint fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtIn != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtIn); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (fmtOut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(fmtOut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(pStr0, pStr1, fmtOutSize)); + fmtOut = Utils.DecodeStringUTF8(pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatSanitizeForScanning(ref byte fmtIn, ref string fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = &fmtIn) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, pStr0, fmtOutSize); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatSanitizeForScanningS(ref byte fmtIn, ref string fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = &fmtIn) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, pStr0, fmtOutSize)); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatSanitizeForScanning(ReadOnlySpan fmtIn, ref string fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = fmtIn) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, pStr0, fmtOutSize); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatSanitizeForScanningS(ReadOnlySpan fmtIn, ref string fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtIn = fmtIn) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, pStr0, fmtOutSize)); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatSanitizeForScanning(string fmtIn, ref byte fmtOut, nuint fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtIn != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtIn); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pfmtOut = &fmtOut) + { + byte* ret = ImParseFormatSanitizeForScanningNative(pStr0, (byte*)pfmtOut, fmtOutSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatSanitizeForScanningS(string fmtIn, ref byte fmtOut, nuint fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtIn != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtIn); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pfmtOut = &fmtOut) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(pStr0, (byte*)pfmtOut, fmtOutSize)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImParseFormatPrecisionNative(byte* format, int defaultValue) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[715])(format, defaultValue); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[715])((nint)format, defaultValue); + #endif + } + + /// + /// To be documented. + /// + public static int ImParseFormatPrecision(byte* format, int defaultValue) + { + int ret = ImParseFormatPrecisionNative(format, defaultValue); + return ret; + } + + /// + /// To be documented. + /// + public static int ImParseFormatPrecision(ref byte format, int defaultValue) + { + fixed (byte* pformat = &format) + { + int ret = ImParseFormatPrecisionNative((byte*)pformat, defaultValue); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImParseFormatPrecision(ReadOnlySpan format, int defaultValue) + { + fixed (byte* pformat = format) + { + int ret = ImParseFormatPrecisionNative((byte*)pformat, defaultValue); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImParseFormatPrecision(string format, int defaultValue) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImParseFormatPrecisionNative(pStr0, defaultValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* ImTextCharToUtf8Native(byte* outBuf, uint c) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[716])(outBuf, c); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[716])((nint)outBuf, c); + #endif + } + + /// + /// To be documented. + /// + public static byte* ImTextCharToUtf8(byte* outBuf, uint c) + { + byte* ret = ImTextCharToUtf8Native(outBuf, c); + return ret; + } + + /// + /// To be documented. + /// + public static string ImTextCharToUtf8S(byte* outBuf, uint c) + { + string ret = Utils.DecodeStringUTF8(ImTextCharToUtf8Native(outBuf, c)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImTextCharToUtf8(ref byte outBuf, uint c) + { + fixed (byte* poutBuf = &outBuf) + { + byte* ret = ImTextCharToUtf8Native((byte*)poutBuf, c); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImTextCharToUtf8S(ref byte outBuf, uint c) + { + fixed (byte* poutBuf = &outBuf) + { + string ret = Utils.DecodeStringUTF8(ImTextCharToUtf8Native((byte*)poutBuf, c)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImTextCharToUtf8(ReadOnlySpan outBuf, uint c) + { + fixed (byte* poutBuf = outBuf) + { + byte* ret = ImTextCharToUtf8Native((byte*)poutBuf, c); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImTextCharToUtf8S(ReadOnlySpan outBuf, uint c) + { + fixed (byte* poutBuf = outBuf) + { + string ret = Utils.DecodeStringUTF8(ImTextCharToUtf8Native((byte*)poutBuf, c)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImTextCharFromUtf8Native(uint* outChar, byte* inText, byte* inTextEnd) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[717])(outChar, inText, inTextEnd); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[717])((nint)outChar, (nint)inText, (nint)inTextEnd); + #endif + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(uint* outChar, byte* inText, byte* inTextEnd) + { + int ret = ImTextCharFromUtf8Native(outChar, inText, inTextEnd); + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(ref uint outChar, byte* inText, byte* inTextEnd) + { + fixed (uint* poutChar = &outChar) + { + int ret = ImTextCharFromUtf8Native((uint*)poutChar, inText, inTextEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(uint* outChar, ref byte inText, byte* inTextEnd) + { + fixed (byte* pinText = &inText) + { + int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, inTextEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(uint* outChar, ReadOnlySpan inText, byte* inTextEnd) + { + fixed (byte* pinText = inText) + { + int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, inTextEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(uint* outChar, string inText, byte* inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCharFromUtf8Native(outChar, pStr0, inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(ref uint outChar, ref byte inText, byte* inTextEnd) + { + fixed (uint* poutChar = &outChar) + { + fixed (byte* pinText = &inText) + { + int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, inTextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(ref uint outChar, ReadOnlySpan inText, byte* inTextEnd) + { + fixed (uint* poutChar = &outChar) + { + fixed (byte* pinText = inText) + { + int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, inTextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(ref uint outChar, string inText, byte* inTextEnd) + { + fixed (uint* poutChar = &outChar) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCharFromUtf8Native((uint*)poutChar, pStr0, inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(uint* outChar, byte* inText, ref byte inTextEnd) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCharFromUtf8Native(outChar, inText, (byte*)pinTextEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(uint* outChar, byte* inText, ReadOnlySpan inTextEnd) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextCharFromUtf8Native(outChar, inText, (byte*)pinTextEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(uint* outChar, byte* inText, string inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCharFromUtf8Native(outChar, inText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(ref uint outChar, byte* inText, ref byte inTextEnd) + { + fixed (uint* poutChar = &outChar) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCharFromUtf8Native((uint*)poutChar, inText, (byte*)pinTextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(ref uint outChar, byte* inText, ReadOnlySpan inTextEnd) + { + fixed (uint* poutChar = &outChar) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextCharFromUtf8Native((uint*)poutChar, inText, (byte*)pinTextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(ref uint outChar, byte* inText, string inTextEnd) + { + fixed (uint* poutChar = &outChar) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCharFromUtf8Native((uint*)poutChar, inText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(uint* outChar, ref byte inText, ref byte inTextEnd) + { + fixed (byte* pinText = &inText) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(uint* outChar, ReadOnlySpan inText, ReadOnlySpan inTextEnd) + { + fixed (byte* pinText = inText) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(uint* outChar, string inText, string inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (inTextEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + int ret = ImTextCharFromUtf8Native(outChar, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(uint* outChar, ref byte inText, ReadOnlySpan inTextEnd) + { + fixed (byte* pinText = &inText) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(uint* outChar, ref byte inText, string inTextEnd) + { + fixed (byte* pinText = &inText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(uint* outChar, ReadOnlySpan inText, ref byte inTextEnd) + { + fixed (byte* pinText = inText) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(uint* outChar, ReadOnlySpan inText, string inTextEnd) + { + fixed (byte* pinText = inText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(uint* outChar, string inText, ref byte inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCharFromUtf8Native(outChar, pStr0, (byte*)pinTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(uint* outChar, string inText, ReadOnlySpan inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextCharFromUtf8Native(outChar, pStr0, (byte*)pinTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(ref uint outChar, ref byte inText, ref byte inTextEnd) + { + fixed (uint* poutChar = &outChar) + { + fixed (byte* pinText = &inText) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(ref uint outChar, ReadOnlySpan inText, ReadOnlySpan inTextEnd) + { + fixed (uint* poutChar = &outChar) + { + fixed (byte* pinText = inText) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(ref uint outChar, string inText, string inTextEnd) + { + fixed (uint* poutChar = &outChar) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (inTextEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + int ret = ImTextCharFromUtf8Native((uint*)poutChar, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(ref uint outChar, ref byte inText, ReadOnlySpan inTextEnd) + { + fixed (uint* poutChar = &outChar) + { + fixed (byte* pinText = &inText) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(ref uint outChar, ref byte inText, string inTextEnd) + { + fixed (uint* poutChar = &outChar) + { + fixed (byte* pinText = &inText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(ref uint outChar, ReadOnlySpan inText, ref byte inTextEnd) + { + fixed (uint* poutChar = &outChar) + { + fixed (byte* pinText = inText) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(ref uint outChar, ReadOnlySpan inText, string inTextEnd) + { + fixed (uint* poutChar = &outChar) + { + fixed (byte* pinText = inText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(ref uint outChar, string inText, ref byte inTextEnd) + { + fixed (uint* poutChar = &outChar) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCharFromUtf8Native((uint*)poutChar, pStr0, (byte*)pinTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextCharFromUtf8(ref uint outChar, string inText, ReadOnlySpan inTextEnd) + { + fixed (uint* poutChar = &outChar) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextCharFromUtf8Native((uint*)poutChar, pStr0, (byte*)pinTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImTextCountCharsFromUtf8Native(byte* inText, byte* inTextEnd) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[718])(inText, inTextEnd); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[718])((nint)inText, (nint)inTextEnd); + #endif + } + + /// + /// To be documented. + /// + public static int ImTextCountCharsFromUtf8(byte* inText, byte* inTextEnd) + { + int ret = ImTextCountCharsFromUtf8Native(inText, inTextEnd); + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextCountCharsFromUtf8(ref byte inText, byte* inTextEnd) + { + fixed (byte* pinText = &inText) + { + int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, inTextEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCountCharsFromUtf8(ReadOnlySpan inText, byte* inTextEnd) + { + fixed (byte* pinText = inText) + { + int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, inTextEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCountCharsFromUtf8(string inText, byte* inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCountCharsFromUtf8Native(pStr0, inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextCountCharsFromUtf8(byte* inText, ref byte inTextEnd) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCountCharsFromUtf8Native(inText, (byte*)pinTextEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextCountCharsFromUtf8(byte* inText, ReadOnlySpan inTextEnd) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextCountCharsFromUtf8Native(inText, (byte*)pinTextEnd); + return ret; + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.005.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.005.cs index 3bb06bf93..61e059812 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.005.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.005.cs @@ -18,2429 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGuiP { - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(byte* fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtOut = &fmtOut) - { - ImParseFormatSanitizeForPrintingNative(fmtIn, (byte*)pfmtOut, fmtOutSize); - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(byte* fmtIn, ref string fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImParseFormatSanitizeForPrintingNative(fmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(ref byte fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); - } - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(ReadOnlySpan fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); - } - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(string fmtIn, ref string fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmtOut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmtOut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImParseFormatSanitizeForPrintingNative(pStr0, pStr1, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(ref byte fmtIn, ref string fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(ReadOnlySpan fmtIn, ref string fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ImParseFormatSanitizeForPrinting(string fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmtOut = &fmtOut) - { - ImParseFormatSanitizeForPrintingNative(pStr0, (byte*)pfmtOut, fmtOutSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* ImParseFormatSanitizeForScanningNative(byte* fmtIn, byte* fmtOut, ulong fmtOutSize) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[718])(fmtIn, fmtOut, fmtOutSize); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[718])((nint)fmtIn, (nint)fmtOut, fmtOutSize); - #endif - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(byte* fmtIn, byte* fmtOut, ulong fmtOutSize) - { - byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize); - return ret; - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(byte* fmtIn, byte* fmtOut, ulong fmtOutSize) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(ref byte fmtIn, byte* fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(ref byte fmtIn, byte* fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(ReadOnlySpan fmtIn, byte* fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(ReadOnlySpan fmtIn, byte* fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(string fmtIn, byte* fmtOut, ulong fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative(pStr0, fmtOut, fmtOutSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(string fmtIn, byte* fmtOut, ulong fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(pStr0, fmtOut, fmtOutSize)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(byte* fmtIn, ref byte fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtOut = &fmtOut) - { - byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(byte* fmtIn, ref byte fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtOut = &fmtOut) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(byte* fmtIn, ref string fmtOut, ulong fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(byte* fmtIn, ref string fmtOut, ulong fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize)); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(ref byte fmtIn, ref byte fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(ref byte fmtIn, ref byte fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(ReadOnlySpan fmtIn, ref byte fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(ReadOnlySpan fmtIn, ref byte fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(string fmtIn, ref string fmtOut, ulong fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmtOut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmtOut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative(pStr0, pStr1, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(string fmtIn, ref string fmtOut, ulong fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmtOut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmtOut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(pStr0, pStr1, fmtOutSize)); - fmtOut = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(ref byte fmtIn, ref string fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(ref byte fmtIn, ref string fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, pStr0, fmtOutSize)); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(ReadOnlySpan fmtIn, ref string fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(ReadOnlySpan fmtIn, ref string fmtOut, ulong fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, pStr0, fmtOutSize)); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(string fmtIn, ref byte fmtOut, ulong fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmtOut = &fmtOut) - { - byte* ret = ImParseFormatSanitizeForScanningNative(pStr0, (byte*)pfmtOut, fmtOutSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(string fmtIn, ref byte fmtOut, ulong fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmtOut = &fmtOut) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(pStr0, (byte*)pfmtOut, fmtOutSize)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) - { - byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize); - return ret; - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(ref byte fmtIn, byte* fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(ref byte fmtIn, byte* fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(ReadOnlySpan fmtIn, byte* fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(ReadOnlySpan fmtIn, byte* fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(string fmtIn, byte* fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative(pStr0, fmtOut, fmtOutSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(string fmtIn, byte* fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(pStr0, fmtOut, fmtOutSize)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(byte* fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtOut = &fmtOut) - { - byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(byte* fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtOut = &fmtOut) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(byte* fmtIn, ref string fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(byte* fmtIn, ref string fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize)); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(ref byte fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(ref byte fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(ReadOnlySpan fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(ReadOnlySpan fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(string fmtIn, ref string fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmtOut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmtOut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative(pStr0, pStr1, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(string fmtIn, ref string fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmtOut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmtOut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(pStr0, pStr1, fmtOutSize)); - fmtOut = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(ref byte fmtIn, ref string fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(ref byte fmtIn, ref string fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, pStr0, fmtOutSize)); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(ReadOnlySpan fmtIn, ref string fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(ReadOnlySpan fmtIn, ref string fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, pStr0, fmtOutSize)); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatSanitizeForScanning(string fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmtOut = &fmtOut) - { - byte* ret = ImParseFormatSanitizeForScanningNative(pStr0, (byte*)pfmtOut, fmtOutSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatSanitizeForScanningS(string fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmtOut = &fmtOut) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(pStr0, (byte*)pfmtOut, fmtOutSize)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImParseFormatPrecisionNative(byte* format, int defaultValue) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[719])(format, defaultValue); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[719])((nint)format, defaultValue); - #endif - } - - /// - /// To be documented. - /// - public static int ImParseFormatPrecision(byte* format, int defaultValue) - { - int ret = ImParseFormatPrecisionNative(format, defaultValue); - return ret; - } - - /// - /// To be documented. - /// - public static int ImParseFormatPrecision(ref byte format, int defaultValue) - { - fixed (byte* pformat = &format) - { - int ret = ImParseFormatPrecisionNative((byte*)pformat, defaultValue); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImParseFormatPrecision(ReadOnlySpan format, int defaultValue) - { - fixed (byte* pformat = format) - { - int ret = ImParseFormatPrecisionNative((byte*)pformat, defaultValue); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImParseFormatPrecision(string format, int defaultValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImParseFormatPrecisionNative(pStr0, defaultValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* ImTextCharToUtf8Native(byte* outBuf, uint c) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[720])(outBuf, c); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[720])((nint)outBuf, c); - #endif - } - - /// - /// To be documented. - /// - public static byte* ImTextCharToUtf8(byte* outBuf, uint c) - { - byte* ret = ImTextCharToUtf8Native(outBuf, c); - return ret; - } - - /// - /// To be documented. - /// - public static string ImTextCharToUtf8S(byte* outBuf, uint c) - { - string ret = Utils.DecodeStringUTF8(ImTextCharToUtf8Native(outBuf, c)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImTextCharToUtf8(ref byte outBuf, uint c) - { - fixed (byte* poutBuf = &outBuf) - { - byte* ret = ImTextCharToUtf8Native((byte*)poutBuf, c); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImTextCharToUtf8S(ref byte outBuf, uint c) - { - fixed (byte* poutBuf = &outBuf) - { - string ret = Utils.DecodeStringUTF8(ImTextCharToUtf8Native((byte*)poutBuf, c)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImTextCharToUtf8(ReadOnlySpan outBuf, uint c) - { - fixed (byte* poutBuf = outBuf) - { - byte* ret = ImTextCharToUtf8Native((byte*)poutBuf, c); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImTextCharToUtf8S(ReadOnlySpan outBuf, uint c) - { - fixed (byte* poutBuf = outBuf) - { - string ret = Utils.DecodeStringUTF8(ImTextCharToUtf8Native((byte*)poutBuf, c)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImTextCharFromUtf8Native(uint* outChar, byte* inText, byte* inTextEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[721])(outChar, inText, inTextEnd); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[721])((nint)outChar, (nint)inText, (nint)inTextEnd); - #endif - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(uint* outChar, byte* inText, byte* inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, inText, inTextEnd); - return ret; - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(ref uint outChar, byte* inText, byte* inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, inText, inTextEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(uint* outChar, ref byte inText, byte* inTextEnd) - { - fixed (byte* pinText = &inText) - { - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, inTextEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(uint* outChar, ReadOnlySpan inText, byte* inTextEnd) - { - fixed (byte* pinText = inText) - { - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, inTextEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(uint* outChar, string inText, byte* inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native(outChar, pStr0, inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(ref uint outChar, ref byte inText, byte* inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = &inText) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, inTextEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(ref uint outChar, ReadOnlySpan inText, byte* inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = inText) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, inTextEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(ref uint outChar, string inText, byte* inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native((uint*)poutChar, pStr0, inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(uint* outChar, byte* inText, ref byte inTextEnd) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, inText, (byte*)pinTextEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(uint* outChar, byte* inText, ReadOnlySpan inTextEnd) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, inText, (byte*)pinTextEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(uint* outChar, byte* inText, string inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native(outChar, inText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(ref uint outChar, byte* inText, ref byte inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, inText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(ref uint outChar, byte* inText, ReadOnlySpan inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, inText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(ref uint outChar, byte* inText, string inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native((uint*)poutChar, inText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(uint* outChar, ref byte inText, ref byte inTextEnd) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(uint* outChar, ReadOnlySpan inText, ReadOnlySpan inTextEnd) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(uint* outChar, string inText, string inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextCharFromUtf8Native(outChar, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(uint* outChar, ref byte inText, ReadOnlySpan inTextEnd) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(uint* outChar, ref byte inText, string inTextEnd) - { - fixed (byte* pinText = &inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(uint* outChar, ReadOnlySpan inText, ref byte inTextEnd) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(uint* outChar, ReadOnlySpan inText, string inTextEnd) - { - fixed (byte* pinText = inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(uint* outChar, string inText, ref byte inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, pStr0, (byte*)pinTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(uint* outChar, string inText, ReadOnlySpan inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, pStr0, (byte*)pinTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(ref uint outChar, ref byte inText, ref byte inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(ref uint outChar, ReadOnlySpan inText, ReadOnlySpan inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(ref uint outChar, string inText, string inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextCharFromUtf8Native((uint*)poutChar, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(ref uint outChar, ref byte inText, ReadOnlySpan inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(ref uint outChar, ref byte inText, string inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = &inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(ref uint outChar, ReadOnlySpan inText, ref byte inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(ref uint outChar, ReadOnlySpan inText, string inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(ref uint outChar, string inText, ref byte inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, pStr0, (byte*)pinTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextCharFromUtf8(ref uint outChar, string inText, ReadOnlySpan inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, pStr0, (byte*)pinTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImTextCountCharsFromUtf8Native(byte* inText, byte* inTextEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[722])(inText, inTextEnd); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[722])((nint)inText, (nint)inTextEnd); - #endif - } - - /// - /// To be documented. - /// - public static int ImTextCountCharsFromUtf8(byte* inText, byte* inTextEnd) - { - int ret = ImTextCountCharsFromUtf8Native(inText, inTextEnd); - return ret; - } - - /// - /// To be documented. - /// - public static int ImTextCountCharsFromUtf8(ref byte inText, byte* inTextEnd) - { - fixed (byte* pinText = &inText) - { - int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, inTextEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCountCharsFromUtf8(ReadOnlySpan inText, byte* inTextEnd) - { - fixed (byte* pinText = inText) - { - int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, inTextEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCountCharsFromUtf8(string inText, byte* inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCountCharsFromUtf8Native(pStr0, inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImTextCountCharsFromUtf8(byte* inText, ref byte inTextEnd) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountCharsFromUtf8Native(inText, (byte*)pinTextEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCountCharsFromUtf8(byte* inText, ReadOnlySpan inTextEnd) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCountCharsFromUtf8Native(inText, (byte*)pinTextEnd); - return ret; - } - } - /// /// To be documented. /// @@ -2721,9 +298,9 @@ namespace Dalamud.Bindings.ImGui internal static int ImTextCountUtf8BytesFromCharNative(byte* inText, byte* inTextEnd) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[723])(inText, inTextEnd); + return ((delegate* unmanaged[Cdecl])funcTable[719])(inText, inTextEnd); #else - return (int)((delegate* unmanaged[Cdecl])funcTable[723])((nint)inText, (nint)inTextEnd); + return (int)((delegate* unmanaged[Cdecl])funcTable[719])((nint)inText, (nint)inTextEnd); #endif } @@ -3094,9 +671,9 @@ namespace Dalamud.Bindings.ImGui internal static int ImTextCountUtf8BytesFromStrNative(ushort* inText, ushort* inTextEnd) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[724])(inText, inTextEnd); + return ((delegate* unmanaged[Cdecl])funcTable[720])(inText, inTextEnd); #else - return (int)((delegate* unmanaged[Cdecl])funcTable[724])((nint)inText, (nint)inTextEnd); + return (int)((delegate* unmanaged[Cdecl])funcTable[720])((nint)inText, (nint)inTextEnd); #endif } @@ -3109,45 +686,6 @@ namespace Dalamud.Bindings.ImGui return ret; } - /// - /// To be documented. - /// - public static int ImTextCountUtf8BytesFromStr(ref ushort inText, ushort* inTextEnd) - { - fixed (ushort* pinText = &inText) - { - int ret = ImTextCountUtf8BytesFromStrNative((ushort*)pinText, inTextEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCountUtf8BytesFromStr(ushort* inText, ref ushort inTextEnd) - { - fixed (ushort* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountUtf8BytesFromStrNative(inText, (ushort*)pinTextEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextCountUtf8BytesFromStr(ref ushort inText, ref ushort inTextEnd) - { - fixed (ushort* pinText = &inText) - { - fixed (ushort* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountUtf8BytesFromStrNative((ushort*)pinText, (ushort*)pinTextEnd); - return ret; - } - } - } - /// /// To be documented. /// @@ -3155,9 +693,9 @@ namespace Dalamud.Bindings.ImGui internal static ImFileHandle ImFileOpenNative(byte* filename, byte* mode) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[725])(filename, mode); + return ((delegate* unmanaged[Cdecl])funcTable[721])(filename, mode); #else - return (ImFileHandle)((delegate* unmanaged[Cdecl])funcTable[725])((nint)filename, (nint)mode); + return (ImFileHandle)((delegate* unmanaged[Cdecl])funcTable[721])((nint)filename, (nint)mode); #endif } @@ -3528,9 +1066,9 @@ namespace Dalamud.Bindings.ImGui internal static byte ImFileCloseNative(ImFileHandle file) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[726])(file); + return ((delegate* unmanaged[Cdecl])funcTable[722])(file); #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[726])(file); + return (byte)((delegate* unmanaged[Cdecl])funcTable[722])(file); #endif } @@ -3550,9 +1088,9 @@ namespace Dalamud.Bindings.ImGui internal static ulong ImFileGetSizeNative(ImFileHandle file) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[727])(file); + return ((delegate* unmanaged[Cdecl])funcTable[723])(file); #else - return (ulong)((delegate* unmanaged[Cdecl])funcTable[727])(file); + return (ulong)((delegate* unmanaged[Cdecl])funcTable[723])(file); #endif } @@ -3572,9 +1110,9 @@ namespace Dalamud.Bindings.ImGui internal static ulong ImFileReadNative(void* data, ulong size, ulong count, ImFileHandle file) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[728])(data, size, count, file); + return ((delegate* unmanaged[Cdecl])funcTable[724])(data, size, count, file); #else - return (ulong)((delegate* unmanaged[Cdecl])funcTable[728])((nint)data, size, count, file); + return (ulong)((delegate* unmanaged[Cdecl])funcTable[724])((nint)data, size, count, file); #endif } @@ -3594,9 +1132,9 @@ namespace Dalamud.Bindings.ImGui internal static ulong ImFileWriteNative(void* data, ulong size, ulong count, ImFileHandle file) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[729])(data, size, count, file); + return ((delegate* unmanaged[Cdecl])funcTable[725])(data, size, count, file); #else - return (ulong)((delegate* unmanaged[Cdecl])funcTable[729])((nint)data, size, count, file); + return (ulong)((delegate* unmanaged[Cdecl])funcTable[725])((nint)data, size, count, file); #endif } @@ -3613,19 +1151,19 @@ namespace Dalamud.Bindings.ImGui /// To be documented. ///
[MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void* ImFileLoadToMemoryNative(byte* filename, byte* mode, ulong* outFileSize, int paddingBytes) + internal static void* ImFileLoadToMemoryNative(byte* filename, byte* mode, nuint* outFileSize, int paddingBytes) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[730])(filename, mode, outFileSize, paddingBytes); + return ((delegate* unmanaged[Cdecl])funcTable[726])(filename, mode, outFileSize, paddingBytes); #else - return (void*)((delegate* unmanaged[Cdecl])funcTable[730])((nint)filename, (nint)mode, (nint)outFileSize, paddingBytes); + return (void*)((delegate* unmanaged[Cdecl])funcTable[726])((nint)filename, (nint)mode, (nint)outFileSize, paddingBytes); #endif } /// /// To be documented. /// - public static void* ImFileLoadToMemory(byte* filename, byte* mode, ulong* outFileSize, int paddingBytes) + public static void* ImFileLoadToMemory(byte* filename, byte* mode, nuint* outFileSize, int paddingBytes) { void* ret = ImFileLoadToMemoryNative(filename, mode, outFileSize, paddingBytes); return ret; @@ -3634,7 +1172,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(byte* filename, byte* mode, ulong* outFileSize) + public static void* ImFileLoadToMemory(byte* filename, byte* mode, nuint* outFileSize) { void* ret = ImFileLoadToMemoryNative(filename, mode, outFileSize, (int)(0)); return ret; @@ -3645,7 +1183,7 @@ namespace Dalamud.Bindings.ImGui ///
public static void* ImFileLoadToMemory(byte* filename, byte* mode) { - void* ret = ImFileLoadToMemoryNative(filename, mode, (ulong*)(default), (int)(0)); + void* ret = ImFileLoadToMemoryNative(filename, mode, (nuint*)(default), (int)(0)); return ret; } @@ -3654,14 +1192,14 @@ namespace Dalamud.Bindings.ImGui ///
public static void* ImFileLoadToMemory(byte* filename, byte* mode, int paddingBytes) { - void* ret = ImFileLoadToMemoryNative(filename, mode, (ulong*)(default), paddingBytes); + void* ret = ImFileLoadToMemoryNative(filename, mode, (nuint*)(default), paddingBytes); return ret; } /// /// To be documented. /// - public static void* ImFileLoadToMemory(ref byte filename, byte* mode, ulong* outFileSize, int paddingBytes) + public static void* ImFileLoadToMemory(ref byte filename, byte* mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pfilename = &filename) { @@ -3673,7 +1211,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(ref byte filename, byte* mode, ulong* outFileSize) + public static void* ImFileLoadToMemory(ref byte filename, byte* mode, nuint* outFileSize) { fixed (byte* pfilename = &filename) { @@ -3689,7 +1227,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* pfilename = &filename) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (ulong*)(default), (int)(0)); + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), (int)(0)); return ret; } } @@ -3701,7 +1239,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* pfilename = &filename) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (ulong*)(default), paddingBytes); + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), paddingBytes); return ret; } } @@ -3709,7 +1247,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(ReadOnlySpan filename, byte* mode, ulong* outFileSize, int paddingBytes) + public static void* ImFileLoadToMemory(ReadOnlySpan filename, byte* mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pfilename = filename) { @@ -3721,7 +1259,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(ReadOnlySpan filename, byte* mode, ulong* outFileSize) + public static void* ImFileLoadToMemory(ReadOnlySpan filename, byte* mode, nuint* outFileSize) { fixed (byte* pfilename = filename) { @@ -3737,7 +1275,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* pfilename = filename) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (ulong*)(default), (int)(0)); + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), (int)(0)); return ret; } } @@ -3749,7 +1287,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* pfilename = filename) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (ulong*)(default), paddingBytes); + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), paddingBytes); return ret; } } @@ -3757,7 +1295,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(string filename, byte* mode, ulong* outFileSize, int paddingBytes) + public static void* ImFileLoadToMemory(string filename, byte* mode, nuint* outFileSize, int paddingBytes) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3787,7 +1325,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(string filename, byte* mode, ulong* outFileSize) + public static void* ImFileLoadToMemory(string filename, byte* mode, nuint* outFileSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3836,7 +1374,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - void* ret = ImFileLoadToMemoryNative(pStr0, mode, (ulong*)(default), (int)(0)); + void* ret = ImFileLoadToMemoryNative(pStr0, mode, (nuint*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3866,7 +1404,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - void* ret = ImFileLoadToMemoryNative(pStr0, mode, (ulong*)(default), paddingBytes); + void* ret = ImFileLoadToMemoryNative(pStr0, mode, (nuint*)(default), paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3877,7 +1415,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(byte* filename, ref byte mode, ulong* outFileSize, int paddingBytes) + public static void* ImFileLoadToMemory(byte* filename, ref byte mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pmode = &mode) { @@ -3889,7 +1427,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(byte* filename, ref byte mode, ulong* outFileSize) + public static void* ImFileLoadToMemory(byte* filename, ref byte mode, nuint* outFileSize) { fixed (byte* pmode = &mode) { @@ -3905,7 +1443,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* pmode = &mode) { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (ulong*)(default), (int)(0)); + void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), (int)(0)); return ret; } } @@ -3917,7 +1455,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* pmode = &mode) { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (ulong*)(default), paddingBytes); + void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), paddingBytes); return ret; } } @@ -3925,7 +1463,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan mode, ulong* outFileSize, int paddingBytes) + public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pmode = mode) { @@ -3937,7 +1475,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan mode, ulong* outFileSize) + public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan mode, nuint* outFileSize) { fixed (byte* pmode = mode) { @@ -3953,7 +1491,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* pmode = mode) { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (ulong*)(default), (int)(0)); + void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), (int)(0)); return ret; } } @@ -3965,7 +1503,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* pmode = mode) { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (ulong*)(default), paddingBytes); + void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), paddingBytes); return ret; } } @@ -3973,7 +1511,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(byte* filename, string mode, ulong* outFileSize, int paddingBytes) + public static void* ImFileLoadToMemory(byte* filename, string mode, nuint* outFileSize, int paddingBytes) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4003,7 +1541,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(byte* filename, string mode, ulong* outFileSize) + public static void* ImFileLoadToMemory(byte* filename, string mode, nuint* outFileSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4052,7 +1590,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - void* ret = ImFileLoadToMemoryNative(filename, pStr0, (ulong*)(default), (int)(0)); + void* ret = ImFileLoadToMemoryNative(filename, pStr0, (nuint*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4082,7 +1620,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - void* ret = ImFileLoadToMemoryNative(filename, pStr0, (ulong*)(default), paddingBytes); + void* ret = ImFileLoadToMemoryNative(filename, pStr0, (nuint*)(default), paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4093,7 +1631,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(ref byte filename, ref byte mode, ulong* outFileSize, int paddingBytes) + public static void* ImFileLoadToMemory(ref byte filename, ref byte mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pfilename = &filename) { @@ -4108,7 +1646,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(ref byte filename, ref byte mode, ulong* outFileSize) + public static void* ImFileLoadToMemory(ref byte filename, ref byte mode, nuint* outFileSize) { fixed (byte* pfilename = &filename) { @@ -4129,7 +1667,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* pmode = &mode) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (ulong*)(default), (int)(0)); + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); return ret; } } @@ -4144,7 +1682,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* pmode = &mode) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (ulong*)(default), paddingBytes); + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); return ret; } } @@ -4153,7 +1691,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(ReadOnlySpan filename, ReadOnlySpan mode, ulong* outFileSize, int paddingBytes) + public static void* ImFileLoadToMemory(ReadOnlySpan filename, ReadOnlySpan mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pfilename = filename) { @@ -4168,7 +1706,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(ReadOnlySpan filename, ReadOnlySpan mode, ulong* outFileSize) + public static void* ImFileLoadToMemory(ReadOnlySpan filename, ReadOnlySpan mode, nuint* outFileSize) { fixed (byte* pfilename = filename) { @@ -4189,7 +1727,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* pmode = mode) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (ulong*)(default), (int)(0)); + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); return ret; } } @@ -4204,7 +1742,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* pmode = mode) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (ulong*)(default), paddingBytes); + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); return ret; } } @@ -4213,7 +1751,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(string filename, string mode, ulong* outFileSize, int paddingBytes) + public static void* ImFileLoadToMemory(string filename, string mode, nuint* outFileSize, int paddingBytes) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4264,7 +1802,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(string filename, string mode, ulong* outFileSize) + public static void* ImFileLoadToMemory(string filename, string mode, nuint* outFileSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4351,7 +1889,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, (ulong*)(default), (int)(0)); + void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, (nuint*)(default), (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -4402,7 +1940,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, (ulong*)(default), paddingBytes); + void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, (nuint*)(default), paddingBytes); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -4417,7 +1955,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan mode, ulong* outFileSize, int paddingBytes) + public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pfilename = &filename) { @@ -4432,7 +1970,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan mode, ulong* outFileSize) + public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan mode, nuint* outFileSize) { fixed (byte* pfilename = &filename) { @@ -4453,7 +1991,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* pmode = mode) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (ulong*)(default), (int)(0)); + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); return ret; } } @@ -4468,7 +2006,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* pmode = mode) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (ulong*)(default), paddingBytes); + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); return ret; } } @@ -4477,7 +2015,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(ref byte filename, string mode, ulong* outFileSize, int paddingBytes) + public static void* ImFileLoadToMemory(ref byte filename, string mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pfilename = &filename) { @@ -4510,7 +2048,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(ref byte filename, string mode, ulong* outFileSize) + public static void* ImFileLoadToMemory(ref byte filename, string mode, nuint* outFileSize) { fixed (byte* pfilename = &filename) { @@ -4564,7 +2102,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (ulong*)(default), (int)(0)); + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (nuint*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4597,7 +2135,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (ulong*)(default), paddingBytes); + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (nuint*)(default), paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4609,7 +2147,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(ReadOnlySpan filename, ref byte mode, ulong* outFileSize, int paddingBytes) + public static void* ImFileLoadToMemory(ReadOnlySpan filename, ref byte mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pfilename = filename) { @@ -4624,7 +2162,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(ReadOnlySpan filename, ref byte mode, ulong* outFileSize) + public static void* ImFileLoadToMemory(ReadOnlySpan filename, ref byte mode, nuint* outFileSize) { fixed (byte* pfilename = filename) { @@ -4645,7 +2183,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* pmode = &mode) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (ulong*)(default), (int)(0)); + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); return ret; } } @@ -4660,7 +2198,7 @@ namespace Dalamud.Bindings.ImGui { fixed (byte* pmode = &mode) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (ulong*)(default), paddingBytes); + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); return ret; } } @@ -4669,7 +2207,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(ReadOnlySpan filename, string mode, ulong* outFileSize, int paddingBytes) + public static void* ImFileLoadToMemory(ReadOnlySpan filename, string mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pfilename = filename) { @@ -4702,7 +2240,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(ReadOnlySpan filename, string mode, ulong* outFileSize) + public static void* ImFileLoadToMemory(ReadOnlySpan filename, string mode, nuint* outFileSize) { fixed (byte* pfilename = filename) { @@ -4756,7 +2294,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (ulong*)(default), (int)(0)); + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (nuint*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4789,7 +2327,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (ulong*)(default), paddingBytes); + void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (nuint*)(default), paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4801,7 +2339,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(string filename, ref byte mode, ulong* outFileSize, int paddingBytes) + public static void* ImFileLoadToMemory(string filename, ref byte mode, nuint* outFileSize, int paddingBytes) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4834,7 +2372,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(string filename, ref byte mode, ulong* outFileSize) + public static void* ImFileLoadToMemory(string filename, ref byte mode, nuint* outFileSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4888,7 +2426,7 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* pmode = &mode) { - void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (ulong*)(default), (int)(0)); + void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (nuint*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4921,7 +2459,7 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* pmode = &mode) { - void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (ulong*)(default), paddingBytes); + void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (nuint*)(default), paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4933,7 +2471,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(string filename, ReadOnlySpan mode, ulong* outFileSize, int paddingBytes) + public static void* ImFileLoadToMemory(string filename, ReadOnlySpan mode, nuint* outFileSize, int paddingBytes) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4966,7 +2504,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void* ImFileLoadToMemory(string filename, ReadOnlySpan mode, ulong* outFileSize) + public static void* ImFileLoadToMemory(string filename, ReadOnlySpan mode, nuint* outFileSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5020,7 +2558,7 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* pmode = mode) { - void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (ulong*)(default), (int)(0)); + void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (nuint*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -5028,5 +2566,2457 @@ namespace Dalamud.Bindings.ImGui return ret; } } + + /// + /// To be documented. + /// + public static void* ImFileLoadToMemory(string filename, ReadOnlySpan mode, int paddingBytes) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pmode = mode) + { + void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (nuint*)(default), paddingBytes); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImPowNative(float x, float y) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[727])(x, y); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[727])(x, y); + #endif + } + + /// + /// To be documented. + /// + public static float ImPow(float x, float y) + { + float ret = ImPowNative(x, y); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImPowNative(double x, double y) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[728])(x, y); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[728])(x, y); + #endif + } + + /// + /// To be documented. + /// + public static double ImPow(double x, double y) + { + double ret = ImPowNative(x, y); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImLogNative(float x) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[729])(x); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[729])(x); + #endif + } + + /// + /// To be documented. + /// + public static float ImLog(float x) + { + float ret = ImLogNative(x); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImLogNative(double x) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[730])(x); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[730])(x); + #endif + } + + /// + /// To be documented. + /// + public static double ImLog(double x) + { + double ret = ImLogNative(x); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImAbsNative(int x) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[731])(x); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[731])(x); + #endif + } + + /// + /// To be documented. + /// + public static int ImAbs(int x) + { + int ret = ImAbsNative(x); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImAbsNative(float x) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[732])(x); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[732])(x); + #endif + } + + /// + /// To be documented. + /// + public static float ImAbs(float x) + { + float ret = ImAbsNative(x); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImAbsNative(double x) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[733])(x); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[733])(x); + #endif + } + + /// + /// To be documented. + /// + public static double ImAbs(double x) + { + double ret = ImAbsNative(x); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImSignNative(float x) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[734])(x); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[734])(x); + #endif + } + + /// + /// To be documented. + /// + public static float ImSign(float x) + { + float ret = ImSignNative(x); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImSignNative(double x) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[735])(x); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[735])(x); + #endif + } + + /// + /// To be documented. + /// + public static double ImSign(double x) + { + double ret = ImSignNative(x); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImRsqrtNative(float x) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[736])(x); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[736])(x); + #endif + } + + /// + /// To be documented. + /// + public static float ImRsqrt(float x) + { + float ret = ImRsqrtNative(x); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImRsqrtNative(double x) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[737])(x); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[737])(x); + #endif + } + + /// + /// To be documented. + /// + public static double ImRsqrt(double x) + { + double ret = ImRsqrtNative(x); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImMinNative(Vector2* pOut, Vector2 lhs, Vector2 rhs) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[738])(pOut, lhs, rhs); + #else + ((delegate* unmanaged[Cdecl])funcTable[738])((nint)pOut, lhs, rhs); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ImMin(Vector2 lhs, Vector2 rhs) + { + Vector2 ret; + ImMinNative(&ret, lhs, rhs); + return ret; + } + + /// + /// To be documented. + /// + public static void ImMin(Vector2* pOut, Vector2 lhs, Vector2 rhs) + { + ImMinNative(pOut, lhs, rhs); + } + + /// + /// To be documented. + /// + public static void ImMin(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) + { + fixed (Vector2* ppOut = &pOut) + { + ImMinNative((Vector2*)ppOut, lhs, rhs); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImMaxNative(Vector2* pOut, Vector2 lhs, Vector2 rhs) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[739])(pOut, lhs, rhs); + #else + ((delegate* unmanaged[Cdecl])funcTable[739])((nint)pOut, lhs, rhs); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ImMax(Vector2 lhs, Vector2 rhs) + { + Vector2 ret; + ImMaxNative(&ret, lhs, rhs); + return ret; + } + + /// + /// To be documented. + /// + public static void ImMax(Vector2* pOut, Vector2 lhs, Vector2 rhs) + { + ImMaxNative(pOut, lhs, rhs); + } + + /// + /// To be documented. + /// + public static void ImMax(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) + { + fixed (Vector2* ppOut = &pOut) + { + ImMaxNative((Vector2*)ppOut, lhs, rhs); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImClampNative(Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[740])(pOut, v, mn, mx); + #else + ((delegate* unmanaged[Cdecl])funcTable[740])((nint)pOut, v, mn, mx); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ImClamp(Vector2 v, Vector2 mn, Vector2 mx) + { + Vector2 ret; + ImClampNative(&ret, v, mn, mx); + return ret; + } + + /// + /// To be documented. + /// + public static void ImClamp(Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx) + { + ImClampNative(pOut, v, mn, mx); + } + + /// + /// To be documented. + /// + public static void ImClamp(ref Vector2 pOut, Vector2 v, Vector2 mn, Vector2 mx) + { + fixed (Vector2* ppOut = &pOut) + { + ImClampNative((Vector2*)ppOut, v, mn, mx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImLerpNative(Vector2* pOut, Vector2 a, Vector2 b, float t) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[741])(pOut, a, b, t); + #else + ((delegate* unmanaged[Cdecl])funcTable[741])((nint)pOut, a, b, t); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ImLerp(Vector2 a, Vector2 b, float t) + { + Vector2 ret; + ImLerpNative(&ret, a, b, t); + return ret; + } + + /// + /// To be documented. + /// + public static void ImLerp(Vector2* pOut, Vector2 a, Vector2 b, float t) + { + ImLerpNative(pOut, a, b, t); + } + + /// + /// To be documented. + /// + public static void ImLerp(ref Vector2 pOut, Vector2 a, Vector2 b, float t) + { + fixed (Vector2* ppOut = &pOut) + { + ImLerpNative((Vector2*)ppOut, a, b, t); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImLerpNative(Vector2* pOut, Vector2 a, Vector2 b, Vector2 t) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[742])(pOut, a, b, t); + #else + ((delegate* unmanaged[Cdecl])funcTable[742])((nint)pOut, a, b, t); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ImLerp(Vector2 a, Vector2 b, Vector2 t) + { + Vector2 ret; + ImLerpNative(&ret, a, b, t); + return ret; + } + + /// + /// To be documented. + /// + public static void ImLerp(Vector2* pOut, Vector2 a, Vector2 b, Vector2 t) + { + ImLerpNative(pOut, a, b, t); + } + + /// + /// To be documented. + /// + public static void ImLerp(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 t) + { + fixed (Vector2* ppOut = &pOut) + { + ImLerpNative((Vector2*)ppOut, a, b, t); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImLerpNative(Vector4* pOut, Vector4 a, Vector4 b, float t) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[743])(pOut, a, b, t); + #else + ((delegate* unmanaged[Cdecl])funcTable[743])((nint)pOut, a, b, t); + #endif + } + + /// + /// To be documented. + /// + public static Vector4 ImLerp(Vector4 a, Vector4 b, float t) + { + Vector4 ret; + ImLerpNative(&ret, a, b, t); + return ret; + } + + /// + /// To be documented. + /// + public static void ImLerp(Vector4* pOut, Vector4 a, Vector4 b, float t) + { + ImLerpNative(pOut, a, b, t); + } + + /// + /// To be documented. + /// + public static void ImLerp(ref Vector4 pOut, Vector4 a, Vector4 b, float t) + { + fixed (Vector4* ppOut = &pOut) + { + ImLerpNative((Vector4*)ppOut, a, b, t); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImSaturateNative(float f) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[744])(f); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[744])(f); + #endif + } + + /// + /// To be documented. + /// + public static float ImSaturate(float f) + { + float ret = ImSaturateNative(f); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImLengthSqrNative(Vector2 lhs) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[745])(lhs); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[745])(lhs); + #endif + } + + /// + /// To be documented. + /// + public static float ImLengthSqr(Vector2 lhs) + { + float ret = ImLengthSqrNative(lhs); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImLengthSqrNative(Vector4 lhs) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[746])(lhs); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[746])(lhs); + #endif + } + + /// + /// To be documented. + /// + public static float ImLengthSqr(Vector4 lhs) + { + float ret = ImLengthSqrNative(lhs); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImInvLengthNative(Vector2 lhs, float failValue) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[747])(lhs, failValue); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[747])(lhs, failValue); + #endif + } + + /// + /// To be documented. + /// + public static float ImInvLength(Vector2 lhs, float failValue) + { + float ret = ImInvLengthNative(lhs, failValue); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImFloorNative(float f) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[748])(f); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[748])(f); + #endif + } + + /// + /// To be documented. + /// + public static float ImFloor(float f) + { + float ret = ImFloorNative(f); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImFloorSignedNative(float f) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[749])(f); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[749])(f); + #endif + } + + /// + /// To be documented. + /// + public static float ImFloorSigned(float f) + { + float ret = ImFloorSignedNative(f); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImFloorNative(Vector2* pOut, Vector2 v) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[750])(pOut, v); + #else + ((delegate* unmanaged[Cdecl])funcTable[750])((nint)pOut, v); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ImFloor(Vector2 v) + { + Vector2 ret; + ImFloorNative(&ret, v); + return ret; + } + + /// + /// To be documented. + /// + public static void ImFloor(Vector2* pOut, Vector2 v) + { + ImFloorNative(pOut, v); + } + + /// + /// To be documented. + /// + public static void ImFloor(ref Vector2 pOut, Vector2 v) + { + fixed (Vector2* ppOut = &pOut) + { + ImFloorNative((Vector2*)ppOut, v); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImFloorSignedNative(Vector2* pOut, Vector2 v) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[751])(pOut, v); + #else + ((delegate* unmanaged[Cdecl])funcTable[751])((nint)pOut, v); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ImFloorSigned(Vector2 v) + { + Vector2 ret; + ImFloorSignedNative(&ret, v); + return ret; + } + + /// + /// To be documented. + /// + public static void ImFloorSigned(Vector2* pOut, Vector2 v) + { + ImFloorSignedNative(pOut, v); + } + + /// + /// To be documented. + /// + public static void ImFloorSigned(ref Vector2 pOut, Vector2 v) + { + fixed (Vector2* ppOut = &pOut) + { + ImFloorSignedNative((Vector2*)ppOut, v); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImModPositiveNative(int a, int b) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[752])(a, b); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[752])(a, b); + #endif + } + + /// + /// To be documented. + /// + public static int ImModPositive(int a, int b) + { + int ret = ImModPositiveNative(a, b); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImDotNative(Vector2 a, Vector2 b) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[753])(a, b); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[753])(a, b); + #endif + } + + /// + /// To be documented. + /// + public static float ImDot(Vector2 a, Vector2 b) + { + float ret = ImDotNative(a, b); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImRotateNative(Vector2* pOut, Vector2 v, float cosA, float sinA) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[754])(pOut, v, cosA, sinA); + #else + ((delegate* unmanaged[Cdecl])funcTable[754])((nint)pOut, v, cosA, sinA); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ImRotate(Vector2 v, float cosA, float sinA) + { + Vector2 ret; + ImRotateNative(&ret, v, cosA, sinA); + return ret; + } + + /// + /// To be documented. + /// + public static void ImRotate(Vector2* pOut, Vector2 v, float cosA, float sinA) + { + ImRotateNative(pOut, v, cosA, sinA); + } + + /// + /// To be documented. + /// + public static void ImRotate(ref Vector2 pOut, Vector2 v, float cosA, float sinA) + { + fixed (Vector2* ppOut = &pOut) + { + ImRotateNative((Vector2*)ppOut, v, cosA, sinA); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImLinearSweepNative(float current, float target, float speed) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[755])(current, target, speed); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[755])(current, target, speed); + #endif + } + + /// + /// To be documented. + /// + public static float ImLinearSweep(float current, float target, float speed) + { + float ret = ImLinearSweepNative(current, target, speed); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImMulNative(Vector2* pOut, Vector2 lhs, Vector2 rhs) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[756])(pOut, lhs, rhs); + #else + ((delegate* unmanaged[Cdecl])funcTable[756])((nint)pOut, lhs, rhs); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ImMul(Vector2 lhs, Vector2 rhs) + { + Vector2 ret; + ImMulNative(&ret, lhs, rhs); + return ret; + } + + /// + /// To be documented. + /// + public static void ImMul(Vector2* pOut, Vector2 lhs, Vector2 rhs) + { + ImMulNative(pOut, lhs, rhs); + } + + /// + /// To be documented. + /// + public static void ImMul(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) + { + fixed (Vector2* ppOut = &pOut) + { + ImMulNative((Vector2*)ppOut, lhs, rhs); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImIsFloatAboveGuaranteedIntegerPrecisionNative(float f) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[757])(f); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[757])(f); + #endif + } + + /// + /// To be documented. + /// + public static bool ImIsFloatAboveGuaranteedIntegerPrecision(float f) + { + byte ret = ImIsFloatAboveGuaranteedIntegerPrecisionNative(f); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImBezierCubicCalcNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[758])(pOut, p1, p2, p3, p4, t); + #else + ((delegate* unmanaged[Cdecl])funcTable[758])((nint)pOut, p1, p2, p3, p4, t); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ImBezierCubicCalc(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + { + Vector2 ret; + ImBezierCubicCalcNative(&ret, p1, p2, p3, p4, t); + return ret; + } + + /// + /// To be documented. + /// + public static void ImBezierCubicCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + { + ImBezierCubicCalcNative(pOut, p1, p2, p3, p4, t); + } + + /// + /// To be documented. + /// + public static void ImBezierCubicCalc(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + { + fixed (Vector2* ppOut = &pOut) + { + ImBezierCubicCalcNative((Vector2*)ppOut, p1, p2, p3, p4, t); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImBezierCubicClosestPointNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[759])(pOut, p1, p2, p3, p4, p, numSegments); + #else + ((delegate* unmanaged[Cdecl])funcTable[759])((nint)pOut, p1, p2, p3, p4, p, numSegments); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ImBezierCubicClosestPoint(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) + { + Vector2 ret; + ImBezierCubicClosestPointNative(&ret, p1, p2, p3, p4, p, numSegments); + return ret; + } + + /// + /// To be documented. + /// + public static void ImBezierCubicClosestPoint(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) + { + ImBezierCubicClosestPointNative(pOut, p1, p2, p3, p4, p, numSegments); + } + + /// + /// To be documented. + /// + public static void ImBezierCubicClosestPoint(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) + { + fixed (Vector2* ppOut = &pOut) + { + ImBezierCubicClosestPointNative((Vector2*)ppOut, p1, p2, p3, p4, p, numSegments); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImBezierCubicClosestPointCasteljauNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[760])(pOut, p1, p2, p3, p4, p, tessTol); + #else + ((delegate* unmanaged[Cdecl])funcTable[760])((nint)pOut, p1, p2, p3, p4, p, tessTol); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ImBezierCubicClosestPointCasteljau(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) + { + Vector2 ret; + ImBezierCubicClosestPointCasteljauNative(&ret, p1, p2, p3, p4, p, tessTol); + return ret; + } + + /// + /// To be documented. + /// + public static void ImBezierCubicClosestPointCasteljau(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) + { + ImBezierCubicClosestPointCasteljauNative(pOut, p1, p2, p3, p4, p, tessTol); + } + + /// + /// To be documented. + /// + public static void ImBezierCubicClosestPointCasteljau(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) + { + fixed (Vector2* ppOut = &pOut) + { + ImBezierCubicClosestPointCasteljauNative((Vector2*)ppOut, p1, p2, p3, p4, p, tessTol); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImBezierQuadraticCalcNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[761])(pOut, p1, p2, p3, t); + #else + ((delegate* unmanaged[Cdecl])funcTable[761])((nint)pOut, p1, p2, p3, t); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ImBezierQuadraticCalc(Vector2 p1, Vector2 p2, Vector2 p3, float t) + { + Vector2 ret; + ImBezierQuadraticCalcNative(&ret, p1, p2, p3, t); + return ret; + } + + /// + /// To be documented. + /// + public static void ImBezierQuadraticCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) + { + ImBezierQuadraticCalcNative(pOut, p1, p2, p3, t); + } + + /// + /// To be documented. + /// + public static void ImBezierQuadraticCalc(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) + { + fixed (Vector2* ppOut = &pOut) + { + ImBezierQuadraticCalcNative((Vector2*)ppOut, p1, p2, p3, t); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImLineClosestPointNative(Vector2* pOut, Vector2 a, Vector2 b, Vector2 p) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[762])(pOut, a, b, p); + #else + ((delegate* unmanaged[Cdecl])funcTable[762])((nint)pOut, a, b, p); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ImLineClosestPoint(Vector2 a, Vector2 b, Vector2 p) + { + Vector2 ret; + ImLineClosestPointNative(&ret, a, b, p); + return ret; + } + + /// + /// To be documented. + /// + public static void ImLineClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 p) + { + ImLineClosestPointNative(pOut, a, b, p); + } + + /// + /// To be documented. + /// + public static void ImLineClosestPoint(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 p) + { + fixed (Vector2* ppOut = &pOut) + { + ImLineClosestPointNative((Vector2*)ppOut, a, b, p); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImTriangleContainsPointNative(Vector2 a, Vector2 b, Vector2 c, Vector2 p) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[763])(a, b, c, p); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[763])(a, b, c, p); + #endif + } + + /// + /// To be documented. + /// + public static bool ImTriangleContainsPoint(Vector2 a, Vector2 b, Vector2 c, Vector2 p) + { + byte ret = ImTriangleContainsPointNative(a, b, c, p); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImTriangleClosestPointNative(Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[764])(pOut, a, b, c, p); + #else + ((delegate* unmanaged[Cdecl])funcTable[764])((nint)pOut, a, b, c, p); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ImTriangleClosestPoint(Vector2 a, Vector2 b, Vector2 c, Vector2 p) + { + Vector2 ret; + ImTriangleClosestPointNative(&ret, a, b, c, p); + return ret; + } + + /// + /// To be documented. + /// + public static void ImTriangleClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) + { + ImTriangleClosestPointNative(pOut, a, b, c, p); + } + + /// + /// To be documented. + /// + public static void ImTriangleClosestPoint(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) + { + fixed (Vector2* ppOut = &pOut) + { + ImTriangleClosestPointNative((Vector2*)ppOut, a, b, c, p); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImTriangleBarycentricCoordsNative(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, float* outW) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[765])(a, b, c, p, outU, outV, outW); + #else + ((delegate* unmanaged[Cdecl])funcTable[765])(a, b, c, p, (nint)outU, (nint)outV, (nint)outW); + #endif + } + + /// + /// To be documented. + /// + public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, float* outW) + { + ImTriangleBarycentricCoordsNative(a, b, c, p, outU, outV, outW); + } + + /// + /// To be documented. + /// + public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, float* outV, float* outW) + { + fixed (float* poutU = &outU) + { + ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, outV, outW); + } + } + + /// + /// To be documented. + /// + public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, ref float outV, float* outW) + { + fixed (float* poutV = &outV) + { + ImTriangleBarycentricCoordsNative(a, b, c, p, outU, (float*)poutV, outW); + } + } + + /// + /// To be documented. + /// + public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, ref float outV, float* outW) + { + fixed (float* poutU = &outU) + { + fixed (float* poutV = &outV) + { + ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, (float*)poutV, outW); + } + } + } + + /// + /// To be documented. + /// + public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, ref float outW) + { + fixed (float* poutW = &outW) + { + ImTriangleBarycentricCoordsNative(a, b, c, p, outU, outV, (float*)poutW); + } + } + + /// + /// To be documented. + /// + public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, float* outV, ref float outW) + { + fixed (float* poutU = &outU) + { + fixed (float* poutW = &outW) + { + ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, outV, (float*)poutW); + } + } + } + + /// + /// To be documented. + /// + public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, ref float outV, ref float outW) + { + fixed (float* poutV = &outV) + { + fixed (float* poutW = &outW) + { + ImTriangleBarycentricCoordsNative(a, b, c, p, outU, (float*)poutV, (float*)poutW); + } + } + } + + /// + /// To be documented. + /// + public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, ref float outV, ref float outW) + { + fixed (float* poutU = &outU) + { + fixed (float* poutV = &outV) + { + fixed (float* poutW = &outW) + { + ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, (float*)poutV, (float*)poutW); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImTriangleAreaNative(Vector2 a, Vector2 b, Vector2 c) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[766])(a, b, c); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[766])(a, b, c); + #endif + } + + /// + /// To be documented. + /// + public static float ImTriangleArea(Vector2 a, Vector2 b, Vector2 c) + { + float ret = ImTriangleAreaNative(a, b, c); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiDir ImGetDirQuadrantFromDeltaNative(float dx, float dy) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[767])(dx, dy); + #else + return (ImGuiDir)((delegate* unmanaged[Cdecl])funcTable[767])(dx, dy); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy) + { + ImGuiDir ret = ImGetDirQuadrantFromDeltaNative(dx, dy); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImVec1* ImVec1Native() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[768])(); + #else + return (ImVec1*)((delegate* unmanaged[Cdecl])funcTable[768])(); + #endif + } + + /// + /// To be documented. + /// + public static ImVec1Ptr ImVec1() + { + ImVec1Ptr ret = ImVec1Native(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImVec1* ImVec1Native(float x) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[769])(x); + #else + return (ImVec1*)((delegate* unmanaged[Cdecl])funcTable[769])(x); + #endif + } + + /// + /// To be documented. + /// + public static ImVec1Ptr ImVec1(float x) + { + ImVec1Ptr ret = ImVec1Native(x); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImVec2Ih* ImVec2ihNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[770])(); + #else + return (ImVec2Ih*)((delegate* unmanaged[Cdecl])funcTable[770])(); + #endif + } + + /// + /// To be documented. + /// + public static ImVec2IhPtr ImVec2ih() + { + ImVec2IhPtr ret = ImVec2ihNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImVec2Ih* ImVec2ihNative(short x, short y) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[771])(x, y); + #else + return (ImVec2Ih*)((delegate* unmanaged[Cdecl])funcTable[771])(x, y); + #endif + } + + /// + /// To be documented. + /// + public static ImVec2IhPtr ImVec2ih(short x, short y) + { + ImVec2IhPtr ret = ImVec2ihNative(x, y); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImVec2Ih* ImVec2ihNative(Vector2 rhs) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[772])(rhs); + #else + return (ImVec2Ih*)((delegate* unmanaged[Cdecl])funcTable[772])(rhs); + #endif + } + + /// + /// To be documented. + /// + public static ImVec2IhPtr ImVec2ih(Vector2 rhs) + { + ImVec2IhPtr ret = ImVec2ihNative(rhs); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImRect* ImRectNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[773])(); + #else + return (ImRect*)((delegate* unmanaged[Cdecl])funcTable[773])(); + #endif + } + + /// + /// To be documented. + /// + public static ImRectPtr ImRect() + { + ImRectPtr ret = ImRectNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImRect* ImRectNative(Vector2 min, Vector2 max) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[774])(min, max); + #else + return (ImRect*)((delegate* unmanaged[Cdecl])funcTable[774])(min, max); + #endif + } + + /// + /// To be documented. + /// + public static ImRectPtr ImRect(Vector2 min, Vector2 max) + { + ImRectPtr ret = ImRectNative(min, max); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImRect* ImRectNative(Vector4 v) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[775])(v); + #else + return (ImRect*)((delegate* unmanaged[Cdecl])funcTable[775])(v); + #endif + } + + /// + /// To be documented. + /// + public static ImRectPtr ImRect(Vector4 v) + { + ImRectPtr ret = ImRectNative(v); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImRect* ImRectNative(float x1, float y1, float x2, float y2) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[776])(x1, y1, x2, y2); + #else + return (ImRect*)((delegate* unmanaged[Cdecl])funcTable[776])(x1, y1, x2, y2); + #endif + } + + /// + /// To be documented. + /// + public static ImRectPtr ImRect(float x1, float y1, float x2, float y2) + { + ImRectPtr ret = ImRectNative(x1, y1, x2, y2); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetCenterNative(Vector2* pOut, ImRect* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[777])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[777])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetCenter(ImRectPtr self) + { + Vector2 ret; + GetCenterNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void GetCenter(Vector2* pOut, ImRectPtr self) + { + GetCenterNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void GetCenter(ref Vector2 pOut, ImRectPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + GetCenterNative((Vector2*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static Vector2 GetCenter(ref ImRect self) + { + fixed (ImRect* pself = &self) + { + Vector2 ret; + GetCenterNative(&ret, (ImRect*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void GetCenter(Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + GetCenterNative(pOut, (ImRect*)pself); + } + } + + /// + /// To be documented. + /// + public static void GetCenter(ref Vector2 pOut, ref ImRect self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImRect* pself = &self) + { + GetCenterNative((Vector2*)ppOut, (ImRect*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetSizeNative(Vector2* pOut, ImRect* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[778])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[778])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetSize(ImRectPtr self) + { + Vector2 ret; + GetSizeNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void GetSize(Vector2* pOut, ImRectPtr self) + { + GetSizeNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void GetSize(ref Vector2 pOut, ImRectPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + GetSizeNative((Vector2*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static Vector2 GetSize(ref ImRect self) + { + fixed (ImRect* pself = &self) + { + Vector2 ret; + GetSizeNative(&ret, (ImRect*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void GetSize(Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + GetSizeNative(pOut, (ImRect*)pself); + } + } + + /// + /// To be documented. + /// + public static void GetSize(ref Vector2 pOut, ref ImRect self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImRect* pself = &self) + { + GetSizeNative((Vector2*)ppOut, (ImRect*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetWidthNative(ImRect* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[779])(self); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[779])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static float GetWidth(ImRectPtr self) + { + float ret = GetWidthNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static float GetWidth(ref ImRect self) + { + fixed (ImRect* pself = &self) + { + float ret = GetWidthNative((ImRect*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetHeightNative(ImRect* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[780])(self); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[780])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static float GetHeight(ImRectPtr self) + { + float ret = GetHeightNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static float GetHeight(ref ImRect self) + { + fixed (ImRect* pself = &self) + { + float ret = GetHeightNative((ImRect*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetAreaNative(ImRect* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[781])(self); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[781])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static float GetArea(ImRectPtr self) + { + float ret = GetAreaNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static float GetArea(ref ImRect self) + { + fixed (ImRect* pself = &self) + { + float ret = GetAreaNative((ImRect*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetTLNative(Vector2* pOut, ImRect* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[782])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[782])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetTL(ImRectPtr self) + { + Vector2 ret; + GetTLNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void GetTL(Vector2* pOut, ImRectPtr self) + { + GetTLNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void GetTL(ref Vector2 pOut, ImRectPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + GetTLNative((Vector2*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static Vector2 GetTL(ref ImRect self) + { + fixed (ImRect* pself = &self) + { + Vector2 ret; + GetTLNative(&ret, (ImRect*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void GetTL(Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + GetTLNative(pOut, (ImRect*)pself); + } + } + + /// + /// To be documented. + /// + public static void GetTL(ref Vector2 pOut, ref ImRect self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImRect* pself = &self) + { + GetTLNative((Vector2*)ppOut, (ImRect*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetTRNative(Vector2* pOut, ImRect* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[783])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[783])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetTR(ImRectPtr self) + { + Vector2 ret; + GetTRNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void GetTR(Vector2* pOut, ImRectPtr self) + { + GetTRNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void GetTR(ref Vector2 pOut, ImRectPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + GetTRNative((Vector2*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static Vector2 GetTR(ref ImRect self) + { + fixed (ImRect* pself = &self) + { + Vector2 ret; + GetTRNative(&ret, (ImRect*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void GetTR(Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + GetTRNative(pOut, (ImRect*)pself); + } + } + + /// + /// To be documented. + /// + public static void GetTR(ref Vector2 pOut, ref ImRect self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImRect* pself = &self) + { + GetTRNative((Vector2*)ppOut, (ImRect*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetBLNative(Vector2* pOut, ImRect* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[784])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[784])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetBL(ImRectPtr self) + { + Vector2 ret; + GetBLNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void GetBL(Vector2* pOut, ImRectPtr self) + { + GetBLNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void GetBL(ref Vector2 pOut, ImRectPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + GetBLNative((Vector2*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static Vector2 GetBL(ref ImRect self) + { + fixed (ImRect* pself = &self) + { + Vector2 ret; + GetBLNative(&ret, (ImRect*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void GetBL(Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + GetBLNative(pOut, (ImRect*)pself); + } + } + + /// + /// To be documented. + /// + public static void GetBL(ref Vector2 pOut, ref ImRect self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImRect* pself = &self) + { + GetBLNative((Vector2*)ppOut, (ImRect*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetBRNative(Vector2* pOut, ImRect* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[785])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[785])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetBR(ImRectPtr self) + { + Vector2 ret; + GetBRNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void GetBR(Vector2* pOut, ImRectPtr self) + { + GetBRNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void GetBR(ref Vector2 pOut, ImRectPtr self) + { + fixed (Vector2* ppOut = &pOut) + { + GetBRNative((Vector2*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static Vector2 GetBR(ref ImRect self) + { + fixed (ImRect* pself = &self) + { + Vector2 ret; + GetBRNative(&ret, (ImRect*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void GetBR(Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + GetBRNative(pOut, (ImRect*)pself); + } + } + + /// + /// To be documented. + /// + public static void GetBR(ref Vector2 pOut, ref ImRect self) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImRect* pself = &self) + { + GetBRNative((Vector2*)ppOut, (ImRect*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ContainsNative(ImRect* self, Vector2 p) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[786])(self, p); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[786])((nint)self, p); + #endif + } + + /// + /// To be documented. + /// + public static bool Contains(ImRectPtr self, Vector2 p) + { + byte ret = ContainsNative(self, p); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Contains(ref ImRect self, Vector2 p) + { + fixed (ImRect* pself = &self) + { + byte ret = ContainsNative((ImRect*)pself, p); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ContainsNative(ImRect* self, ImRect r) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[787])(self, r); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[787])((nint)self, r); + #endif + } + + /// + /// To be documented. + /// + public static bool Contains(ImRectPtr self, ImRect r) + { + byte ret = ContainsNative(self, r); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Contains(ref ImRect self, ImRect r) + { + fixed (ImRect* pself = &self) + { + byte ret = ContainsNative((ImRect*)pself, r); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte OverlapsNative(ImRect* self, ImRect r) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[788])(self, r); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[788])((nint)self, r); + #endif + } + + /// + /// To be documented. + /// + public static bool Overlaps(ImRectPtr self, ImRect r) + { + byte ret = OverlapsNative(self, r); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool Overlaps(ref ImRect self, ImRect r) + { + fixed (ImRect* pself = &self) + { + byte ret = OverlapsNative((ImRect*)pself, r); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddNative(ImRect* self, Vector2 p) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[789])(self, p); + #else + ((delegate* unmanaged[Cdecl])funcTable[789])((nint)self, p); + #endif + } + + /// + /// To be documented. + /// + public static void Add(ImRectPtr self, Vector2 p) + { + AddNative(self, p); + } + + /// + /// To be documented. + /// + public static void Add(ref ImRect self, Vector2 p) + { + fixed (ImRect* pself = &self) + { + AddNative((ImRect*)pself, p); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddNative(ImRect* self, ImRect r) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[790])(self, r); + #else + ((delegate* unmanaged[Cdecl])funcTable[790])((nint)self, r); + #endif + } + + /// + /// To be documented. + /// + public static void Add(ImRectPtr self, ImRect r) + { + AddNative(self, r); + } + + /// + /// To be documented. + /// + public static void Add(ref ImRect self, ImRect r) + { + fixed (ImRect* pself = &self) + { + AddNative((ImRect*)pself, r); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ExpandNative(ImRect* self, float amount) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[791])(self, amount); + #else + ((delegate* unmanaged[Cdecl])funcTable[791])((nint)self, amount); + #endif + } + + /// + /// To be documented. + /// + public static void Expand(ImRectPtr self, float amount) + { + ExpandNative(self, amount); + } + + /// + /// To be documented. + /// + public static void Expand(ref ImRect self, float amount) + { + fixed (ImRect* pself = &self) + { + ExpandNative((ImRect*)pself, amount); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ExpandNative(ImRect* self, Vector2 amount) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[792])(self, amount); + #else + ((delegate* unmanaged[Cdecl])funcTable[792])((nint)self, amount); + #endif + } + + /// + /// To be documented. + /// + public static void Expand(ImRectPtr self, Vector2 amount) + { + ExpandNative(self, amount); + } + + /// + /// To be documented. + /// + public static void Expand(ref ImRect self, Vector2 amount) + { + fixed (ImRect* pself = &self) + { + ExpandNative((ImRect*)pself, amount); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TranslateNative(ImRect* self, Vector2 d) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[793])(self, d); + #else + ((delegate* unmanaged[Cdecl])funcTable[793])((nint)self, d); + #endif + } + + /// + /// To be documented. + /// + public static void Translate(ImRectPtr self, Vector2 d) + { + TranslateNative(self, d); + } + + /// + /// To be documented. + /// + public static void Translate(ref ImRect self, Vector2 d) + { + fixed (ImRect* pself = &self) + { + TranslateNative((ImRect*)pself, d); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TranslateXNative(ImRect* self, float dx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[794])(self, dx); + #else + ((delegate* unmanaged[Cdecl])funcTable[794])((nint)self, dx); + #endif + } + + /// + /// To be documented. + /// + public static void TranslateX(ImRectPtr self, float dx) + { + TranslateXNative(self, dx); + } + + /// + /// To be documented. + /// + public static void TranslateX(ref ImRect self, float dx) + { + fixed (ImRect* pself = &self) + { + TranslateXNative((ImRect*)pself, dx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TranslateYNative(ImRect* self, float dy) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[795])(self, dy); + #else + ((delegate* unmanaged[Cdecl])funcTable[795])((nint)self, dy); + #endif + } + + /// + /// To be documented. + /// + public static void TranslateY(ImRectPtr self, float dy) + { + TranslateYNative(self, dy); + } + + /// + /// To be documented. + /// + public static void TranslateY(ref ImRect self, float dy) + { + fixed (ImRect* pself = &self) + { + TranslateYNative((ImRect*)pself, dy); + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.006.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.006.cs index c20c84811..8e4414279 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.006.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.006.cs @@ -18,3274 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGuiP { - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(string filename, ReadOnlySpan mode, int paddingBytes) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (ulong*)(default), paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(byte* filename, byte* mode, ref nuint outFileSize, int paddingBytes) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(filename, mode, (ulong*)poutFileSize, paddingBytes); - return ret; - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(byte* filename, byte* mode, ref nuint outFileSize) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(filename, mode, (ulong*)poutFileSize, (int)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(ref byte filename, byte* mode, ref nuint outFileSize, int paddingBytes) - { - fixed (byte* pfilename = &filename) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (ulong*)poutFileSize, paddingBytes); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(ref byte filename, byte* mode, ref nuint outFileSize) - { - fixed (byte* pfilename = &filename) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (ulong*)poutFileSize, (int)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(ReadOnlySpan filename, byte* mode, ref nuint outFileSize, int paddingBytes) - { - fixed (byte* pfilename = filename) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (ulong*)poutFileSize, paddingBytes); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(ReadOnlySpan filename, byte* mode, ref nuint outFileSize) - { - fixed (byte* pfilename = filename) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (ulong*)poutFileSize, (int)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(string filename, byte* mode, ref nuint outFileSize, int paddingBytes) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(pStr0, mode, (ulong*)poutFileSize, paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(string filename, byte* mode, ref nuint outFileSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(pStr0, mode, (ulong*)poutFileSize, (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(byte* filename, ref byte mode, ref nuint outFileSize, int paddingBytes) - { - fixed (byte* pmode = &mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (ulong*)poutFileSize, paddingBytes); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(byte* filename, ref byte mode, ref nuint outFileSize) - { - fixed (byte* pmode = &mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (ulong*)poutFileSize, (int)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan mode, ref nuint outFileSize, int paddingBytes) - { - fixed (byte* pmode = mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (ulong*)poutFileSize, paddingBytes); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan mode, ref nuint outFileSize) - { - fixed (byte* pmode = mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (ulong*)poutFileSize, (int)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(byte* filename, string mode, ref nuint outFileSize, int paddingBytes) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(filename, pStr0, (ulong*)poutFileSize, paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(byte* filename, string mode, ref nuint outFileSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(filename, pStr0, (ulong*)poutFileSize, (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(ref byte filename, ref byte mode, ref nuint outFileSize, int paddingBytes) - { - fixed (byte* pfilename = &filename) - { - fixed (byte* pmode = &mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (ulong*)poutFileSize, paddingBytes); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(ref byte filename, ref byte mode, ref nuint outFileSize) - { - fixed (byte* pfilename = &filename) - { - fixed (byte* pmode = &mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (ulong*)poutFileSize, (int)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(ReadOnlySpan filename, ReadOnlySpan mode, ref nuint outFileSize, int paddingBytes) - { - fixed (byte* pfilename = filename) - { - fixed (byte* pmode = mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (ulong*)poutFileSize, paddingBytes); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(ReadOnlySpan filename, ReadOnlySpan mode, ref nuint outFileSize) - { - fixed (byte* pfilename = filename) - { - fixed (byte* pmode = mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (ulong*)poutFileSize, (int)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(string filename, string mode, ref nuint outFileSize, int paddingBytes) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (mode != null) - { - pStrSize1 = Utils.GetByteCountUTF8(mode); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, (ulong*)poutFileSize, paddingBytes); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(string filename, string mode, ref nuint outFileSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (mode != null) - { - pStrSize1 = Utils.GetByteCountUTF8(mode); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, (ulong*)poutFileSize, (int)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan mode, ref nuint outFileSize, int paddingBytes) - { - fixed (byte* pfilename = &filename) - { - fixed (byte* pmode = mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (ulong*)poutFileSize, paddingBytes); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan mode, ref nuint outFileSize) - { - fixed (byte* pfilename = &filename) - { - fixed (byte* pmode = mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (ulong*)poutFileSize, (int)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(ref byte filename, string mode, ref nuint outFileSize, int paddingBytes) - { - fixed (byte* pfilename = &filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (ulong*)poutFileSize, paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(ref byte filename, string mode, ref nuint outFileSize) - { - fixed (byte* pfilename = &filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (ulong*)poutFileSize, (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(ReadOnlySpan filename, ref byte mode, ref nuint outFileSize, int paddingBytes) - { - fixed (byte* pfilename = filename) - { - fixed (byte* pmode = &mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (ulong*)poutFileSize, paddingBytes); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(ReadOnlySpan filename, ref byte mode, ref nuint outFileSize) - { - fixed (byte* pfilename = filename) - { - fixed (byte* pmode = &mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (ulong*)poutFileSize, (int)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(ReadOnlySpan filename, string mode, ref nuint outFileSize, int paddingBytes) - { - fixed (byte* pfilename = filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (ulong*)poutFileSize, paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(ReadOnlySpan filename, string mode, ref nuint outFileSize) - { - fixed (byte* pfilename = filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (ulong*)poutFileSize, (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(string filename, ref byte mode, ref nuint outFileSize, int paddingBytes) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pmode = &mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (ulong*)poutFileSize, paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(string filename, ref byte mode, ref nuint outFileSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pmode = &mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (ulong*)poutFileSize, (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(string filename, ReadOnlySpan mode, ref nuint outFileSize, int paddingBytes) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pmode = mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (ulong*)poutFileSize, paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static void* ImFileLoadToMemory(string filename, ReadOnlySpan mode, ref nuint outFileSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pmode = mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (ulong*)poutFileSize, (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImPowNative(float x, float y) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[731])(x, y); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[731])(x, y); - #endif - } - - /// - /// To be documented. - /// - public static float ImPow(float x, float y) - { - float ret = ImPowNative(x, y); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImPowNative(double x, double y) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[732])(x, y); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[732])(x, y); - #endif - } - - /// - /// To be documented. - /// - public static double ImPow(double x, double y) - { - double ret = ImPowNative(x, y); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImLogNative(float x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[733])(x); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[733])(x); - #endif - } - - /// - /// To be documented. - /// - public static float ImLog(float x) - { - float ret = ImLogNative(x); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImLogNative(double x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[734])(x); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[734])(x); - #endif - } - - /// - /// To be documented. - /// - public static double ImLog(double x) - { - double ret = ImLogNative(x); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImAbsNative(int x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[735])(x); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[735])(x); - #endif - } - - /// - /// To be documented. - /// - public static int ImAbs(int x) - { - int ret = ImAbsNative(x); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImAbsNative(float x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[736])(x); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[736])(x); - #endif - } - - /// - /// To be documented. - /// - public static float ImAbs(float x) - { - float ret = ImAbsNative(x); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImAbsNative(double x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[737])(x); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[737])(x); - #endif - } - - /// - /// To be documented. - /// - public static double ImAbs(double x) - { - double ret = ImAbsNative(x); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImSignNative(float x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[738])(x); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[738])(x); - #endif - } - - /// - /// To be documented. - /// - public static float ImSign(float x) - { - float ret = ImSignNative(x); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImSignNative(double x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[739])(x); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[739])(x); - #endif - } - - /// - /// To be documented. - /// - public static double ImSign(double x) - { - double ret = ImSignNative(x); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImRsqrtNative(float x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[740])(x); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[740])(x); - #endif - } - - /// - /// To be documented. - /// - public static float ImRsqrt(float x) - { - float ret = ImRsqrtNative(x); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImRsqrtNative(double x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[741])(x); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[741])(x); - #endif - } - - /// - /// To be documented. - /// - public static double ImRsqrt(double x) - { - double ret = ImRsqrtNative(x); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinNative(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[742])(pOut, lhs, rhs); - #else - ((delegate* unmanaged[Cdecl])funcTable[742])((nint)pOut, lhs, rhs); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ImMin(Vector2 lhs, Vector2 rhs) - { - Vector2 ret; - ImMinNative(&ret, lhs, rhs); - return ret; - } - - /// - /// To be documented. - /// - public static void ImMin(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - ImMinNative(pOut, lhs, rhs); - } - - /// - /// To be documented. - /// - public static void ImMin(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) - { - fixed (Vector2* ppOut = &pOut) - { - ImMinNative((Vector2*)ppOut, lhs, rhs); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMaxNative(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[743])(pOut, lhs, rhs); - #else - ((delegate* unmanaged[Cdecl])funcTable[743])((nint)pOut, lhs, rhs); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ImMax(Vector2 lhs, Vector2 rhs) - { - Vector2 ret; - ImMaxNative(&ret, lhs, rhs); - return ret; - } - - /// - /// To be documented. - /// - public static void ImMax(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - ImMaxNative(pOut, lhs, rhs); - } - - /// - /// To be documented. - /// - public static void ImMax(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) - { - fixed (Vector2* ppOut = &pOut) - { - ImMaxNative((Vector2*)ppOut, lhs, rhs); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImClampNative(Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[744])(pOut, v, mn, mx); - #else - ((delegate* unmanaged[Cdecl])funcTable[744])((nint)pOut, v, mn, mx); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ImClamp(Vector2 v, Vector2 mn, Vector2 mx) - { - Vector2 ret; - ImClampNative(&ret, v, mn, mx); - return ret; - } - - /// - /// To be documented. - /// - public static void ImClamp(Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx) - { - ImClampNative(pOut, v, mn, mx); - } - - /// - /// To be documented. - /// - public static void ImClamp(ref Vector2 pOut, Vector2 v, Vector2 mn, Vector2 mx) - { - fixed (Vector2* ppOut = &pOut) - { - ImClampNative((Vector2*)ppOut, v, mn, mx); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImLerpNative(Vector2* pOut, Vector2 a, Vector2 b, float t) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[745])(pOut, a, b, t); - #else - ((delegate* unmanaged[Cdecl])funcTable[745])((nint)pOut, a, b, t); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ImLerp(Vector2 a, Vector2 b, float t) - { - Vector2 ret; - ImLerpNative(&ret, a, b, t); - return ret; - } - - /// - /// To be documented. - /// - public static void ImLerp(Vector2* pOut, Vector2 a, Vector2 b, float t) - { - ImLerpNative(pOut, a, b, t); - } - - /// - /// To be documented. - /// - public static void ImLerp(ref Vector2 pOut, Vector2 a, Vector2 b, float t) - { - fixed (Vector2* ppOut = &pOut) - { - ImLerpNative((Vector2*)ppOut, a, b, t); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImLerpNative(Vector2* pOut, Vector2 a, Vector2 b, Vector2 t) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[746])(pOut, a, b, t); - #else - ((delegate* unmanaged[Cdecl])funcTable[746])((nint)pOut, a, b, t); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ImLerp(Vector2 a, Vector2 b, Vector2 t) - { - Vector2 ret; - ImLerpNative(&ret, a, b, t); - return ret; - } - - /// - /// To be documented. - /// - public static void ImLerp(Vector2* pOut, Vector2 a, Vector2 b, Vector2 t) - { - ImLerpNative(pOut, a, b, t); - } - - /// - /// To be documented. - /// - public static void ImLerp(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 t) - { - fixed (Vector2* ppOut = &pOut) - { - ImLerpNative((Vector2*)ppOut, a, b, t); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImLerpNative(Vector4* pOut, Vector4 a, Vector4 b, float t) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[747])(pOut, a, b, t); - #else - ((delegate* unmanaged[Cdecl])funcTable[747])((nint)pOut, a, b, t); - #endif - } - - /// - /// To be documented. - /// - public static Vector4 ImLerp(Vector4 a, Vector4 b, float t) - { - Vector4 ret; - ImLerpNative(&ret, a, b, t); - return ret; - } - - /// - /// To be documented. - /// - public static void ImLerp(Vector4* pOut, Vector4 a, Vector4 b, float t) - { - ImLerpNative(pOut, a, b, t); - } - - /// - /// To be documented. - /// - public static void ImLerp(ref Vector4 pOut, Vector4 a, Vector4 b, float t) - { - fixed (Vector4* ppOut = &pOut) - { - ImLerpNative((Vector4*)ppOut, a, b, t); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImSaturateNative(float f) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[748])(f); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[748])(f); - #endif - } - - /// - /// To be documented. - /// - public static float ImSaturate(float f) - { - float ret = ImSaturateNative(f); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImLengthSqrNative(Vector2 lhs) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[749])(lhs); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[749])(lhs); - #endif - } - - /// - /// To be documented. - /// - public static float ImLengthSqr(Vector2 lhs) - { - float ret = ImLengthSqrNative(lhs); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImLengthSqrNative(Vector4 lhs) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[750])(lhs); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[750])(lhs); - #endif - } - - /// - /// To be documented. - /// - public static float ImLengthSqr(Vector4 lhs) - { - float ret = ImLengthSqrNative(lhs); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImInvLengthNative(Vector2 lhs, float failValue) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[751])(lhs, failValue); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[751])(lhs, failValue); - #endif - } - - /// - /// To be documented. - /// - public static float ImInvLength(Vector2 lhs, float failValue) - { - float ret = ImInvLengthNative(lhs, failValue); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImFloorNative(float f) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[752])(f); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[752])(f); - #endif - } - - /// - /// To be documented. - /// - public static float ImFloor(float f) - { - float ret = ImFloorNative(f); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImFloorSignedNative(float f) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[753])(f); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[753])(f); - #endif - } - - /// - /// To be documented. - /// - public static float ImFloorSigned(float f) - { - float ret = ImFloorSignedNative(f); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFloorNative(Vector2* pOut, Vector2 v) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[754])(pOut, v); - #else - ((delegate* unmanaged[Cdecl])funcTable[754])((nint)pOut, v); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ImFloor(Vector2 v) - { - Vector2 ret; - ImFloorNative(&ret, v); - return ret; - } - - /// - /// To be documented. - /// - public static void ImFloor(Vector2* pOut, Vector2 v) - { - ImFloorNative(pOut, v); - } - - /// - /// To be documented. - /// - public static void ImFloor(ref Vector2 pOut, Vector2 v) - { - fixed (Vector2* ppOut = &pOut) - { - ImFloorNative((Vector2*)ppOut, v); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFloorSignedNative(Vector2* pOut, Vector2 v) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[755])(pOut, v); - #else - ((delegate* unmanaged[Cdecl])funcTable[755])((nint)pOut, v); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ImFloorSigned(Vector2 v) - { - Vector2 ret; - ImFloorSignedNative(&ret, v); - return ret; - } - - /// - /// To be documented. - /// - public static void ImFloorSigned(Vector2* pOut, Vector2 v) - { - ImFloorSignedNative(pOut, v); - } - - /// - /// To be documented. - /// - public static void ImFloorSigned(ref Vector2 pOut, Vector2 v) - { - fixed (Vector2* ppOut = &pOut) - { - ImFloorSignedNative((Vector2*)ppOut, v); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImModPositiveNative(int a, int b) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[756])(a, b); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[756])(a, b); - #endif - } - - /// - /// To be documented. - /// - public static int ImModPositive(int a, int b) - { - int ret = ImModPositiveNative(a, b); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImDotNative(Vector2 a, Vector2 b) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[757])(a, b); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[757])(a, b); - #endif - } - - /// - /// To be documented. - /// - public static float ImDot(Vector2 a, Vector2 b) - { - float ret = ImDotNative(a, b); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImRotateNative(Vector2* pOut, Vector2 v, float cosA, float sinA) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[758])(pOut, v, cosA, sinA); - #else - ((delegate* unmanaged[Cdecl])funcTable[758])((nint)pOut, v, cosA, sinA); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ImRotate(Vector2 v, float cosA, float sinA) - { - Vector2 ret; - ImRotateNative(&ret, v, cosA, sinA); - return ret; - } - - /// - /// To be documented. - /// - public static void ImRotate(Vector2* pOut, Vector2 v, float cosA, float sinA) - { - ImRotateNative(pOut, v, cosA, sinA); - } - - /// - /// To be documented. - /// - public static void ImRotate(ref Vector2 pOut, Vector2 v, float cosA, float sinA) - { - fixed (Vector2* ppOut = &pOut) - { - ImRotateNative((Vector2*)ppOut, v, cosA, sinA); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImLinearSweepNative(float current, float target, float speed) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[759])(current, target, speed); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[759])(current, target, speed); - #endif - } - - /// - /// To be documented. - /// - public static float ImLinearSweep(float current, float target, float speed) - { - float ret = ImLinearSweepNative(current, target, speed); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMulNative(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[760])(pOut, lhs, rhs); - #else - ((delegate* unmanaged[Cdecl])funcTable[760])((nint)pOut, lhs, rhs); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ImMul(Vector2 lhs, Vector2 rhs) - { - Vector2 ret; - ImMulNative(&ret, lhs, rhs); - return ret; - } - - /// - /// To be documented. - /// - public static void ImMul(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - ImMulNative(pOut, lhs, rhs); - } - - /// - /// To be documented. - /// - public static void ImMul(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) - { - fixed (Vector2* ppOut = &pOut) - { - ImMulNative((Vector2*)ppOut, lhs, rhs); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImIsFloatAboveGuaranteedIntegerPrecisionNative(float f) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[761])(f); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[761])(f); - #endif - } - - /// - /// To be documented. - /// - public static bool ImIsFloatAboveGuaranteedIntegerPrecision(float f) - { - byte ret = ImIsFloatAboveGuaranteedIntegerPrecisionNative(f); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImBezierCubicCalcNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[762])(pOut, p1, p2, p3, p4, t); - #else - ((delegate* unmanaged[Cdecl])funcTable[762])((nint)pOut, p1, p2, p3, p4, t); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ImBezierCubicCalc(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) - { - Vector2 ret; - ImBezierCubicCalcNative(&ret, p1, p2, p3, p4, t); - return ret; - } - - /// - /// To be documented. - /// - public static void ImBezierCubicCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) - { - ImBezierCubicCalcNative(pOut, p1, p2, p3, p4, t); - } - - /// - /// To be documented. - /// - public static void ImBezierCubicCalc(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) - { - fixed (Vector2* ppOut = &pOut) - { - ImBezierCubicCalcNative((Vector2*)ppOut, p1, p2, p3, p4, t); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImBezierCubicClosestPointNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[763])(pOut, p1, p2, p3, p4, p, numSegments); - #else - ((delegate* unmanaged[Cdecl])funcTable[763])((nint)pOut, p1, p2, p3, p4, p, numSegments); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ImBezierCubicClosestPoint(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) - { - Vector2 ret; - ImBezierCubicClosestPointNative(&ret, p1, p2, p3, p4, p, numSegments); - return ret; - } - - /// - /// To be documented. - /// - public static void ImBezierCubicClosestPoint(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) - { - ImBezierCubicClosestPointNative(pOut, p1, p2, p3, p4, p, numSegments); - } - - /// - /// To be documented. - /// - public static void ImBezierCubicClosestPoint(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) - { - fixed (Vector2* ppOut = &pOut) - { - ImBezierCubicClosestPointNative((Vector2*)ppOut, p1, p2, p3, p4, p, numSegments); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImBezierCubicClosestPointCasteljauNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[764])(pOut, p1, p2, p3, p4, p, tessTol); - #else - ((delegate* unmanaged[Cdecl])funcTable[764])((nint)pOut, p1, p2, p3, p4, p, tessTol); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ImBezierCubicClosestPointCasteljau(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) - { - Vector2 ret; - ImBezierCubicClosestPointCasteljauNative(&ret, p1, p2, p3, p4, p, tessTol); - return ret; - } - - /// - /// To be documented. - /// - public static void ImBezierCubicClosestPointCasteljau(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) - { - ImBezierCubicClosestPointCasteljauNative(pOut, p1, p2, p3, p4, p, tessTol); - } - - /// - /// To be documented. - /// - public static void ImBezierCubicClosestPointCasteljau(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) - { - fixed (Vector2* ppOut = &pOut) - { - ImBezierCubicClosestPointCasteljauNative((Vector2*)ppOut, p1, p2, p3, p4, p, tessTol); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImBezierQuadraticCalcNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[765])(pOut, p1, p2, p3, t); - #else - ((delegate* unmanaged[Cdecl])funcTable[765])((nint)pOut, p1, p2, p3, t); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ImBezierQuadraticCalc(Vector2 p1, Vector2 p2, Vector2 p3, float t) - { - Vector2 ret; - ImBezierQuadraticCalcNative(&ret, p1, p2, p3, t); - return ret; - } - - /// - /// To be documented. - /// - public static void ImBezierQuadraticCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) - { - ImBezierQuadraticCalcNative(pOut, p1, p2, p3, t); - } - - /// - /// To be documented. - /// - public static void ImBezierQuadraticCalc(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) - { - fixed (Vector2* ppOut = &pOut) - { - ImBezierQuadraticCalcNative((Vector2*)ppOut, p1, p2, p3, t); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImLineClosestPointNative(Vector2* pOut, Vector2 a, Vector2 b, Vector2 p) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[766])(pOut, a, b, p); - #else - ((delegate* unmanaged[Cdecl])funcTable[766])((nint)pOut, a, b, p); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ImLineClosestPoint(Vector2 a, Vector2 b, Vector2 p) - { - Vector2 ret; - ImLineClosestPointNative(&ret, a, b, p); - return ret; - } - - /// - /// To be documented. - /// - public static void ImLineClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 p) - { - ImLineClosestPointNative(pOut, a, b, p); - } - - /// - /// To be documented. - /// - public static void ImLineClosestPoint(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 p) - { - fixed (Vector2* ppOut = &pOut) - { - ImLineClosestPointNative((Vector2*)ppOut, a, b, p); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImTriangleContainsPointNative(Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[767])(a, b, c, p); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[767])(a, b, c, p); - #endif - } - - /// - /// To be documented. - /// - public static bool ImTriangleContainsPoint(Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - byte ret = ImTriangleContainsPointNative(a, b, c, p); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImTriangleClosestPointNative(Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[768])(pOut, a, b, c, p); - #else - ((delegate* unmanaged[Cdecl])funcTable[768])((nint)pOut, a, b, c, p); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ImTriangleClosestPoint(Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - Vector2 ret; - ImTriangleClosestPointNative(&ret, a, b, c, p); - return ret; - } - - /// - /// To be documented. - /// - public static void ImTriangleClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - ImTriangleClosestPointNative(pOut, a, b, c, p); - } - - /// - /// To be documented. - /// - public static void ImTriangleClosestPoint(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - fixed (Vector2* ppOut = &pOut) - { - ImTriangleClosestPointNative((Vector2*)ppOut, a, b, c, p); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImTriangleBarycentricCoordsNative(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, float* outW) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[769])(a, b, c, p, outU, outV, outW); - #else - ((delegate* unmanaged[Cdecl])funcTable[769])(a, b, c, p, (nint)outU, (nint)outV, (nint)outW); - #endif - } - - /// - /// To be documented. - /// - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, float* outW) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, outU, outV, outW); - } - - /// - /// To be documented. - /// - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, float* outV, float* outW) - { - fixed (float* poutU = &outU) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, outV, outW); - } - } - - /// - /// To be documented. - /// - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, ref float outV, float* outW) - { - fixed (float* poutV = &outV) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, outU, (float*)poutV, outW); - } - } - - /// - /// To be documented. - /// - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, ref float outV, float* outW) - { - fixed (float* poutU = &outU) - { - fixed (float* poutV = &outV) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, (float*)poutV, outW); - } - } - } - - /// - /// To be documented. - /// - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, ref float outW) - { - fixed (float* poutW = &outW) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, outU, outV, (float*)poutW); - } - } - - /// - /// To be documented. - /// - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, float* outV, ref float outW) - { - fixed (float* poutU = &outU) - { - fixed (float* poutW = &outW) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, outV, (float*)poutW); - } - } - } - - /// - /// To be documented. - /// - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, ref float outV, ref float outW) - { - fixed (float* poutV = &outV) - { - fixed (float* poutW = &outW) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, outU, (float*)poutV, (float*)poutW); - } - } - } - - /// - /// To be documented. - /// - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, ref float outV, ref float outW) - { - fixed (float* poutU = &outU) - { - fixed (float* poutV = &outV) - { - fixed (float* poutW = &outW) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, (float*)poutV, (float*)poutW); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImTriangleAreaNative(Vector2 a, Vector2 b, Vector2 c) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[770])(a, b, c); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[770])(a, b, c); - #endif - } - - /// - /// To be documented. - /// - public static float ImTriangleArea(Vector2 a, Vector2 b, Vector2 c) - { - float ret = ImTriangleAreaNative(a, b, c); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiDir ImGetDirQuadrantFromDeltaNative(float dx, float dy) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[771])(dx, dy); - #else - return (ImGuiDir)((delegate* unmanaged[Cdecl])funcTable[771])(dx, dy); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy) - { - ImGuiDir ret = ImGetDirQuadrantFromDeltaNative(dx, dy); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImVec1* ImVec1Native() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[772])(); - #else - return (ImVec1*)((delegate* unmanaged[Cdecl])funcTable[772])(); - #endif - } - - /// - /// To be documented. - /// - public static ImVec1Ptr ImVec1() - { - ImVec1Ptr ret = ImVec1Native(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImVec1* ImVec1Native(float x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[773])(x); - #else - return (ImVec1*)((delegate* unmanaged[Cdecl])funcTable[773])(x); - #endif - } - - /// - /// To be documented. - /// - public static ImVec1Ptr ImVec1(float x) - { - ImVec1Ptr ret = ImVec1Native(x); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImVec2Ih* ImVec2ihNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[774])(); - #else - return (ImVec2Ih*)((delegate* unmanaged[Cdecl])funcTable[774])(); - #endif - } - - /// - /// To be documented. - /// - public static ImVec2IhPtr ImVec2ih() - { - ImVec2IhPtr ret = ImVec2ihNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImVec2Ih* ImVec2ihNative(short x, short y) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[775])(x, y); - #else - return (ImVec2Ih*)((delegate* unmanaged[Cdecl])funcTable[775])(x, y); - #endif - } - - /// - /// To be documented. - /// - public static ImVec2IhPtr ImVec2ih(short x, short y) - { - ImVec2IhPtr ret = ImVec2ihNative(x, y); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImVec2Ih* ImVec2ihNative(Vector2 rhs) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[776])(rhs); - #else - return (ImVec2Ih*)((delegate* unmanaged[Cdecl])funcTable[776])(rhs); - #endif - } - - /// - /// To be documented. - /// - public static ImVec2IhPtr ImVec2ih(Vector2 rhs) - { - ImVec2IhPtr ret = ImVec2ihNative(rhs); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImRect* ImRectNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[777])(); - #else - return (ImRect*)((delegate* unmanaged[Cdecl])funcTable[777])(); - #endif - } - - /// - /// To be documented. - /// - public static ImRectPtr ImRect() - { - ImRectPtr ret = ImRectNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImRect* ImRectNative(Vector2 min, Vector2 max) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[778])(min, max); - #else - return (ImRect*)((delegate* unmanaged[Cdecl])funcTable[778])(min, max); - #endif - } - - /// - /// To be documented. - /// - public static ImRectPtr ImRect(Vector2 min, Vector2 max) - { - ImRectPtr ret = ImRectNative(min, max); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImRect* ImRectNative(Vector4 v) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[779])(v); - #else - return (ImRect*)((delegate* unmanaged[Cdecl])funcTable[779])(v); - #endif - } - - /// - /// To be documented. - /// - public static ImRectPtr ImRect(Vector4 v) - { - ImRectPtr ret = ImRectNative(v); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImRect* ImRectNative(float x1, float y1, float x2, float y2) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[780])(x1, y1, x2, y2); - #else - return (ImRect*)((delegate* unmanaged[Cdecl])funcTable[780])(x1, y1, x2, y2); - #endif - } - - /// - /// To be documented. - /// - public static ImRectPtr ImRect(float x1, float y1, float x2, float y2) - { - ImRectPtr ret = ImRectNative(x1, y1, x2, y2); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetCenterNative(Vector2* pOut, ImRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[781])(pOut, self); - #else - ((delegate* unmanaged[Cdecl])funcTable[781])((nint)pOut, (nint)self); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 GetCenter(ImRectPtr self) - { - Vector2 ret; - GetCenterNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void GetCenter(Vector2* pOut, ImRectPtr self) - { - GetCenterNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void GetCenter(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetCenterNative((Vector2*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static Vector2 GetCenter(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - GetCenterNative(&ret, (ImRect*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void GetCenter(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - GetCenterNative(pOut, (ImRect*)pself); - } - } - - /// - /// To be documented. - /// - public static void GetCenter(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetCenterNative((Vector2*)ppOut, (ImRect*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetSizeNative(Vector2* pOut, ImRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[782])(pOut, self); - #else - ((delegate* unmanaged[Cdecl])funcTable[782])((nint)pOut, (nint)self); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 GetSize(ImRectPtr self) - { - Vector2 ret; - GetSizeNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void GetSize(Vector2* pOut, ImRectPtr self) - { - GetSizeNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void GetSize(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetSizeNative((Vector2*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static Vector2 GetSize(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - GetSizeNative(&ret, (ImRect*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void GetSize(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - GetSizeNative(pOut, (ImRect*)pself); - } - } - - /// - /// To be documented. - /// - public static void GetSize(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetSizeNative((Vector2*)ppOut, (ImRect*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetWidthNative(ImRect* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[783])(self); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[783])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static float GetWidth(ImRectPtr self) - { - float ret = GetWidthNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static float GetWidth(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - float ret = GetWidthNative((ImRect*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetHeightNative(ImRect* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[784])(self); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[784])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static float GetHeight(ImRectPtr self) - { - float ret = GetHeightNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static float GetHeight(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - float ret = GetHeightNative((ImRect*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetAreaNative(ImRect* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[785])(self); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[785])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static float GetArea(ImRectPtr self) - { - float ret = GetAreaNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static float GetArea(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - float ret = GetAreaNative((ImRect*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetTLNative(Vector2* pOut, ImRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[786])(pOut, self); - #else - ((delegate* unmanaged[Cdecl])funcTable[786])((nint)pOut, (nint)self); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 GetTL(ImRectPtr self) - { - Vector2 ret; - GetTLNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void GetTL(Vector2* pOut, ImRectPtr self) - { - GetTLNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void GetTL(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetTLNative((Vector2*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static Vector2 GetTL(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - GetTLNative(&ret, (ImRect*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void GetTL(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - GetTLNative(pOut, (ImRect*)pself); - } - } - - /// - /// To be documented. - /// - public static void GetTL(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetTLNative((Vector2*)ppOut, (ImRect*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetTRNative(Vector2* pOut, ImRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[787])(pOut, self); - #else - ((delegate* unmanaged[Cdecl])funcTable[787])((nint)pOut, (nint)self); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 GetTR(ImRectPtr self) - { - Vector2 ret; - GetTRNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void GetTR(Vector2* pOut, ImRectPtr self) - { - GetTRNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void GetTR(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetTRNative((Vector2*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static Vector2 GetTR(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - GetTRNative(&ret, (ImRect*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void GetTR(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - GetTRNative(pOut, (ImRect*)pself); - } - } - - /// - /// To be documented. - /// - public static void GetTR(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetTRNative((Vector2*)ppOut, (ImRect*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetBLNative(Vector2* pOut, ImRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[788])(pOut, self); - #else - ((delegate* unmanaged[Cdecl])funcTable[788])((nint)pOut, (nint)self); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 GetBL(ImRectPtr self) - { - Vector2 ret; - GetBLNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void GetBL(Vector2* pOut, ImRectPtr self) - { - GetBLNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void GetBL(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetBLNative((Vector2*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static Vector2 GetBL(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - GetBLNative(&ret, (ImRect*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void GetBL(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - GetBLNative(pOut, (ImRect*)pself); - } - } - - /// - /// To be documented. - /// - public static void GetBL(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetBLNative((Vector2*)ppOut, (ImRect*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetBRNative(Vector2* pOut, ImRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[789])(pOut, self); - #else - ((delegate* unmanaged[Cdecl])funcTable[789])((nint)pOut, (nint)self); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 GetBR(ImRectPtr self) - { - Vector2 ret; - GetBRNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void GetBR(Vector2* pOut, ImRectPtr self) - { - GetBRNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void GetBR(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetBRNative((Vector2*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static Vector2 GetBR(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - GetBRNative(&ret, (ImRect*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void GetBR(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - GetBRNative(pOut, (ImRect*)pself); - } - } - - /// - /// To be documented. - /// - public static void GetBR(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetBRNative((Vector2*)ppOut, (ImRect*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ContainsNative(ImRect* self, Vector2 p) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[790])(self, p); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[790])((nint)self, p); - #endif - } - - /// - /// To be documented. - /// - public static bool Contains(ImRectPtr self, Vector2 p) - { - byte ret = ContainsNative(self, p); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool Contains(ref ImRect self, Vector2 p) - { - fixed (ImRect* pself = &self) - { - byte ret = ContainsNative((ImRect*)pself, p); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ContainsNative(ImRect* self, ImRect r) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[791])(self, r); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[791])((nint)self, r); - #endif - } - - /// - /// To be documented. - /// - public static bool Contains(ImRectPtr self, ImRect r) - { - byte ret = ContainsNative(self, r); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool Contains(ref ImRect self, ImRect r) - { - fixed (ImRect* pself = &self) - { - byte ret = ContainsNative((ImRect*)pself, r); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte OverlapsNative(ImRect* self, ImRect r) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[792])(self, r); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[792])((nint)self, r); - #endif - } - - /// - /// To be documented. - /// - public static bool Overlaps(ImRectPtr self, ImRect r) - { - byte ret = OverlapsNative(self, r); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool Overlaps(ref ImRect self, ImRect r) - { - fixed (ImRect* pself = &self) - { - byte ret = OverlapsNative((ImRect*)pself, r); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddNative(ImRect* self, Vector2 p) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[793])(self, p); - #else - ((delegate* unmanaged[Cdecl])funcTable[793])((nint)self, p); - #endif - } - - /// - /// To be documented. - /// - public static void Add(ImRectPtr self, Vector2 p) - { - AddNative(self, p); - } - - /// - /// To be documented. - /// - public static void Add(ref ImRect self, Vector2 p) - { - fixed (ImRect* pself = &self) - { - AddNative((ImRect*)pself, p); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddNative(ImRect* self, ImRect r) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[794])(self, r); - #else - ((delegate* unmanaged[Cdecl])funcTable[794])((nint)self, r); - #endif - } - - /// - /// To be documented. - /// - public static void Add(ImRectPtr self, ImRect r) - { - AddNative(self, r); - } - - /// - /// To be documented. - /// - public static void Add(ref ImRect self, ImRect r) - { - fixed (ImRect* pself = &self) - { - AddNative((ImRect*)pself, r); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ExpandNative(ImRect* self, float amount) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[795])(self, amount); - #else - ((delegate* unmanaged[Cdecl])funcTable[795])((nint)self, amount); - #endif - } - - /// - /// To be documented. - /// - public static void Expand(ImRectPtr self, float amount) - { - ExpandNative(self, amount); - } - - /// - /// To be documented. - /// - public static void Expand(ref ImRect self, float amount) - { - fixed (ImRect* pself = &self) - { - ExpandNative((ImRect*)pself, amount); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ExpandNative(ImRect* self, Vector2 amount) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[796])(self, amount); - #else - ((delegate* unmanaged[Cdecl])funcTable[796])((nint)self, amount); - #endif - } - - /// - /// To be documented. - /// - public static void Expand(ImRectPtr self, Vector2 amount) - { - ExpandNative(self, amount); - } - - /// - /// To be documented. - /// - public static void Expand(ref ImRect self, Vector2 amount) - { - fixed (ImRect* pself = &self) - { - ExpandNative((ImRect*)pself, amount); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TranslateNative(ImRect* self, Vector2 d) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[797])(self, d); - #else - ((delegate* unmanaged[Cdecl])funcTable[797])((nint)self, d); - #endif - } - - /// - /// To be documented. - /// - public static void Translate(ImRectPtr self, Vector2 d) - { - TranslateNative(self, d); - } - - /// - /// To be documented. - /// - public static void Translate(ref ImRect self, Vector2 d) - { - fixed (ImRect* pself = &self) - { - TranslateNative((ImRect*)pself, d); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TranslateXNative(ImRect* self, float dx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[798])(self, dx); - #else - ((delegate* unmanaged[Cdecl])funcTable[798])((nint)self, dx); - #endif - } - - /// - /// To be documented. - /// - public static void TranslateX(ImRectPtr self, float dx) - { - TranslateXNative(self, dx); - } - - /// - /// To be documented. - /// - public static void TranslateX(ref ImRect self, float dx) - { - fixed (ImRect* pself = &self) - { - TranslateXNative((ImRect*)pself, dx); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TranslateYNative(ImRect* self, float dy) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[799])(self, dy); - #else - ((delegate* unmanaged[Cdecl])funcTable[799])((nint)self, dy); - #endif - } - - /// - /// To be documented. - /// - public static void TranslateY(ImRectPtr self, float dy) - { - TranslateYNative(self, dy); - } - - /// - /// To be documented. - /// - public static void TranslateY(ref ImRect self, float dy) - { - fixed (ImRect* pself = &self) - { - TranslateYNative((ImRect*)pself, dy); - } - } - /// /// To be documented. /// @@ -3293,9 +25,9 @@ namespace Dalamud.Bindings.ImGui internal static void ClipWithNative(ImRect* self, ImRect r) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[800])(self, r); + ((delegate* unmanaged[Cdecl])funcTable[796])(self, r); #else - ((delegate* unmanaged[Cdecl])funcTable[800])((nint)self, r); + ((delegate* unmanaged[Cdecl])funcTable[796])((nint)self, r); #endif } @@ -3325,9 +57,9 @@ namespace Dalamud.Bindings.ImGui internal static void ClipWithFullNative(ImRect* self, ImRect r) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[801])(self, r); + ((delegate* unmanaged[Cdecl])funcTable[797])(self, r); #else - ((delegate* unmanaged[Cdecl])funcTable[801])((nint)self, r); + ((delegate* unmanaged[Cdecl])funcTable[797])((nint)self, r); #endif } @@ -3357,9 +89,9 @@ namespace Dalamud.Bindings.ImGui internal static void FloorNative(ImRect* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[802])(self); + ((delegate* unmanaged[Cdecl])funcTable[798])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[802])((nint)self); + ((delegate* unmanaged[Cdecl])funcTable[798])((nint)self); #endif } @@ -3389,9 +121,9 @@ namespace Dalamud.Bindings.ImGui internal static byte IsInvertedNative(ImRect* self) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[803])(self); + return ((delegate* unmanaged[Cdecl])funcTable[799])(self); #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[803])((nint)self); + return (byte)((delegate* unmanaged[Cdecl])funcTable[799])((nint)self); #endif } @@ -3423,9 +155,9 @@ namespace Dalamud.Bindings.ImGui internal static void ToVec4Native(Vector4* pOut, ImRect* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[804])(pOut, self); + ((delegate* unmanaged[Cdecl])funcTable[800])(pOut, self); #else - ((delegate* unmanaged[Cdecl])funcTable[804])((nint)pOut, (nint)self); + ((delegate* unmanaged[Cdecl])funcTable[800])((nint)pOut, (nint)self); #endif } @@ -3503,9 +235,9 @@ namespace Dalamud.Bindings.ImGui internal static byte ImBitArrayTestBitNative(uint* arr, int n) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[805])(arr, n); + return ((delegate* unmanaged[Cdecl])funcTable[801])(arr, n); #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[805])((nint)arr, n); + return (byte)((delegate* unmanaged[Cdecl])funcTable[801])((nint)arr, n); #endif } @@ -3518,18 +250,6 @@ namespace Dalamud.Bindings.ImGui return ret != 0; } - /// - /// To be documented. - /// - public static bool ImBitArrayTestBit(ref uint arr, int n) - { - fixed (uint* parr = &arr) - { - byte ret = ImBitArrayTestBitNative((uint*)parr, n); - return ret != 0; - } - } - /// /// To be documented. /// @@ -3537,9 +257,9 @@ namespace Dalamud.Bindings.ImGui internal static void ImBitArrayClearBitNative(uint* arr, int n) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[806])(arr, n); + ((delegate* unmanaged[Cdecl])funcTable[802])(arr, n); #else - ((delegate* unmanaged[Cdecl])funcTable[806])((nint)arr, n); + ((delegate* unmanaged[Cdecl])funcTable[802])((nint)arr, n); #endif } @@ -3551,17 +271,6 @@ namespace Dalamud.Bindings.ImGui ImBitArrayClearBitNative(arr, n); } - /// - /// To be documented. - /// - public static void ImBitArrayClearBit(ref uint arr, int n) - { - fixed (uint* parr = &arr) - { - ImBitArrayClearBitNative((uint*)parr, n); - } - } - /// /// To be documented. /// @@ -3569,9 +278,9 @@ namespace Dalamud.Bindings.ImGui internal static void ImBitArraySetBitNative(uint* arr, int n) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[807])(arr, n); + ((delegate* unmanaged[Cdecl])funcTable[803])(arr, n); #else - ((delegate* unmanaged[Cdecl])funcTable[807])((nint)arr, n); + ((delegate* unmanaged[Cdecl])funcTable[803])((nint)arr, n); #endif } @@ -3583,17 +292,6 @@ namespace Dalamud.Bindings.ImGui ImBitArraySetBitNative(arr, n); } - /// - /// To be documented. - /// - public static void ImBitArraySetBit(ref uint arr, int n) - { - fixed (uint* parr = &arr) - { - ImBitArraySetBitNative((uint*)parr, n); - } - } - /// /// To be documented. /// @@ -3601,9 +299,9 @@ namespace Dalamud.Bindings.ImGui internal static void ImBitArraySetBitRangeNative(uint* arr, int n, int n2) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[808])(arr, n, n2); + ((delegate* unmanaged[Cdecl])funcTable[804])(arr, n, n2); #else - ((delegate* unmanaged[Cdecl])funcTable[808])((nint)arr, n, n2); + ((delegate* unmanaged[Cdecl])funcTable[804])((nint)arr, n, n2); #endif } @@ -3615,17 +313,6 @@ namespace Dalamud.Bindings.ImGui ImBitArraySetBitRangeNative(arr, n, n2); } - /// - /// To be documented. - /// - public static void ImBitArraySetBitRange(ref uint arr, int n, int n2) - { - fixed (uint* parr = &arr) - { - ImBitArraySetBitRangeNative((uint*)parr, n, n2); - } - } - /// /// To be documented. /// @@ -3633,9 +320,9 @@ namespace Dalamud.Bindings.ImGui internal static void CreateNative(ImBitVector* self, int sz) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[809])(self, sz); + ((delegate* unmanaged[Cdecl])funcTable[805])(self, sz); #else - ((delegate* unmanaged[Cdecl])funcTable[809])((nint)self, sz); + ((delegate* unmanaged[Cdecl])funcTable[805])((nint)self, sz); #endif } @@ -3665,9 +352,9 @@ namespace Dalamud.Bindings.ImGui internal static void ClearNative(ImBitVector* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[810])(self); + ((delegate* unmanaged[Cdecl])funcTable[806])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[810])((nint)self); + ((delegate* unmanaged[Cdecl])funcTable[806])((nint)self); #endif } @@ -3697,9 +384,9 @@ namespace Dalamud.Bindings.ImGui internal static byte TestBitNative(ImBitVector* self, int n) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[811])(self, n); + return ((delegate* unmanaged[Cdecl])funcTable[807])(self, n); #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[811])((nint)self, n); + return (byte)((delegate* unmanaged[Cdecl])funcTable[807])((nint)self, n); #endif } @@ -3731,9 +418,9 @@ namespace Dalamud.Bindings.ImGui internal static void SetBitNative(ImBitVector* self, int n) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[812])(self, n); + ((delegate* unmanaged[Cdecl])funcTable[808])(self, n); #else - ((delegate* unmanaged[Cdecl])funcTable[812])((nint)self, n); + ((delegate* unmanaged[Cdecl])funcTable[808])((nint)self, n); #endif } @@ -3763,9 +450,9 @@ namespace Dalamud.Bindings.ImGui internal static void ClearBitNative(ImBitVector* self, int n) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[813])(self, n); + ((delegate* unmanaged[Cdecl])funcTable[809])(self, n); #else - ((delegate* unmanaged[Cdecl])funcTable[813])((nint)self, n); + ((delegate* unmanaged[Cdecl])funcTable[809])((nint)self, n); #endif } @@ -3795,9 +482,9 @@ namespace Dalamud.Bindings.ImGui internal static ImDrawListSharedData* ImDrawListSharedDataNative() { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[814])(); + return ((delegate* unmanaged[Cdecl])funcTable[810])(); #else - return (ImDrawListSharedData*)((delegate* unmanaged[Cdecl])funcTable[814])(); + return (ImDrawListSharedData*)((delegate* unmanaged[Cdecl])funcTable[810])(); #endif } @@ -3817,9 +504,9 @@ namespace Dalamud.Bindings.ImGui internal static void SetCircleTessellationMaxErrorNative(ImDrawListSharedData* self, float maxError) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[815])(self, maxError); + ((delegate* unmanaged[Cdecl])funcTable[811])(self, maxError); #else - ((delegate* unmanaged[Cdecl])funcTable[815])((nint)self, maxError); + ((delegate* unmanaged[Cdecl])funcTable[811])((nint)self, maxError); #endif } @@ -3849,9 +536,9 @@ namespace Dalamud.Bindings.ImGui internal static void ClearNative(ImDrawDataBuilder* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[816])(self); + ((delegate* unmanaged[Cdecl])funcTable[812])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[816])((nint)self); + ((delegate* unmanaged[Cdecl])funcTable[812])((nint)self); #endif } @@ -3881,9 +568,9 @@ namespace Dalamud.Bindings.ImGui internal static void ClearFreeMemoryNative(ImDrawDataBuilder* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[817])(self); + ((delegate* unmanaged[Cdecl])funcTable[813])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[817])((nint)self); + ((delegate* unmanaged[Cdecl])funcTable[813])((nint)self); #endif } @@ -3913,9 +600,9 @@ namespace Dalamud.Bindings.ImGui internal static int GetDrawListCountNative(ImDrawDataBuilder* self) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[818])(self); + return ((delegate* unmanaged[Cdecl])funcTable[814])(self); #else - return (int)((delegate* unmanaged[Cdecl])funcTable[818])((nint)self); + return (int)((delegate* unmanaged[Cdecl])funcTable[814])((nint)self); #endif } @@ -3947,9 +634,9 @@ namespace Dalamud.Bindings.ImGui internal static void FlattenIntoSingleLayerNative(ImDrawDataBuilder* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[819])(self); + ((delegate* unmanaged[Cdecl])funcTable[815])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[819])((nint)self); + ((delegate* unmanaged[Cdecl])funcTable[815])((nint)self); #endif } @@ -3979,9 +666,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiStyleMod* ImGuiStyleModNative(ImGuiStyleVar idx, int v) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[820])(idx, v); + return ((delegate* unmanaged[Cdecl])funcTable[816])(idx, v); #else - return (ImGuiStyleMod*)((delegate* unmanaged[Cdecl])funcTable[820])(idx, v); + return (ImGuiStyleMod*)((delegate* unmanaged[Cdecl])funcTable[816])(idx, v); #endif } @@ -4001,9 +688,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiStyleMod* ImGuiStyleModNative(ImGuiStyleVar idx, float v) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[821])(idx, v); + return ((delegate* unmanaged[Cdecl])funcTable[817])(idx, v); #else - return (ImGuiStyleMod*)((delegate* unmanaged[Cdecl])funcTable[821])(idx, v); + return (ImGuiStyleMod*)((delegate* unmanaged[Cdecl])funcTable[817])(idx, v); #endif } @@ -4023,9 +710,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiStyleMod* ImGuiStyleModNative(ImGuiStyleVar idx, Vector2 v) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[822])(idx, v); + return ((delegate* unmanaged[Cdecl])funcTable[818])(idx, v); #else - return (ImGuiStyleMod*)((delegate* unmanaged[Cdecl])funcTable[822])(idx, v); + return (ImGuiStyleMod*)((delegate* unmanaged[Cdecl])funcTable[818])(idx, v); #endif } @@ -4045,9 +732,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiComboPreviewData* ImGuiComboPreviewDataNative() { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[823])(); + return ((delegate* unmanaged[Cdecl])funcTable[819])(); #else - return (ImGuiComboPreviewData*)((delegate* unmanaged[Cdecl])funcTable[823])(); + return (ImGuiComboPreviewData*)((delegate* unmanaged[Cdecl])funcTable[819])(); #endif } @@ -4067,9 +754,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiMenuColumns* ImGuiMenuColumnsNative() { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[824])(); + return ((delegate* unmanaged[Cdecl])funcTable[820])(); #else - return (ImGuiMenuColumns*)((delegate* unmanaged[Cdecl])funcTable[824])(); + return (ImGuiMenuColumns*)((delegate* unmanaged[Cdecl])funcTable[820])(); #endif } @@ -4089,9 +776,9 @@ namespace Dalamud.Bindings.ImGui internal static void UpdateNative(ImGuiMenuColumns* self, float spacing, byte windowReappearing) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[825])(self, spacing, windowReappearing); + ((delegate* unmanaged[Cdecl])funcTable[821])(self, spacing, windowReappearing); #else - ((delegate* unmanaged[Cdecl])funcTable[825])((nint)self, spacing, windowReappearing); + ((delegate* unmanaged[Cdecl])funcTable[821])((nint)self, spacing, windowReappearing); #endif } @@ -4121,9 +808,9 @@ namespace Dalamud.Bindings.ImGui internal static float DeclColumnsNative(ImGuiMenuColumns* self, float wIcon, float wLabel, float wShortcut, float wMark) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[826])(self, wIcon, wLabel, wShortcut, wMark); + return ((delegate* unmanaged[Cdecl])funcTable[822])(self, wIcon, wLabel, wShortcut, wMark); #else - return (float)((delegate* unmanaged[Cdecl])funcTable[826])((nint)self, wIcon, wLabel, wShortcut, wMark); + return (float)((delegate* unmanaged[Cdecl])funcTable[822])((nint)self, wIcon, wLabel, wShortcut, wMark); #endif } @@ -4155,9 +842,9 @@ namespace Dalamud.Bindings.ImGui internal static void CalcNextTotalWidthNative(ImGuiMenuColumns* self, byte updateOffsets) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[827])(self, updateOffsets); + ((delegate* unmanaged[Cdecl])funcTable[823])(self, updateOffsets); #else - ((delegate* unmanaged[Cdecl])funcTable[827])((nint)self, updateOffsets); + ((delegate* unmanaged[Cdecl])funcTable[823])((nint)self, updateOffsets); #endif } @@ -4187,9 +874,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiInputTextState* ImGuiInputTextStateNative() { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[828])(); + return ((delegate* unmanaged[Cdecl])funcTable[824])(); #else - return (ImGuiInputTextState*)((delegate* unmanaged[Cdecl])funcTable[828])(); + return (ImGuiInputTextState*)((delegate* unmanaged[Cdecl])funcTable[824])(); #endif } @@ -4209,9 +896,9 @@ namespace Dalamud.Bindings.ImGui internal static void ClearTextNative(ImGuiInputTextState* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[829])(self); + ((delegate* unmanaged[Cdecl])funcTable[825])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[829])((nint)self); + ((delegate* unmanaged[Cdecl])funcTable[825])((nint)self); #endif } @@ -4241,9 +928,9 @@ namespace Dalamud.Bindings.ImGui internal static void ClearFreeMemoryNative(ImGuiInputTextState* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[830])(self); + ((delegate* unmanaged[Cdecl])funcTable[826])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[830])((nint)self); + ((delegate* unmanaged[Cdecl])funcTable[826])((nint)self); #endif } @@ -4273,9 +960,9 @@ namespace Dalamud.Bindings.ImGui internal static int GetUndoAvailCountNative(ImGuiInputTextState* self) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[831])(self); + return ((delegate* unmanaged[Cdecl])funcTable[827])(self); #else - return (int)((delegate* unmanaged[Cdecl])funcTable[831])((nint)self); + return (int)((delegate* unmanaged[Cdecl])funcTable[827])((nint)self); #endif } @@ -4307,9 +994,9 @@ namespace Dalamud.Bindings.ImGui internal static int GetRedoAvailCountNative(ImGuiInputTextState* self) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[832])(self); + return ((delegate* unmanaged[Cdecl])funcTable[828])(self); #else - return (int)((delegate* unmanaged[Cdecl])funcTable[832])((nint)self); + return (int)((delegate* unmanaged[Cdecl])funcTable[828])((nint)self); #endif } @@ -4341,9 +1028,9 @@ namespace Dalamud.Bindings.ImGui internal static void OnKeyPressedNative(ImGuiInputTextState* self, int key) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[833])(self, key); + ((delegate* unmanaged[Cdecl])funcTable[829])(self, key); #else - ((delegate* unmanaged[Cdecl])funcTable[833])((nint)self, key); + ((delegate* unmanaged[Cdecl])funcTable[829])((nint)self, key); #endif } @@ -4373,9 +1060,9 @@ namespace Dalamud.Bindings.ImGui internal static void CursorAnimResetNative(ImGuiInputTextState* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[834])(self); + ((delegate* unmanaged[Cdecl])funcTable[830])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[834])((nint)self); + ((delegate* unmanaged[Cdecl])funcTable[830])((nint)self); #endif } @@ -4405,9 +1092,9 @@ namespace Dalamud.Bindings.ImGui internal static void CursorClampNative(ImGuiInputTextState* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[835])(self); + ((delegate* unmanaged[Cdecl])funcTable[831])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[835])((nint)self); + ((delegate* unmanaged[Cdecl])funcTable[831])((nint)self); #endif } @@ -4437,9 +1124,9 @@ namespace Dalamud.Bindings.ImGui internal static byte HasSelectionNative(ImGuiInputTextState* self) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[836])(self); + return ((delegate* unmanaged[Cdecl])funcTable[832])(self); #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[836])((nint)self); + return (byte)((delegate* unmanaged[Cdecl])funcTable[832])((nint)self); #endif } @@ -4471,9 +1158,9 @@ namespace Dalamud.Bindings.ImGui internal static void ClearSelectionNative(ImGuiInputTextState* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[837])(self); + ((delegate* unmanaged[Cdecl])funcTable[833])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[837])((nint)self); + ((delegate* unmanaged[Cdecl])funcTable[833])((nint)self); #endif } @@ -4503,9 +1190,9 @@ namespace Dalamud.Bindings.ImGui internal static int GetCursorPosNative(ImGuiInputTextState* self) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[838])(self); + return ((delegate* unmanaged[Cdecl])funcTable[834])(self); #else - return (int)((delegate* unmanaged[Cdecl])funcTable[838])((nint)self); + return (int)((delegate* unmanaged[Cdecl])funcTable[834])((nint)self); #endif } @@ -4537,9 +1224,9 @@ namespace Dalamud.Bindings.ImGui internal static int GetSelectionStartNative(ImGuiInputTextState* self) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[839])(self); + return ((delegate* unmanaged[Cdecl])funcTable[835])(self); #else - return (int)((delegate* unmanaged[Cdecl])funcTable[839])((nint)self); + return (int)((delegate* unmanaged[Cdecl])funcTable[835])((nint)self); #endif } @@ -4571,9 +1258,9 @@ namespace Dalamud.Bindings.ImGui internal static int GetSelectionEndNative(ImGuiInputTextState* self) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[840])(self); + return ((delegate* unmanaged[Cdecl])funcTable[836])(self); #else - return (int)((delegate* unmanaged[Cdecl])funcTable[840])((nint)self); + return (int)((delegate* unmanaged[Cdecl])funcTable[836])((nint)self); #endif } @@ -4605,9 +1292,9 @@ namespace Dalamud.Bindings.ImGui internal static void SelectAllNative(ImGuiInputTextState* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[841])(self); + ((delegate* unmanaged[Cdecl])funcTable[837])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[841])((nint)self); + ((delegate* unmanaged[Cdecl])funcTable[837])((nint)self); #endif } @@ -4637,9 +1324,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiPopupData* ImGuiPopupDataNative() { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[842])(); + return ((delegate* unmanaged[Cdecl])funcTable[838])(); #else - return (ImGuiPopupData*)((delegate* unmanaged[Cdecl])funcTable[842])(); + return (ImGuiPopupData*)((delegate* unmanaged[Cdecl])funcTable[838])(); #endif } @@ -4659,9 +1346,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiNextWindowData* ImGuiNextWindowDataNative() { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[843])(); + return ((delegate* unmanaged[Cdecl])funcTable[839])(); #else - return (ImGuiNextWindowData*)((delegate* unmanaged[Cdecl])funcTable[843])(); + return (ImGuiNextWindowData*)((delegate* unmanaged[Cdecl])funcTable[839])(); #endif } @@ -4681,9 +1368,9 @@ namespace Dalamud.Bindings.ImGui internal static void ClearFlagsNative(ImGuiNextWindowData* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[844])(self); + ((delegate* unmanaged[Cdecl])funcTable[840])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[844])((nint)self); + ((delegate* unmanaged[Cdecl])funcTable[840])((nint)self); #endif } @@ -4713,9 +1400,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiNextItemData* ImGuiNextItemDataNative() { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[845])(); + return ((delegate* unmanaged[Cdecl])funcTable[841])(); #else - return (ImGuiNextItemData*)((delegate* unmanaged[Cdecl])funcTable[845])(); + return (ImGuiNextItemData*)((delegate* unmanaged[Cdecl])funcTable[841])(); #endif } @@ -4735,9 +1422,9 @@ namespace Dalamud.Bindings.ImGui internal static void ClearFlagsNative(ImGuiNextItemData* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[846])(self); + ((delegate* unmanaged[Cdecl])funcTable[842])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[846])((nint)self); + ((delegate* unmanaged[Cdecl])funcTable[842])((nint)self); #endif } @@ -4767,9 +1454,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiLastItemData* ImGuiLastItemDataNative() { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[847])(); + return ((delegate* unmanaged[Cdecl])funcTable[843])(); #else - return (ImGuiLastItemData*)((delegate* unmanaged[Cdecl])funcTable[847])(); + return (ImGuiLastItemData*)((delegate* unmanaged[Cdecl])funcTable[843])(); #endif } @@ -4782,6 +1469,92 @@ namespace Dalamud.Bindings.ImGui return ret; } + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiStackSizes* ImGuiStackSizesNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[844])(); + #else + return (ImGuiStackSizes*)((delegate* unmanaged[Cdecl])funcTable[844])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiStackSizesPtr ImGuiStackSizes() + { + ImGuiStackSizesPtr ret = ImGuiStackSizesNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetToCurrentStateNative(ImGuiStackSizes* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[845])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[845])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void SetToCurrentState(ImGuiStackSizesPtr self) + { + SetToCurrentStateNative(self); + } + + /// + /// To be documented. + /// + public static void SetToCurrentState(ref ImGuiStackSizes self) + { + fixed (ImGuiStackSizes* pself = &self) + { + SetToCurrentStateNative((ImGuiStackSizes*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CompareWithCurrentStateNative(ImGuiStackSizes* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[846])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[846])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void CompareWithCurrentState(ImGuiStackSizesPtr self) + { + CompareWithCurrentStateNative(self); + } + + /// + /// To be documented. + /// + public static void CompareWithCurrentState(ref ImGuiStackSizes self) + { + fixed (ImGuiStackSizes* pself = &self) + { + CompareWithCurrentStateNative((ImGuiStackSizes*)pself); + } + } + /// /// To be documented. /// @@ -4789,9 +1562,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiPtrOrIndex* ImGuiPtrOrIndexNative(void* ptr) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[848])(ptr); + return ((delegate* unmanaged[Cdecl])funcTable[847])(ptr); #else - return (ImGuiPtrOrIndex*)((delegate* unmanaged[Cdecl])funcTable[848])((nint)ptr); + return (ImGuiPtrOrIndex*)((delegate* unmanaged[Cdecl])funcTable[847])((nint)ptr); #endif } @@ -4811,9 +1584,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiPtrOrIndex* ImGuiPtrOrIndexNative(int index) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[849])(index); + return ((delegate* unmanaged[Cdecl])funcTable[848])(index); #else - return (ImGuiPtrOrIndex*)((delegate* unmanaged[Cdecl])funcTable[849])(index); + return (ImGuiPtrOrIndex*)((delegate* unmanaged[Cdecl])funcTable[848])(index); #endif } @@ -4833,9 +1606,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiInputEvent* ImGuiInputEventNative() { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[850])(); + return ((delegate* unmanaged[Cdecl])funcTable[849])(); #else - return (ImGuiInputEvent*)((delegate* unmanaged[Cdecl])funcTable[850])(); + return (ImGuiInputEvent*)((delegate* unmanaged[Cdecl])funcTable[849])(); #endif } @@ -4855,9 +1628,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiListClipperRange FromIndicesNative(int min, int max) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[851])(min, max); + return ((delegate* unmanaged[Cdecl])funcTable[850])(min, max); #else - return (ImGuiListClipperRange)((delegate* unmanaged[Cdecl])funcTable[851])(min, max); + return (ImGuiListClipperRange)((delegate* unmanaged[Cdecl])funcTable[850])(min, max); #endif } @@ -4877,9 +1650,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiListClipperRange FromPositionsNative(float y1, float y2, int offMin, int offMax) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[852])(y1, y2, offMin, offMax); + return ((delegate* unmanaged[Cdecl])funcTable[851])(y1, y2, offMin, offMax); #else - return (ImGuiListClipperRange)((delegate* unmanaged[Cdecl])funcTable[852])(y1, y2, offMin, offMax); + return (ImGuiListClipperRange)((delegate* unmanaged[Cdecl])funcTable[851])(y1, y2, offMin, offMax); #endif } @@ -4899,9 +1672,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiListClipperData* ImGuiListClipperDataNative() { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[853])(); + return ((delegate* unmanaged[Cdecl])funcTable[852])(); #else - return (ImGuiListClipperData*)((delegate* unmanaged[Cdecl])funcTable[853])(); + return (ImGuiListClipperData*)((delegate* unmanaged[Cdecl])funcTable[852])(); #endif } @@ -4921,9 +1694,9 @@ namespace Dalamud.Bindings.ImGui internal static void ResetNative(ImGuiListClipperData* self, ImGuiListClipper* clipper) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[854])(self, clipper); + ((delegate* unmanaged[Cdecl])funcTable[853])(self, clipper); #else - ((delegate* unmanaged[Cdecl])funcTable[854])((nint)self, (nint)clipper); + ((delegate* unmanaged[Cdecl])funcTable[853])((nint)self, (nint)clipper); #endif } @@ -4978,9 +1751,9 @@ namespace Dalamud.Bindings.ImGui internal static ImGuiNavItemData* ImGuiNavItemDataNative() { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[855])(); + return ((delegate* unmanaged[Cdecl])funcTable[854])(); #else - return (ImGuiNavItemData*)((delegate* unmanaged[Cdecl])funcTable[855])(); + return (ImGuiNavItemData*)((delegate* unmanaged[Cdecl])funcTable[854])(); #endif } @@ -5000,9 +1773,9 @@ namespace Dalamud.Bindings.ImGui internal static void ClearNative(ImGuiNavItemData* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[856])(self); + ((delegate* unmanaged[Cdecl])funcTable[855])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[856])((nint)self); + ((delegate* unmanaged[Cdecl])funcTable[855])((nint)self); #endif } @@ -5024,5 +1797,3229 @@ namespace Dalamud.Bindings.ImGui ClearNative((ImGuiNavItemData*)pself); } } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiOldColumnData* ImGuiOldColumnDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[856])(); + #else + return (ImGuiOldColumnData*)((delegate* unmanaged[Cdecl])funcTable[856])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiOldColumnDataPtr ImGuiOldColumnData() + { + ImGuiOldColumnDataPtr ret = ImGuiOldColumnDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiOldColumns* ImGuiOldColumnsNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[857])(); + #else + return (ImGuiOldColumns*)((delegate* unmanaged[Cdecl])funcTable[857])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiOldColumnsPtr ImGuiOldColumns() + { + ImGuiOldColumnsPtr ret = ImGuiOldColumnsNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiDockNode* ImGuiDockNodeNative(uint id) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[858])(id); + #else + return (ImGuiDockNode*)((delegate* unmanaged[Cdecl])funcTable[858])(id); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiDockNodePtr ImGuiDockNode(uint id) + { + ImGuiDockNodePtr ret = ImGuiDockNodeNative(id); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiDockNode* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[859])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[859])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiDockNodePtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + DestroyNative((ImGuiDockNode*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsRootNodeNative(ImGuiDockNode* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[860])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[860])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsRootNode(ImGuiDockNodePtr self) + { + byte ret = IsRootNodeNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsRootNode(ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = IsRootNodeNative((ImGuiDockNode*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsDockSpaceNative(ImGuiDockNode* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[861])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[861])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsDockSpace(ImGuiDockNodePtr self) + { + byte ret = IsDockSpaceNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsDockSpace(ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = IsDockSpaceNative((ImGuiDockNode*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsFloatingNodeNative(ImGuiDockNode* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[862])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[862])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsFloatingNode(ImGuiDockNodePtr self) + { + byte ret = IsFloatingNodeNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsFloatingNode(ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = IsFloatingNodeNative((ImGuiDockNode*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsCentralNodeNative(ImGuiDockNode* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[863])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[863])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsCentralNode(ImGuiDockNodePtr self) + { + byte ret = IsCentralNodeNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsCentralNode(ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = IsCentralNodeNative((ImGuiDockNode*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsHiddenTabBarNative(ImGuiDockNode* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[864])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[864])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsHiddenTabBar(ImGuiDockNodePtr self) + { + byte ret = IsHiddenTabBarNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsHiddenTabBar(ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = IsHiddenTabBarNative((ImGuiDockNode*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsNoTabBarNative(ImGuiDockNode* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[865])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[865])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsNoTabBar(ImGuiDockNodePtr self) + { + byte ret = IsNoTabBarNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsNoTabBar(ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = IsNoTabBarNative((ImGuiDockNode*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsSplitNodeNative(ImGuiDockNode* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[866])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[866])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsSplitNode(ImGuiDockNodePtr self) + { + byte ret = IsSplitNodeNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsSplitNode(ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = IsSplitNodeNative((ImGuiDockNode*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsLeafNodeNative(ImGuiDockNode* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[867])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[867])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsLeafNode(ImGuiDockNodePtr self) + { + byte ret = IsLeafNodeNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsLeafNode(ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = IsLeafNodeNative((ImGuiDockNode*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsEmptyNative(ImGuiDockNode* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[868])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[868])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsEmpty(ImGuiDockNodePtr self) + { + byte ret = IsEmptyNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsEmpty(ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + byte ret = IsEmptyNative((ImGuiDockNode*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RectNative(ImRect* pOut, ImGuiDockNode* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[869])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[869])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ImRect Rect(ImGuiDockNodePtr self) + { + ImRect ret; + RectNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void Rect(ImRectPtr pOut, ImGuiDockNodePtr self) + { + RectNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void Rect(ref ImRect pOut, ImGuiDockNodePtr self) + { + fixed (ImRect* ppOut = &pOut) + { + RectNative((ImRect*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static ImRect Rect(ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + ImRect ret; + RectNative(&ret, (ImGuiDockNode*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void Rect(ImRectPtr pOut, ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + RectNative(pOut, (ImGuiDockNode*)pself); + } + } + + /// + /// To be documented. + /// + public static void Rect(ref ImRect pOut, ref ImGuiDockNode self) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiDockNode* pself = &self) + { + RectNative((ImRect*)ppOut, (ImGuiDockNode*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetLocalFlagsNative(ImGuiDockNode* self, ImGuiDockNodeFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[870])(self, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[870])((nint)self, flags); + #endif + } + + /// + /// To be documented. + /// + public static void SetLocalFlags(ImGuiDockNodePtr self, ImGuiDockNodeFlags flags) + { + SetLocalFlagsNative(self, flags); + } + + /// + /// To be documented. + /// + public static void SetLocalFlags(ref ImGuiDockNode self, ImGuiDockNodeFlags flags) + { + fixed (ImGuiDockNode* pself = &self) + { + SetLocalFlagsNative((ImGuiDockNode*)pself, flags); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void UpdateMergedFlagsNative(ImGuiDockNode* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[871])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[871])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void UpdateMergedFlags(ImGuiDockNodePtr self) + { + UpdateMergedFlagsNative(self); + } + + /// + /// To be documented. + /// + public static void UpdateMergedFlags(ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + UpdateMergedFlagsNative((ImGuiDockNode*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiDockContext* ImGuiDockContextNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[872])(); + #else + return (ImGuiDockContext*)((delegate* unmanaged[Cdecl])funcTable[872])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiDockContextPtr ImGuiDockContext() + { + ImGuiDockContextPtr ret = ImGuiDockContextNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiViewportP* ImGuiViewportPNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[873])(); + #else + return (ImGuiViewportP*)((delegate* unmanaged[Cdecl])funcTable[873])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiViewportPPtr ImGuiViewportP() + { + ImGuiViewportPPtr ret = ImGuiViewportPNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiViewportP* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[874])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[874])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiViewportPPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + DestroyNative((ImGuiViewportP*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearRequestFlagsNative(ImGuiViewportP* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[875])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[875])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ClearRequestFlags(ImGuiViewportPPtr self) + { + ClearRequestFlagsNative(self); + } + + /// + /// To be documented. + /// + public static void ClearRequestFlags(ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + ClearRequestFlagsNative((ImGuiViewportP*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalcWorkRectPosNative(Vector2* pOut, ImGuiViewportP* self, Vector2 offMin) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[876])(pOut, self, offMin); + #else + ((delegate* unmanaged[Cdecl])funcTable[876])((nint)pOut, (nint)self, offMin); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 CalcWorkRectPos(ImGuiViewportPPtr self, Vector2 offMin) + { + Vector2 ret; + CalcWorkRectPosNative(&ret, self, offMin); + return ret; + } + + /// + /// To be documented. + /// + public static void CalcWorkRectPos(Vector2* pOut, ImGuiViewportPPtr self, Vector2 offMin) + { + CalcWorkRectPosNative(pOut, self, offMin); + } + + /// + /// To be documented. + /// + public static void CalcWorkRectPos(ref Vector2 pOut, ImGuiViewportPPtr self, Vector2 offMin) + { + fixed (Vector2* ppOut = &pOut) + { + CalcWorkRectPosNative((Vector2*)ppOut, self, offMin); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcWorkRectPos(ref ImGuiViewportP self, Vector2 offMin) + { + fixed (ImGuiViewportP* pself = &self) + { + Vector2 ret; + CalcWorkRectPosNative(&ret, (ImGuiViewportP*)pself, offMin); + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcWorkRectPos(Vector2* pOut, ref ImGuiViewportP self, Vector2 offMin) + { + fixed (ImGuiViewportP* pself = &self) + { + CalcWorkRectPosNative(pOut, (ImGuiViewportP*)pself, offMin); + } + } + + /// + /// To be documented. + /// + public static void CalcWorkRectPos(ref Vector2 pOut, ref ImGuiViewportP self, Vector2 offMin) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImGuiViewportP* pself = &self) + { + CalcWorkRectPosNative((Vector2*)ppOut, (ImGuiViewportP*)pself, offMin); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalcWorkRectSizeNative(Vector2* pOut, ImGuiViewportP* self, Vector2 offMin, Vector2 offMax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[877])(pOut, self, offMin, offMax); + #else + ((delegate* unmanaged[Cdecl])funcTable[877])((nint)pOut, (nint)self, offMin, offMax); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 CalcWorkRectSize(ImGuiViewportPPtr self, Vector2 offMin, Vector2 offMax) + { + Vector2 ret; + CalcWorkRectSizeNative(&ret, self, offMin, offMax); + return ret; + } + + /// + /// To be documented. + /// + public static void CalcWorkRectSize(Vector2* pOut, ImGuiViewportPPtr self, Vector2 offMin, Vector2 offMax) + { + CalcWorkRectSizeNative(pOut, self, offMin, offMax); + } + + /// + /// To be documented. + /// + public static void CalcWorkRectSize(ref Vector2 pOut, ImGuiViewportPPtr self, Vector2 offMin, Vector2 offMax) + { + fixed (Vector2* ppOut = &pOut) + { + CalcWorkRectSizeNative((Vector2*)ppOut, self, offMin, offMax); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcWorkRectSize(ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) + { + fixed (ImGuiViewportP* pself = &self) + { + Vector2 ret; + CalcWorkRectSizeNative(&ret, (ImGuiViewportP*)pself, offMin, offMax); + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcWorkRectSize(Vector2* pOut, ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) + { + fixed (ImGuiViewportP* pself = &self) + { + CalcWorkRectSizeNative(pOut, (ImGuiViewportP*)pself, offMin, offMax); + } + } + + /// + /// To be documented. + /// + public static void CalcWorkRectSize(ref Vector2 pOut, ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImGuiViewportP* pself = &self) + { + CalcWorkRectSizeNative((Vector2*)ppOut, (ImGuiViewportP*)pself, offMin, offMax); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void UpdateWorkRectNative(ImGuiViewportP* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[878])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[878])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void UpdateWorkRect(ImGuiViewportPPtr self) + { + UpdateWorkRectNative(self); + } + + /// + /// To be documented. + /// + public static void UpdateWorkRect(ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + UpdateWorkRectNative((ImGuiViewportP*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetMainRectNative(ImRect* pOut, ImGuiViewportP* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[879])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[879])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ImRect GetMainRect(ImGuiViewportPPtr self) + { + ImRect ret; + GetMainRectNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void GetMainRect(ImRectPtr pOut, ImGuiViewportPPtr self) + { + GetMainRectNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void GetMainRect(ref ImRect pOut, ImGuiViewportPPtr self) + { + fixed (ImRect* ppOut = &pOut) + { + GetMainRectNative((ImRect*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static ImRect GetMainRect(ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + ImRect ret; + GetMainRectNative(&ret, (ImGuiViewportP*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void GetMainRect(ImRectPtr pOut, ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + GetMainRectNative(pOut, (ImGuiViewportP*)pself); + } + } + + /// + /// To be documented. + /// + public static void GetMainRect(ref ImRect pOut, ref ImGuiViewportP self) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiViewportP* pself = &self) + { + GetMainRectNative((ImRect*)ppOut, (ImGuiViewportP*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetWorkRectNative(ImRect* pOut, ImGuiViewportP* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[880])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[880])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ImRect GetWorkRect(ImGuiViewportPPtr self) + { + ImRect ret; + GetWorkRectNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void GetWorkRect(ImRectPtr pOut, ImGuiViewportPPtr self) + { + GetWorkRectNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void GetWorkRect(ref ImRect pOut, ImGuiViewportPPtr self) + { + fixed (ImRect* ppOut = &pOut) + { + GetWorkRectNative((ImRect*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static ImRect GetWorkRect(ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + ImRect ret; + GetWorkRectNative(&ret, (ImGuiViewportP*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void GetWorkRect(ImRectPtr pOut, ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + GetWorkRectNative(pOut, (ImGuiViewportP*)pself); + } + } + + /// + /// To be documented. + /// + public static void GetWorkRect(ref ImRect pOut, ref ImGuiViewportP self) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiViewportP* pself = &self) + { + GetWorkRectNative((ImRect*)ppOut, (ImGuiViewportP*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetBuildWorkRectNative(ImRect* pOut, ImGuiViewportP* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[881])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[881])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ImRect GetBuildWorkRect(ImGuiViewportPPtr self) + { + ImRect ret; + GetBuildWorkRectNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void GetBuildWorkRect(ImRectPtr pOut, ImGuiViewportPPtr self) + { + GetBuildWorkRectNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void GetBuildWorkRect(ref ImRect pOut, ImGuiViewportPPtr self) + { + fixed (ImRect* ppOut = &pOut) + { + GetBuildWorkRectNative((ImRect*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static ImRect GetBuildWorkRect(ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + ImRect ret; + GetBuildWorkRectNative(&ret, (ImGuiViewportP*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void GetBuildWorkRect(ImRectPtr pOut, ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + GetBuildWorkRectNative(pOut, (ImGuiViewportP*)pself); + } + } + + /// + /// To be documented. + /// + public static void GetBuildWorkRect(ref ImRect pOut, ref ImGuiViewportP self) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiViewportP* pself = &self) + { + GetBuildWorkRectNative((ImRect*)ppOut, (ImGuiViewportP*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiWindowSettings* ImGuiWindowSettingsNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[882])(); + #else + return (ImGuiWindowSettings*)((delegate* unmanaged[Cdecl])funcTable[882])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiWindowSettingsPtr ImGuiWindowSettings() + { + ImGuiWindowSettingsPtr ret = ImGuiWindowSettingsNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetNameNative(ImGuiWindowSettings* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[883])(self); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[883])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetName(ImGuiWindowSettingsPtr self) + { + byte* ret = GetNameNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static string GetNameS(ImGuiWindowSettingsPtr self) + { + string ret = Utils.DecodeStringUTF8(GetNameNative(self)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* GetName(ref ImGuiWindowSettings self) + { + fixed (ImGuiWindowSettings* pself = &self) + { + byte* ret = GetNameNative((ImGuiWindowSettings*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static string GetNameS(ref ImGuiWindowSettings self) + { + fixed (ImGuiWindowSettings* pself = &self) + { + string ret = Utils.DecodeStringUTF8(GetNameNative((ImGuiWindowSettings*)pself)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiSettingsHandler* ImGuiSettingsHandlerNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[884])(); + #else + return (ImGuiSettingsHandler*)((delegate* unmanaged[Cdecl])funcTable[884])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiSettingsHandlerPtr ImGuiSettingsHandler() + { + ImGuiSettingsHandlerPtr ret = ImGuiSettingsHandlerNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiMetricsConfig* ImGuiMetricsConfigNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[885])(); + #else + return (ImGuiMetricsConfig*)((delegate* unmanaged[Cdecl])funcTable[885])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiMetricsConfigPtr ImGuiMetricsConfig() + { + ImGuiMetricsConfigPtr ret = ImGuiMetricsConfigNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiStackLevelInfo* ImGuiStackLevelInfoNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[886])(); + #else + return (ImGuiStackLevelInfo*)((delegate* unmanaged[Cdecl])funcTable[886])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiStackLevelInfoPtr ImGuiStackLevelInfo() + { + ImGuiStackLevelInfoPtr ret = ImGuiStackLevelInfoNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiStackTool* ImGuiStackToolNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[887])(); + #else + return (ImGuiStackTool*)((delegate* unmanaged[Cdecl])funcTable[887])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiStackToolPtr ImGuiStackTool() + { + ImGuiStackToolPtr ret = ImGuiStackToolNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiContextHook* ImGuiContextHookNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[888])(); + #else + return (ImGuiContextHook*)((delegate* unmanaged[Cdecl])funcTable[888])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiContextHookPtr ImGuiContextHook() + { + ImGuiContextHookPtr ret = ImGuiContextHookNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiContext* ImGuiContextNative(ImFontAtlas* sharedFontAtlas) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[889])(sharedFontAtlas); + #else + return (ImGuiContext*)((delegate* unmanaged[Cdecl])funcTable[889])((nint)sharedFontAtlas); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiContextPtr ImGuiContext(ImFontAtlasPtr sharedFontAtlas) + { + ImGuiContextPtr ret = ImGuiContextNative(sharedFontAtlas); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiContextPtr ImGuiContext(ref ImFontAtlas sharedFontAtlas) + { + fixed (ImFontAtlas* psharedFontAtlas = &sharedFontAtlas) + { + ImGuiContextPtr ret = ImGuiContextNative((ImFontAtlas*)psharedFontAtlas); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiWindow* ImGuiWindowNative(ImGuiContext* context, byte* name) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[890])(context, name); + #else + return (ImGuiWindow*)((delegate* unmanaged[Cdecl])funcTable[890])((nint)context, (nint)name); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr ImGuiWindow(ImGuiContextPtr context, byte* name) + { + ImGuiWindowPtr ret = ImGuiWindowNative(context, name); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr ImGuiWindow(ref ImGuiContext context, byte* name) + { + fixed (ImGuiContext* pcontext = &context) + { + ImGuiWindowPtr ret = ImGuiWindowNative((ImGuiContext*)pcontext, name); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr ImGuiWindow(ImGuiContextPtr context, ref byte name) + { + fixed (byte* pname = &name) + { + ImGuiWindowPtr ret = ImGuiWindowNative(context, (byte*)pname); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr ImGuiWindow(ImGuiContextPtr context, ReadOnlySpan name) + { + fixed (byte* pname = name) + { + ImGuiWindowPtr ret = ImGuiWindowNative(context, (byte*)pname); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr ImGuiWindow(ImGuiContextPtr context, string name) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGuiWindowPtr ret = ImGuiWindowNative(context, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr ImGuiWindow(ref ImGuiContext context, ref byte name) + { + fixed (ImGuiContext* pcontext = &context) + { + fixed (byte* pname = &name) + { + ImGuiWindowPtr ret = ImGuiWindowNative((ImGuiContext*)pcontext, (byte*)pname); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr ImGuiWindow(ref ImGuiContext context, ReadOnlySpan name) + { + fixed (ImGuiContext* pcontext = &context) + { + fixed (byte* pname = name) + { + ImGuiWindowPtr ret = ImGuiWindowNative((ImGuiContext*)pcontext, (byte*)pname); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImGuiWindowPtr ImGuiWindow(ref ImGuiContext context, string name) + { + fixed (ImGuiContext* pcontext = &context) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGuiWindowPtr ret = ImGuiWindowNative((ImGuiContext*)pcontext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiWindow* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[891])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[891])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiWindowPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + DestroyNative((ImGuiWindow*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetIDNative(ImGuiWindow* self, byte* str, byte* strEnd) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[892])(self, str, strEnd); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[892])((nint)self, (nint)str, (nint)strEnd); + #endif + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, byte* str, byte* strEnd) + { + uint ret = GetIDNative(self, str, strEnd); + return ret; + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, byte* str) + { + uint ret = GetIDNative(self, str, (byte*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, byte* str, byte* strEnd) + { + fixed (ImGuiWindow* pself = &self) + { + uint ret = GetIDNative((ImGuiWindow*)pself, str, strEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, byte* str) + { + fixed (ImGuiWindow* pself = &self) + { + uint ret = GetIDNative((ImGuiWindow*)pself, str, (byte*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, ref byte str, byte* strEnd) + { + fixed (byte* pstr = &str) + { + uint ret = GetIDNative(self, (byte*)pstr, strEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, ref byte str) + { + fixed (byte* pstr = &str) + { + uint ret = GetIDNative(self, (byte*)pstr, (byte*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, ReadOnlySpan str, byte* strEnd) + { + fixed (byte* pstr = str) + { + uint ret = GetIDNative(self, (byte*)pstr, strEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, ReadOnlySpan str) + { + fixed (byte* pstr = str) + { + uint ret = GetIDNative(self, (byte*)pstr, (byte*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, string str, byte* strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDNative(self, pStr0, strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, string str) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDNative(self, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, ref byte str, byte* strEnd) + { + fixed (ImGuiWindow* pself = &self) + { + fixed (byte* pstr = &str) + { + uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, strEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, ref byte str) + { + fixed (ImGuiWindow* pself = &self) + { + fixed (byte* pstr = &str) + { + uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, ReadOnlySpan str, byte* strEnd) + { + fixed (ImGuiWindow* pself = &self) + { + fixed (byte* pstr = str) + { + uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, strEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, ReadOnlySpan str) + { + fixed (ImGuiWindow* pself = &self) + { + fixed (byte* pstr = str) + { + uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, string str, byte* strEnd) + { + fixed (ImGuiWindow* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDNative((ImGuiWindow*)pself, pStr0, strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, string str) + { + fixed (ImGuiWindow* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDNative((ImGuiWindow*)pself, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, byte* str, ref byte strEnd) + { + fixed (byte* pstrEnd = &strEnd) + { + uint ret = GetIDNative(self, str, (byte*)pstrEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, byte* str, ReadOnlySpan strEnd) + { + fixed (byte* pstrEnd = strEnd) + { + uint ret = GetIDNative(self, str, (byte*)pstrEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, byte* str, string strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDNative(self, str, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, byte* str, ref byte strEnd) + { + fixed (ImGuiWindow* pself = &self) + { + fixed (byte* pstrEnd = &strEnd) + { + uint ret = GetIDNative((ImGuiWindow*)pself, str, (byte*)pstrEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, byte* str, ReadOnlySpan strEnd) + { + fixed (ImGuiWindow* pself = &self) + { + fixed (byte* pstrEnd = strEnd) + { + uint ret = GetIDNative((ImGuiWindow*)pself, str, (byte*)pstrEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, byte* str, string strEnd) + { + fixed (ImGuiWindow* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDNative((ImGuiWindow*)pself, str, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, ref byte str, ref byte strEnd) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = &strEnd) + { + uint ret = GetIDNative(self, (byte*)pstr, (byte*)pstrEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, ReadOnlySpan str, ReadOnlySpan strEnd) + { + fixed (byte* pstr = str) + { + fixed (byte* pstrEnd = strEnd) + { + uint ret = GetIDNative(self, (byte*)pstr, (byte*)pstrEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, string str, string strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (strEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + uint ret = GetIDNative(self, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, ref byte str, ReadOnlySpan strEnd) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = strEnd) + { + uint ret = GetIDNative(self, (byte*)pstr, (byte*)pstrEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, ref byte str, string strEnd) + { + fixed (byte* pstr = &str) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDNative(self, (byte*)pstr, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, ReadOnlySpan str, ref byte strEnd) + { + fixed (byte* pstr = str) + { + fixed (byte* pstrEnd = &strEnd) + { + uint ret = GetIDNative(self, (byte*)pstr, (byte*)pstrEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, ReadOnlySpan str, string strEnd) + { + fixed (byte* pstr = str) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDNative(self, (byte*)pstr, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, string str, ref byte strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrEnd = &strEnd) + { + uint ret = GetIDNative(self, pStr0, (byte*)pstrEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, string str, ReadOnlySpan strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrEnd = strEnd) + { + uint ret = GetIDNative(self, pStr0, (byte*)pstrEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, ref byte str, ref byte strEnd) + { + fixed (ImGuiWindow* pself = &self) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = &strEnd) + { + uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)pstrEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, ReadOnlySpan str, ReadOnlySpan strEnd) + { + fixed (ImGuiWindow* pself = &self) + { + fixed (byte* pstr = str) + { + fixed (byte* pstrEnd = strEnd) + { + uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)pstrEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, string str, string strEnd) + { + fixed (ImGuiWindow* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (strEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + uint ret = GetIDNative((ImGuiWindow*)pself, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, ref byte str, ReadOnlySpan strEnd) + { + fixed (ImGuiWindow* pself = &self) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = strEnd) + { + uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)pstrEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, ref byte str, string strEnd) + { + fixed (ImGuiWindow* pself = &self) + { + fixed (byte* pstr = &str) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, ReadOnlySpan str, ref byte strEnd) + { + fixed (ImGuiWindow* pself = &self) + { + fixed (byte* pstr = str) + { + fixed (byte* pstrEnd = &strEnd) + { + uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)pstrEnd); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, ReadOnlySpan str, string strEnd) + { + fixed (ImGuiWindow* pself = &self) + { + fixed (byte* pstr = str) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, string str, ref byte strEnd) + { + fixed (ImGuiWindow* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrEnd = &strEnd) + { + uint ret = GetIDNative((ImGuiWindow*)pself, pStr0, (byte*)pstrEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, string str, ReadOnlySpan strEnd) + { + fixed (ImGuiWindow* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrEnd = strEnd) + { + uint ret = GetIDNative((ImGuiWindow*)pself, pStr0, (byte*)pstrEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetIDNative(ImGuiWindow* self, void* ptr) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[893])(self, ptr); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[893])((nint)self, (nint)ptr); + #endif + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, void* ptr) + { + uint ret = GetIDNative(self, ptr); + return ret; + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, void* ptr) + { + fixed (ImGuiWindow* pself = &self) + { + uint ret = GetIDNative((ImGuiWindow*)pself, ptr); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetIDNative(ImGuiWindow* self, int n) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[894])(self, n); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[894])((nint)self, n); + #endif + } + + /// + /// To be documented. + /// + public static uint GetID(ImGuiWindowPtr self, int n) + { + uint ret = GetIDNative(self, n); + return ret; + } + + /// + /// To be documented. + /// + public static uint GetID(ref ImGuiWindow self, int n) + { + fixed (ImGuiWindow* pself = &self) + { + uint ret = GetIDNative((ImGuiWindow*)pself, n); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetIDFromRectangleNative(ImGuiWindow* self, ImRect rAbs) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[895])(self, rAbs); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[895])((nint)self, rAbs); + #endif + } + + /// + /// To be documented. + /// + public static uint GetIDFromRectangle(ImGuiWindowPtr self, ImRect rAbs) + { + uint ret = GetIDFromRectangleNative(self, rAbs); + return ret; + } + + /// + /// To be documented. + /// + public static uint GetIDFromRectangle(ref ImGuiWindow self, ImRect rAbs) + { + fixed (ImGuiWindow* pself = &self) + { + uint ret = GetIDFromRectangleNative((ImGuiWindow*)pself, rAbs); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RectNative(ImRect* pOut, ImGuiWindow* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[896])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[896])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ImRect Rect(ImGuiWindowPtr self) + { + ImRect ret; + RectNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void Rect(ImRectPtr pOut, ImGuiWindowPtr self) + { + RectNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void Rect(ref ImRect pOut, ImGuiWindowPtr self) + { + fixed (ImRect* ppOut = &pOut) + { + RectNative((ImRect*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static ImRect Rect(ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + ImRect ret; + RectNative(&ret, (ImGuiWindow*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void Rect(ImRectPtr pOut, ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + RectNative(pOut, (ImGuiWindow*)pself); + } + } + + /// + /// To be documented. + /// + public static void Rect(ref ImRect pOut, ref ImGuiWindow self) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiWindow* pself = &self) + { + RectNative((ImRect*)ppOut, (ImGuiWindow*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float CalcFontSizeNative(ImGuiWindow* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[897])(self); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[897])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static float CalcFontSize(ImGuiWindowPtr self) + { + float ret = CalcFontSizeNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static float CalcFontSize(ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + float ret = CalcFontSizeNative((ImGuiWindow*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float TitleBarHeightNative(ImGuiWindow* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[898])(self); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[898])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static float TitleBarHeight(ImGuiWindowPtr self) + { + float ret = TitleBarHeightNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static float TitleBarHeight(ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + float ret = TitleBarHeightNative((ImGuiWindow*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TitleBarRectNative(ImRect* pOut, ImGuiWindow* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[899])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[899])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ImRect TitleBarRect(ImGuiWindowPtr self) + { + ImRect ret; + TitleBarRectNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void TitleBarRect(ImRectPtr pOut, ImGuiWindowPtr self) + { + TitleBarRectNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void TitleBarRect(ref ImRect pOut, ImGuiWindowPtr self) + { + fixed (ImRect* ppOut = &pOut) + { + TitleBarRectNative((ImRect*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static ImRect TitleBarRect(ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + ImRect ret; + TitleBarRectNative(&ret, (ImGuiWindow*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void TitleBarRect(ImRectPtr pOut, ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + TitleBarRectNative(pOut, (ImGuiWindow*)pself); + } + } + + /// + /// To be documented. + /// + public static void TitleBarRect(ref ImRect pOut, ref ImGuiWindow self) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiWindow* pself = &self) + { + TitleBarRectNative((ImRect*)ppOut, (ImGuiWindow*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float MenuBarHeightNative(ImGuiWindow* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[900])(self); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[900])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static float MenuBarHeight(ImGuiWindowPtr self) + { + float ret = MenuBarHeightNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static float MenuBarHeight(ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + float ret = MenuBarHeightNative((ImGuiWindow*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void MenuBarRectNative(ImRect* pOut, ImGuiWindow* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[901])(pOut, self); + #else + ((delegate* unmanaged[Cdecl])funcTable[901])((nint)pOut, (nint)self); + #endif + } + + /// + /// To be documented. + /// + public static ImRect MenuBarRect(ImGuiWindowPtr self) + { + ImRect ret; + MenuBarRectNative(&ret, self); + return ret; + } + + /// + /// To be documented. + /// + public static void MenuBarRect(ImRectPtr pOut, ImGuiWindowPtr self) + { + MenuBarRectNative(pOut, self); + } + + /// + /// To be documented. + /// + public static void MenuBarRect(ref ImRect pOut, ImGuiWindowPtr self) + { + fixed (ImRect* ppOut = &pOut) + { + MenuBarRectNative((ImRect*)ppOut, self); + } + } + + /// + /// To be documented. + /// + public static ImRect MenuBarRect(ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + ImRect ret; + MenuBarRectNative(&ret, (ImGuiWindow*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static void MenuBarRect(ImRectPtr pOut, ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + MenuBarRectNative(pOut, (ImGuiWindow*)pself); + } + } + + /// + /// To be documented. + /// + public static void MenuBarRect(ref ImRect pOut, ref ImGuiWindow self) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiWindow* pself = &self) + { + MenuBarRectNative((ImRect*)ppOut, (ImGuiWindow*)pself); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTabItem* ImGuiTabItemNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[902])(); + #else + return (ImGuiTabItem*)((delegate* unmanaged[Cdecl])funcTable[902])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTabItemPtr ImGuiTabItem() + { + ImGuiTabItemPtr ret = ImGuiTabItemNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTabBar* ImGuiTabBarNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[903])(); + #else + return (ImGuiTabBar*)((delegate* unmanaged[Cdecl])funcTable[903])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTabBarPtr ImGuiTabBar() + { + ImGuiTabBarPtr ret = ImGuiTabBarNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetTabOrderNative(ImGuiTabBar* self, ImGuiTabItem* tab) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[904])(self, tab); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[904])((nint)self, (nint)tab); + #endif + } + + /// + /// To be documented. + /// + public static int GetTabOrder(ImGuiTabBarPtr self, ImGuiTabItemPtr tab) + { + int ret = GetTabOrderNative(self, tab); + return ret; + } + + /// + /// To be documented. + /// + public static int GetTabOrder(ref ImGuiTabBar self, ImGuiTabItemPtr tab) + { + fixed (ImGuiTabBar* pself = &self) + { + int ret = GetTabOrderNative((ImGuiTabBar*)pself, tab); + return ret; + } + } + + /// + /// To be documented. + /// + public static int GetTabOrder(ImGuiTabBarPtr self, ref ImGuiTabItem tab) + { + fixed (ImGuiTabItem* ptab = &tab) + { + int ret = GetTabOrderNative(self, (ImGuiTabItem*)ptab); + return ret; + } + } + + /// + /// To be documented. + /// + public static int GetTabOrder(ref ImGuiTabBar self, ref ImGuiTabItem tab) + { + fixed (ImGuiTabBar* pself = &self) + { + fixed (ImGuiTabItem* ptab = &tab) + { + int ret = GetTabOrderNative((ImGuiTabBar*)pself, (ImGuiTabItem*)ptab); + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetTabNameNative(ImGuiTabBar* self, ImGuiTabItem* tab) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[905])(self, tab); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[905])((nint)self, (nint)tab); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetTabName(ImGuiTabBarPtr self, ImGuiTabItemPtr tab) + { + byte* ret = GetTabNameNative(self, tab); + return ret; + } + + /// + /// To be documented. + /// + public static string GetTabNameS(ImGuiTabBarPtr self, ImGuiTabItemPtr tab) + { + string ret = Utils.DecodeStringUTF8(GetTabNameNative(self, tab)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* GetTabName(ref ImGuiTabBar self, ImGuiTabItemPtr tab) + { + fixed (ImGuiTabBar* pself = &self) + { + byte* ret = GetTabNameNative((ImGuiTabBar*)pself, tab); + return ret; + } + } + + /// + /// To be documented. + /// + public static string GetTabNameS(ref ImGuiTabBar self, ImGuiTabItemPtr tab) + { + fixed (ImGuiTabBar* pself = &self) + { + string ret = Utils.DecodeStringUTF8(GetTabNameNative((ImGuiTabBar*)pself, tab)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* GetTabName(ImGuiTabBarPtr self, ref ImGuiTabItem tab) + { + fixed (ImGuiTabItem* ptab = &tab) + { + byte* ret = GetTabNameNative(self, (ImGuiTabItem*)ptab); + return ret; + } + } + + /// + /// To be documented. + /// + public static string GetTabNameS(ImGuiTabBarPtr self, ref ImGuiTabItem tab) + { + fixed (ImGuiTabItem* ptab = &tab) + { + string ret = Utils.DecodeStringUTF8(GetTabNameNative(self, (ImGuiTabItem*)ptab)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* GetTabName(ref ImGuiTabBar self, ref ImGuiTabItem tab) + { + fixed (ImGuiTabBar* pself = &self) + { + fixed (ImGuiTabItem* ptab = &tab) + { + byte* ret = GetTabNameNative((ImGuiTabBar*)pself, (ImGuiTabItem*)ptab); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string GetTabNameS(ref ImGuiTabBar self, ref ImGuiTabItem tab) + { + fixed (ImGuiTabBar* pself = &self) + { + fixed (ImGuiTabItem* ptab = &tab) + { + string ret = Utils.DecodeStringUTF8(GetTabNameNative((ImGuiTabBar*)pself, (ImGuiTabItem*)ptab)); + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTableColumn* ImGuiTableColumnNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[906])(); + #else + return (ImGuiTableColumn*)((delegate* unmanaged[Cdecl])funcTable[906])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTableColumnPtr ImGuiTableColumn() + { + ImGuiTableColumnPtr ret = ImGuiTableColumnNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTableInstanceData* ImGuiTableInstanceDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[907])(); + #else + return (ImGuiTableInstanceData*)((delegate* unmanaged[Cdecl])funcTable[907])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTableInstanceDataPtr ImGuiTableInstanceData() + { + ImGuiTableInstanceDataPtr ret = ImGuiTableInstanceDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTable* ImGuiTableNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[908])(); + #else + return (ImGuiTable*)((delegate* unmanaged[Cdecl])funcTable[908])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTablePtr ImGuiTable() + { + ImGuiTablePtr ret = ImGuiTableNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImGuiTable* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[909])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[909])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImGuiTablePtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImGuiTable self) + { + fixed (ImGuiTable* pself = &self) + { + DestroyNative((ImGuiTable*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTableTempData* ImGuiTableTempDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[910])(); + #else + return (ImGuiTableTempData*)((delegate* unmanaged[Cdecl])funcTable[910])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTableTempDataPtr ImGuiTableTempData() + { + ImGuiTableTempDataPtr ret = ImGuiTableTempDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTableColumnSettings* ImGuiTableColumnSettingsNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[911])(); + #else + return (ImGuiTableColumnSettings*)((delegate* unmanaged[Cdecl])funcTable[911])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTableColumnSettingsPtr ImGuiTableColumnSettings() + { + ImGuiTableColumnSettingsPtr ret = ImGuiTableColumnSettingsNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTableSettings* ImGuiTableSettingsNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[912])(); + #else + return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl])funcTable[912])(); + #endif + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.007.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.007.cs index 8670d49d9..bf1832ee3 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.007.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.007.cs @@ -18,3208 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGuiP { - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiOldColumnData* ImGuiOldColumnDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[857])(); - #else - return (ImGuiOldColumnData*)((delegate* unmanaged[Cdecl])funcTable[857])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiOldColumnDataPtr ImGuiOldColumnData() - { - ImGuiOldColumnDataPtr ret = ImGuiOldColumnDataNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiOldColumns* ImGuiOldColumnsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[858])(); - #else - return (ImGuiOldColumns*)((delegate* unmanaged[Cdecl])funcTable[858])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiOldColumnsPtr ImGuiOldColumns() - { - ImGuiOldColumnsPtr ret = ImGuiOldColumnsNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiDockNode* ImGuiDockNodeNative(uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[859])(id); - #else - return (ImGuiDockNode*)((delegate* unmanaged[Cdecl])funcTable[859])(id); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiDockNodePtr ImGuiDockNode(uint id) - { - ImGuiDockNodePtr ret = ImGuiDockNodeNative(id); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[860])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[860])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiDockNodePtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - DestroyNative((ImGuiDockNode*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsRootNodeNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[861])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[861])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsRootNode(ImGuiDockNodePtr self) - { - byte ret = IsRootNodeNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsRootNode(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsRootNodeNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsDockSpaceNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[862])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[862])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsDockSpace(ImGuiDockNodePtr self) - { - byte ret = IsDockSpaceNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsDockSpace(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsDockSpaceNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsFloatingNodeNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[863])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[863])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsFloatingNode(ImGuiDockNodePtr self) - { - byte ret = IsFloatingNodeNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsFloatingNode(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsFloatingNodeNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsCentralNodeNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[864])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[864])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsCentralNode(ImGuiDockNodePtr self) - { - byte ret = IsCentralNodeNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsCentralNode(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsCentralNodeNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsHiddenTabBarNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[865])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[865])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsHiddenTabBar(ImGuiDockNodePtr self) - { - byte ret = IsHiddenTabBarNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsHiddenTabBar(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsHiddenTabBarNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsNoTabBarNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[866])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[866])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsNoTabBar(ImGuiDockNodePtr self) - { - byte ret = IsNoTabBarNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsNoTabBar(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsNoTabBarNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsSplitNodeNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[867])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[867])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsSplitNode(ImGuiDockNodePtr self) - { - byte ret = IsSplitNodeNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsSplitNode(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsSplitNodeNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsLeafNodeNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[868])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[868])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsLeafNode(ImGuiDockNodePtr self) - { - byte ret = IsLeafNodeNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsLeafNode(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsLeafNodeNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsEmptyNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[869])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[869])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsEmpty(ImGuiDockNodePtr self) - { - byte ret = IsEmptyNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsEmpty(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsEmptyNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RectNative(ImRect* pOut, ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[870])(pOut, self); - #else - ((delegate* unmanaged[Cdecl])funcTable[870])((nint)pOut, (nint)self); - #endif - } - - /// - /// To be documented. - /// - public static ImRect Rect(ImGuiDockNodePtr self) - { - ImRect ret; - RectNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void Rect(ImRectPtr pOut, ImGuiDockNodePtr self) - { - RectNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void Rect(ref ImRect pOut, ImGuiDockNodePtr self) - { - fixed (ImRect* ppOut = &pOut) - { - RectNative((ImRect*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static ImRect Rect(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - ImRect ret; - RectNative(&ret, (ImGuiDockNode*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void Rect(ImRectPtr pOut, ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - RectNative(pOut, (ImGuiDockNode*)pself); - } - } - - /// - /// To be documented. - /// - public static void Rect(ref ImRect pOut, ref ImGuiDockNode self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiDockNode* pself = &self) - { - RectNative((ImRect*)ppOut, (ImGuiDockNode*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetLocalFlagsNative(ImGuiDockNode* self, ImGuiDockNodeFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[871])(self, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[871])((nint)self, flags); - #endif - } - - /// - /// To be documented. - /// - public static void SetLocalFlags(ImGuiDockNodePtr self, ImGuiDockNodeFlags flags) - { - SetLocalFlagsNative(self, flags); - } - - /// - /// To be documented. - /// - public static void SetLocalFlags(ref ImGuiDockNode self, ImGuiDockNodeFlags flags) - { - fixed (ImGuiDockNode* pself = &self) - { - SetLocalFlagsNative((ImGuiDockNode*)pself, flags); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UpdateMergedFlagsNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[872])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[872])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void UpdateMergedFlags(ImGuiDockNodePtr self) - { - UpdateMergedFlagsNative(self); - } - - /// - /// To be documented. - /// - public static void UpdateMergedFlags(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - UpdateMergedFlagsNative((ImGuiDockNode*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiDockContext* ImGuiDockContextNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[873])(); - #else - return (ImGuiDockContext*)((delegate* unmanaged[Cdecl])funcTable[873])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiDockContextPtr ImGuiDockContext() - { - ImGuiDockContextPtr ret = ImGuiDockContextNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiViewportP* ImGuiViewportPNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[874])(); - #else - return (ImGuiViewportP*)((delegate* unmanaged[Cdecl])funcTable[874])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiViewportPPtr ImGuiViewportP() - { - ImGuiViewportPPtr ret = ImGuiViewportPNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiViewportP* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[875])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[875])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiViewportPPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - DestroyNative((ImGuiViewportP*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearRequestFlagsNative(ImGuiViewportP* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[876])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[876])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void ClearRequestFlags(ImGuiViewportPPtr self) - { - ClearRequestFlagsNative(self); - } - - /// - /// To be documented. - /// - public static void ClearRequestFlags(ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ClearRequestFlagsNative((ImGuiViewportP*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcWorkRectPosNative(Vector2* pOut, ImGuiViewportP* self, Vector2 offMin) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[877])(pOut, self, offMin); - #else - ((delegate* unmanaged[Cdecl])funcTable[877])((nint)pOut, (nint)self, offMin); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 CalcWorkRectPos(ImGuiViewportPPtr self, Vector2 offMin) - { - Vector2 ret; - CalcWorkRectPosNative(&ret, self, offMin); - return ret; - } - - /// - /// To be documented. - /// - public static void CalcWorkRectPos(Vector2* pOut, ImGuiViewportPPtr self, Vector2 offMin) - { - CalcWorkRectPosNative(pOut, self, offMin); - } - - /// - /// To be documented. - /// - public static void CalcWorkRectPos(ref Vector2 pOut, ImGuiViewportPPtr self, Vector2 offMin) - { - fixed (Vector2* ppOut = &pOut) - { - CalcWorkRectPosNative((Vector2*)ppOut, self, offMin); - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcWorkRectPos(ref ImGuiViewportP self, Vector2 offMin) - { - fixed (ImGuiViewportP* pself = &self) - { - Vector2 ret; - CalcWorkRectPosNative(&ret, (ImGuiViewportP*)pself, offMin); - return ret; - } - } - - /// - /// To be documented. - /// - public static void CalcWorkRectPos(Vector2* pOut, ref ImGuiViewportP self, Vector2 offMin) - { - fixed (ImGuiViewportP* pself = &self) - { - CalcWorkRectPosNative(pOut, (ImGuiViewportP*)pself, offMin); - } - } - - /// - /// To be documented. - /// - public static void CalcWorkRectPos(ref Vector2 pOut, ref ImGuiViewportP self, Vector2 offMin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiViewportP* pself = &self) - { - CalcWorkRectPosNative((Vector2*)ppOut, (ImGuiViewportP*)pself, offMin); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcWorkRectSizeNative(Vector2* pOut, ImGuiViewportP* self, Vector2 offMin, Vector2 offMax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[878])(pOut, self, offMin, offMax); - #else - ((delegate* unmanaged[Cdecl])funcTable[878])((nint)pOut, (nint)self, offMin, offMax); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 CalcWorkRectSize(ImGuiViewportPPtr self, Vector2 offMin, Vector2 offMax) - { - Vector2 ret; - CalcWorkRectSizeNative(&ret, self, offMin, offMax); - return ret; - } - - /// - /// To be documented. - /// - public static void CalcWorkRectSize(Vector2* pOut, ImGuiViewportPPtr self, Vector2 offMin, Vector2 offMax) - { - CalcWorkRectSizeNative(pOut, self, offMin, offMax); - } - - /// - /// To be documented. - /// - public static void CalcWorkRectSize(ref Vector2 pOut, ImGuiViewportPPtr self, Vector2 offMin, Vector2 offMax) - { - fixed (Vector2* ppOut = &pOut) - { - CalcWorkRectSizeNative((Vector2*)ppOut, self, offMin, offMax); - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcWorkRectSize(ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) - { - fixed (ImGuiViewportP* pself = &self) - { - Vector2 ret; - CalcWorkRectSizeNative(&ret, (ImGuiViewportP*)pself, offMin, offMax); - return ret; - } - } - - /// - /// To be documented. - /// - public static void CalcWorkRectSize(Vector2* pOut, ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) - { - fixed (ImGuiViewportP* pself = &self) - { - CalcWorkRectSizeNative(pOut, (ImGuiViewportP*)pself, offMin, offMax); - } - } - - /// - /// To be documented. - /// - public static void CalcWorkRectSize(ref Vector2 pOut, ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiViewportP* pself = &self) - { - CalcWorkRectSizeNative((Vector2*)ppOut, (ImGuiViewportP*)pself, offMin, offMax); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UpdateWorkRectNative(ImGuiViewportP* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[879])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[879])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void UpdateWorkRect(ImGuiViewportPPtr self) - { - UpdateWorkRectNative(self); - } - - /// - /// To be documented. - /// - public static void UpdateWorkRect(ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - UpdateWorkRectNative((ImGuiViewportP*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetMainRectNative(ImRect* pOut, ImGuiViewportP* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[880])(pOut, self); - #else - ((delegate* unmanaged[Cdecl])funcTable[880])((nint)pOut, (nint)self); - #endif - } - - /// - /// To be documented. - /// - public static ImRect GetMainRect(ImGuiViewportPPtr self) - { - ImRect ret; - GetMainRectNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void GetMainRect(ImRectPtr pOut, ImGuiViewportPPtr self) - { - GetMainRectNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void GetMainRect(ref ImRect pOut, ImGuiViewportPPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - GetMainRectNative((ImRect*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static ImRect GetMainRect(ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ImRect ret; - GetMainRectNative(&ret, (ImGuiViewportP*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void GetMainRect(ImRectPtr pOut, ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - GetMainRectNative(pOut, (ImGuiViewportP*)pself); - } - } - - /// - /// To be documented. - /// - public static void GetMainRect(ref ImRect pOut, ref ImGuiViewportP self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiViewportP* pself = &self) - { - GetMainRectNative((ImRect*)ppOut, (ImGuiViewportP*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetWorkRectNative(ImRect* pOut, ImGuiViewportP* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[881])(pOut, self); - #else - ((delegate* unmanaged[Cdecl])funcTable[881])((nint)pOut, (nint)self); - #endif - } - - /// - /// To be documented. - /// - public static ImRect GetWorkRect(ImGuiViewportPPtr self) - { - ImRect ret; - GetWorkRectNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void GetWorkRect(ImRectPtr pOut, ImGuiViewportPPtr self) - { - GetWorkRectNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void GetWorkRect(ref ImRect pOut, ImGuiViewportPPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - GetWorkRectNative((ImRect*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static ImRect GetWorkRect(ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ImRect ret; - GetWorkRectNative(&ret, (ImGuiViewportP*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void GetWorkRect(ImRectPtr pOut, ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - GetWorkRectNative(pOut, (ImGuiViewportP*)pself); - } - } - - /// - /// To be documented. - /// - public static void GetWorkRect(ref ImRect pOut, ref ImGuiViewportP self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiViewportP* pself = &self) - { - GetWorkRectNative((ImRect*)ppOut, (ImGuiViewportP*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetBuildWorkRectNative(ImRect* pOut, ImGuiViewportP* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[882])(pOut, self); - #else - ((delegate* unmanaged[Cdecl])funcTable[882])((nint)pOut, (nint)self); - #endif - } - - /// - /// To be documented. - /// - public static ImRect GetBuildWorkRect(ImGuiViewportPPtr self) - { - ImRect ret; - GetBuildWorkRectNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void GetBuildWorkRect(ImRectPtr pOut, ImGuiViewportPPtr self) - { - GetBuildWorkRectNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void GetBuildWorkRect(ref ImRect pOut, ImGuiViewportPPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - GetBuildWorkRectNative((ImRect*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static ImRect GetBuildWorkRect(ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ImRect ret; - GetBuildWorkRectNative(&ret, (ImGuiViewportP*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void GetBuildWorkRect(ImRectPtr pOut, ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - GetBuildWorkRectNative(pOut, (ImGuiViewportP*)pself); - } - } - - /// - /// To be documented. - /// - public static void GetBuildWorkRect(ref ImRect pOut, ref ImGuiViewportP self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiViewportP* pself = &self) - { - GetBuildWorkRectNative((ImRect*)ppOut, (ImGuiViewportP*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindowSettings* ImGuiWindowSettingsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[883])(); - #else - return (ImGuiWindowSettings*)((delegate* unmanaged[Cdecl])funcTable[883])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiWindowSettingsPtr ImGuiWindowSettings() - { - ImGuiWindowSettingsPtr ret = ImGuiWindowSettingsNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetNameNative(ImGuiWindowSettings* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[884])(self); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[884])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static byte* GetName(ImGuiWindowSettingsPtr self) - { - byte* ret = GetNameNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static string GetNameS(ImGuiWindowSettingsPtr self) - { - string ret = Utils.DecodeStringUTF8(GetNameNative(self)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* GetName(ref ImGuiWindowSettings self) - { - fixed (ImGuiWindowSettings* pself = &self) - { - byte* ret = GetNameNative((ImGuiWindowSettings*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static string GetNameS(ref ImGuiWindowSettings self) - { - fixed (ImGuiWindowSettings* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetNameNative((ImGuiWindowSettings*)pself)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiSettingsHandler* ImGuiSettingsHandlerNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[885])(); - #else - return (ImGuiSettingsHandler*)((delegate* unmanaged[Cdecl])funcTable[885])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiSettingsHandlerPtr ImGuiSettingsHandler() - { - ImGuiSettingsHandlerPtr ret = ImGuiSettingsHandlerNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiMetricsConfig* ImGuiMetricsConfigNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[886])(); - #else - return (ImGuiMetricsConfig*)((delegate* unmanaged[Cdecl])funcTable[886])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiMetricsConfigPtr ImGuiMetricsConfig() - { - ImGuiMetricsConfigPtr ret = ImGuiMetricsConfigNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStackLevelInfo* ImGuiStackLevelInfoNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[887])(); - #else - return (ImGuiStackLevelInfo*)((delegate* unmanaged[Cdecl])funcTable[887])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiStackLevelInfoPtr ImGuiStackLevelInfo() - { - ImGuiStackLevelInfoPtr ret = ImGuiStackLevelInfoNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiContextHook* ImGuiContextHookNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[888])(); - #else - return (ImGuiContextHook*)((delegate* unmanaged[Cdecl])funcTable[888])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiContextHookPtr ImGuiContextHook() - { - ImGuiContextHookPtr ret = ImGuiContextHookNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiContext* ImGuiContextNative(ImFontAtlas* sharedFontAtlas) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[889])(sharedFontAtlas); - #else - return (ImGuiContext*)((delegate* unmanaged[Cdecl])funcTable[889])((nint)sharedFontAtlas); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiContextPtr ImGuiContext(ImFontAtlasPtr sharedFontAtlas) - { - ImGuiContextPtr ret = ImGuiContextNative(sharedFontAtlas); - return ret; - } - - /// - /// To be documented. - /// - public static ImGuiContextPtr ImGuiContext(ref ImFontAtlas sharedFontAtlas) - { - fixed (ImFontAtlas* psharedFontAtlas = &sharedFontAtlas) - { - ImGuiContextPtr ret = ImGuiContextNative((ImFontAtlas*)psharedFontAtlas); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindow* ImGuiWindowNative(ImGuiContext* context, byte* name) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[890])(context, name); - #else - return (ImGuiWindow*)((delegate* unmanaged[Cdecl])funcTable[890])((nint)context, (nint)name); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiWindowPtr ImGuiWindow(ImGuiContextPtr context, byte* name) - { - ImGuiWindowPtr ret = ImGuiWindowNative(context, name); - return ret; - } - - /// - /// To be documented. - /// - public static ImGuiWindowPtr ImGuiWindow(ref ImGuiContext context, byte* name) - { - fixed (ImGuiContext* pcontext = &context) - { - ImGuiWindowPtr ret = ImGuiWindowNative((ImGuiContext*)pcontext, name); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImGuiWindowPtr ImGuiWindow(ImGuiContextPtr context, ref byte name) - { - fixed (byte* pname = &name) - { - ImGuiWindowPtr ret = ImGuiWindowNative(context, (byte*)pname); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImGuiWindowPtr ImGuiWindow(ImGuiContextPtr context, ReadOnlySpan name) - { - fixed (byte* pname = name) - { - ImGuiWindowPtr ret = ImGuiWindowNative(context, (byte*)pname); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImGuiWindowPtr ImGuiWindow(ImGuiContextPtr context, string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiWindowPtr ret = ImGuiWindowNative(context, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static ImGuiWindowPtr ImGuiWindow(ref ImGuiContext context, ref byte name) - { - fixed (ImGuiContext* pcontext = &context) - { - fixed (byte* pname = &name) - { - ImGuiWindowPtr ret = ImGuiWindowNative((ImGuiContext*)pcontext, (byte*)pname); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImGuiWindowPtr ImGuiWindow(ref ImGuiContext context, ReadOnlySpan name) - { - fixed (ImGuiContext* pcontext = &context) - { - fixed (byte* pname = name) - { - ImGuiWindowPtr ret = ImGuiWindowNative((ImGuiContext*)pcontext, (byte*)pname); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImGuiWindowPtr ImGuiWindow(ref ImGuiContext context, string name) - { - fixed (ImGuiContext* pcontext = &context) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiWindowPtr ret = ImGuiWindowNative((ImGuiContext*)pcontext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiWindow* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[891])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[891])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiWindowPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - DestroyNative((ImGuiWindow*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetIDNative(ImGuiWindow* self, byte* str, byte* strEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[892])(self, str, strEnd); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[892])((nint)self, (nint)str, (nint)strEnd); - #endif - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, byte* str, byte* strEnd) - { - uint ret = GetIDNative(self, str, strEnd); - return ret; - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, byte* str) - { - uint ret = GetIDNative(self, str, (byte*)(default)); - return ret; - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, byte* str, byte* strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - uint ret = GetIDNative((ImGuiWindow*)pself, str, strEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, byte* str) - { - fixed (ImGuiWindow* pself = &self) - { - uint ret = GetIDNative((ImGuiWindow*)pself, str, (byte*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, ref byte str, byte* strEnd) - { - fixed (byte* pstr = &str) - { - uint ret = GetIDNative(self, (byte*)pstr, strEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, ref byte str) - { - fixed (byte* pstr = &str) - { - uint ret = GetIDNative(self, (byte*)pstr, (byte*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, ReadOnlySpan str, byte* strEnd) - { - fixed (byte* pstr = str) - { - uint ret = GetIDNative(self, (byte*)pstr, strEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, ReadOnlySpan str) - { - fixed (byte* pstr = str) - { - uint ret = GetIDNative(self, (byte*)pstr, (byte*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, string str, byte* strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative(self, pStr0, strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative(self, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, ref byte str, byte* strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = &str) - { - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, strEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, ref byte str) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = &str) - { - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, ReadOnlySpan str, byte* strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = str) - { - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, strEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, ReadOnlySpan str) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = str) - { - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, string str, byte* strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative((ImGuiWindow*)pself, pStr0, strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, string str) - { - fixed (ImGuiWindow* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative((ImGuiWindow*)pself, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, byte* str, ref byte strEnd) - { - fixed (byte* pstrEnd = &strEnd) - { - uint ret = GetIDNative(self, str, (byte*)pstrEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, byte* str, ReadOnlySpan strEnd) - { - fixed (byte* pstrEnd = strEnd) - { - uint ret = GetIDNative(self, str, (byte*)pstrEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, byte* str, string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative(self, str, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, byte* str, ref byte strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstrEnd = &strEnd) - { - uint ret = GetIDNative((ImGuiWindow*)pself, str, (byte*)pstrEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, byte* str, ReadOnlySpan strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstrEnd = strEnd) - { - uint ret = GetIDNative((ImGuiWindow*)pself, str, (byte*)pstrEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, byte* str, string strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative((ImGuiWindow*)pself, str, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, ref byte str, ref byte strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - uint ret = GetIDNative(self, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, ReadOnlySpan str, ReadOnlySpan strEnd) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = strEnd) - { - uint ret = GetIDNative(self, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, string str, string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - uint ret = GetIDNative(self, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, ref byte str, ReadOnlySpan strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = strEnd) - { - uint ret = GetIDNative(self, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, ref byte str, string strEnd) - { - fixed (byte* pstr = &str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative(self, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, ReadOnlySpan str, ref byte strEnd) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = &strEnd) - { - uint ret = GetIDNative(self, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, ReadOnlySpan str, string strEnd) - { - fixed (byte* pstr = str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative(self, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, string str, ref byte strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = &strEnd) - { - uint ret = GetIDNative(self, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, string str, ReadOnlySpan strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = strEnd) - { - uint ret = GetIDNative(self, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, ref byte str, ref byte strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, ReadOnlySpan str, ReadOnlySpan strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = strEnd) - { - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, string str, string strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - uint ret = GetIDNative((ImGuiWindow*)pself, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, ref byte str, ReadOnlySpan strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = strEnd) - { - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, ref byte str, string strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = &str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, ReadOnlySpan str, ref byte strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = &strEnd) - { - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, ReadOnlySpan str, string strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, string str, ref byte strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = &strEnd) - { - uint ret = GetIDNative((ImGuiWindow*)pself, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, string str, ReadOnlySpan strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = strEnd) - { - uint ret = GetIDNative((ImGuiWindow*)pself, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetIDNative(ImGuiWindow* self, void* ptr) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[893])(self, ptr); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[893])((nint)self, (nint)ptr); - #endif - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, void* ptr) - { - uint ret = GetIDNative(self, ptr); - return ret; - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, void* ptr) - { - fixed (ImGuiWindow* pself = &self) - { - uint ret = GetIDNative((ImGuiWindow*)pself, ptr); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetIDNative(ImGuiWindow* self, int n) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[894])(self, n); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[894])((nint)self, n); - #endif - } - - /// - /// To be documented. - /// - public static uint GetID(ImGuiWindowPtr self, int n) - { - uint ret = GetIDNative(self, n); - return ret; - } - - /// - /// To be documented. - /// - public static uint GetID(ref ImGuiWindow self, int n) - { - fixed (ImGuiWindow* pself = &self) - { - uint ret = GetIDNative((ImGuiWindow*)pself, n); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetIDFromRectangleNative(ImGuiWindow* self, ImRect rAbs) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[895])(self, rAbs); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[895])((nint)self, rAbs); - #endif - } - - /// - /// To be documented. - /// - public static uint GetIDFromRectangle(ImGuiWindowPtr self, ImRect rAbs) - { - uint ret = GetIDFromRectangleNative(self, rAbs); - return ret; - } - - /// - /// To be documented. - /// - public static uint GetIDFromRectangle(ref ImGuiWindow self, ImRect rAbs) - { - fixed (ImGuiWindow* pself = &self) - { - uint ret = GetIDFromRectangleNative((ImGuiWindow*)pself, rAbs); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RectNative(ImRect* pOut, ImGuiWindow* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[896])(pOut, self); - #else - ((delegate* unmanaged[Cdecl])funcTable[896])((nint)pOut, (nint)self); - #endif - } - - /// - /// To be documented. - /// - public static ImRect Rect(ImGuiWindowPtr self) - { - ImRect ret; - RectNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void Rect(ImRectPtr pOut, ImGuiWindowPtr self) - { - RectNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void Rect(ref ImRect pOut, ImGuiWindowPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - RectNative((ImRect*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static ImRect Rect(ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - ImRect ret; - RectNative(&ret, (ImGuiWindow*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void Rect(ImRectPtr pOut, ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - RectNative(pOut, (ImGuiWindow*)pself); - } - } - - /// - /// To be documented. - /// - public static void Rect(ref ImRect pOut, ref ImGuiWindow self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pself = &self) - { - RectNative((ImRect*)ppOut, (ImGuiWindow*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float CalcFontSizeNative(ImGuiWindow* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[897])(self); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[897])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static float CalcFontSize(ImGuiWindowPtr self) - { - float ret = CalcFontSizeNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static float CalcFontSize(ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - float ret = CalcFontSizeNative((ImGuiWindow*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float TitleBarHeightNative(ImGuiWindow* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[898])(self); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[898])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static float TitleBarHeight(ImGuiWindowPtr self) - { - float ret = TitleBarHeightNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static float TitleBarHeight(ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - float ret = TitleBarHeightNative((ImGuiWindow*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TitleBarRectNative(ImRect* pOut, ImGuiWindow* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[899])(pOut, self); - #else - ((delegate* unmanaged[Cdecl])funcTable[899])((nint)pOut, (nint)self); - #endif - } - - /// - /// To be documented. - /// - public static ImRect TitleBarRect(ImGuiWindowPtr self) - { - ImRect ret; - TitleBarRectNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void TitleBarRect(ImRectPtr pOut, ImGuiWindowPtr self) - { - TitleBarRectNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void TitleBarRect(ref ImRect pOut, ImGuiWindowPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - TitleBarRectNative((ImRect*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static ImRect TitleBarRect(ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - ImRect ret; - TitleBarRectNative(&ret, (ImGuiWindow*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void TitleBarRect(ImRectPtr pOut, ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - TitleBarRectNative(pOut, (ImGuiWindow*)pself); - } - } - - /// - /// To be documented. - /// - public static void TitleBarRect(ref ImRect pOut, ref ImGuiWindow self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pself = &self) - { - TitleBarRectNative((ImRect*)ppOut, (ImGuiWindow*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float MenuBarHeightNative(ImGuiWindow* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[900])(self); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[900])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static float MenuBarHeight(ImGuiWindowPtr self) - { - float ret = MenuBarHeightNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static float MenuBarHeight(ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - float ret = MenuBarHeightNative((ImGuiWindow*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MenuBarRectNative(ImRect* pOut, ImGuiWindow* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[901])(pOut, self); - #else - ((delegate* unmanaged[Cdecl])funcTable[901])((nint)pOut, (nint)self); - #endif - } - - /// - /// To be documented. - /// - public static ImRect MenuBarRect(ImGuiWindowPtr self) - { - ImRect ret; - MenuBarRectNative(&ret, self); - return ret; - } - - /// - /// To be documented. - /// - public static void MenuBarRect(ImRectPtr pOut, ImGuiWindowPtr self) - { - MenuBarRectNative(pOut, self); - } - - /// - /// To be documented. - /// - public static void MenuBarRect(ref ImRect pOut, ImGuiWindowPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - MenuBarRectNative((ImRect*)ppOut, self); - } - } - - /// - /// To be documented. - /// - public static ImRect MenuBarRect(ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - ImRect ret; - MenuBarRectNative(&ret, (ImGuiWindow*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static void MenuBarRect(ImRectPtr pOut, ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - MenuBarRectNative(pOut, (ImGuiWindow*)pself); - } - } - - /// - /// To be documented. - /// - public static void MenuBarRect(ref ImRect pOut, ref ImGuiWindow self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pself = &self) - { - MenuBarRectNative((ImRect*)ppOut, (ImGuiWindow*)pself); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTabItem* ImGuiTabItemNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[902])(); - #else - return (ImGuiTabItem*)((delegate* unmanaged[Cdecl])funcTable[902])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTabItemPtr ImGuiTabItem() - { - ImGuiTabItemPtr ret = ImGuiTabItemNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTabBar* ImGuiTabBarNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[903])(); - #else - return (ImGuiTabBar*)((delegate* unmanaged[Cdecl])funcTable[903])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTabBarPtr ImGuiTabBar() - { - ImGuiTabBarPtr ret = ImGuiTabBarNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetTabOrderNative(ImGuiTabBar* self, ImGuiTabItem* tab) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[904])(self, tab); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[904])((nint)self, (nint)tab); - #endif - } - - /// - /// To be documented. - /// - public static int GetTabOrder(ImGuiTabBarPtr self, ImGuiTabItemPtr tab) - { - int ret = GetTabOrderNative(self, tab); - return ret; - } - - /// - /// To be documented. - /// - public static int GetTabOrder(ref ImGuiTabBar self, ImGuiTabItemPtr tab) - { - fixed (ImGuiTabBar* pself = &self) - { - int ret = GetTabOrderNative((ImGuiTabBar*)pself, tab); - return ret; - } - } - - /// - /// To be documented. - /// - public static int GetTabOrder(ImGuiTabBarPtr self, ref ImGuiTabItem tab) - { - fixed (ImGuiTabItem* ptab = &tab) - { - int ret = GetTabOrderNative(self, (ImGuiTabItem*)ptab); - return ret; - } - } - - /// - /// To be documented. - /// - public static int GetTabOrder(ref ImGuiTabBar self, ref ImGuiTabItem tab) - { - fixed (ImGuiTabBar* pself = &self) - { - fixed (ImGuiTabItem* ptab = &tab) - { - int ret = GetTabOrderNative((ImGuiTabBar*)pself, (ImGuiTabItem*)ptab); - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetTabNameNative(ImGuiTabBar* self, ImGuiTabItem* tab) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[905])(self, tab); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[905])((nint)self, (nint)tab); - #endif - } - - /// - /// To be documented. - /// - public static byte* GetTabName(ImGuiTabBarPtr self, ImGuiTabItemPtr tab) - { - byte* ret = GetTabNameNative(self, tab); - return ret; - } - - /// - /// To be documented. - /// - public static string GetTabNameS(ImGuiTabBarPtr self, ImGuiTabItemPtr tab) - { - string ret = Utils.DecodeStringUTF8(GetTabNameNative(self, tab)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* GetTabName(ref ImGuiTabBar self, ImGuiTabItemPtr tab) - { - fixed (ImGuiTabBar* pself = &self) - { - byte* ret = GetTabNameNative((ImGuiTabBar*)pself, tab); - return ret; - } - } - - /// - /// To be documented. - /// - public static string GetTabNameS(ref ImGuiTabBar self, ImGuiTabItemPtr tab) - { - fixed (ImGuiTabBar* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetTabNameNative((ImGuiTabBar*)pself, tab)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* GetTabName(ImGuiTabBarPtr self, ref ImGuiTabItem tab) - { - fixed (ImGuiTabItem* ptab = &tab) - { - byte* ret = GetTabNameNative(self, (ImGuiTabItem*)ptab); - return ret; - } - } - - /// - /// To be documented. - /// - public static string GetTabNameS(ImGuiTabBarPtr self, ref ImGuiTabItem tab) - { - fixed (ImGuiTabItem* ptab = &tab) - { - string ret = Utils.DecodeStringUTF8(GetTabNameNative(self, (ImGuiTabItem*)ptab)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* GetTabName(ref ImGuiTabBar self, ref ImGuiTabItem tab) - { - fixed (ImGuiTabBar* pself = &self) - { - fixed (ImGuiTabItem* ptab = &tab) - { - byte* ret = GetTabNameNative((ImGuiTabBar*)pself, (ImGuiTabItem*)ptab); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string GetTabNameS(ref ImGuiTabBar self, ref ImGuiTabItem tab) - { - fixed (ImGuiTabBar* pself = &self) - { - fixed (ImGuiTabItem* ptab = &tab) - { - string ret = Utils.DecodeStringUTF8(GetTabNameNative((ImGuiTabBar*)pself, (ImGuiTabItem*)ptab)); - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableColumn* ImGuiTableColumnNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[906])(); - #else - return (ImGuiTableColumn*)((delegate* unmanaged[Cdecl])funcTable[906])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTableColumnPtr ImGuiTableColumn() - { - ImGuiTableColumnPtr ret = ImGuiTableColumnNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableInstanceData* ImGuiTableInstanceDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[907])(); - #else - return (ImGuiTableInstanceData*)((delegate* unmanaged[Cdecl])funcTable[907])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTableInstanceDataPtr ImGuiTableInstanceData() - { - ImGuiTableInstanceDataPtr ret = ImGuiTableInstanceDataNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTable* ImGuiTableNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[908])(); - #else - return (ImGuiTable*)((delegate* unmanaged[Cdecl])funcTable[908])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTablePtr ImGuiTable() - { - ImGuiTablePtr ret = ImGuiTableNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTable* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[909])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[909])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImGuiTablePtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImGuiTable self) - { - fixed (ImGuiTable* pself = &self) - { - DestroyNative((ImGuiTable*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableTempData* ImGuiTableTempDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[910])(); - #else - return (ImGuiTableTempData*)((delegate* unmanaged[Cdecl])funcTable[910])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTableTempDataPtr ImGuiTableTempData() - { - ImGuiTableTempDataPtr ret = ImGuiTableTempDataNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableColumnSettings* ImGuiTableColumnSettingsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[911])(); - #else - return (ImGuiTableColumnSettings*)((delegate* unmanaged[Cdecl])funcTable[911])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTableColumnSettingsPtr ImGuiTableColumnSettings() - { - ImGuiTableColumnSettingsPtr ret = ImGuiTableColumnSettingsNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableSettings* ImGuiTableSettingsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[912])(); - #else - return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl])funcTable[912])(); - #endif - } - /// /// To be documented. /// @@ -5026,5 +1824,3205 @@ namespace Dalamud.Bindings.ImGui SetCurrentViewportNative((ImGuiWindow*)pwindow, viewport); } } + + /// + /// To be documented. + /// + public static void SetCurrentViewport(ImGuiWindowPtr window, ref ImGuiViewportP viewport) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + SetCurrentViewportNative(window, (ImGuiViewportP*)pviewport); + } + } + + /// + /// To be documented. + /// + public static void SetCurrentViewport(ref ImGuiWindow window, ref ImGuiViewportP viewport) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + SetCurrentViewportNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiPlatformMonitor* GetViewportPlatformMonitorNative(ImGuiViewport* viewport) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[957])(viewport); + #else + return (ImGuiPlatformMonitor*)((delegate* unmanaged[Cdecl])funcTable[957])((nint)viewport); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiPlatformMonitorPtr GetViewportPlatformMonitor(ImGuiViewportPtr viewport) + { + ImGuiPlatformMonitorPtr ret = GetViewportPlatformMonitorNative(viewport); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiPlatformMonitorPtr GetViewportPlatformMonitor(ref ImGuiViewport viewport) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + ImGuiPlatformMonitorPtr ret = GetViewportPlatformMonitorNative((ImGuiViewport*)pviewport); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiViewportP* FindHoveredViewportFromPlatformWindowStackNative(Vector2 mousePlatformPos) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[958])(mousePlatformPos); + #else + return (ImGuiViewportP*)((delegate* unmanaged[Cdecl])funcTable[958])(mousePlatformPos); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiViewportPPtr FindHoveredViewportFromPlatformWindowStack(Vector2 mousePlatformPos) + { + ImGuiViewportPPtr ret = FindHoveredViewportFromPlatformWindowStackNative(mousePlatformPos); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void MarkIniSettingsDirtyNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[959])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[959])(); + #endif + } + + /// + /// To be documented. + /// + public static void MarkIniSettingsDirty() + { + MarkIniSettingsDirtyNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void MarkIniSettingsDirtyNative(ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[960])(window); + #else + ((delegate* unmanaged[Cdecl])funcTable[960])((nint)window); + #endif + } + + /// + /// To be documented. + /// + public static void MarkIniSettingsDirty(ImGuiWindowPtr window) + { + MarkIniSettingsDirtyNative(window); + } + + /// + /// To be documented. + /// + public static void MarkIniSettingsDirty(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + MarkIniSettingsDirtyNative((ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearIniSettingsNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[961])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[961])(); + #endif + } + + /// + /// To be documented. + /// + public static void ClearIniSettings() + { + ClearIniSettingsNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiWindowSettings* CreateNewWindowSettingsNative(byte* name) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[962])(name); + #else + return (ImGuiWindowSettings*)((delegate* unmanaged[Cdecl])funcTable[962])((nint)name); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiWindowSettingsPtr CreateNewWindowSettings(byte* name) + { + ImGuiWindowSettingsPtr ret = CreateNewWindowSettingsNative(name); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiWindowSettingsPtr CreateNewWindowSettings(ref byte name) + { + fixed (byte* pname = &name) + { + ImGuiWindowSettingsPtr ret = CreateNewWindowSettingsNative((byte*)pname); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiWindowSettingsPtr CreateNewWindowSettings(ReadOnlySpan name) + { + fixed (byte* pname = name) + { + ImGuiWindowSettingsPtr ret = CreateNewWindowSettingsNative((byte*)pname); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiWindowSettingsPtr CreateNewWindowSettings(string name) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGuiWindowSettingsPtr ret = CreateNewWindowSettingsNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiWindowSettings* FindWindowSettingsNative(uint id) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[963])(id); + #else + return (ImGuiWindowSettings*)((delegate* unmanaged[Cdecl])funcTable[963])(id); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiWindowSettingsPtr FindWindowSettings(uint id) + { + ImGuiWindowSettingsPtr ret = FindWindowSettingsNative(id); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiWindowSettings* FindOrCreateWindowSettingsNative(byte* name) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[964])(name); + #else + return (ImGuiWindowSettings*)((delegate* unmanaged[Cdecl])funcTable[964])((nint)name); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(byte* name) + { + ImGuiWindowSettingsPtr ret = FindOrCreateWindowSettingsNative(name); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(ref byte name) + { + fixed (byte* pname = &name) + { + ImGuiWindowSettingsPtr ret = FindOrCreateWindowSettingsNative((byte*)pname); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(ReadOnlySpan name) + { + fixed (byte* pname = name) + { + ImGuiWindowSettingsPtr ret = FindOrCreateWindowSettingsNative((byte*)pname); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(string name) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGuiWindowSettingsPtr ret = FindOrCreateWindowSettingsNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddSettingsHandlerNative(ImGuiSettingsHandler* handler) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[965])(handler); + #else + ((delegate* unmanaged[Cdecl])funcTable[965])((nint)handler); + #endif + } + + /// + /// To be documented. + /// + public static void AddSettingsHandler(ImGuiSettingsHandlerPtr handler) + { + AddSettingsHandlerNative(handler); + } + + /// + /// To be documented. + /// + public static void AddSettingsHandler(ref ImGuiSettingsHandler handler) + { + fixed (ImGuiSettingsHandler* phandler = &handler) + { + AddSettingsHandlerNative((ImGuiSettingsHandler*)phandler); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RemoveSettingsHandlerNative(byte* typeName) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[966])(typeName); + #else + ((delegate* unmanaged[Cdecl])funcTable[966])((nint)typeName); + #endif + } + + /// + /// To be documented. + /// + public static void RemoveSettingsHandler(byte* typeName) + { + RemoveSettingsHandlerNative(typeName); + } + + /// + /// To be documented. + /// + public static void RemoveSettingsHandler(ref byte typeName) + { + fixed (byte* ptypeName = &typeName) + { + RemoveSettingsHandlerNative((byte*)ptypeName); + } + } + + /// + /// To be documented. + /// + public static void RemoveSettingsHandler(ReadOnlySpan typeName) + { + fixed (byte* ptypeName = typeName) + { + RemoveSettingsHandlerNative((byte*)ptypeName); + } + } + + /// + /// To be documented. + /// + public static void RemoveSettingsHandler(string typeName) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (typeName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(typeName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RemoveSettingsHandlerNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiSettingsHandler* FindSettingsHandlerNative(byte* typeName) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[967])(typeName); + #else + return (ImGuiSettingsHandler*)((delegate* unmanaged[Cdecl])funcTable[967])((nint)typeName); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiSettingsHandlerPtr FindSettingsHandler(byte* typeName) + { + ImGuiSettingsHandlerPtr ret = FindSettingsHandlerNative(typeName); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiSettingsHandlerPtr FindSettingsHandler(ref byte typeName) + { + fixed (byte* ptypeName = &typeName) + { + ImGuiSettingsHandlerPtr ret = FindSettingsHandlerNative((byte*)ptypeName); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiSettingsHandlerPtr FindSettingsHandler(ReadOnlySpan typeName) + { + fixed (byte* ptypeName = typeName) + { + ImGuiSettingsHandlerPtr ret = FindSettingsHandlerNative((byte*)ptypeName); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImGuiSettingsHandlerPtr FindSettingsHandler(string typeName) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (typeName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(typeName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGuiSettingsHandlerPtr ret = FindSettingsHandlerNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextWindowScrollNative(Vector2 scroll) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[968])(scroll); + #else + ((delegate* unmanaged[Cdecl])funcTable[968])(scroll); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextWindowScroll(Vector2 scroll) + { + SetNextWindowScrollNative(scroll); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetScrollXNative(ImGuiWindow* window, float scrollX) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[969])(window, scrollX); + #else + ((delegate* unmanaged[Cdecl])funcTable[969])((nint)window, scrollX); + #endif + } + + /// + /// To be documented. + /// + public static void SetScrollX(ImGuiWindowPtr window, float scrollX) + { + SetScrollXNative(window, scrollX); + } + + /// + /// To be documented. + /// + public static void SetScrollX(ref ImGuiWindow window, float scrollX) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetScrollXNative((ImGuiWindow*)pwindow, scrollX); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetScrollYNative(ImGuiWindow* window, float scrollY) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[970])(window, scrollY); + #else + ((delegate* unmanaged[Cdecl])funcTable[970])((nint)window, scrollY); + #endif + } + + /// + /// To be documented. + /// + public static void SetScrollY(ImGuiWindowPtr window, float scrollY) + { + SetScrollYNative(window, scrollY); + } + + /// + /// To be documented. + /// + public static void SetScrollY(ref ImGuiWindow window, float scrollY) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetScrollYNative((ImGuiWindow*)pwindow, scrollY); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetScrollFromPosXNative(ImGuiWindow* window, float localX, float centerXRatio) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[971])(window, localX, centerXRatio); + #else + ((delegate* unmanaged[Cdecl])funcTable[971])((nint)window, localX, centerXRatio); + #endif + } + + /// + /// To be documented. + /// + public static void SetScrollFromPosX(ImGuiWindowPtr window, float localX, float centerXRatio) + { + SetScrollFromPosXNative(window, localX, centerXRatio); + } + + /// + /// To be documented. + /// + public static void SetScrollFromPosX(ref ImGuiWindow window, float localX, float centerXRatio) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetScrollFromPosXNative((ImGuiWindow*)pwindow, localX, centerXRatio); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetScrollFromPosYNative(ImGuiWindow* window, float localY, float centerYRatio) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[972])(window, localY, centerYRatio); + #else + ((delegate* unmanaged[Cdecl])funcTable[972])((nint)window, localY, centerYRatio); + #endif + } + + /// + /// To be documented. + /// + public static void SetScrollFromPosY(ImGuiWindowPtr window, float localY, float centerYRatio) + { + SetScrollFromPosYNative(window, localY, centerYRatio); + } + + /// + /// To be documented. + /// + public static void SetScrollFromPosY(ref ImGuiWindow window, float localY, float centerYRatio) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetScrollFromPosYNative((ImGuiWindow*)pwindow, localY, centerYRatio); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ScrollToItemNative(ImGuiScrollFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[973])(flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[973])(flags); + #endif + } + + /// + /// To be documented. + /// + public static void ScrollToItem(ImGuiScrollFlags flags) + { + ScrollToItemNative(flags); + } + + /// + /// To be documented. + /// + public static void ScrollToItem() + { + ScrollToItemNative((ImGuiScrollFlags)(0)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ScrollToRectNative(ImGuiWindow* window, ImRect rect, ImGuiScrollFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[974])(window, rect, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[974])((nint)window, rect, flags); + #endif + } + + /// + /// To be documented. + /// + public static void ScrollToRect(ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) + { + ScrollToRectNative(window, rect, flags); + } + + /// + /// To be documented. + /// + public static void ScrollToRect(ImGuiWindowPtr window, ImRect rect) + { + ScrollToRectNative(window, rect, (ImGuiScrollFlags)(0)); + } + + /// + /// To be documented. + /// + public static void ScrollToRect(ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) + { + fixed (ImGuiWindow* pwindow = &window) + { + ScrollToRectNative((ImGuiWindow*)pwindow, rect, flags); + } + } + + /// + /// To be documented. + /// + public static void ScrollToRect(ref ImGuiWindow window, ImRect rect) + { + fixed (ImGuiWindow* pwindow = &window) + { + ScrollToRectNative((ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ScrollToRectExNative(Vector2* pOut, ImGuiWindow* window, ImRect rect, ImGuiScrollFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[975])(pOut, window, rect, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[975])((nint)pOut, (nint)window, rect, flags); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ScrollToRectEx(ImGuiWindowPtr window, ImRect rect) + { + Vector2 ret; + ScrollToRectExNative(&ret, window, rect, (ImGuiScrollFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 ScrollToRectEx(ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) + { + Vector2 ret; + ScrollToRectExNative(&ret, window, rect, flags); + return ret; + } + + /// + /// To be documented. + /// + public static void ScrollToRectEx(Vector2* pOut, ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) + { + ScrollToRectExNative(pOut, window, rect, flags); + } + + /// + /// To be documented. + /// + public static void ScrollToRectEx(Vector2* pOut, ImGuiWindowPtr window, ImRect rect) + { + ScrollToRectExNative(pOut, window, rect, (ImGuiScrollFlags)(0)); + } + + /// + /// To be documented. + /// + public static void ScrollToRectEx(ref Vector2 pOut, ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) + { + fixed (Vector2* ppOut = &pOut) + { + ScrollToRectExNative((Vector2*)ppOut, window, rect, flags); + } + } + + /// + /// To be documented. + /// + public static void ScrollToRectEx(ref Vector2 pOut, ImGuiWindowPtr window, ImRect rect) + { + fixed (Vector2* ppOut = &pOut) + { + ScrollToRectExNative((Vector2*)ppOut, window, rect, (ImGuiScrollFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static Vector2 ScrollToRectEx(ref ImGuiWindow window, ImRect rect) + { + fixed (ImGuiWindow* pwindow = &window) + { + Vector2 ret; + ScrollToRectExNative(&ret, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 ScrollToRectEx(ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) + { + fixed (ImGuiWindow* pwindow = &window) + { + Vector2 ret; + ScrollToRectExNative(&ret, (ImGuiWindow*)pwindow, rect, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static void ScrollToRectEx(Vector2* pOut, ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) + { + fixed (ImGuiWindow* pwindow = &window) + { + ScrollToRectExNative(pOut, (ImGuiWindow*)pwindow, rect, flags); + } + } + + /// + /// To be documented. + /// + public static void ScrollToRectEx(Vector2* pOut, ref ImGuiWindow window, ImRect rect) + { + fixed (ImGuiWindow* pwindow = &window) + { + ScrollToRectExNative(pOut, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void ScrollToRectEx(ref Vector2 pOut, ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImGuiWindow* pwindow = &window) + { + ScrollToRectExNative((Vector2*)ppOut, (ImGuiWindow*)pwindow, rect, flags); + } + } + } + + /// + /// To be documented. + /// + public static void ScrollToRectEx(ref Vector2 pOut, ref ImGuiWindow window, ImRect rect) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImGuiWindow* pwindow = &window) + { + ScrollToRectExNative((Vector2*)ppOut, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ScrollToBringRectIntoViewNative(ImGuiWindow* window, ImRect rect) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[976])(window, rect); + #else + ((delegate* unmanaged[Cdecl])funcTable[976])((nint)window, rect); + #endif + } + + /// + /// To be documented. + /// + public static void ScrollToBringRectIntoView(ImGuiWindowPtr window, ImRect rect) + { + ScrollToBringRectIntoViewNative(window, rect); + } + + /// + /// To be documented. + /// + public static void ScrollToBringRectIntoView(ref ImGuiWindow window, ImRect rect) + { + fixed (ImGuiWindow* pwindow = &window) + { + ScrollToBringRectIntoViewNative((ImGuiWindow*)pwindow, rect); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetItemIDNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[977])(); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[977])(); + #endif + } + + /// + /// To be documented. + /// + public static uint GetItemID() + { + uint ret = GetItemIDNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiItemStatusFlags GetItemStatusFlagsNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[978])(); + #else + return (ImGuiItemStatusFlags)((delegate* unmanaged[Cdecl])funcTable[978])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiItemStatusFlags GetItemStatusFlags() + { + ImGuiItemStatusFlags ret = GetItemStatusFlagsNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiItemFlags GetItemFlagsNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[979])(); + #else + return (ImGuiItemFlags)((delegate* unmanaged[Cdecl])funcTable[979])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiItemFlags GetItemFlags() + { + ImGuiItemFlags ret = GetItemFlagsNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetActiveIDNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[980])(); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[980])(); + #endif + } + + /// + /// To be documented. + /// + public static uint GetActiveID() + { + uint ret = GetActiveIDNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetFocusIDNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[981])(); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[981])(); + #endif + } + + /// + /// To be documented. + /// + public static uint GetFocusID() + { + uint ret = GetFocusIDNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetActiveIDNative(uint id, ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[982])(id, window); + #else + ((delegate* unmanaged[Cdecl])funcTable[982])(id, (nint)window); + #endif + } + + /// + /// To be documented. + /// + public static void SetActiveID(uint id, ImGuiWindowPtr window) + { + SetActiveIDNative(id, window); + } + + /// + /// To be documented. + /// + public static void SetActiveID(uint id, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetActiveIDNative(id, (ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetFocusIDNative(uint id, ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[983])(id, window); + #else + ((delegate* unmanaged[Cdecl])funcTable[983])(id, (nint)window); + #endif + } + + /// + /// To be documented. + /// + public static void SetFocusID(uint id, ImGuiWindowPtr window) + { + SetFocusIDNative(id, window); + } + + /// + /// To be documented. + /// + public static void SetFocusID(uint id, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetFocusIDNative(id, (ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearActiveIDNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[984])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[984])(); + #endif + } + + /// + /// To be documented. + /// + public static void ClearActiveID() + { + ClearActiveIDNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetHoveredIDNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[985])(); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[985])(); + #endif + } + + /// + /// To be documented. + /// + public static uint GetHoveredID() + { + uint ret = GetHoveredIDNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetHoveredIDNative(uint id) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[986])(id); + #else + ((delegate* unmanaged[Cdecl])funcTable[986])(id); + #endif + } + + /// + /// To be documented. + /// + public static void SetHoveredID(uint id) + { + SetHoveredIDNative(id); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void KeepAliveIDNative(uint id) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[987])(id); + #else + ((delegate* unmanaged[Cdecl])funcTable[987])(id); + #endif + } + + /// + /// To be documented. + /// + public static void KeepAliveID(uint id) + { + KeepAliveIDNative(id); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void MarkItemEditedNative(uint id) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[988])(id); + #else + ((delegate* unmanaged[Cdecl])funcTable[988])(id); + #endif + } + + /// + /// To be documented. + /// + public static void MarkItemEdited(uint id) + { + MarkItemEditedNative(id); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushOverrideIDNative(uint id) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[989])(id); + #else + ((delegate* unmanaged[Cdecl])funcTable[989])(id); + #endif + } + + /// + /// To be documented. + /// + public static void PushOverrideID(uint id) + { + PushOverrideIDNative(id); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetIDWithSeedNative(byte* strIdBegin, byte* strIdEnd, uint seed) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[990])(strIdBegin, strIdEnd, seed); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[990])((nint)strIdBegin, (nint)strIdEnd, seed); + #endif + } + + /// + /// To be documented. + /// + public static uint GetIDWithSeed(byte* strIdBegin, byte* strIdEnd, uint seed) + { + uint ret = GetIDWithSeedNative(strIdBegin, strIdEnd, seed); + return ret; + } + + /// + /// To be documented. + /// + public static uint GetIDWithSeed(ref byte strIdBegin, byte* strIdEnd, uint seed) + { + fixed (byte* pstrIdBegin = &strIdBegin) + { + uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, strIdEnd, seed); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetIDWithSeed(ReadOnlySpan strIdBegin, byte* strIdEnd, uint seed) + { + fixed (byte* pstrIdBegin = strIdBegin) + { + uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, strIdEnd, seed); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetIDWithSeed(string strIdBegin, byte* strIdEnd, uint seed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strIdBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDWithSeedNative(pStr0, strIdEnd, seed); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static uint GetIDWithSeed(byte* strIdBegin, ref byte strIdEnd, uint seed) + { + fixed (byte* pstrIdEnd = &strIdEnd) + { + uint ret = GetIDWithSeedNative(strIdBegin, (byte*)pstrIdEnd, seed); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetIDWithSeed(byte* strIdBegin, ReadOnlySpan strIdEnd, uint seed) + { + fixed (byte* pstrIdEnd = strIdEnd) + { + uint ret = GetIDWithSeedNative(strIdBegin, (byte*)pstrIdEnd, seed); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetIDWithSeed(byte* strIdBegin, string strIdEnd, uint seed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strIdEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDWithSeedNative(strIdBegin, pStr0, seed); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static uint GetIDWithSeed(ref byte strIdBegin, ref byte strIdEnd, uint seed) + { + fixed (byte* pstrIdBegin = &strIdBegin) + { + fixed (byte* pstrIdEnd = &strIdEnd) + { + uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetIDWithSeed(ReadOnlySpan strIdBegin, ReadOnlySpan strIdEnd, uint seed) + { + fixed (byte* pstrIdBegin = strIdBegin) + { + fixed (byte* pstrIdEnd = strIdEnd) + { + uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetIDWithSeed(string strIdBegin, string strIdEnd, uint seed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strIdBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (strIdEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(strIdEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(strIdEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + uint ret = GetIDWithSeedNative(pStr0, pStr1, seed); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static uint GetIDWithSeed(ref byte strIdBegin, ReadOnlySpan strIdEnd, uint seed) + { + fixed (byte* pstrIdBegin = &strIdBegin) + { + fixed (byte* pstrIdEnd = strIdEnd) + { + uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetIDWithSeed(ref byte strIdBegin, string strIdEnd, uint seed) + { + fixed (byte* pstrIdBegin = &strIdBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strIdEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, pStr0, seed); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetIDWithSeed(ReadOnlySpan strIdBegin, ref byte strIdEnd, uint seed) + { + fixed (byte* pstrIdBegin = strIdBegin) + { + fixed (byte* pstrIdEnd = &strIdEnd) + { + uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetIDWithSeed(ReadOnlySpan strIdBegin, string strIdEnd, uint seed) + { + fixed (byte* pstrIdBegin = strIdBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strIdEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, pStr0, seed); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetIDWithSeed(string strIdBegin, ref byte strIdEnd, uint seed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strIdBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrIdEnd = &strIdEnd) + { + uint ret = GetIDWithSeedNative(pStr0, (byte*)pstrIdEnd, seed); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetIDWithSeed(string strIdBegin, ReadOnlySpan strIdEnd, uint seed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strIdBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pstrIdEnd = strIdEnd) + { + uint ret = GetIDWithSeedNative(pStr0, (byte*)pstrIdEnd, seed); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ItemSizeNative(Vector2 size, float textBaselineY) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[991])(size, textBaselineY); + #else + ((delegate* unmanaged[Cdecl])funcTable[991])(size, textBaselineY); + #endif + } + + /// + /// To be documented. + /// + public static void ItemSize(Vector2 size, float textBaselineY) + { + ItemSizeNative(size, textBaselineY); + } + + /// + /// To be documented. + /// + public static void ItemSize(Vector2 size) + { + ItemSizeNative(size, (float)(-1.0f)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ItemSizeNative(ImRect bb, float textBaselineY) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[992])(bb, textBaselineY); + #else + ((delegate* unmanaged[Cdecl])funcTable[992])(bb, textBaselineY); + #endif + } + + /// + /// To be documented. + /// + public static void ItemSize(ImRect bb, float textBaselineY) + { + ItemSizeNative(bb, textBaselineY); + } + + /// + /// To be documented. + /// + public static void ItemSize(ImRect bb) + { + ItemSizeNative(bb, (float)(-1.0f)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ItemAddNative(ImRect bb, uint id, ImRect* navBb, ImGuiItemFlags extraFlags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[993])(bb, id, navBb, extraFlags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[993])(bb, id, (nint)navBb, extraFlags); + #endif + } + + /// + /// To be documented. + /// + public static bool ItemAdd(ImRect bb, uint id, ImRectPtr navBb, ImGuiItemFlags extraFlags) + { + byte ret = ItemAddNative(bb, id, navBb, extraFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ItemAdd(ImRect bb, uint id, ImRectPtr navBb) + { + byte ret = ItemAddNative(bb, id, navBb, (ImGuiItemFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ItemAdd(ImRect bb, uint id) + { + byte ret = ItemAddNative(bb, id, (ImRect*)(default), (ImGuiItemFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ItemAdd(ImRect bb, uint id, ImGuiItemFlags extraFlags) + { + byte ret = ItemAddNative(bb, id, (ImRect*)(default), extraFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ItemAdd(ImRect bb, uint id, ref ImRect navBb, ImGuiItemFlags extraFlags) + { + fixed (ImRect* pnavBb = &navBb) + { + byte ret = ItemAddNative(bb, id, (ImRect*)pnavBb, extraFlags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ItemAdd(ImRect bb, uint id, ref ImRect navBb) + { + fixed (ImRect* pnavBb = &navBb) + { + byte ret = ItemAddNative(bb, id, (ImRect*)pnavBb, (ImGuiItemFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ItemHoverableNative(ImRect bb, uint id) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[994])(bb, id); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[994])(bb, id); + #endif + } + + /// + /// To be documented. + /// + public static bool ItemHoverable(ImRect bb, uint id) + { + byte ret = ItemHoverableNative(bb, id); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsClippedExNative(ImRect bb, uint id) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[995])(bb, id); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[995])(bb, id); + #endif + } + + /// + /// To be documented. + /// + public static bool IsClippedEx(ImRect bb, uint id) + { + byte ret = IsClippedExNative(bb, id); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetLastItemDataNative(uint itemId, ImGuiItemFlags inFlags, ImGuiItemStatusFlags statusFlags, ImRect itemRect) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[996])(itemId, inFlags, statusFlags, itemRect); + #else + ((delegate* unmanaged[Cdecl])funcTable[996])(itemId, inFlags, statusFlags, itemRect); + #endif + } + + /// + /// To be documented. + /// + public static void SetLastItemData(uint itemId, ImGuiItemFlags inFlags, ImGuiItemStatusFlags statusFlags, ImRect itemRect) + { + SetLastItemDataNative(itemId, inFlags, statusFlags, itemRect); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalcItemSizeNative(Vector2* pOut, Vector2 size, float defaultW, float defaultH) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[997])(pOut, size, defaultW, defaultH); + #else + ((delegate* unmanaged[Cdecl])funcTable[997])((nint)pOut, size, defaultW, defaultH); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 CalcItemSize(Vector2 size, float defaultW, float defaultH) + { + Vector2 ret; + CalcItemSizeNative(&ret, size, defaultW, defaultH); + return ret; + } + + /// + /// To be documented. + /// + public static void CalcItemSize(Vector2* pOut, Vector2 size, float defaultW, float defaultH) + { + CalcItemSizeNative(pOut, size, defaultW, defaultH); + } + + /// + /// To be documented. + /// + public static void CalcItemSize(ref Vector2 pOut, Vector2 size, float defaultW, float defaultH) + { + fixed (Vector2* ppOut = &pOut) + { + CalcItemSizeNative((Vector2*)ppOut, size, defaultW, defaultH); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float CalcWrapWidthForPosNative(Vector2 pos, float wrapPosX) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[998])(pos, wrapPosX); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[998])(pos, wrapPosX); + #endif + } + + /// + /// To be documented. + /// + public static float CalcWrapWidthForPos(Vector2 pos, float wrapPosX) + { + float ret = CalcWrapWidthForPosNative(pos, wrapPosX); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushMultiItemsWidthsNative(int components, float widthFull) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[999])(components, widthFull); + #else + ((delegate* unmanaged[Cdecl])funcTable[999])(components, widthFull); + #endif + } + + /// + /// To be documented. + /// + public static void PushMultiItemsWidths(int components, float widthFull) + { + PushMultiItemsWidthsNative(components, widthFull); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsItemToggledSelectionNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1000])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1000])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsItemToggledSelection() + { + byte ret = IsItemToggledSelectionNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetContentRegionMaxAbsNative(Vector2* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1001])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[1001])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetContentRegionMaxAbs() + { + Vector2 ret; + GetContentRegionMaxAbsNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetContentRegionMaxAbs(Vector2* pOut) + { + GetContentRegionMaxAbsNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetContentRegionMaxAbs(ref Vector2 pOut) + { + fixed (Vector2* ppOut = &pOut) + { + GetContentRegionMaxAbsNative((Vector2*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShrinkWidthsNative(ImGuiShrinkWidthItem* items, int count, float widthExcess) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1002])(items, count, widthExcess); + #else + ((delegate* unmanaged[Cdecl])funcTable[1002])((nint)items, count, widthExcess); + #endif + } + + /// + /// To be documented. + /// + public static void ShrinkWidths(ImGuiShrinkWidthItemPtr items, int count, float widthExcess) + { + ShrinkWidthsNative(items, count, widthExcess); + } + + /// + /// To be documented. + /// + public static void ShrinkWidths(ref ImGuiShrinkWidthItem items, int count, float widthExcess) + { + fixed (ImGuiShrinkWidthItem* pitems = &items) + { + ShrinkWidthsNative((ImGuiShrinkWidthItem*)pitems, count, widthExcess); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushItemFlagNative(ImGuiItemFlags option, byte enabled) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1003])(option, enabled); + #else + ((delegate* unmanaged[Cdecl])funcTable[1003])(option, enabled); + #endif + } + + /// + /// To be documented. + /// + public static void PushItemFlag(ImGuiItemFlags option, bool enabled) + { + PushItemFlagNative(option, enabled ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopItemFlagNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1004])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1004])(); + #endif + } + + /// + /// To be documented. + /// + public static void PopItemFlag() + { + PopItemFlagNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void LogBeginNative(ImGuiLogType type, int autoOpenDepth) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1005])(type, autoOpenDepth); + #else + ((delegate* unmanaged[Cdecl])funcTable[1005])(type, autoOpenDepth); + #endif + } + + /// + /// To be documented. + /// + public static void LogBegin(ImGuiLogType type, int autoOpenDepth) + { + LogBeginNative(type, autoOpenDepth); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void LogToBufferNative(int autoOpenDepth) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1006])(autoOpenDepth); + #else + ((delegate* unmanaged[Cdecl])funcTable[1006])(autoOpenDepth); + #endif + } + + /// + /// To be documented. + /// + public static void LogToBuffer(int autoOpenDepth) + { + LogToBufferNative(autoOpenDepth); + } + + /// + /// To be documented. + /// + public static void LogToBuffer() + { + LogToBufferNative((int)(-1)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void LogRenderedTextNative(Vector2* refPos, byte* text, byte* textEnd) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1007])(refPos, text, textEnd); + #else + ((delegate* unmanaged[Cdecl])funcTable[1007])((nint)refPos, (nint)text, (nint)textEnd); + #endif + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, byte* text, byte* textEnd) + { + LogRenderedTextNative(refPos, text, textEnd); + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, byte* text) + { + LogRenderedTextNative(refPos, text, (byte*)(default)); + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, byte* text, byte* textEnd) + { + fixed (Vector2* prefPos = &refPos) + { + LogRenderedTextNative((Vector2*)prefPos, text, textEnd); + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, byte* text) + { + fixed (Vector2* prefPos = &refPos) + { + LogRenderedTextNative((Vector2*)prefPos, text, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + LogRenderedTextNative(refPos, (byte*)ptext, textEnd); + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, ref byte text) + { + fixed (byte* ptext = &text) + { + LogRenderedTextNative(refPos, (byte*)ptext, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, ReadOnlySpan text, byte* textEnd) + { + fixed (byte* ptext = text) + { + LogRenderedTextNative(refPos, (byte*)ptext, textEnd); + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, ReadOnlySpan text) + { + fixed (byte* ptext = text) + { + LogRenderedTextNative(refPos, (byte*)ptext, (byte*)(default)); + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, string text, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogRenderedTextNative(refPos, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, string text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogRenderedTextNative(refPos, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, ref byte text, byte* textEnd) + { + fixed (Vector2* prefPos = &refPos) + { + fixed (byte* ptext = &text) + { + LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, textEnd); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, ref byte text) + { + fixed (Vector2* prefPos = &refPos) + { + fixed (byte* ptext = &text) + { + LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan text, byte* textEnd) + { + fixed (Vector2* prefPos = &refPos) + { + fixed (byte* ptext = text) + { + LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, textEnd); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan text) + { + fixed (Vector2* prefPos = &refPos) + { + fixed (byte* ptext = text) + { + LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, string text, byte* textEnd) + { + fixed (Vector2* prefPos = &refPos) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogRenderedTextNative((Vector2*)prefPos, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, string text) + { + fixed (Vector2* prefPos = &refPos) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogRenderedTextNative((Vector2*)prefPos, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + LogRenderedTextNative(refPos, text, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, byte* text, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + LogRenderedTextNative(refPos, text, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, byte* text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogRenderedTextNative(refPos, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, byte* text, ref byte textEnd) + { + fixed (Vector2* prefPos = &refPos) + { + fixed (byte* ptextEnd = &textEnd) + { + LogRenderedTextNative((Vector2*)prefPos, text, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, byte* text, ReadOnlySpan textEnd) + { + fixed (Vector2* prefPos = &refPos) + { + fixed (byte* ptextEnd = textEnd) + { + LogRenderedTextNative((Vector2*)prefPos, text, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, byte* text, string textEnd) + { + fixed (Vector2* prefPos = &refPos) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogRenderedTextNative((Vector2*)prefPos, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, string text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + LogRenderedTextNative(refPos, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, ref byte text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, ref byte text, string textEnd) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogRenderedTextNative(refPos, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, ReadOnlySpan text, ref byte textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, ReadOnlySpan text, string textEnd) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogRenderedTextNative(refPos, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, string text, ref byte textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + LogRenderedTextNative(refPos, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(Vector2* refPos, string text, ReadOnlySpan textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + LogRenderedTextNative(refPos, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, ref byte text, ref byte textEnd) + { + fixed (Vector2* prefPos = &refPos) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (Vector2* prefPos = &refPos) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, string text, string textEnd) + { + fixed (Vector2* prefPos = &refPos) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + LogRenderedTextNative((Vector2*)prefPos, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, ref byte text, ReadOnlySpan textEnd) + { + fixed (Vector2* prefPos = &refPos) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, ref byte text, string textEnd) + { + fixed (Vector2* prefPos = &refPos) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan text, ref byte textEnd) + { + fixed (Vector2* prefPos = &refPos) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan text, string textEnd) + { + fixed (Vector2* prefPos = &refPos) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, string text, ref byte textEnd) + { + fixed (Vector2* prefPos = &refPos) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + LogRenderedTextNative((Vector2*)prefPos, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void LogRenderedText(ref Vector2 refPos, string text, ReadOnlySpan textEnd) + { + fixed (Vector2* prefPos = &refPos) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + LogRenderedTextNative((Vector2*)prefPos, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void LogSetNextTextDecorationNative(byte* prefix, byte* suffix) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1008])(prefix, suffix); + #else + ((delegate* unmanaged[Cdecl])funcTable[1008])((nint)prefix, (nint)suffix); + #endif + } + + /// + /// To be documented. + /// + public static void LogSetNextTextDecoration(byte* prefix, byte* suffix) + { + LogSetNextTextDecorationNative(prefix, suffix); + } + + /// + /// To be documented. + /// + public static void LogSetNextTextDecoration(ref byte prefix, byte* suffix) + { + fixed (byte* pprefix = &prefix) + { + LogSetNextTextDecorationNative((byte*)pprefix, suffix); + } + } + + /// + /// To be documented. + /// + public static void LogSetNextTextDecoration(ReadOnlySpan prefix, byte* suffix) + { + fixed (byte* pprefix = prefix) + { + LogSetNextTextDecorationNative((byte*)pprefix, suffix); + } + } + + /// + /// To be documented. + /// + public static void LogSetNextTextDecoration(string prefix, byte* suffix) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (prefix != null) + { + pStrSize0 = Utils.GetByteCountUTF8(prefix); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogSetNextTextDecorationNative(pStr0, suffix); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void LogSetNextTextDecoration(byte* prefix, ref byte suffix) + { + fixed (byte* psuffix = &suffix) + { + LogSetNextTextDecorationNative(prefix, (byte*)psuffix); + } + } + + /// + /// To be documented. + /// + public static void LogSetNextTextDecoration(byte* prefix, ReadOnlySpan suffix) + { + fixed (byte* psuffix = suffix) + { + LogSetNextTextDecorationNative(prefix, (byte*)psuffix); + } + } + + /// + /// To be documented. + /// + public static void LogSetNextTextDecoration(byte* prefix, string suffix) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (suffix != null) + { + pStrSize0 = Utils.GetByteCountUTF8(suffix); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(suffix, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogSetNextTextDecorationNative(prefix, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void LogSetNextTextDecoration(ref byte prefix, ref byte suffix) + { + fixed (byte* pprefix = &prefix) + { + fixed (byte* psuffix = &suffix) + { + LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); + } + } + } + + /// + /// To be documented. + /// + public static void LogSetNextTextDecoration(ReadOnlySpan prefix, ReadOnlySpan suffix) + { + fixed (byte* pprefix = prefix) + { + fixed (byte* psuffix = suffix) + { + LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); + } + } + } + + /// + /// To be documented. + /// + public static void LogSetNextTextDecoration(string prefix, string suffix) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (prefix != null) + { + pStrSize0 = Utils.GetByteCountUTF8(prefix); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (suffix != null) + { + pStrSize1 = Utils.GetByteCountUTF8(suffix); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(suffix, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + LogSetNextTextDecorationNative(pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void LogSetNextTextDecoration(ref byte prefix, ReadOnlySpan suffix) + { + fixed (byte* pprefix = &prefix) + { + fixed (byte* psuffix = suffix) + { + LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); + } + } + } + + /// + /// To be documented. + /// + public static void LogSetNextTextDecoration(ref byte prefix, string suffix) + { + fixed (byte* pprefix = &prefix) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (suffix != null) + { + pStrSize0 = Utils.GetByteCountUTF8(suffix); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(suffix, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogSetNextTextDecorationNative((byte*)pprefix, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void LogSetNextTextDecoration(ReadOnlySpan prefix, ref byte suffix) + { + fixed (byte* pprefix = prefix) + { + fixed (byte* psuffix = &suffix) + { + LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); + } + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.008.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.008.cs index 4e23ac151..473d8c16e 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.008.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.008.cs @@ -18,3206 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGuiP { - /// - /// To be documented. - /// - public static void SetCurrentViewport(ImGuiWindowPtr window, ref ImGuiViewportP viewport) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - SetCurrentViewportNative(window, (ImGuiViewportP*)pviewport); - } - } - - /// - /// To be documented. - /// - public static void SetCurrentViewport(ref ImGuiWindow window, ref ImGuiViewportP viewport) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - SetCurrentViewportNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPlatformMonitor* GetViewportPlatformMonitorNative(ImGuiViewport* viewport) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[957])(viewport); - #else - return (ImGuiPlatformMonitor*)((delegate* unmanaged[Cdecl])funcTable[957])((nint)viewport); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiPlatformMonitorPtr GetViewportPlatformMonitor(ImGuiViewportPtr viewport) - { - ImGuiPlatformMonitorPtr ret = GetViewportPlatformMonitorNative(viewport); - return ret; - } - - /// - /// To be documented. - /// - public static ImGuiPlatformMonitorPtr GetViewportPlatformMonitor(ref ImGuiViewport viewport) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - ImGuiPlatformMonitorPtr ret = GetViewportPlatformMonitorNative((ImGuiViewport*)pviewport); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiViewportP* FindHoveredViewportFromPlatformWindowStackNative(Vector2 mousePlatformPos) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[958])(mousePlatformPos); - #else - return (ImGuiViewportP*)((delegate* unmanaged[Cdecl])funcTable[958])(mousePlatformPos); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiViewportPPtr FindHoveredViewportFromPlatformWindowStack(Vector2 mousePlatformPos) - { - ImGuiViewportPPtr ret = FindHoveredViewportFromPlatformWindowStackNative(mousePlatformPos); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MarkIniSettingsDirtyNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[959])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[959])(); - #endif - } - - /// - /// To be documented. - /// - public static void MarkIniSettingsDirty() - { - MarkIniSettingsDirtyNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MarkIniSettingsDirtyNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[960])(window); - #else - ((delegate* unmanaged[Cdecl])funcTable[960])((nint)window); - #endif - } - - /// - /// To be documented. - /// - public static void MarkIniSettingsDirty(ImGuiWindowPtr window) - { - MarkIniSettingsDirtyNative(window); - } - - /// - /// To be documented. - /// - public static void MarkIniSettingsDirty(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - MarkIniSettingsDirtyNative((ImGuiWindow*)pwindow); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearIniSettingsNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[961])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[961])(); - #endif - } - - /// - /// To be documented. - /// - public static void ClearIniSettings() - { - ClearIniSettingsNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindowSettings* CreateNewWindowSettingsNative(byte* name) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[962])(name); - #else - return (ImGuiWindowSettings*)((delegate* unmanaged[Cdecl])funcTable[962])((nint)name); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiWindowSettingsPtr CreateNewWindowSettings(byte* name) - { - ImGuiWindowSettingsPtr ret = CreateNewWindowSettingsNative(name); - return ret; - } - - /// - /// To be documented. - /// - public static ImGuiWindowSettingsPtr CreateNewWindowSettings(ref byte name) - { - fixed (byte* pname = &name) - { - ImGuiWindowSettingsPtr ret = CreateNewWindowSettingsNative((byte*)pname); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImGuiWindowSettingsPtr CreateNewWindowSettings(ReadOnlySpan name) - { - fixed (byte* pname = name) - { - ImGuiWindowSettingsPtr ret = CreateNewWindowSettingsNative((byte*)pname); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImGuiWindowSettingsPtr CreateNewWindowSettings(string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiWindowSettingsPtr ret = CreateNewWindowSettingsNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindowSettings* FindWindowSettingsNative(uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[963])(id); - #else - return (ImGuiWindowSettings*)((delegate* unmanaged[Cdecl])funcTable[963])(id); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiWindowSettingsPtr FindWindowSettings(uint id) - { - ImGuiWindowSettingsPtr ret = FindWindowSettingsNative(id); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindowSettings* FindOrCreateWindowSettingsNative(byte* name) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[964])(name); - #else - return (ImGuiWindowSettings*)((delegate* unmanaged[Cdecl])funcTable[964])((nint)name); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(byte* name) - { - ImGuiWindowSettingsPtr ret = FindOrCreateWindowSettingsNative(name); - return ret; - } - - /// - /// To be documented. - /// - public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(ref byte name) - { - fixed (byte* pname = &name) - { - ImGuiWindowSettingsPtr ret = FindOrCreateWindowSettingsNative((byte*)pname); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(ReadOnlySpan name) - { - fixed (byte* pname = name) - { - ImGuiWindowSettingsPtr ret = FindOrCreateWindowSettingsNative((byte*)pname); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiWindowSettingsPtr ret = FindOrCreateWindowSettingsNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddSettingsHandlerNative(ImGuiSettingsHandler* handler) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[965])(handler); - #else - ((delegate* unmanaged[Cdecl])funcTable[965])((nint)handler); - #endif - } - - /// - /// To be documented. - /// - public static void AddSettingsHandler(ImGuiSettingsHandlerPtr handler) - { - AddSettingsHandlerNative(handler); - } - - /// - /// To be documented. - /// - public static void AddSettingsHandler(ref ImGuiSettingsHandler handler) - { - fixed (ImGuiSettingsHandler* phandler = &handler) - { - AddSettingsHandlerNative((ImGuiSettingsHandler*)phandler); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RemoveSettingsHandlerNative(byte* typeName) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[966])(typeName); - #else - ((delegate* unmanaged[Cdecl])funcTable[966])((nint)typeName); - #endif - } - - /// - /// To be documented. - /// - public static void RemoveSettingsHandler(byte* typeName) - { - RemoveSettingsHandlerNative(typeName); - } - - /// - /// To be documented. - /// - public static void RemoveSettingsHandler(ref byte typeName) - { - fixed (byte* ptypeName = &typeName) - { - RemoveSettingsHandlerNative((byte*)ptypeName); - } - } - - /// - /// To be documented. - /// - public static void RemoveSettingsHandler(ReadOnlySpan typeName) - { - fixed (byte* ptypeName = typeName) - { - RemoveSettingsHandlerNative((byte*)ptypeName); - } - } - - /// - /// To be documented. - /// - public static void RemoveSettingsHandler(string typeName) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (typeName != null) - { - pStrSize0 = Utils.GetByteCountUTF8(typeName); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RemoveSettingsHandlerNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiSettingsHandler* FindSettingsHandlerNative(byte* typeName) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[967])(typeName); - #else - return (ImGuiSettingsHandler*)((delegate* unmanaged[Cdecl])funcTable[967])((nint)typeName); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiSettingsHandlerPtr FindSettingsHandler(byte* typeName) - { - ImGuiSettingsHandlerPtr ret = FindSettingsHandlerNative(typeName); - return ret; - } - - /// - /// To be documented. - /// - public static ImGuiSettingsHandlerPtr FindSettingsHandler(ref byte typeName) - { - fixed (byte* ptypeName = &typeName) - { - ImGuiSettingsHandlerPtr ret = FindSettingsHandlerNative((byte*)ptypeName); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImGuiSettingsHandlerPtr FindSettingsHandler(ReadOnlySpan typeName) - { - fixed (byte* ptypeName = typeName) - { - ImGuiSettingsHandlerPtr ret = FindSettingsHandlerNative((byte*)ptypeName); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImGuiSettingsHandlerPtr FindSettingsHandler(string typeName) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (typeName != null) - { - pStrSize0 = Utils.GetByteCountUTF8(typeName); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiSettingsHandlerPtr ret = FindSettingsHandlerNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextWindowScrollNative(Vector2 scroll) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[968])(scroll); - #else - ((delegate* unmanaged[Cdecl])funcTable[968])(scroll); - #endif - } - - /// - /// To be documented. - /// - public static void SetNextWindowScroll(Vector2 scroll) - { - SetNextWindowScrollNative(scroll); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetScrollXNative(ImGuiWindow* window, float scrollX) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[969])(window, scrollX); - #else - ((delegate* unmanaged[Cdecl])funcTable[969])((nint)window, scrollX); - #endif - } - - /// - /// To be documented. - /// - public static void SetScrollX(ImGuiWindowPtr window, float scrollX) - { - SetScrollXNative(window, scrollX); - } - - /// - /// To be documented. - /// - public static void SetScrollX(ref ImGuiWindow window, float scrollX) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetScrollXNative((ImGuiWindow*)pwindow, scrollX); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetScrollYNative(ImGuiWindow* window, float scrollY) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[970])(window, scrollY); - #else - ((delegate* unmanaged[Cdecl])funcTable[970])((nint)window, scrollY); - #endif - } - - /// - /// To be documented. - /// - public static void SetScrollY(ImGuiWindowPtr window, float scrollY) - { - SetScrollYNative(window, scrollY); - } - - /// - /// To be documented. - /// - public static void SetScrollY(ref ImGuiWindow window, float scrollY) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetScrollYNative((ImGuiWindow*)pwindow, scrollY); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetScrollFromPosXNative(ImGuiWindow* window, float localX, float centerXRatio) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[971])(window, localX, centerXRatio); - #else - ((delegate* unmanaged[Cdecl])funcTable[971])((nint)window, localX, centerXRatio); - #endif - } - - /// - /// To be documented. - /// - public static void SetScrollFromPosX(ImGuiWindowPtr window, float localX, float centerXRatio) - { - SetScrollFromPosXNative(window, localX, centerXRatio); - } - - /// - /// To be documented. - /// - public static void SetScrollFromPosX(ref ImGuiWindow window, float localX, float centerXRatio) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetScrollFromPosXNative((ImGuiWindow*)pwindow, localX, centerXRatio); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetScrollFromPosYNative(ImGuiWindow* window, float localY, float centerYRatio) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[972])(window, localY, centerYRatio); - #else - ((delegate* unmanaged[Cdecl])funcTable[972])((nint)window, localY, centerYRatio); - #endif - } - - /// - /// To be documented. - /// - public static void SetScrollFromPosY(ImGuiWindowPtr window, float localY, float centerYRatio) - { - SetScrollFromPosYNative(window, localY, centerYRatio); - } - - /// - /// To be documented. - /// - public static void SetScrollFromPosY(ref ImGuiWindow window, float localY, float centerYRatio) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetScrollFromPosYNative((ImGuiWindow*)pwindow, localY, centerYRatio); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ScrollToItemNative(ImGuiScrollFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[973])(flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[973])(flags); - #endif - } - - /// - /// To be documented. - /// - public static void ScrollToItem(ImGuiScrollFlags flags) - { - ScrollToItemNative(flags); - } - - /// - /// To be documented. - /// - public static void ScrollToItem() - { - ScrollToItemNative((ImGuiScrollFlags)(0)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ScrollToRectNative(ImGuiWindow* window, ImRect rect, ImGuiScrollFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[974])(window, rect, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[974])((nint)window, rect, flags); - #endif - } - - /// - /// To be documented. - /// - public static void ScrollToRect(ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) - { - ScrollToRectNative(window, rect, flags); - } - - /// - /// To be documented. - /// - public static void ScrollToRect(ImGuiWindowPtr window, ImRect rect) - { - ScrollToRectNative(window, rect, (ImGuiScrollFlags)(0)); - } - - /// - /// To be documented. - /// - public static void ScrollToRect(ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) - { - fixed (ImGuiWindow* pwindow = &window) - { - ScrollToRectNative((ImGuiWindow*)pwindow, rect, flags); - } - } - - /// - /// To be documented. - /// - public static void ScrollToRect(ref ImGuiWindow window, ImRect rect) - { - fixed (ImGuiWindow* pwindow = &window) - { - ScrollToRectNative((ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ScrollToRectExNative(Vector2* pOut, ImGuiWindow* window, ImRect rect, ImGuiScrollFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[975])(pOut, window, rect, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[975])((nint)pOut, (nint)window, rect, flags); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ScrollToRectEx(ImGuiWindowPtr window, ImRect rect) - { - Vector2 ret; - ScrollToRectExNative(&ret, window, rect, (ImGuiScrollFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static Vector2 ScrollToRectEx(ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) - { - Vector2 ret; - ScrollToRectExNative(&ret, window, rect, flags); - return ret; - } - - /// - /// To be documented. - /// - public static void ScrollToRectEx(Vector2* pOut, ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) - { - ScrollToRectExNative(pOut, window, rect, flags); - } - - /// - /// To be documented. - /// - public static void ScrollToRectEx(Vector2* pOut, ImGuiWindowPtr window, ImRect rect) - { - ScrollToRectExNative(pOut, window, rect, (ImGuiScrollFlags)(0)); - } - - /// - /// To be documented. - /// - public static void ScrollToRectEx(ref Vector2 pOut, ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) - { - fixed (Vector2* ppOut = &pOut) - { - ScrollToRectExNative((Vector2*)ppOut, window, rect, flags); - } - } - - /// - /// To be documented. - /// - public static void ScrollToRectEx(ref Vector2 pOut, ImGuiWindowPtr window, ImRect rect) - { - fixed (Vector2* ppOut = &pOut) - { - ScrollToRectExNative((Vector2*)ppOut, window, rect, (ImGuiScrollFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static Vector2 ScrollToRectEx(ref ImGuiWindow window, ImRect rect) - { - fixed (ImGuiWindow* pwindow = &window) - { - Vector2 ret; - ScrollToRectExNative(&ret, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 ScrollToRectEx(ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) - { - fixed (ImGuiWindow* pwindow = &window) - { - Vector2 ret; - ScrollToRectExNative(&ret, (ImGuiWindow*)pwindow, rect, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static void ScrollToRectEx(Vector2* pOut, ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) - { - fixed (ImGuiWindow* pwindow = &window) - { - ScrollToRectExNative(pOut, (ImGuiWindow*)pwindow, rect, flags); - } - } - - /// - /// To be documented. - /// - public static void ScrollToRectEx(Vector2* pOut, ref ImGuiWindow window, ImRect rect) - { - fixed (ImGuiWindow* pwindow = &window) - { - ScrollToRectExNative(pOut, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void ScrollToRectEx(ref Vector2 pOut, ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - ScrollToRectExNative((Vector2*)ppOut, (ImGuiWindow*)pwindow, rect, flags); - } - } - } - - /// - /// To be documented. - /// - public static void ScrollToRectEx(ref Vector2 pOut, ref ImGuiWindow window, ImRect rect) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - ScrollToRectExNative((Vector2*)ppOut, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ScrollToBringRectIntoViewNative(ImGuiWindow* window, ImRect rect) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[976])(window, rect); - #else - ((delegate* unmanaged[Cdecl])funcTable[976])((nint)window, rect); - #endif - } - - /// - /// To be documented. - /// - public static void ScrollToBringRectIntoView(ImGuiWindowPtr window, ImRect rect) - { - ScrollToBringRectIntoViewNative(window, rect); - } - - /// - /// To be documented. - /// - public static void ScrollToBringRectIntoView(ref ImGuiWindow window, ImRect rect) - { - fixed (ImGuiWindow* pwindow = &window) - { - ScrollToBringRectIntoViewNative((ImGuiWindow*)pwindow, rect); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetItemIDNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[977])(); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[977])(); - #endif - } - - /// - /// To be documented. - /// - public static uint GetItemID() - { - uint ret = GetItemIDNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiItemStatusFlags GetItemStatusFlagsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[978])(); - #else - return (ImGuiItemStatusFlags)((delegate* unmanaged[Cdecl])funcTable[978])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiItemStatusFlags GetItemStatusFlags() - { - ImGuiItemStatusFlags ret = GetItemStatusFlagsNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiItemFlags GetItemFlagsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[979])(); - #else - return (ImGuiItemFlags)((delegate* unmanaged[Cdecl])funcTable[979])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiItemFlags GetItemFlags() - { - ImGuiItemFlags ret = GetItemFlagsNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetActiveIDNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[980])(); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[980])(); - #endif - } - - /// - /// To be documented. - /// - public static uint GetActiveID() - { - uint ret = GetActiveIDNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetFocusIDNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[981])(); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[981])(); - #endif - } - - /// - /// To be documented. - /// - public static uint GetFocusID() - { - uint ret = GetFocusIDNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetActiveIDNative(uint id, ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[982])(id, window); - #else - ((delegate* unmanaged[Cdecl])funcTable[982])(id, (nint)window); - #endif - } - - /// - /// To be documented. - /// - public static void SetActiveID(uint id, ImGuiWindowPtr window) - { - SetActiveIDNative(id, window); - } - - /// - /// To be documented. - /// - public static void SetActiveID(uint id, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetActiveIDNative(id, (ImGuiWindow*)pwindow); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetFocusIDNative(uint id, ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[983])(id, window); - #else - ((delegate* unmanaged[Cdecl])funcTable[983])(id, (nint)window); - #endif - } - - /// - /// To be documented. - /// - public static void SetFocusID(uint id, ImGuiWindowPtr window) - { - SetFocusIDNative(id, window); - } - - /// - /// To be documented. - /// - public static void SetFocusID(uint id, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetFocusIDNative(id, (ImGuiWindow*)pwindow); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearActiveIDNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[984])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[984])(); - #endif - } - - /// - /// To be documented. - /// - public static void ClearActiveID() - { - ClearActiveIDNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetHoveredIDNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[985])(); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[985])(); - #endif - } - - /// - /// To be documented. - /// - public static uint GetHoveredID() - { - uint ret = GetHoveredIDNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetHoveredIDNative(uint id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[986])(id); - #else - ((delegate* unmanaged[Cdecl])funcTable[986])(id); - #endif - } - - /// - /// To be documented. - /// - public static void SetHoveredID(uint id) - { - SetHoveredIDNative(id); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void KeepAliveIDNative(uint id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[987])(id); - #else - ((delegate* unmanaged[Cdecl])funcTable[987])(id); - #endif - } - - /// - /// To be documented. - /// - public static void KeepAliveID(uint id) - { - KeepAliveIDNative(id); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MarkItemEditedNative(uint id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[988])(id); - #else - ((delegate* unmanaged[Cdecl])funcTable[988])(id); - #endif - } - - /// - /// To be documented. - /// - public static void MarkItemEdited(uint id) - { - MarkItemEditedNative(id); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushOverrideIDNative(uint id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[989])(id); - #else - ((delegate* unmanaged[Cdecl])funcTable[989])(id); - #endif - } - - /// - /// To be documented. - /// - public static void PushOverrideID(uint id) - { - PushOverrideIDNative(id); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetIDWithSeedNative(byte* strIdBegin, byte* strIdEnd, uint seed) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[990])(strIdBegin, strIdEnd, seed); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[990])((nint)strIdBegin, (nint)strIdEnd, seed); - #endif - } - - /// - /// To be documented. - /// - public static uint GetIDWithSeed(byte* strIdBegin, byte* strIdEnd, uint seed) - { - uint ret = GetIDWithSeedNative(strIdBegin, strIdEnd, seed); - return ret; - } - - /// - /// To be documented. - /// - public static uint GetIDWithSeed(ref byte strIdBegin, byte* strIdEnd, uint seed) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, strIdEnd, seed); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetIDWithSeed(ReadOnlySpan strIdBegin, byte* strIdEnd, uint seed) - { - fixed (byte* pstrIdBegin = strIdBegin) - { - uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, strIdEnd, seed); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetIDWithSeed(string strIdBegin, byte* strIdEnd, uint seed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDWithSeedNative(pStr0, strIdEnd, seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static uint GetIDWithSeed(byte* strIdBegin, ref byte strIdEnd, uint seed) - { - fixed (byte* pstrIdEnd = &strIdEnd) - { - uint ret = GetIDWithSeedNative(strIdBegin, (byte*)pstrIdEnd, seed); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetIDWithSeed(byte* strIdBegin, ReadOnlySpan strIdEnd, uint seed) - { - fixed (byte* pstrIdEnd = strIdEnd) - { - uint ret = GetIDWithSeedNative(strIdBegin, (byte*)pstrIdEnd, seed); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetIDWithSeed(byte* strIdBegin, string strIdEnd, uint seed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDWithSeedNative(strIdBegin, pStr0, seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static uint GetIDWithSeed(ref byte strIdBegin, ref byte strIdEnd, uint seed) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - fixed (byte* pstrIdEnd = &strIdEnd) - { - uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetIDWithSeed(ReadOnlySpan strIdBegin, ReadOnlySpan strIdEnd, uint seed) - { - fixed (byte* pstrIdBegin = strIdBegin) - { - fixed (byte* pstrIdEnd = strIdEnd) - { - uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetIDWithSeed(string strIdBegin, string strIdEnd, uint seed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strIdEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strIdEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - uint ret = GetIDWithSeedNative(pStr0, pStr1, seed); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static uint GetIDWithSeed(ref byte strIdBegin, ReadOnlySpan strIdEnd, uint seed) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - fixed (byte* pstrIdEnd = strIdEnd) - { - uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetIDWithSeed(ref byte strIdBegin, string strIdEnd, uint seed) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, pStr0, seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetIDWithSeed(ReadOnlySpan strIdBegin, ref byte strIdEnd, uint seed) - { - fixed (byte* pstrIdBegin = strIdBegin) - { - fixed (byte* pstrIdEnd = &strIdEnd) - { - uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetIDWithSeed(ReadOnlySpan strIdBegin, string strIdEnd, uint seed) - { - fixed (byte* pstrIdBegin = strIdBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, pStr0, seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetIDWithSeed(string strIdBegin, ref byte strIdEnd, uint seed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrIdEnd = &strIdEnd) - { - uint ret = GetIDWithSeedNative(pStr0, (byte*)pstrIdEnd, seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetIDWithSeed(string strIdBegin, ReadOnlySpan strIdEnd, uint seed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrIdEnd = strIdEnd) - { - uint ret = GetIDWithSeedNative(pStr0, (byte*)pstrIdEnd, seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ItemSizeNative(Vector2 size, float textBaselineY) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[991])(size, textBaselineY); - #else - ((delegate* unmanaged[Cdecl])funcTable[991])(size, textBaselineY); - #endif - } - - /// - /// To be documented. - /// - public static void ItemSize(Vector2 size, float textBaselineY) - { - ItemSizeNative(size, textBaselineY); - } - - /// - /// To be documented. - /// - public static void ItemSize(Vector2 size) - { - ItemSizeNative(size, (float)(-1.0f)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ItemSizeNative(ImRect bb, float textBaselineY) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[992])(bb, textBaselineY); - #else - ((delegate* unmanaged[Cdecl])funcTable[992])(bb, textBaselineY); - #endif - } - - /// - /// To be documented. - /// - public static void ItemSize(ImRect bb, float textBaselineY) - { - ItemSizeNative(bb, textBaselineY); - } - - /// - /// To be documented. - /// - public static void ItemSize(ImRect bb) - { - ItemSizeNative(bb, (float)(-1.0f)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ItemAddNative(ImRect bb, uint id, ImRect* navBb, ImGuiItemFlags extraFlags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[993])(bb, id, navBb, extraFlags); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[993])(bb, id, (nint)navBb, extraFlags); - #endif - } - - /// - /// To be documented. - /// - public static bool ItemAdd(ImRect bb, uint id, ImRectPtr navBb, ImGuiItemFlags extraFlags) - { - byte ret = ItemAddNative(bb, id, navBb, extraFlags); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ItemAdd(ImRect bb, uint id, ImRectPtr navBb) - { - byte ret = ItemAddNative(bb, id, navBb, (ImGuiItemFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ItemAdd(ImRect bb, uint id) - { - byte ret = ItemAddNative(bb, id, (ImRect*)(default), (ImGuiItemFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ItemAdd(ImRect bb, uint id, ImGuiItemFlags extraFlags) - { - byte ret = ItemAddNative(bb, id, (ImRect*)(default), extraFlags); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ItemAdd(ImRect bb, uint id, ref ImRect navBb, ImGuiItemFlags extraFlags) - { - fixed (ImRect* pnavBb = &navBb) - { - byte ret = ItemAddNative(bb, id, (ImRect*)pnavBb, extraFlags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ItemAdd(ImRect bb, uint id, ref ImRect navBb) - { - fixed (ImRect* pnavBb = &navBb) - { - byte ret = ItemAddNative(bb, id, (ImRect*)pnavBb, (ImGuiItemFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ItemHoverableNative(ImRect bb, uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[994])(bb, id); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[994])(bb, id); - #endif - } - - /// - /// To be documented. - /// - public static bool ItemHoverable(ImRect bb, uint id) - { - byte ret = ItemHoverableNative(bb, id); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsClippedExNative(ImRect bb, uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[995])(bb, id); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[995])(bb, id); - #endif - } - - /// - /// To be documented. - /// - public static bool IsClippedEx(ImRect bb, uint id) - { - byte ret = IsClippedExNative(bb, id); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetLastItemDataNative(uint itemId, ImGuiItemFlags inFlags, ImGuiItemStatusFlags statusFlags, ImRect itemRect) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[996])(itemId, inFlags, statusFlags, itemRect); - #else - ((delegate* unmanaged[Cdecl])funcTable[996])(itemId, inFlags, statusFlags, itemRect); - #endif - } - - /// - /// To be documented. - /// - public static void SetLastItemData(uint itemId, ImGuiItemFlags inFlags, ImGuiItemStatusFlags statusFlags, ImRect itemRect) - { - SetLastItemDataNative(itemId, inFlags, statusFlags, itemRect); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcItemSizeNative(Vector2* pOut, Vector2 size, float defaultW, float defaultH) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[997])(pOut, size, defaultW, defaultH); - #else - ((delegate* unmanaged[Cdecl])funcTable[997])((nint)pOut, size, defaultW, defaultH); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 CalcItemSize(Vector2 size, float defaultW, float defaultH) - { - Vector2 ret; - CalcItemSizeNative(&ret, size, defaultW, defaultH); - return ret; - } - - /// - /// To be documented. - /// - public static void CalcItemSize(Vector2* pOut, Vector2 size, float defaultW, float defaultH) - { - CalcItemSizeNative(pOut, size, defaultW, defaultH); - } - - /// - /// To be documented. - /// - public static void CalcItemSize(ref Vector2 pOut, Vector2 size, float defaultW, float defaultH) - { - fixed (Vector2* ppOut = &pOut) - { - CalcItemSizeNative((Vector2*)ppOut, size, defaultW, defaultH); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float CalcWrapWidthForPosNative(Vector2 pos, float wrapPosX) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[998])(pos, wrapPosX); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[998])(pos, wrapPosX); - #endif - } - - /// - /// To be documented. - /// - public static float CalcWrapWidthForPos(Vector2 pos, float wrapPosX) - { - float ret = CalcWrapWidthForPosNative(pos, wrapPosX); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushMultiItemsWidthsNative(int components, float widthFull) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[999])(components, widthFull); - #else - ((delegate* unmanaged[Cdecl])funcTable[999])(components, widthFull); - #endif - } - - /// - /// To be documented. - /// - public static void PushMultiItemsWidths(int components, float widthFull) - { - PushMultiItemsWidthsNative(components, widthFull); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsItemToggledSelectionNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1000])(); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1000])(); - #endif - } - - /// - /// To be documented. - /// - public static bool IsItemToggledSelection() - { - byte ret = IsItemToggledSelectionNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetContentRegionMaxAbsNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1001])(pOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[1001])((nint)pOut); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 GetContentRegionMaxAbs() - { - Vector2 ret; - GetContentRegionMaxAbsNative(&ret); - return ret; - } - - /// - /// To be documented. - /// - public static void GetContentRegionMaxAbs(Vector2* pOut) - { - GetContentRegionMaxAbsNative(pOut); - } - - /// - /// To be documented. - /// - public static void GetContentRegionMaxAbs(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetContentRegionMaxAbsNative((Vector2*)ppOut); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShrinkWidthsNative(ImGuiShrinkWidthItem* items, int count, float widthExcess) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1002])(items, count, widthExcess); - #else - ((delegate* unmanaged[Cdecl])funcTable[1002])((nint)items, count, widthExcess); - #endif - } - - /// - /// To be documented. - /// - public static void ShrinkWidths(ImGuiShrinkWidthItemPtr items, int count, float widthExcess) - { - ShrinkWidthsNative(items, count, widthExcess); - } - - /// - /// To be documented. - /// - public static void ShrinkWidths(ref ImGuiShrinkWidthItem items, int count, float widthExcess) - { - fixed (ImGuiShrinkWidthItem* pitems = &items) - { - ShrinkWidthsNative((ImGuiShrinkWidthItem*)pitems, count, widthExcess); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushItemFlagNative(ImGuiItemFlags option, byte enabled) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1003])(option, enabled); - #else - ((delegate* unmanaged[Cdecl])funcTable[1003])(option, enabled); - #endif - } - - /// - /// To be documented. - /// - public static void PushItemFlag(ImGuiItemFlags option, bool enabled) - { - PushItemFlagNative(option, enabled ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopItemFlagNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1004])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[1004])(); - #endif - } - - /// - /// To be documented. - /// - public static void PopItemFlag() - { - PopItemFlagNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LogBeginNative(ImGuiLogType type, int autoOpenDepth) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1005])(type, autoOpenDepth); - #else - ((delegate* unmanaged[Cdecl])funcTable[1005])(type, autoOpenDepth); - #endif - } - - /// - /// To be documented. - /// - public static void LogBegin(ImGuiLogType type, int autoOpenDepth) - { - LogBeginNative(type, autoOpenDepth); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LogToBufferNative(int autoOpenDepth) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1006])(autoOpenDepth); - #else - ((delegate* unmanaged[Cdecl])funcTable[1006])(autoOpenDepth); - #endif - } - - /// - /// To be documented. - /// - public static void LogToBuffer(int autoOpenDepth) - { - LogToBufferNative(autoOpenDepth); - } - - /// - /// To be documented. - /// - public static void LogToBuffer() - { - LogToBufferNative((int)(-1)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LogRenderedTextNative(Vector2* refPos, byte* text, byte* textEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1007])(refPos, text, textEnd); - #else - ((delegate* unmanaged[Cdecl])funcTable[1007])((nint)refPos, (nint)text, (nint)textEnd); - #endif - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, byte* text, byte* textEnd) - { - LogRenderedTextNative(refPos, text, textEnd); - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, byte* text) - { - LogRenderedTextNative(refPos, text, (byte*)(default)); - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, byte* text, byte* textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - LogRenderedTextNative((Vector2*)prefPos, text, textEnd); - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, byte* text) - { - fixed (Vector2* prefPos = &refPos) - { - LogRenderedTextNative((Vector2*)prefPos, text, (byte*)(default)); - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - LogRenderedTextNative(refPos, (byte*)ptext, textEnd); - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, ref byte text) - { - fixed (byte* ptext = &text) - { - LogRenderedTextNative(refPos, (byte*)ptext, (byte*)(default)); - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, ReadOnlySpan text, byte* textEnd) - { - fixed (byte* ptext = text) - { - LogRenderedTextNative(refPos, (byte*)ptext, textEnd); - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, ReadOnlySpan text) - { - fixed (byte* ptext = text) - { - LogRenderedTextNative(refPos, (byte*)ptext, (byte*)(default)); - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative(refPos, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative(refPos, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, ref byte text, byte* textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = &text) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, textEnd); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, ref byte text) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = &text) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan text, byte* textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = text) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, textEnd); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan text) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = text) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, string text, byte* textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative((Vector2*)prefPos, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, string text) - { - fixed (Vector2* prefPos = &refPos) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative((Vector2*)prefPos, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative(refPos, text, (byte*)ptextEnd); - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, byte* text, ReadOnlySpan textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - LogRenderedTextNative(refPos, text, (byte*)ptextEnd); - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative(refPos, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, byte* text, ref byte textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, text, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, byte* text, ReadOnlySpan textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptextEnd = textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, text, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, byte* text, string textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative((Vector2*)prefPos, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, ReadOnlySpan text, ReadOnlySpan textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - LogRenderedTextNative(refPos, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, ref byte text, ReadOnlySpan textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative(refPos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, ReadOnlySpan text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, ReadOnlySpan text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative(refPos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative(refPos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(Vector2* refPos, string text, ReadOnlySpan textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - LogRenderedTextNative(refPos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, ref byte text, ref byte textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan text, ReadOnlySpan textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, string text, string textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - LogRenderedTextNative((Vector2*)prefPos, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, ref byte text, ReadOnlySpan textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, ref byte text, string textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan text, ref byte textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan text, string textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, string text, ref byte textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void LogRenderedText(ref Vector2 refPos, string text, ReadOnlySpan textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LogSetNextTextDecorationNative(byte* prefix, byte* suffix) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1008])(prefix, suffix); - #else - ((delegate* unmanaged[Cdecl])funcTable[1008])((nint)prefix, (nint)suffix); - #endif - } - - /// - /// To be documented. - /// - public static void LogSetNextTextDecoration(byte* prefix, byte* suffix) - { - LogSetNextTextDecorationNative(prefix, suffix); - } - - /// - /// To be documented. - /// - public static void LogSetNextTextDecoration(ref byte prefix, byte* suffix) - { - fixed (byte* pprefix = &prefix) - { - LogSetNextTextDecorationNative((byte*)pprefix, suffix); - } - } - - /// - /// To be documented. - /// - public static void LogSetNextTextDecoration(ReadOnlySpan prefix, byte* suffix) - { - fixed (byte* pprefix = prefix) - { - LogSetNextTextDecorationNative((byte*)pprefix, suffix); - } - } - - /// - /// To be documented. - /// - public static void LogSetNextTextDecoration(string prefix, byte* suffix) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogSetNextTextDecorationNative(pStr0, suffix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void LogSetNextTextDecoration(byte* prefix, ref byte suffix) - { - fixed (byte* psuffix = &suffix) - { - LogSetNextTextDecorationNative(prefix, (byte*)psuffix); - } - } - - /// - /// To be documented. - /// - public static void LogSetNextTextDecoration(byte* prefix, ReadOnlySpan suffix) - { - fixed (byte* psuffix = suffix) - { - LogSetNextTextDecorationNative(prefix, (byte*)psuffix); - } - } - - /// - /// To be documented. - /// - public static void LogSetNextTextDecoration(byte* prefix, string suffix) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (suffix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(suffix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(suffix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogSetNextTextDecorationNative(prefix, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void LogSetNextTextDecoration(ref byte prefix, ref byte suffix) - { - fixed (byte* pprefix = &prefix) - { - fixed (byte* psuffix = &suffix) - { - LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); - } - } - } - - /// - /// To be documented. - /// - public static void LogSetNextTextDecoration(ReadOnlySpan prefix, ReadOnlySpan suffix) - { - fixed (byte* pprefix = prefix) - { - fixed (byte* psuffix = suffix) - { - LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); - } - } - } - - /// - /// To be documented. - /// - public static void LogSetNextTextDecoration(string prefix, string suffix) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (suffix != null) - { - pStrSize1 = Utils.GetByteCountUTF8(suffix); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(suffix, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - LogSetNextTextDecorationNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void LogSetNextTextDecoration(ref byte prefix, ReadOnlySpan suffix) - { - fixed (byte* pprefix = &prefix) - { - fixed (byte* psuffix = suffix) - { - LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); - } - } - } - - /// - /// To be documented. - /// - public static void LogSetNextTextDecoration(ref byte prefix, string suffix) - { - fixed (byte* pprefix = &prefix) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (suffix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(suffix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(suffix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogSetNextTextDecorationNative((byte*)pprefix, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void LogSetNextTextDecoration(ReadOnlySpan prefix, ref byte suffix) - { - fixed (byte* pprefix = prefix) - { - fixed (byte* psuffix = &suffix) - { - LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); - } - } - } - /// /// To be documented. /// @@ -5018,5 +1818,3236 @@ namespace Dalamud.Bindings.ImGui } return ret != 0; } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, byte* icon, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(pStr0, icon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, byte* icon, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(pStr0, icon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ref byte icon, byte* shortcut, bool selected, bool enabled) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative(label, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ref byte icon, byte* shortcut, bool selected) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative(label, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ref byte icon, byte* shortcut) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative(label, (byte*)picon, shortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ref byte icon) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ref byte icon, bool selected) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ref byte icon, bool selected, bool enabled) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ReadOnlySpan icon, byte* shortcut, bool selected, bool enabled) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative(label, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ReadOnlySpan icon, byte* shortcut, bool selected) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative(label, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ReadOnlySpan icon, byte* shortcut) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative(label, (byte*)picon, shortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ReadOnlySpan icon) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ReadOnlySpan icon, bool selected) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ReadOnlySpan icon, bool selected, bool enabled) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, string icon, byte* shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, pStr0, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, string icon, byte* shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, pStr0, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, string icon, byte* shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, pStr0, shortcut, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, string icon) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, pStr0, (byte*)(default), (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, string icon, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, string icon, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ref byte icon, byte* shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ref byte icon, byte* shortcut, bool selected) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ref byte icon, byte* shortcut) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ref byte icon) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ref byte icon, bool selected) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ref byte icon, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, byte* shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, byte* shortcut, bool selected) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, byte* shortcut) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, bool selected) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, string icon, byte* shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (icon != null) + { + pStrSize1 = Utils.GetByteCountUTF8(icon); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(pStr0, pStr1, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, string icon, byte* shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (icon != null) + { + pStrSize1 = Utils.GetByteCountUTF8(icon); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(pStr0, pStr1, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, string icon, byte* shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (icon != null) + { + pStrSize1 = Utils.GetByteCountUTF8(icon); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(pStr0, pStr1, shortcut, (byte)(0), (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, string icon) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (icon != null) + { + pStrSize1 = Utils.GetByteCountUTF8(icon); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(pStr0, pStr1, (byte*)(default), (byte)(0), (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, string icon, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (icon != null) + { + pStrSize1 = Utils.GetByteCountUTF8(icon); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(pStr0, pStr1, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, string icon, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (icon != null) + { + pStrSize1 = Utils.GetByteCountUTF8(icon); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(pStr0, pStr1, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, byte* shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, byte* shortcut, bool selected) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, byte* shortcut) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ReadOnlySpan icon) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, bool selected) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, string icon, byte* shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, string icon, byte* shortcut, bool selected) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, string icon, byte* shortcut) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, string icon) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, string icon, bool selected) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, string icon, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, byte* shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, byte* shortcut, bool selected) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, byte* shortcut) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ref byte icon) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, bool selected) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, string icon, byte* shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, string icon, byte* shortcut, bool selected) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, string icon, byte* shortcut) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, string icon) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, string icon, bool selected) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, string icon, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ref byte icon, byte* shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ref byte icon, byte* shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ref byte icon, byte* shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ref byte icon) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ref byte icon, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ref byte icon, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ReadOnlySpan icon, byte* shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ReadOnlySpan icon, byte* shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ReadOnlySpan icon, byte* shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ReadOnlySpan icon) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ReadOnlySpan icon, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ReadOnlySpan icon, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = icon) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, byte* icon, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, byte* icon, ref byte shortcut, bool selected) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, byte* icon, ref byte shortcut) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, byte* icon, ReadOnlySpan shortcut, bool selected, bool enabled) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, byte* icon, ReadOnlySpan shortcut, bool selected) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, byte* icon, ReadOnlySpan shortcut) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, byte* icon, string shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, icon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, byte* icon, string shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, icon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, byte* icon, string shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, icon, pStr0, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, byte* icon, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, byte* icon, ref byte shortcut, bool selected) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, byte* icon, ref byte shortcut) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, byte* icon, ReadOnlySpan shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, byte* icon, ReadOnlySpan shortcut, bool selected) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, byte* icon, ReadOnlySpan shortcut) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, byte* icon, string shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (shortcut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(pStr0, icon, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, byte* icon, string shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (shortcut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(pStr0, icon, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, byte* icon, string shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (shortcut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(pStr0, icon, pStr1, (byte)(0), (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, byte* icon, ReadOnlySpan shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, byte* icon, ReadOnlySpan shortcut, bool selected) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, byte* icon, ReadOnlySpan shortcut) + { + fixed (byte* plabel = &label) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, byte* icon, string shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, byte* icon, string shortcut, bool selected) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ref byte label, byte* icon, string shortcut) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, byte* icon, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, byte* icon, ref byte shortcut, bool selected) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, byte* icon, ref byte shortcut) + { + fixed (byte* plabel = label) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, byte* icon, string shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, byte* icon, string shortcut, bool selected) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, byte* icon, string shortcut) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, byte* icon, ref byte shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, byte* icon, ref byte shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, byte* icon, ref byte shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, byte* icon, ReadOnlySpan shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, byte* icon, ReadOnlySpan shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, byte* icon, ReadOnlySpan shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ref byte icon, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ref byte icon, ref byte shortcut, bool selected) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ref byte icon, ref byte shortcut) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ReadOnlySpan icon, ReadOnlySpan shortcut, bool selected, bool enabled) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ReadOnlySpan icon, ReadOnlySpan shortcut, bool selected) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ReadOnlySpan icon, ReadOnlySpan shortcut) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, string icon, string shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (shortcut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(label, pStr0, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, string icon, string shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (shortcut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(label, pStr0, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, string icon, string shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (shortcut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(label, pStr0, pStr1, (byte)(0), (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ref byte icon, ReadOnlySpan shortcut, bool selected, bool enabled) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ref byte icon, ReadOnlySpan shortcut, bool selected) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ref byte icon, ReadOnlySpan shortcut) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ref byte icon, string shortcut, bool selected, bool enabled) + { + fixed (byte* picon = &icon) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ref byte icon, string shortcut, bool selected) + { + fixed (byte* picon = &icon) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ref byte icon, string shortcut) + { + fixed (byte* picon = &icon) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, (byte*)picon, pStr0, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ReadOnlySpan icon, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ReadOnlySpan icon, ref byte shortcut, bool selected) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ReadOnlySpan icon, ref byte shortcut) + { + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ReadOnlySpan icon, string shortcut, bool selected, bool enabled) + { + fixed (byte* picon = icon) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(byte* label, ReadOnlySpan icon, string shortcut, bool selected) + { + fixed (byte* picon = icon) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.009.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.009.cs index 1c9a13c44..171c74377 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.009.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.009.cs @@ -18,3237 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGuiP { - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, byte* icon, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, byte* icon, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ref byte icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ref byte icon, byte* shortcut, bool selected) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ref byte icon, byte* shortcut) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ref byte icon) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ref byte icon, bool selected) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ref byte icon, bool selected, bool enabled) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ReadOnlySpan icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ReadOnlySpan icon, byte* shortcut, bool selected) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ReadOnlySpan icon, byte* shortcut) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ReadOnlySpan icon) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ReadOnlySpan icon, bool selected) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ReadOnlySpan icon, bool selected, bool enabled) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, string icon, byte* shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, pStr0, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, string icon, byte* shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, pStr0, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, string icon, byte* shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, pStr0, shortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, string icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, pStr0, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, string icon, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, string icon, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, ref byte icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, ref byte icon, byte* shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, ref byte icon, byte* shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, ref byte icon) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, ref byte icon, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, ref byte icon, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, byte* shortcut, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, byte* shortcut) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, string icon, byte* shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, string icon, byte* shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, string icon, byte* shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, shortcut, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, string icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, string icon, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, string icon, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, byte* shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, byte* shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, ReadOnlySpan icon) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, string icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, string icon, byte* shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, string icon, byte* shortcut) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, string icon) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, string icon, bool selected) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, string icon, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, byte* shortcut, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, byte* shortcut) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, ref byte icon) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, string icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, string icon, byte* shortcut, bool selected) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, string icon, byte* shortcut) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, string icon) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, string icon, bool selected) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, string icon, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ref byte icon, byte* shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ref byte icon, byte* shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ref byte icon, byte* shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ref byte icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ref byte icon, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ref byte icon, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ReadOnlySpan icon, byte* shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ReadOnlySpan icon, byte* shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ReadOnlySpan icon, byte* shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ReadOnlySpan icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ReadOnlySpan icon, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ReadOnlySpan icon, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, byte* icon, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, byte* icon, ref byte shortcut, bool selected) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, byte* icon, ref byte shortcut) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, byte* icon, ReadOnlySpan shortcut, bool selected, bool enabled) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, byte* icon, ReadOnlySpan shortcut, bool selected) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, byte* icon, ReadOnlySpan shortcut) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, byte* icon, string shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, icon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, byte* icon, string shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, icon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, byte* icon, string shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, icon, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, byte* icon, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, byte* icon, ref byte shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, byte* icon, ref byte shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, byte* icon, ReadOnlySpan shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, byte* icon, ReadOnlySpan shortcut, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, byte* icon, ReadOnlySpan shortcut) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, byte* icon, string shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, byte* icon, string shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, byte* icon, string shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, pStr1, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, byte* icon, ReadOnlySpan shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, byte* icon, ReadOnlySpan shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, byte* icon, ReadOnlySpan shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, byte* icon, string shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, byte* icon, string shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ref byte label, byte* icon, string shortcut) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, byte* icon, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, byte* icon, ref byte shortcut, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, byte* icon, ref byte shortcut) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, byte* icon, string shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, byte* icon, string shortcut, bool selected) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, byte* icon, string shortcut) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, byte* icon, ref byte shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, byte* icon, ref byte shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, byte* icon, ref byte shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, byte* icon, ReadOnlySpan shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, byte* icon, ReadOnlySpan shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, byte* icon, ReadOnlySpan shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ref byte icon, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ref byte icon, ref byte shortcut, bool selected) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ref byte icon, ref byte shortcut) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ReadOnlySpan icon, ReadOnlySpan shortcut, bool selected, bool enabled) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ReadOnlySpan icon, ReadOnlySpan shortcut, bool selected) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ReadOnlySpan icon, ReadOnlySpan shortcut) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, string icon, string shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(label, pStr0, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, string icon, string shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(label, pStr0, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, string icon, string shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(label, pStr0, pStr1, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ref byte icon, ReadOnlySpan shortcut, bool selected, bool enabled) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ref byte icon, ReadOnlySpan shortcut, bool selected) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ref byte icon, ReadOnlySpan shortcut) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ref byte icon, string shortcut, bool selected, bool enabled) - { - fixed (byte* picon = &icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ref byte icon, string shortcut, bool selected) - { - fixed (byte* picon = &icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ref byte icon, string shortcut) - { - fixed (byte* picon = &icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, (byte*)picon, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ReadOnlySpan icon, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ReadOnlySpan icon, ref byte shortcut, bool selected) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ReadOnlySpan icon, ref byte shortcut) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ReadOnlySpan icon, string shortcut, bool selected, bool enabled) - { - fixed (byte* picon = icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(byte* label, ReadOnlySpan icon, string shortcut, bool selected) - { - fixed (byte* picon = icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - /// /// To be documented. /// @@ -5045,5 +1814,3219 @@ namespace Dalamud.Bindings.ImGui } } } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, string icon, ReadOnlySpan shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, string icon, ReadOnlySpan shortcut, bool selected) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, string icon, ReadOnlySpan shortcut) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, string icon, string shortcut, bool selected, bool enabled) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (shortcut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, pStr0, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, string icon, string shortcut, bool selected) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (shortcut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, pStr0, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(ReadOnlySpan label, string icon, string shortcut) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (shortcut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative((byte*)plabel, pStr0, pStr1, (byte)(0), (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ref byte icon, ref byte shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ref byte icon, ref byte shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ref byte icon, ref byte shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ref byte icon, ReadOnlySpan shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ref byte icon, ReadOnlySpan shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ref byte icon, ReadOnlySpan shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ref byte icon, string shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = &icon) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (shortcut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ref byte icon, string shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = &icon) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (shortcut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ref byte icon, string shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = &icon) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (shortcut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, (byte)(0), (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ReadOnlySpan icon, ref byte shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ReadOnlySpan icon, ref byte shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ReadOnlySpan icon, ref byte shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ReadOnlySpan icon, ReadOnlySpan shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ReadOnlySpan icon, ReadOnlySpan shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ReadOnlySpan icon, ReadOnlySpan shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = icon) + { + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ReadOnlySpan icon, string shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = icon) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (shortcut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ReadOnlySpan icon, string shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = icon) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (shortcut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, ReadOnlySpan icon, string shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* picon = icon) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (shortcut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, (byte)(0), (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, string icon, ref byte shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (icon != null) + { + pStrSize1 = Utils.GetByteCountUTF8(icon); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, string icon, ref byte shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (icon != null) + { + pStrSize1 = Utils.GetByteCountUTF8(icon); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, string icon, ref byte shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (icon != null) + { + pStrSize1 = Utils.GetByteCountUTF8(icon); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, (byte)(0), (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, string icon, ReadOnlySpan shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (icon != null) + { + pStrSize1 = Utils.GetByteCountUTF8(icon); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, string icon, ReadOnlySpan shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (icon != null) + { + pStrSize1 = Utils.GetByteCountUTF8(icon); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool MenuItemEx(string label, string icon, ReadOnlySpan shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (icon != null) + { + pStrSize1 = Utils.GetByteCountUTF8(icon); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte* pshortcut = shortcut) + { + byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, (byte)(0), (byte)(1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginComboPopupNative(uint popupId, ImRect bb, ImGuiComboFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1025])(popupId, bb, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1025])(popupId, bb, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginComboPopup(uint popupId, ImRect bb, ImGuiComboFlags flags) + { + byte ret = BeginComboPopupNative(popupId, bb, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginComboPreviewNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1026])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1026])(); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginComboPreview() + { + byte ret = BeginComboPreviewNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndComboPreviewNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1027])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1027])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndComboPreview() + { + EndComboPreviewNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void NavInitWindowNative(ImGuiWindow* window, byte forceReinit) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1028])(window, forceReinit); + #else + ((delegate* unmanaged[Cdecl])funcTable[1028])((nint)window, forceReinit); + #endif + } + + /// + /// To be documented. + /// + public static void NavInitWindow(ImGuiWindowPtr window, bool forceReinit) + { + NavInitWindowNative(window, forceReinit ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void NavInitWindow(ref ImGuiWindow window, bool forceReinit) + { + fixed (ImGuiWindow* pwindow = &window) + { + NavInitWindowNative((ImGuiWindow*)pwindow, forceReinit ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void NavInitRequestApplyResultNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1029])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1029])(); + #endif + } + + /// + /// To be documented. + /// + public static void NavInitRequestApplyResult() + { + NavInitRequestApplyResultNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte NavMoveRequestButNoResultYetNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1030])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1030])(); + #endif + } + + /// + /// To be documented. + /// + public static bool NavMoveRequestButNoResultYet() + { + byte ret = NavMoveRequestButNoResultYetNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void NavMoveRequestSubmitNative(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1031])(moveDir, clipDir, moveFlags, scrollFlags); + #else + ((delegate* unmanaged[Cdecl])funcTable[1031])(moveDir, clipDir, moveFlags, scrollFlags); + #endif + } + + /// + /// To be documented. + /// + public static void NavMoveRequestSubmit(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) + { + NavMoveRequestSubmitNative(moveDir, clipDir, moveFlags, scrollFlags); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void NavMoveRequestForwardNative(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1032])(moveDir, clipDir, moveFlags, scrollFlags); + #else + ((delegate* unmanaged[Cdecl])funcTable[1032])(moveDir, clipDir, moveFlags, scrollFlags); + #endif + } + + /// + /// To be documented. + /// + public static void NavMoveRequestForward(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) + { + NavMoveRequestForwardNative(moveDir, clipDir, moveFlags, scrollFlags); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void NavMoveRequestResolveWithLastItemNative(ImGuiNavItemData* result) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1033])(result); + #else + ((delegate* unmanaged[Cdecl])funcTable[1033])((nint)result); + #endif + } + + /// + /// To be documented. + /// + public static void NavMoveRequestResolveWithLastItem(ImGuiNavItemDataPtr result) + { + NavMoveRequestResolveWithLastItemNative(result); + } + + /// + /// To be documented. + /// + public static void NavMoveRequestResolveWithLastItem(ref ImGuiNavItemData result) + { + fixed (ImGuiNavItemData* presult = &result) + { + NavMoveRequestResolveWithLastItemNative((ImGuiNavItemData*)presult); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void NavMoveRequestCancelNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1034])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1034])(); + #endif + } + + /// + /// To be documented. + /// + public static void NavMoveRequestCancel() + { + NavMoveRequestCancelNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void NavMoveRequestApplyResultNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1035])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1035])(); + #endif + } + + /// + /// To be documented. + /// + public static void NavMoveRequestApplyResult() + { + NavMoveRequestApplyResultNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void NavMoveRequestTryWrappingNative(ImGuiWindow* window, ImGuiNavMoveFlags moveFlags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1036])(window, moveFlags); + #else + ((delegate* unmanaged[Cdecl])funcTable[1036])((nint)window, moveFlags); + #endif + } + + /// + /// To be documented. + /// + public static void NavMoveRequestTryWrapping(ImGuiWindowPtr window, ImGuiNavMoveFlags moveFlags) + { + NavMoveRequestTryWrappingNative(window, moveFlags); + } + + /// + /// To be documented. + /// + public static void NavMoveRequestTryWrapping(ref ImGuiWindow window, ImGuiNavMoveFlags moveFlags) + { + fixed (ImGuiWindow* pwindow = &window) + { + NavMoveRequestTryWrappingNative((ImGuiWindow*)pwindow, moveFlags); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetNavInputNameNative(ImGuiNavInput n) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1037])(n); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[1037])(n); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetNavInputName(ImGuiNavInput n) + { + byte* ret = GetNavInputNameNative(n); + return ret; + } + + /// + /// To be documented. + /// + public static string GetNavInputNameS(ImGuiNavInput n) + { + string ret = Utils.DecodeStringUTF8(GetNavInputNameNative(n)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float GetNavInputAmountNative(ImGuiNavInput n, ImGuiNavReadMode mode) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1038])(n, mode); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[1038])(n, mode); + #endif + } + + /// + /// To be documented. + /// + public static float GetNavInputAmount(ImGuiNavInput n, ImGuiNavReadMode mode) + { + float ret = GetNavInputAmountNative(n, mode); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetNavInputAmount2dNative(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1039])(pOut, dirSources, mode, slowFactor, fastFactor); + #else + ((delegate* unmanaged[Cdecl])funcTable[1039])((nint)pOut, dirSources, mode, slowFactor, fastFactor); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) + { + Vector2 ret; + GetNavInputAmount2dNative(&ret, dirSources, mode, (float)(0.0f), (float)(0.0f)); + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) + { + Vector2 ret; + GetNavInputAmount2dNative(&ret, dirSources, mode, slowFactor, (float)(0.0f)); + return ret; + } + + /// + /// To be documented. + /// + public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) + { + GetNavInputAmount2dNative(pOut, dirSources, mode, (float)(0.0f), (float)(0.0f)); + } + + /// + /// To be documented. + /// + public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) + { + Vector2 ret; + GetNavInputAmount2dNative(&ret, dirSources, mode, slowFactor, fastFactor); + return ret; + } + + /// + /// To be documented. + /// + public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) + { + GetNavInputAmount2dNative(pOut, dirSources, mode, slowFactor, fastFactor); + } + + /// + /// To be documented. + /// + public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) + { + GetNavInputAmount2dNative(pOut, dirSources, mode, slowFactor, (float)(0.0f)); + } + + /// + /// To be documented. + /// + public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) + { + fixed (Vector2* ppOut = &pOut) + { + GetNavInputAmount2dNative((Vector2*)ppOut, dirSources, mode, slowFactor, fastFactor); + } + } + + /// + /// To be documented. + /// + public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) + { + fixed (Vector2* ppOut = &pOut) + { + GetNavInputAmount2dNative((Vector2*)ppOut, dirSources, mode, slowFactor, (float)(0.0f)); + } + } + + /// + /// To be documented. + /// + public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) + { + fixed (Vector2* ppOut = &pOut) + { + GetNavInputAmount2dNative((Vector2*)ppOut, dirSources, mode, (float)(0.0f), (float)(0.0f)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int CalcTypematicRepeatAmountNative(float t0, float t1, float repeatDelay, float repeatRate) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1040])(t0, t1, repeatDelay, repeatRate); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[1040])(t0, t1, repeatDelay, repeatRate); + #endif + } + + /// + /// To be documented. + /// + public static int CalcTypematicRepeatAmount(float t0, float t1, float repeatDelay, float repeatRate) + { + int ret = CalcTypematicRepeatAmountNative(t0, t1, repeatDelay, repeatRate); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ActivateItemNative(uint id) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1041])(id); + #else + ((delegate* unmanaged[Cdecl])funcTable[1041])(id); + #endif + } + + /// + /// To be documented. + /// + public static void ActivateItem(uint id) + { + ActivateItemNative(id); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNavWindowNative(ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1042])(window); + #else + ((delegate* unmanaged[Cdecl])funcTable[1042])((nint)window); + #endif + } + + /// + /// To be documented. + /// + public static void SetNavWindow(ImGuiWindowPtr window) + { + SetNavWindowNative(window); + } + + /// + /// To be documented. + /// + public static void SetNavWindow(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetNavWindowNative((ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNavIDNative(uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1043])(id, navLayer, focusScopeId, rectRel); + #else + ((delegate* unmanaged[Cdecl])funcTable[1043])(id, navLayer, focusScopeId, rectRel); + #endif + } + + /// + /// To be documented. + /// + public static void SetNavID(uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel) + { + SetNavIDNative(id, navLayer, focusScopeId, rectRel); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushFocusScopeNative(uint id) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1044])(id); + #else + ((delegate* unmanaged[Cdecl])funcTable[1044])(id); + #endif + } + + /// + /// To be documented. + /// + public static void PushFocusScope(uint id) + { + PushFocusScopeNative(id); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopFocusScopeNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1045])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1045])(); + #endif + } + + /// + /// To be documented. + /// + public static void PopFocusScope() + { + PopFocusScopeNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetFocusedFocusScopeNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1046])(); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[1046])(); + #endif + } + + /// + /// To be documented. + /// + public static uint GetFocusedFocusScope() + { + uint ret = GetFocusedFocusScopeNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetFocusScopeNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1047])(); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[1047])(); + #endif + } + + /// + /// To be documented. + /// + public static uint GetFocusScope() + { + uint ret = GetFocusScopeNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsNamedKeyNative(ImGuiKey key) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1048])(key); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1048])(key); + #endif + } + + /// + /// To be documented. + /// + public static bool IsNamedKey(ImGuiKey key) + { + byte ret = IsNamedKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsLegacyKeyNative(ImGuiKey key) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1049])(key); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1049])(key); + #endif + } + + /// + /// To be documented. + /// + public static bool IsLegacyKey(ImGuiKey key) + { + byte ret = IsLegacyKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsGamepadKeyNative(ImGuiKey key) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1050])(key); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1050])(key); + #endif + } + + /// + /// To be documented. + /// + public static bool IsGamepadKey(ImGuiKey key) + { + byte ret = IsGamepadKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiKeyData* GetKeyDataNative(ImGuiKey key) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1051])(key); + #else + return (ImGuiKeyData*)((delegate* unmanaged[Cdecl])funcTable[1051])(key); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiKeyDataPtr GetKeyData(ImGuiKey key) + { + ImGuiKeyDataPtr ret = GetKeyDataNative(key); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetItemUsingMouseWheelNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1052])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1052])(); + #endif + } + + /// + /// To be documented. + /// + public static void SetItemUsingMouseWheel() + { + SetItemUsingMouseWheelNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetActiveIdUsingNavAndKeysNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1053])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1053])(); + #endif + } + + /// + /// To be documented. + /// + public static void SetActiveIdUsingNavAndKeys() + { + SetActiveIdUsingNavAndKeysNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsActiveIdUsingNavDirNative(ImGuiDir dir) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1054])(dir); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1054])(dir); + #endif + } + + /// + /// To be documented. + /// + public static bool IsActiveIdUsingNavDir(ImGuiDir dir) + { + byte ret = IsActiveIdUsingNavDirNative(dir); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsActiveIdUsingNavInputNative(ImGuiNavInput input) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1055])(input); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1055])(input); + #endif + } + + /// + /// To be documented. + /// + public static bool IsActiveIdUsingNavInput(ImGuiNavInput input) + { + byte ret = IsActiveIdUsingNavInputNative(input); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsActiveIdUsingKeyNative(ImGuiKey key) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1056])(key); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1056])(key); + #endif + } + + /// + /// To be documented. + /// + public static bool IsActiveIdUsingKey(ImGuiKey key) + { + byte ret = IsActiveIdUsingKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetActiveIdUsingKeyNative(ImGuiKey key) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1057])(key); + #else + ((delegate* unmanaged[Cdecl])funcTable[1057])(key); + #endif + } + + /// + /// To be documented. + /// + public static void SetActiveIdUsingKey(ImGuiKey key) + { + SetActiveIdUsingKeyNative(key); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsMouseDragPastThresholdNative(ImGuiMouseButton button, float lockThreshold) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1058])(button, lockThreshold); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1058])(button, lockThreshold); + #endif + } + + /// + /// To be documented. + /// + public static bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lockThreshold) + { + byte ret = IsMouseDragPastThresholdNative(button, lockThreshold); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsMouseDragPastThreshold(ImGuiMouseButton button) + { + byte ret = IsMouseDragPastThresholdNative(button, (float)(-1.0f)); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsNavInputDownNative(ImGuiNavInput n) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1059])(n); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1059])(n); + #endif + } + + /// + /// To be documented. + /// + public static bool IsNavInputDown(ImGuiNavInput n) + { + byte ret = IsNavInputDownNative(n); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsNavInputTestNative(ImGuiNavInput n, ImGuiNavReadMode rm) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1060])(n, rm); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1060])(n, rm); + #endif + } + + /// + /// To be documented. + /// + public static bool IsNavInputTest(ImGuiNavInput n, ImGuiNavReadMode rm) + { + byte ret = IsNavInputTestNative(n, rm); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiModFlags GetMergedModFlagsNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1061])(); + #else + return (ImGuiModFlags)((delegate* unmanaged[Cdecl])funcTable[1061])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiModFlags GetMergedModFlags() + { + ImGuiModFlags ret = GetMergedModFlagsNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsKeyPressedMapNative(ImGuiKey key, byte repeat) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1062])(key, repeat); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1062])(key, repeat); + #endif + } + + /// + /// To be documented. + /// + public static bool IsKeyPressedMap(ImGuiKey key, bool repeat) + { + byte ret = IsKeyPressedMapNative(key, repeat ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsKeyPressedMap(ImGuiKey key) + { + byte ret = IsKeyPressedMapNative(key, (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockContextInitializeNative(ImGuiContext* ctx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1063])(ctx); + #else + ((delegate* unmanaged[Cdecl])funcTable[1063])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static void DockContextInitialize(ImGuiContextPtr ctx) + { + DockContextInitializeNative(ctx); + } + + /// + /// To be documented. + /// + public static void DockContextInitialize(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + DockContextInitializeNative((ImGuiContext*)pctx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockContextShutdownNative(ImGuiContext* ctx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1064])(ctx); + #else + ((delegate* unmanaged[Cdecl])funcTable[1064])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static void DockContextShutdown(ImGuiContextPtr ctx) + { + DockContextShutdownNative(ctx); + } + + /// + /// To be documented. + /// + public static void DockContextShutdown(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + DockContextShutdownNative((ImGuiContext*)pctx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockContextClearNodesNative(ImGuiContext* ctx, uint rootId, byte clearSettingsRefs) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1065])(ctx, rootId, clearSettingsRefs); + #else + ((delegate* unmanaged[Cdecl])funcTable[1065])((nint)ctx, rootId, clearSettingsRefs); + #endif + } + + /// + /// To be documented. + /// + public static void DockContextClearNodes(ImGuiContextPtr ctx, uint rootId, bool clearSettingsRefs) + { + DockContextClearNodesNative(ctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void DockContextClearNodes(ref ImGuiContext ctx, uint rootId, bool clearSettingsRefs) + { + fixed (ImGuiContext* pctx = &ctx) + { + DockContextClearNodesNative((ImGuiContext*)pctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockContextRebuildNodesNative(ImGuiContext* ctx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1066])(ctx); + #else + ((delegate* unmanaged[Cdecl])funcTable[1066])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static void DockContextRebuildNodes(ImGuiContextPtr ctx) + { + DockContextRebuildNodesNative(ctx); + } + + /// + /// To be documented. + /// + public static void DockContextRebuildNodes(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + DockContextRebuildNodesNative((ImGuiContext*)pctx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockContextNewFrameUpdateUndockingNative(ImGuiContext* ctx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1067])(ctx); + #else + ((delegate* unmanaged[Cdecl])funcTable[1067])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static void DockContextNewFrameUpdateUndocking(ImGuiContextPtr ctx) + { + DockContextNewFrameUpdateUndockingNative(ctx); + } + + /// + /// To be documented. + /// + public static void DockContextNewFrameUpdateUndocking(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + DockContextNewFrameUpdateUndockingNative((ImGuiContext*)pctx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockContextNewFrameUpdateDockingNative(ImGuiContext* ctx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1068])(ctx); + #else + ((delegate* unmanaged[Cdecl])funcTable[1068])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static void DockContextNewFrameUpdateDocking(ImGuiContextPtr ctx) + { + DockContextNewFrameUpdateDockingNative(ctx); + } + + /// + /// To be documented. + /// + public static void DockContextNewFrameUpdateDocking(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + DockContextNewFrameUpdateDockingNative((ImGuiContext*)pctx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockContextEndFrameNative(ImGuiContext* ctx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1069])(ctx); + #else + ((delegate* unmanaged[Cdecl])funcTable[1069])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static void DockContextEndFrame(ImGuiContextPtr ctx) + { + DockContextEndFrameNative(ctx); + } + + /// + /// To be documented. + /// + public static void DockContextEndFrame(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + DockContextEndFrameNative((ImGuiContext*)pctx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint DockContextGenNodeIDNative(ImGuiContext* ctx) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1070])(ctx); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[1070])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static uint DockContextGenNodeID(ImGuiContextPtr ctx) + { + uint ret = DockContextGenNodeIDNative(ctx); + return ret; + } + + /// + /// To be documented. + /// + public static uint DockContextGenNodeID(ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + uint ret = DockContextGenNodeIDNative((ImGuiContext*)pctx); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockContextQueueDockNative(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payload, ImGuiDir splitDir, float splitRatio, byte splitOuter) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1071])(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter); + #else + ((delegate* unmanaged[Cdecl])funcTable[1071])((nint)ctx, (nint)target, (nint)targetNode, (nint)payload, splitDir, splitRatio, splitOuter); + #endif + } + + /// + /// To be documented. + /// + public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + DockContextQueueDockNative(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiContext* pctx = &ctx) + { + DockContextQueueDockNative((ImGuiContext*)pctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiWindow* ptarget = &target) + { + DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiContext* pctx = &ctx) + { + fixed (ImGuiWindow* ptarget = &target) + { + DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + DockContextQueueDockNative(ctx, target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiContext* pctx = &ctx) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + DockContextQueueDockNative((ImGuiContext*)pctx, target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiWindow* ptarget = &target) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiContext* pctx = &ctx) + { + fixed (ImGuiWindow* ptarget = &target) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiWindow* ppayload = &payload) + { + DockContextQueueDockNative(ctx, target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiContext* pctx = &ctx) + { + fixed (ImGuiWindow* ppayload = &payload) + { + DockContextQueueDockNative((ImGuiContext*)pctx, target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiWindow* ptarget = &target) + { + fixed (ImGuiWindow* ppayload = &payload) + { + DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiContext* pctx = &ctx) + { + fixed (ImGuiWindow* ptarget = &target) + { + fixed (ImGuiWindow* ppayload = &payload) + { + DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiWindow* ppayload = &payload) + { + DockContextQueueDockNative(ctx, target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiContext* pctx = &ctx) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiWindow* ppayload = &payload) + { + DockContextQueueDockNative((ImGuiContext*)pctx, target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiWindow* ptarget = &target) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiWindow* ppayload = &payload) + { + DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiContext* pctx = &ctx) + { + fixed (ImGuiWindow* ptarget = &target) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiWindow* ppayload = &payload) + { + DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockContextQueueUndockWindowNative(ImGuiContext* ctx, ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1072])(ctx, window); + #else + ((delegate* unmanaged[Cdecl])funcTable[1072])((nint)ctx, (nint)window); + #endif + } + + /// + /// To be documented. + /// + public static void DockContextQueueUndockWindow(ImGuiContextPtr ctx, ImGuiWindowPtr window) + { + DockContextQueueUndockWindowNative(ctx, window); + } + + /// + /// To be documented. + /// + public static void DockContextQueueUndockWindow(ref ImGuiContext ctx, ImGuiWindowPtr window) + { + fixed (ImGuiContext* pctx = &ctx) + { + DockContextQueueUndockWindowNative((ImGuiContext*)pctx, window); + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueUndockWindow(ImGuiContextPtr ctx, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + DockContextQueueUndockWindowNative(ctx, (ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueUndockWindow(ref ImGuiContext ctx, ref ImGuiWindow window) + { + fixed (ImGuiContext* pctx = &ctx) + { + fixed (ImGuiWindow* pwindow = &window) + { + DockContextQueueUndockWindowNative((ImGuiContext*)pctx, (ImGuiWindow*)pwindow); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DockContextQueueUndockNodeNative(ImGuiContext* ctx, ImGuiDockNode* node) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1073])(ctx, node); + #else + ((delegate* unmanaged[Cdecl])funcTable[1073])((nint)ctx, (nint)node); + #endif + } + + /// + /// To be documented. + /// + public static void DockContextQueueUndockNode(ImGuiContextPtr ctx, ImGuiDockNodePtr node) + { + DockContextQueueUndockNodeNative(ctx, node); + } + + /// + /// To be documented. + /// + public static void DockContextQueueUndockNode(ref ImGuiContext ctx, ImGuiDockNodePtr node) + { + fixed (ImGuiContext* pctx = &ctx) + { + DockContextQueueUndockNodeNative((ImGuiContext*)pctx, node); + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueUndockNode(ImGuiContextPtr ctx, ref ImGuiDockNode node) + { + fixed (ImGuiDockNode* pnode = &node) + { + DockContextQueueUndockNodeNative(ctx, (ImGuiDockNode*)pnode); + } + } + + /// + /// To be documented. + /// + public static void DockContextQueueUndockNode(ref ImGuiContext ctx, ref ImGuiDockNode node) + { + fixed (ImGuiContext* pctx = &ctx) + { + fixed (ImGuiDockNode* pnode = &node) + { + DockContextQueueUndockNodeNative((ImGuiContext*)pctx, (ImGuiDockNode*)pnode); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DockContextCalcDropPosForDockingNative(ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payload, ImGuiDir splitDir, byte splitOuter, Vector2* outPos) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1074])(target, targetNode, payload, splitDir, splitOuter, outPos); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1074])((nint)target, (nint)targetNode, (nint)payload, splitDir, splitOuter, (nint)outPos); + #endif + } + + /// + /// To be documented. + /// + public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) + { + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiWindow* ptarget = &target) + { + byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiWindow* ptarget = &target) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiWindow* ppayload = &payload) + { + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiWindow* ptarget = &target) + { + fixed (ImGuiWindow* ppayload = &payload) + { + byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiWindow* ppayload = &payload) + { + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiWindow* ptarget = &target) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiWindow* ppayload = &payload) + { + byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (ImGuiWindow* ptarget = &target) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (ImGuiWindow* ptarget = &target) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (ImGuiWindow* ppayload = &payload) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (ImGuiWindow* ptarget = &target) + { + fixed (ImGuiWindow* ppayload = &payload) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiWindow* ppayload = &payload) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (ImGuiWindow* ptarget = &target) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiWindow* ppayload = &payload) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DockNodeBeginAmendTabBarNative(ImGuiDockNode* node) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1075])(node); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1075])((nint)node); + #endif + } + + /// + /// To be documented. + /// + public static bool DockNodeBeginAmendTabBar(ImGuiDockNodePtr node) + { + byte ret = DockNodeBeginAmendTabBarNative(node); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DockNodeBeginAmendTabBar(ref ImGuiDockNode node) + { + fixed (ImGuiDockNode* pnode = &node) + { + byte ret = DockNodeBeginAmendTabBarNative((ImGuiDockNode*)pnode); + return ret != 0; + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.010.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.010.cs index 262a59145..e21e476a7 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.010.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.010.cs @@ -18,3220 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGuiP { - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, string icon, ReadOnlySpan shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, string icon, ReadOnlySpan shortcut, bool selected) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, string icon, ReadOnlySpan shortcut) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, string icon, string shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, string icon, string shortcut, bool selected) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(ReadOnlySpan label, string icon, string shortcut) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, pStr1, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ref byte icon, ref byte shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ref byte icon, ref byte shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ref byte icon, ref byte shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ref byte icon, ReadOnlySpan shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ref byte icon, ReadOnlySpan shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ref byte icon, ReadOnlySpan shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ref byte icon, string shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ref byte icon, string shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ref byte icon, string shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ReadOnlySpan icon, ref byte shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ReadOnlySpan icon, ref byte shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ReadOnlySpan icon, ref byte shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ReadOnlySpan icon, ReadOnlySpan shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ReadOnlySpan icon, ReadOnlySpan shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ReadOnlySpan icon, ReadOnlySpan shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ReadOnlySpan icon, string shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ReadOnlySpan icon, string shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, ReadOnlySpan icon, string shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, string icon, ref byte shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, string icon, ref byte shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, string icon, ref byte shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, string icon, ReadOnlySpan shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, string icon, ReadOnlySpan shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool MenuItemEx(string label, string icon, ReadOnlySpan shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginComboPopupNative(uint popupId, ImRect bb, ImGuiComboFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1025])(popupId, bb, flags); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1025])(popupId, bb, flags); - #endif - } - - /// - /// To be documented. - /// - public static bool BeginComboPopup(uint popupId, ImRect bb, ImGuiComboFlags flags) - { - byte ret = BeginComboPopupNative(popupId, bb, flags); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginComboPreviewNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1026])(); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1026])(); - #endif - } - - /// - /// To be documented. - /// - public static bool BeginComboPreview() - { - byte ret = BeginComboPreviewNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndComboPreviewNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1027])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[1027])(); - #endif - } - - /// - /// To be documented. - /// - public static void EndComboPreview() - { - EndComboPreviewNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NavInitWindowNative(ImGuiWindow* window, byte forceReinit) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1028])(window, forceReinit); - #else - ((delegate* unmanaged[Cdecl])funcTable[1028])((nint)window, forceReinit); - #endif - } - - /// - /// To be documented. - /// - public static void NavInitWindow(ImGuiWindowPtr window, bool forceReinit) - { - NavInitWindowNative(window, forceReinit ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void NavInitWindow(ref ImGuiWindow window, bool forceReinit) - { - fixed (ImGuiWindow* pwindow = &window) - { - NavInitWindowNative((ImGuiWindow*)pwindow, forceReinit ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NavInitRequestApplyResultNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1029])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[1029])(); - #endif - } - - /// - /// To be documented. - /// - public static void NavInitRequestApplyResult() - { - NavInitRequestApplyResultNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte NavMoveRequestButNoResultYetNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1030])(); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1030])(); - #endif - } - - /// - /// To be documented. - /// - public static bool NavMoveRequestButNoResultYet() - { - byte ret = NavMoveRequestButNoResultYetNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NavMoveRequestSubmitNative(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1031])(moveDir, clipDir, moveFlags, scrollFlags); - #else - ((delegate* unmanaged[Cdecl])funcTable[1031])(moveDir, clipDir, moveFlags, scrollFlags); - #endif - } - - /// - /// To be documented. - /// - public static void NavMoveRequestSubmit(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) - { - NavMoveRequestSubmitNative(moveDir, clipDir, moveFlags, scrollFlags); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NavMoveRequestForwardNative(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1032])(moveDir, clipDir, moveFlags, scrollFlags); - #else - ((delegate* unmanaged[Cdecl])funcTable[1032])(moveDir, clipDir, moveFlags, scrollFlags); - #endif - } - - /// - /// To be documented. - /// - public static void NavMoveRequestForward(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) - { - NavMoveRequestForwardNative(moveDir, clipDir, moveFlags, scrollFlags); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NavMoveRequestResolveWithLastItemNative(ImGuiNavItemData* result) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1033])(result); - #else - ((delegate* unmanaged[Cdecl])funcTable[1033])((nint)result); - #endif - } - - /// - /// To be documented. - /// - public static void NavMoveRequestResolveWithLastItem(ImGuiNavItemDataPtr result) - { - NavMoveRequestResolveWithLastItemNative(result); - } - - /// - /// To be documented. - /// - public static void NavMoveRequestResolveWithLastItem(ref ImGuiNavItemData result) - { - fixed (ImGuiNavItemData* presult = &result) - { - NavMoveRequestResolveWithLastItemNative((ImGuiNavItemData*)presult); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NavMoveRequestCancelNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1034])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[1034])(); - #endif - } - - /// - /// To be documented. - /// - public static void NavMoveRequestCancel() - { - NavMoveRequestCancelNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NavMoveRequestApplyResultNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1035])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[1035])(); - #endif - } - - /// - /// To be documented. - /// - public static void NavMoveRequestApplyResult() - { - NavMoveRequestApplyResultNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NavMoveRequestTryWrappingNative(ImGuiWindow* window, ImGuiNavMoveFlags moveFlags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1036])(window, moveFlags); - #else - ((delegate* unmanaged[Cdecl])funcTable[1036])((nint)window, moveFlags); - #endif - } - - /// - /// To be documented. - /// - public static void NavMoveRequestTryWrapping(ImGuiWindowPtr window, ImGuiNavMoveFlags moveFlags) - { - NavMoveRequestTryWrappingNative(window, moveFlags); - } - - /// - /// To be documented. - /// - public static void NavMoveRequestTryWrapping(ref ImGuiWindow window, ImGuiNavMoveFlags moveFlags) - { - fixed (ImGuiWindow* pwindow = &window) - { - NavMoveRequestTryWrappingNative((ImGuiWindow*)pwindow, moveFlags); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetNavInputNameNative(ImGuiNavInput n) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1037])(n); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[1037])(n); - #endif - } - - /// - /// To be documented. - /// - public static byte* GetNavInputName(ImGuiNavInput n) - { - byte* ret = GetNavInputNameNative(n); - return ret; - } - - /// - /// To be documented. - /// - public static string GetNavInputNameS(ImGuiNavInput n) - { - string ret = Utils.DecodeStringUTF8(GetNavInputNameNative(n)); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetNavInputAmountNative(ImGuiNavInput n, ImGuiNavReadMode mode) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1038])(n, mode); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[1038])(n, mode); - #endif - } - - /// - /// To be documented. - /// - public static float GetNavInputAmount(ImGuiNavInput n, ImGuiNavReadMode mode) - { - float ret = GetNavInputAmountNative(n, mode); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetNavInputAmount2dNative(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1039])(pOut, dirSources, mode, slowFactor, fastFactor); - #else - ((delegate* unmanaged[Cdecl])funcTable[1039])((nint)pOut, dirSources, mode, slowFactor, fastFactor); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) - { - Vector2 ret; - GetNavInputAmount2dNative(&ret, dirSources, mode, (float)(0.0f), (float)(0.0f)); - return ret; - } - - /// - /// To be documented. - /// - public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) - { - Vector2 ret; - GetNavInputAmount2dNative(&ret, dirSources, mode, slowFactor, (float)(0.0f)); - return ret; - } - - /// - /// To be documented. - /// - public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) - { - GetNavInputAmount2dNative(pOut, dirSources, mode, (float)(0.0f), (float)(0.0f)); - } - - /// - /// To be documented. - /// - public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) - { - Vector2 ret; - GetNavInputAmount2dNative(&ret, dirSources, mode, slowFactor, fastFactor); - return ret; - } - - /// - /// To be documented. - /// - public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) - { - GetNavInputAmount2dNative(pOut, dirSources, mode, slowFactor, fastFactor); - } - - /// - /// To be documented. - /// - public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) - { - GetNavInputAmount2dNative(pOut, dirSources, mode, slowFactor, (float)(0.0f)); - } - - /// - /// To be documented. - /// - public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) - { - fixed (Vector2* ppOut = &pOut) - { - GetNavInputAmount2dNative((Vector2*)ppOut, dirSources, mode, slowFactor, fastFactor); - } - } - - /// - /// To be documented. - /// - public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) - { - fixed (Vector2* ppOut = &pOut) - { - GetNavInputAmount2dNative((Vector2*)ppOut, dirSources, mode, slowFactor, (float)(0.0f)); - } - } - - /// - /// To be documented. - /// - public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) - { - fixed (Vector2* ppOut = &pOut) - { - GetNavInputAmount2dNative((Vector2*)ppOut, dirSources, mode, (float)(0.0f), (float)(0.0f)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int CalcTypematicRepeatAmountNative(float t0, float t1, float repeatDelay, float repeatRate) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1040])(t0, t1, repeatDelay, repeatRate); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[1040])(t0, t1, repeatDelay, repeatRate); - #endif - } - - /// - /// To be documented. - /// - public static int CalcTypematicRepeatAmount(float t0, float t1, float repeatDelay, float repeatRate) - { - int ret = CalcTypematicRepeatAmountNative(t0, t1, repeatDelay, repeatRate); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ActivateItemNative(uint id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1041])(id); - #else - ((delegate* unmanaged[Cdecl])funcTable[1041])(id); - #endif - } - - /// - /// To be documented. - /// - public static void ActivateItem(uint id) - { - ActivateItemNative(id); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNavWindowNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1042])(window); - #else - ((delegate* unmanaged[Cdecl])funcTable[1042])((nint)window); - #endif - } - - /// - /// To be documented. - /// - public static void SetNavWindow(ImGuiWindowPtr window) - { - SetNavWindowNative(window); - } - - /// - /// To be documented. - /// - public static void SetNavWindow(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetNavWindowNative((ImGuiWindow*)pwindow); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNavIDNative(uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1043])(id, navLayer, focusScopeId, rectRel); - #else - ((delegate* unmanaged[Cdecl])funcTable[1043])(id, navLayer, focusScopeId, rectRel); - #endif - } - - /// - /// To be documented. - /// - public static void SetNavID(uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel) - { - SetNavIDNative(id, navLayer, focusScopeId, rectRel); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushFocusScopeNative(uint id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1044])(id); - #else - ((delegate* unmanaged[Cdecl])funcTable[1044])(id); - #endif - } - - /// - /// To be documented. - /// - public static void PushFocusScope(uint id) - { - PushFocusScopeNative(id); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopFocusScopeNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1045])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[1045])(); - #endif - } - - /// - /// To be documented. - /// - public static void PopFocusScope() - { - PopFocusScopeNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetFocusedFocusScopeNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1046])(); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[1046])(); - #endif - } - - /// - /// To be documented. - /// - public static uint GetFocusedFocusScope() - { - uint ret = GetFocusedFocusScopeNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetFocusScopeNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1047])(); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[1047])(); - #endif - } - - /// - /// To be documented. - /// - public static uint GetFocusScope() - { - uint ret = GetFocusScopeNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsNamedKeyNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1048])(key); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1048])(key); - #endif - } - - /// - /// To be documented. - /// - public static bool IsNamedKey(ImGuiKey key) - { - byte ret = IsNamedKeyNative(key); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsLegacyKeyNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1049])(key); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1049])(key); - #endif - } - - /// - /// To be documented. - /// - public static bool IsLegacyKey(ImGuiKey key) - { - byte ret = IsLegacyKeyNative(key); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsGamepadKeyNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1050])(key); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1050])(key); - #endif - } - - /// - /// To be documented. - /// - public static bool IsGamepadKey(ImGuiKey key) - { - byte ret = IsGamepadKeyNative(key); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiKeyData* GetKeyDataNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1051])(key); - #else - return (ImGuiKeyData*)((delegate* unmanaged[Cdecl])funcTable[1051])(key); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiKeyDataPtr GetKeyData(ImGuiKey key) - { - ImGuiKeyDataPtr ret = GetKeyDataNative(key); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetItemUsingMouseWheelNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1052])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[1052])(); - #endif - } - - /// - /// To be documented. - /// - public static void SetItemUsingMouseWheel() - { - SetItemUsingMouseWheelNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetActiveIdUsingNavAndKeysNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1053])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[1053])(); - #endif - } - - /// - /// To be documented. - /// - public static void SetActiveIdUsingNavAndKeys() - { - SetActiveIdUsingNavAndKeysNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsActiveIdUsingNavDirNative(ImGuiDir dir) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1054])(dir); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1054])(dir); - #endif - } - - /// - /// To be documented. - /// - public static bool IsActiveIdUsingNavDir(ImGuiDir dir) - { - byte ret = IsActiveIdUsingNavDirNative(dir); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsActiveIdUsingNavInputNative(ImGuiNavInput input) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1055])(input); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1055])(input); - #endif - } - - /// - /// To be documented. - /// - public static bool IsActiveIdUsingNavInput(ImGuiNavInput input) - { - byte ret = IsActiveIdUsingNavInputNative(input); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsActiveIdUsingKeyNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1056])(key); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1056])(key); - #endif - } - - /// - /// To be documented. - /// - public static bool IsActiveIdUsingKey(ImGuiKey key) - { - byte ret = IsActiveIdUsingKeyNative(key); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetActiveIdUsingKeyNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1057])(key); - #else - ((delegate* unmanaged[Cdecl])funcTable[1057])(key); - #endif - } - - /// - /// To be documented. - /// - public static void SetActiveIdUsingKey(ImGuiKey key) - { - SetActiveIdUsingKeyNative(key); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsMouseDragPastThresholdNative(ImGuiMouseButton button, float lockThreshold) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1058])(button, lockThreshold); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1058])(button, lockThreshold); - #endif - } - - /// - /// To be documented. - /// - public static bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lockThreshold) - { - byte ret = IsMouseDragPastThresholdNative(button, lockThreshold); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsMouseDragPastThreshold(ImGuiMouseButton button) - { - byte ret = IsMouseDragPastThresholdNative(button, (float)(-1.0f)); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsNavInputDownNative(ImGuiNavInput n) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1059])(n); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1059])(n); - #endif - } - - /// - /// To be documented. - /// - public static bool IsNavInputDown(ImGuiNavInput n) - { - byte ret = IsNavInputDownNative(n); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsNavInputTestNative(ImGuiNavInput n, ImGuiNavReadMode rm) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1060])(n, rm); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1060])(n, rm); - #endif - } - - /// - /// To be documented. - /// - public static bool IsNavInputTest(ImGuiNavInput n, ImGuiNavReadMode rm) - { - byte ret = IsNavInputTestNative(n, rm); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiModFlags GetMergedModFlagsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1061])(); - #else - return (ImGuiModFlags)((delegate* unmanaged[Cdecl])funcTable[1061])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiModFlags GetMergedModFlags() - { - ImGuiModFlags ret = GetMergedModFlagsNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsKeyPressedMapNative(ImGuiKey key, byte repeat) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1062])(key, repeat); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1062])(key, repeat); - #endif - } - - /// - /// To be documented. - /// - public static bool IsKeyPressedMap(ImGuiKey key, bool repeat) - { - byte ret = IsKeyPressedMapNative(key, repeat ? (byte)1 : (byte)0); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsKeyPressedMap(ImGuiKey key) - { - byte ret = IsKeyPressedMapNative(key, (byte)(1)); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextInitializeNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1063])(ctx); - #else - ((delegate* unmanaged[Cdecl])funcTable[1063])((nint)ctx); - #endif - } - - /// - /// To be documented. - /// - public static void DockContextInitialize(ImGuiContextPtr ctx) - { - DockContextInitializeNative(ctx); - } - - /// - /// To be documented. - /// - public static void DockContextInitialize(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextInitializeNative((ImGuiContext*)pctx); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextShutdownNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1064])(ctx); - #else - ((delegate* unmanaged[Cdecl])funcTable[1064])((nint)ctx); - #endif - } - - /// - /// To be documented. - /// - public static void DockContextShutdown(ImGuiContextPtr ctx) - { - DockContextShutdownNative(ctx); - } - - /// - /// To be documented. - /// - public static void DockContextShutdown(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextShutdownNative((ImGuiContext*)pctx); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextClearNodesNative(ImGuiContext* ctx, uint rootId, byte clearSettingsRefs) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1065])(ctx, rootId, clearSettingsRefs); - #else - ((delegate* unmanaged[Cdecl])funcTable[1065])((nint)ctx, rootId, clearSettingsRefs); - #endif - } - - /// - /// To be documented. - /// - public static void DockContextClearNodes(ImGuiContextPtr ctx, uint rootId, bool clearSettingsRefs) - { - DockContextClearNodesNative(ctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void DockContextClearNodes(ref ImGuiContext ctx, uint rootId, bool clearSettingsRefs) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextClearNodesNative((ImGuiContext*)pctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextRebuildNodesNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1066])(ctx); - #else - ((delegate* unmanaged[Cdecl])funcTable[1066])((nint)ctx); - #endif - } - - /// - /// To be documented. - /// - public static void DockContextRebuildNodes(ImGuiContextPtr ctx) - { - DockContextRebuildNodesNative(ctx); - } - - /// - /// To be documented. - /// - public static void DockContextRebuildNodes(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextRebuildNodesNative((ImGuiContext*)pctx); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextNewFrameUpdateUndockingNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1067])(ctx); - #else - ((delegate* unmanaged[Cdecl])funcTable[1067])((nint)ctx); - #endif - } - - /// - /// To be documented. - /// - public static void DockContextNewFrameUpdateUndocking(ImGuiContextPtr ctx) - { - DockContextNewFrameUpdateUndockingNative(ctx); - } - - /// - /// To be documented. - /// - public static void DockContextNewFrameUpdateUndocking(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextNewFrameUpdateUndockingNative((ImGuiContext*)pctx); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextNewFrameUpdateDockingNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1068])(ctx); - #else - ((delegate* unmanaged[Cdecl])funcTable[1068])((nint)ctx); - #endif - } - - /// - /// To be documented. - /// - public static void DockContextNewFrameUpdateDocking(ImGuiContextPtr ctx) - { - DockContextNewFrameUpdateDockingNative(ctx); - } - - /// - /// To be documented. - /// - public static void DockContextNewFrameUpdateDocking(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextNewFrameUpdateDockingNative((ImGuiContext*)pctx); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextEndFrameNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1069])(ctx); - #else - ((delegate* unmanaged[Cdecl])funcTable[1069])((nint)ctx); - #endif - } - - /// - /// To be documented. - /// - public static void DockContextEndFrame(ImGuiContextPtr ctx) - { - DockContextEndFrameNative(ctx); - } - - /// - /// To be documented. - /// - public static void DockContextEndFrame(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextEndFrameNative((ImGuiContext*)pctx); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint DockContextGenNodeIDNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1070])(ctx); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[1070])((nint)ctx); - #endif - } - - /// - /// To be documented. - /// - public static uint DockContextGenNodeID(ImGuiContextPtr ctx) - { - uint ret = DockContextGenNodeIDNative(ctx); - return ret; - } - - /// - /// To be documented. - /// - public static uint DockContextGenNodeID(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - uint ret = DockContextGenNodeIDNative((ImGuiContext*)pctx); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextQueueDockNative(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payload, ImGuiDir splitDir, float splitRatio, byte splitOuter) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1071])(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter); - #else - ((delegate* unmanaged[Cdecl])funcTable[1071])((nint)ctx, (nint)target, (nint)targetNode, (nint)payload, splitDir, splitRatio, splitOuter); - #endif - } - - /// - /// To be documented. - /// - public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - DockContextQueueDockNative(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextQueueDockNative((ImGuiContext*)pctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiWindow* ptarget = &target) - { - DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* ptarget = &target) - { - DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - DockContextQueueDockNative(ctx, target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - DockContextQueueDockNative((ImGuiContext*)pctx, target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative(ctx, target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative((ImGuiContext*)pctx, target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative(ctx, target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative((ImGuiContext*)pctx, target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextQueueUndockWindowNative(ImGuiContext* ctx, ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1072])(ctx, window); - #else - ((delegate* unmanaged[Cdecl])funcTable[1072])((nint)ctx, (nint)window); - #endif - } - - /// - /// To be documented. - /// - public static void DockContextQueueUndockWindow(ImGuiContextPtr ctx, ImGuiWindowPtr window) - { - DockContextQueueUndockWindowNative(ctx, window); - } - - /// - /// To be documented. - /// - public static void DockContextQueueUndockWindow(ref ImGuiContext ctx, ImGuiWindowPtr window) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextQueueUndockWindowNative((ImGuiContext*)pctx, window); - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueUndockWindow(ImGuiContextPtr ctx, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - DockContextQueueUndockWindowNative(ctx, (ImGuiWindow*)pwindow); - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueUndockWindow(ref ImGuiContext ctx, ref ImGuiWindow window) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* pwindow = &window) - { - DockContextQueueUndockWindowNative((ImGuiContext*)pctx, (ImGuiWindow*)pwindow); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextQueueUndockNodeNative(ImGuiContext* ctx, ImGuiDockNode* node) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1073])(ctx, node); - #else - ((delegate* unmanaged[Cdecl])funcTable[1073])((nint)ctx, (nint)node); - #endif - } - - /// - /// To be documented. - /// - public static void DockContextQueueUndockNode(ImGuiContextPtr ctx, ImGuiDockNodePtr node) - { - DockContextQueueUndockNodeNative(ctx, node); - } - - /// - /// To be documented. - /// - public static void DockContextQueueUndockNode(ref ImGuiContext ctx, ImGuiDockNodePtr node) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextQueueUndockNodeNative((ImGuiContext*)pctx, node); - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueUndockNode(ImGuiContextPtr ctx, ref ImGuiDockNode node) - { - fixed (ImGuiDockNode* pnode = &node) - { - DockContextQueueUndockNodeNative(ctx, (ImGuiDockNode*)pnode); - } - } - - /// - /// To be documented. - /// - public static void DockContextQueueUndockNode(ref ImGuiContext ctx, ref ImGuiDockNode node) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiDockNode* pnode = &node) - { - DockContextQueueUndockNodeNative((ImGuiContext*)pctx, (ImGuiDockNode*)pnode); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DockContextCalcDropPosForDockingNative(ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payload, ImGuiDir splitDir, byte splitOuter, Vector2* outPos) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1074])(target, targetNode, payload, splitDir, splitOuter, outPos); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1074])((nint)target, (nint)targetNode, (nint)payload, splitDir, splitOuter, (nint)outPos); - #endif - } - - /// - /// To be documented. - /// - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiWindow* ppayload = &payload) - { - byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiWindow* ppayload = &payload) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiWindow* ppayload = &payload) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiWindow* ppayload = &payload) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DockNodeBeginAmendTabBarNative(ImGuiDockNode* node) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1075])(node); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1075])((nint)node); - #endif - } - - /// - /// To be documented. - /// - public static bool DockNodeBeginAmendTabBar(ImGuiDockNodePtr node) - { - byte ret = DockNodeBeginAmendTabBarNative(node); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DockNodeBeginAmendTabBar(ref ImGuiDockNode node) - { - fixed (ImGuiDockNode* pnode = &node) - { - byte ret = DockNodeBeginAmendTabBarNative((ImGuiDockNode*)pnode); - return ret != 0; - } - } - /// /// To be documented. /// @@ -3925,45 +711,6 @@ namespace Dalamud.Bindings.ImGui return ret; } - /// - /// To be documented. - /// - public static uint DockBuilderSplitNode(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, ref uint outIdAtDir, uint* outIdAtOppositeDir) - { - fixed (uint* poutIdAtDir = &outIdAtDir) - { - uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, (uint*)poutIdAtDir, outIdAtOppositeDir); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint DockBuilderSplitNode(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, ref uint outIdAtOppositeDir) - { - fixed (uint* poutIdAtOppositeDir = &outIdAtOppositeDir) - { - uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, (uint*)poutIdAtOppositeDir); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint DockBuilderSplitNode(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, ref uint outIdAtDir, ref uint outIdAtOppositeDir) - { - fixed (uint* poutIdAtDir = &outIdAtDir) - { - fixed (uint* poutIdAtOppositeDir = &outIdAtOppositeDir) - { - uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, (uint*)poutIdAtDir, (uint*)poutIdAtOppositeDir); - return ret; - } - } - } - /// /// To be documented. /// @@ -4000,10 +747,10 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockBuilderCopyNodeNative(uint srcNodeId, uint dstNodeId, ImVector* outNodeRemapPairs) + internal static void DockBuilderCopyNodeNative(uint srcNodeId, uint dstNodeId, ImVector* outNodeRemapPairs) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]*, void>)funcTable[1098])(srcNodeId, dstNodeId, outNodeRemapPairs); + ((delegate* unmanaged[Cdecl]*, void>)funcTable[1098])(srcNodeId, dstNodeId, outNodeRemapPairs); #else ((delegate* unmanaged[Cdecl])funcTable[1098])(srcNodeId, dstNodeId, (nint)outNodeRemapPairs); #endif @@ -4012,7 +759,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ImVector* outNodeRemapPairs) + public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ImVector* outNodeRemapPairs) { DockBuilderCopyNodeNative(srcNodeId, dstNodeId, outNodeRemapPairs); } @@ -4020,11 +767,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ref ImVector outNodeRemapPairs) + public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ref ImVector outNodeRemapPairs) { - fixed (ImVector* poutNodeRemapPairs = &outNodeRemapPairs) + fixed (ImVector* poutNodeRemapPairs = &outNodeRemapPairs) { - DockBuilderCopyNodeNative(srcNodeId, dstNodeId, (ImVector*)poutNodeRemapPairs); + DockBuilderCopyNodeNative(srcNodeId, dstNodeId, (ImVector*)poutNodeRemapPairs); } } @@ -5023,5 +1770,3252 @@ namespace Dalamud.Bindings.ImGui return (float)((delegate* unmanaged[Cdecl])funcTable[1119])(); #endif } + + /// + /// To be documented. + /// + public static float TableGetHeaderRowHeight() + { + float ret = TableGetHeaderRowHeightNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TablePushBackgroundChannelNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1120])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1120])(); + #endif + } + + /// + /// To be documented. + /// + public static void TablePushBackgroundChannel() + { + TablePushBackgroundChannelNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TablePopBackgroundChannelNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1121])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1121])(); + #endif + } + + /// + /// To be documented. + /// + public static void TablePopBackgroundChannel() + { + TablePopBackgroundChannelNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTable* GetCurrentTableNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1122])(); + #else + return (ImGuiTable*)((delegate* unmanaged[Cdecl])funcTable[1122])(); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTablePtr GetCurrentTable() + { + ImGuiTablePtr ret = GetCurrentTableNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTable* TableFindByIDNative(uint id) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1123])(id); + #else + return (ImGuiTable*)((delegate* unmanaged[Cdecl])funcTable[1123])(id); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTablePtr TableFindByID(uint id) + { + ImGuiTablePtr ret = TableFindByIDNative(id); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginTableExNative(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1124])(name, id, columnsCount, flags, outerSize, innerWidth); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1124])((nint)name, id, columnsCount, flags, outerSize, innerWidth); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) + { + byte ret = BeginTableExNative(name, id, columnsCount, flags, outerSize, innerWidth); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) + { + byte ret = BeginTableExNative(name, id, columnsCount, flags, outerSize, (float)(0.0f)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags) + { + byte ret = BeginTableExNative(name, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(byte* name, uint id, int columnsCount) + { + byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(byte* name, uint id, int columnsCount, Vector2 outerSize) + { + byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) + { + byte ret = BeginTableExNative(name, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(byte* name, uint id, int columnsCount, float innerWidth) + { + byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(byte* name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) + { + byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) + { + fixed (byte* pname = &name) + { + byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, innerWidth); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) + { + fixed (byte* pname = &name) + { + byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags) + { + fixed (byte* pname = &name) + { + byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(ref byte name, uint id, int columnsCount) + { + fixed (byte* pname = &name) + { + byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(ref byte name, uint id, int columnsCount, Vector2 outerSize) + { + fixed (byte* pname = &name) + { + byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) + { + fixed (byte* pname = &name) + { + byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(ref byte name, uint id, int columnsCount, float innerWidth) + { + fixed (byte* pname = &name) + { + byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(ref byte name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) + { + fixed (byte* pname = &name) + { + byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) + { + fixed (byte* pname = name) + { + byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, innerWidth); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) + { + fixed (byte* pname = name) + { + byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, ImGuiTableFlags flags) + { + fixed (byte* pname = name) + { + byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount) + { + fixed (byte* pname = name) + { + byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, Vector2 outerSize) + { + fixed (byte* pname = name) + { + byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) + { + fixed (byte* pname = name) + { + byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, float innerWidth) + { + fixed (byte* pname = name) + { + byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) + { + fixed (byte* pname = name) + { + byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, outerSize, innerWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, outerSize, (float)(0.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(string name, uint id, int columnsCount) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(string name, uint id, int columnsCount, Vector2 outerSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(string name, uint id, int columnsCount, float innerWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTableEx(string name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableBeginInitMemoryNative(ImGuiTable* table, int columnsCount) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1125])(table, columnsCount); + #else + ((delegate* unmanaged[Cdecl])funcTable[1125])((nint)table, columnsCount); + #endif + } + + /// + /// To be documented. + /// + public static void TableBeginInitMemory(ImGuiTablePtr table, int columnsCount) + { + TableBeginInitMemoryNative(table, columnsCount); + } + + /// + /// To be documented. + /// + public static void TableBeginInitMemory(ref ImGuiTable table, int columnsCount) + { + fixed (ImGuiTable* ptable = &table) + { + TableBeginInitMemoryNative((ImGuiTable*)ptable, columnsCount); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableBeginApplyRequestsNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1126])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1126])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableBeginApplyRequests(ImGuiTablePtr table) + { + TableBeginApplyRequestsNative(table); + } + + /// + /// To be documented. + /// + public static void TableBeginApplyRequests(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableBeginApplyRequestsNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableSetupDrawChannelsNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1127])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1127])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableSetupDrawChannels(ImGuiTablePtr table) + { + TableSetupDrawChannelsNative(table); + } + + /// + /// To be documented. + /// + public static void TableSetupDrawChannels(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableSetupDrawChannelsNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableUpdateLayoutNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1128])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1128])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableUpdateLayout(ImGuiTablePtr table) + { + TableUpdateLayoutNative(table); + } + + /// + /// To be documented. + /// + public static void TableUpdateLayout(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableUpdateLayoutNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableUpdateBordersNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1129])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1129])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableUpdateBorders(ImGuiTablePtr table) + { + TableUpdateBordersNative(table); + } + + /// + /// To be documented. + /// + public static void TableUpdateBorders(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableUpdateBordersNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableUpdateColumnsWeightFromWidthNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1130])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1130])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableUpdateColumnsWeightFromWidth(ImGuiTablePtr table) + { + TableUpdateColumnsWeightFromWidthNative(table); + } + + /// + /// To be documented. + /// + public static void TableUpdateColumnsWeightFromWidth(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableUpdateColumnsWeightFromWidthNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableDrawBordersNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1131])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1131])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableDrawBorders(ImGuiTablePtr table) + { + TableDrawBordersNative(table); + } + + /// + /// To be documented. + /// + public static void TableDrawBorders(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableDrawBordersNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableDrawContextMenuNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1132])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1132])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableDrawContextMenu(ImGuiTablePtr table) + { + TableDrawContextMenuNative(table); + } + + /// + /// To be documented. + /// + public static void TableDrawContextMenu(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableDrawContextMenuNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableMergeDrawChannelsNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1133])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1133])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableMergeDrawChannels(ImGuiTablePtr table) + { + TableMergeDrawChannelsNative(table); + } + + /// + /// To be documented. + /// + public static void TableMergeDrawChannels(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableMergeDrawChannelsNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTableInstanceData* TableGetInstanceDataNative(ImGuiTable* table, int instanceNo) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1134])(table, instanceNo); + #else + return (ImGuiTableInstanceData*)((delegate* unmanaged[Cdecl])funcTable[1134])((nint)table, instanceNo); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTableInstanceDataPtr TableGetInstanceData(ImGuiTablePtr table, int instanceNo) + { + ImGuiTableInstanceDataPtr ret = TableGetInstanceDataNative(table, instanceNo); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiTableInstanceDataPtr TableGetInstanceData(ref ImGuiTable table, int instanceNo) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiTableInstanceDataPtr ret = TableGetInstanceDataNative((ImGuiTable*)ptable, instanceNo); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableSortSpecsSanitizeNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1135])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1135])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableSortSpecsSanitize(ImGuiTablePtr table) + { + TableSortSpecsSanitizeNative(table); + } + + /// + /// To be documented. + /// + public static void TableSortSpecsSanitize(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableSortSpecsSanitizeNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableSortSpecsBuildNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1136])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1136])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableSortSpecsBuild(ImGuiTablePtr table) + { + TableSortSpecsBuildNative(table); + } + + /// + /// To be documented. + /// + public static void TableSortSpecsBuild(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableSortSpecsBuildNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiSortDirection TableGetColumnNextSortDirectionNative(ImGuiTableColumn* column) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1137])(column); + #else + return (ImGuiSortDirection)((delegate* unmanaged[Cdecl])funcTable[1137])((nint)column); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumnPtr column) + { + ImGuiSortDirection ret = TableGetColumnNextSortDirectionNative(column); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiSortDirection TableGetColumnNextSortDirection(ref ImGuiTableColumn column) + { + fixed (ImGuiTableColumn* pcolumn = &column) + { + ImGuiSortDirection ret = TableGetColumnNextSortDirectionNative((ImGuiTableColumn*)pcolumn); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableFixColumnSortDirectionNative(ImGuiTable* table, ImGuiTableColumn* column) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1138])(table, column); + #else + ((delegate* unmanaged[Cdecl])funcTable[1138])((nint)table, (nint)column); + #endif + } + + /// + /// To be documented. + /// + public static void TableFixColumnSortDirection(ImGuiTablePtr table, ImGuiTableColumnPtr column) + { + TableFixColumnSortDirectionNative(table, column); + } + + /// + /// To be documented. + /// + public static void TableFixColumnSortDirection(ref ImGuiTable table, ImGuiTableColumnPtr column) + { + fixed (ImGuiTable* ptable = &table) + { + TableFixColumnSortDirectionNative((ImGuiTable*)ptable, column); + } + } + + /// + /// To be documented. + /// + public static void TableFixColumnSortDirection(ImGuiTablePtr table, ref ImGuiTableColumn column) + { + fixed (ImGuiTableColumn* pcolumn = &column) + { + TableFixColumnSortDirectionNative(table, (ImGuiTableColumn*)pcolumn); + } + } + + /// + /// To be documented. + /// + public static void TableFixColumnSortDirection(ref ImGuiTable table, ref ImGuiTableColumn column) + { + fixed (ImGuiTable* ptable = &table) + { + fixed (ImGuiTableColumn* pcolumn = &column) + { + TableFixColumnSortDirectionNative((ImGuiTable*)ptable, (ImGuiTableColumn*)pcolumn); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float TableGetColumnWidthAutoNative(ImGuiTable* table, ImGuiTableColumn* column) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1139])(table, column); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[1139])((nint)table, (nint)column); + #endif + } + + /// + /// To be documented. + /// + public static float TableGetColumnWidthAuto(ImGuiTablePtr table, ImGuiTableColumnPtr column) + { + float ret = TableGetColumnWidthAutoNative(table, column); + return ret; + } + + /// + /// To be documented. + /// + public static float TableGetColumnWidthAuto(ref ImGuiTable table, ImGuiTableColumnPtr column) + { + fixed (ImGuiTable* ptable = &table) + { + float ret = TableGetColumnWidthAutoNative((ImGuiTable*)ptable, column); + return ret; + } + } + + /// + /// To be documented. + /// + public static float TableGetColumnWidthAuto(ImGuiTablePtr table, ref ImGuiTableColumn column) + { + fixed (ImGuiTableColumn* pcolumn = &column) + { + float ret = TableGetColumnWidthAutoNative(table, (ImGuiTableColumn*)pcolumn); + return ret; + } + } + + /// + /// To be documented. + /// + public static float TableGetColumnWidthAuto(ref ImGuiTable table, ref ImGuiTableColumn column) + { + fixed (ImGuiTable* ptable = &table) + { + fixed (ImGuiTableColumn* pcolumn = &column) + { + float ret = TableGetColumnWidthAutoNative((ImGuiTable*)ptable, (ImGuiTableColumn*)pcolumn); + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableBeginRowNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1140])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1140])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableBeginRow(ImGuiTablePtr table) + { + TableBeginRowNative(table); + } + + /// + /// To be documented. + /// + public static void TableBeginRow(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableBeginRowNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableEndRowNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1141])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1141])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableEndRow(ImGuiTablePtr table) + { + TableEndRowNative(table); + } + + /// + /// To be documented. + /// + public static void TableEndRow(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableEndRowNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableBeginCellNative(ImGuiTable* table, int columnN) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1142])(table, columnN); + #else + ((delegate* unmanaged[Cdecl])funcTable[1142])((nint)table, columnN); + #endif + } + + /// + /// To be documented. + /// + public static void TableBeginCell(ImGuiTablePtr table, int columnN) + { + TableBeginCellNative(table, columnN); + } + + /// + /// To be documented. + /// + public static void TableBeginCell(ref ImGuiTable table, int columnN) + { + fixed (ImGuiTable* ptable = &table) + { + TableBeginCellNative((ImGuiTable*)ptable, columnN); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableEndCellNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1143])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1143])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableEndCell(ImGuiTablePtr table) + { + TableEndCellNative(table); + } + + /// + /// To be documented. + /// + public static void TableEndCell(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableEndCellNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableGetCellBgRectNative(ImRect* pOut, ImGuiTable* table, int columnN) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1144])(pOut, table, columnN); + #else + ((delegate* unmanaged[Cdecl])funcTable[1144])((nint)pOut, (nint)table, columnN); + #endif + } + + /// + /// To be documented. + /// + public static ImRect TableGetCellBgRect(ImGuiTablePtr table, int columnN) + { + ImRect ret; + TableGetCellBgRectNative(&ret, table, columnN); + return ret; + } + + /// + /// To be documented. + /// + public static void TableGetCellBgRect(ImRectPtr pOut, ImGuiTablePtr table, int columnN) + { + TableGetCellBgRectNative(pOut, table, columnN); + } + + /// + /// To be documented. + /// + public static void TableGetCellBgRect(ref ImRect pOut, ImGuiTablePtr table, int columnN) + { + fixed (ImRect* ppOut = &pOut) + { + TableGetCellBgRectNative((ImRect*)ppOut, table, columnN); + } + } + + /// + /// To be documented. + /// + public static ImRect TableGetCellBgRect(ref ImGuiTable table, int columnN) + { + fixed (ImGuiTable* ptable = &table) + { + ImRect ret; + TableGetCellBgRectNative(&ret, (ImGuiTable*)ptable, columnN); + return ret; + } + } + + /// + /// To be documented. + /// + public static void TableGetCellBgRect(ImRectPtr pOut, ref ImGuiTable table, int columnN) + { + fixed (ImGuiTable* ptable = &table) + { + TableGetCellBgRectNative(pOut, (ImGuiTable*)ptable, columnN); + } + } + + /// + /// To be documented. + /// + public static void TableGetCellBgRect(ref ImRect pOut, ref ImGuiTable table, int columnN) + { + fixed (ImRect* ppOut = &pOut) + { + fixed (ImGuiTable* ptable = &table) + { + TableGetCellBgRectNative((ImRect*)ppOut, (ImGuiTable*)ptable, columnN); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* TableGetColumnNameNative(ImGuiTable* table, int columnN) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1145])(table, columnN); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[1145])((nint)table, columnN); + #endif + } + + /// + /// To be documented. + /// + public static byte* TableGetColumnName(ImGuiTablePtr table, int columnN) + { + byte* ret = TableGetColumnNameNative(table, columnN); + return ret; + } + + /// + /// To be documented. + /// + public static string TableGetColumnNameS(ImGuiTablePtr table, int columnN) + { + string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative(table, columnN)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* TableGetColumnName(ref ImGuiTable table, int columnN) + { + fixed (ImGuiTable* ptable = &table) + { + byte* ret = TableGetColumnNameNative((ImGuiTable*)ptable, columnN); + return ret; + } + } + + /// + /// To be documented. + /// + public static string TableGetColumnNameS(ref ImGuiTable table, int columnN) + { + fixed (ImGuiTable* ptable = &table) + { + string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative((ImGuiTable*)ptable, columnN)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint TableGetColumnResizeIDNative(ImGuiTable* table, int columnN, int instanceNo) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1146])(table, columnN, instanceNo); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[1146])((nint)table, columnN, instanceNo); + #endif + } + + /// + /// To be documented. + /// + public static uint TableGetColumnResizeID(ImGuiTablePtr table, int columnN, int instanceNo) + { + uint ret = TableGetColumnResizeIDNative(table, columnN, instanceNo); + return ret; + } + + /// + /// To be documented. + /// + public static uint TableGetColumnResizeID(ImGuiTablePtr table, int columnN) + { + uint ret = TableGetColumnResizeIDNative(table, columnN, (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static uint TableGetColumnResizeID(ref ImGuiTable table, int columnN, int instanceNo) + { + fixed (ImGuiTable* ptable = &table) + { + uint ret = TableGetColumnResizeIDNative((ImGuiTable*)ptable, columnN, instanceNo); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint TableGetColumnResizeID(ref ImGuiTable table, int columnN) + { + fixed (ImGuiTable* ptable = &table) + { + uint ret = TableGetColumnResizeIDNative((ImGuiTable*)ptable, columnN, (int)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float TableGetMaxColumnWidthNative(ImGuiTable* table, int columnN) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1147])(table, columnN); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[1147])((nint)table, columnN); + #endif + } + + /// + /// To be documented. + /// + public static float TableGetMaxColumnWidth(ImGuiTablePtr table, int columnN) + { + float ret = TableGetMaxColumnWidthNative(table, columnN); + return ret; + } + + /// + /// To be documented. + /// + public static float TableGetMaxColumnWidth(ref ImGuiTable table, int columnN) + { + fixed (ImGuiTable* ptable = &table) + { + float ret = TableGetMaxColumnWidthNative((ImGuiTable*)ptable, columnN); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableSetColumnWidthAutoSingleNative(ImGuiTable* table, int columnN) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1148])(table, columnN); + #else + ((delegate* unmanaged[Cdecl])funcTable[1148])((nint)table, columnN); + #endif + } + + /// + /// To be documented. + /// + public static void TableSetColumnWidthAutoSingle(ImGuiTablePtr table, int columnN) + { + TableSetColumnWidthAutoSingleNative(table, columnN); + } + + /// + /// To be documented. + /// + public static void TableSetColumnWidthAutoSingle(ref ImGuiTable table, int columnN) + { + fixed (ImGuiTable* ptable = &table) + { + TableSetColumnWidthAutoSingleNative((ImGuiTable*)ptable, columnN); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableSetColumnWidthAutoAllNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1149])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1149])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableSetColumnWidthAutoAll(ImGuiTablePtr table) + { + TableSetColumnWidthAutoAllNative(table); + } + + /// + /// To be documented. + /// + public static void TableSetColumnWidthAutoAll(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableSetColumnWidthAutoAllNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableRemoveNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1150])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1150])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableRemove(ImGuiTablePtr table) + { + TableRemoveNative(table); + } + + /// + /// To be documented. + /// + public static void TableRemove(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableRemoveNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableGcCompactTransientBuffersNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1151])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1151])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableGcCompactTransientBuffers(ImGuiTablePtr table) + { + TableGcCompactTransientBuffersNative(table); + } + + /// + /// To be documented. + /// + public static void TableGcCompactTransientBuffers(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableGcCompactTransientBuffersNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableGcCompactTransientBuffersNative(ImGuiTableTempData* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1152])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1152])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableGcCompactTransientBuffers(ImGuiTableTempDataPtr table) + { + TableGcCompactTransientBuffersNative(table); + } + + /// + /// To be documented. + /// + public static void TableGcCompactTransientBuffers(ref ImGuiTableTempData table) + { + fixed (ImGuiTableTempData* ptable = &table) + { + TableGcCompactTransientBuffersNative((ImGuiTableTempData*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableGcCompactSettingsNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1153])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1153])(); + #endif + } + + /// + /// To be documented. + /// + public static void TableGcCompactSettings() + { + TableGcCompactSettingsNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableLoadSettingsNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1154])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1154])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableLoadSettings(ImGuiTablePtr table) + { + TableLoadSettingsNative(table); + } + + /// + /// To be documented. + /// + public static void TableLoadSettings(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableLoadSettingsNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableSaveSettingsNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1155])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1155])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableSaveSettings(ImGuiTablePtr table) + { + TableSaveSettingsNative(table); + } + + /// + /// To be documented. + /// + public static void TableSaveSettings(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableSaveSettingsNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableResetSettingsNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1156])(table); + #else + ((delegate* unmanaged[Cdecl])funcTable[1156])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static void TableResetSettings(ImGuiTablePtr table) + { + TableResetSettingsNative(table); + } + + /// + /// To be documented. + /// + public static void TableResetSettings(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + TableResetSettingsNative((ImGuiTable*)ptable); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTableSettings* TableGetBoundSettingsNative(ImGuiTable* table) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1157])(table); + #else + return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl])funcTable[1157])((nint)table); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTableSettingsPtr TableGetBoundSettings(ImGuiTablePtr table) + { + ImGuiTableSettingsPtr ret = TableGetBoundSettingsNative(table); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiTableSettingsPtr TableGetBoundSettings(ref ImGuiTable table) + { + fixed (ImGuiTable* ptable = &table) + { + ImGuiTableSettingsPtr ret = TableGetBoundSettingsNative((ImGuiTable*)ptable); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TableSettingsAddSettingsHandlerNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1158])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1158])(); + #endif + } + + /// + /// To be documented. + /// + public static void TableSettingsAddSettingsHandler() + { + TableSettingsAddSettingsHandlerNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTableSettings* TableSettingsCreateNative(uint id, int columnsCount) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1159])(id, columnsCount); + #else + return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl])funcTable[1159])(id, columnsCount); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTableSettingsPtr TableSettingsCreate(uint id, int columnsCount) + { + ImGuiTableSettingsPtr ret = TableSettingsCreateNative(id, columnsCount); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTableSettings* TableSettingsFindByIDNative(uint id) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1160])(id); + #else + return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl])funcTable[1160])(id); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTableSettingsPtr TableSettingsFindByID(uint id) + { + ImGuiTableSettingsPtr ret = TableSettingsFindByIDNative(id); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginTabBarExNative(ImGuiTabBar* tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNode* dockNode) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1161])(tabBar, bb, flags, dockNode); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1161])((nint)tabBar, bb, flags, (nint)dockNode); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginTabBarEx(ImGuiTabBarPtr tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNodePtr dockNode) + { + byte ret = BeginTabBarExNative(tabBar, bb, flags, dockNode); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginTabBarEx(ref ImGuiTabBar tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNodePtr dockNode) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + byte ret = BeginTabBarExNative((ImGuiTabBar*)ptabBar, bb, flags, dockNode); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabBarEx(ImGuiTabBarPtr tabBar, ImRect bb, ImGuiTabBarFlags flags, ref ImGuiDockNode dockNode) + { + fixed (ImGuiDockNode* pdockNode = &dockNode) + { + byte ret = BeginTabBarExNative(tabBar, bb, flags, (ImGuiDockNode*)pdockNode); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginTabBarEx(ref ImGuiTabBar tabBar, ImRect bb, ImGuiTabBarFlags flags, ref ImGuiDockNode dockNode) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (ImGuiDockNode* pdockNode = &dockNode) + { + byte ret = BeginTabBarExNative((ImGuiTabBar*)ptabBar, bb, flags, (ImGuiDockNode*)pdockNode); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTabItem* TabBarFindTabByIDNative(ImGuiTabBar* tabBar, uint tabId) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1162])(tabBar, tabId); + #else + return (ImGuiTabItem*)((delegate* unmanaged[Cdecl])funcTable[1162])((nint)tabBar, tabId); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTabItemPtr TabBarFindTabByID(ImGuiTabBarPtr tabBar, uint tabId) + { + ImGuiTabItemPtr ret = TabBarFindTabByIDNative(tabBar, tabId); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiTabItemPtr TabBarFindTabByID(ref ImGuiTabBar tabBar, uint tabId) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + ImGuiTabItemPtr ret = TabBarFindTabByIDNative((ImGuiTabBar*)ptabBar, tabId); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindowNative(ImGuiTabBar* tabBar) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1163])(tabBar); + #else + return (ImGuiTabItem*)((delegate* unmanaged[Cdecl])funcTable[1163])((nint)tabBar); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiTabItemPtr TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBarPtr tabBar) + { + ImGuiTabItemPtr ret = TabBarFindMostRecentlySelectedTabForActiveWindowNative(tabBar); + return ret; + } + + /// + /// To be documented. + /// + public static ImGuiTabItemPtr TabBarFindMostRecentlySelectedTabForActiveWindow(ref ImGuiTabBar tabBar) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + ImGuiTabItemPtr ret = TabBarFindMostRecentlySelectedTabForActiveWindowNative((ImGuiTabBar*)ptabBar); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TabBarAddTabNative(ImGuiTabBar* tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1164])(tabBar, tabFlags, window); + #else + ((delegate* unmanaged[Cdecl])funcTable[1164])((nint)tabBar, tabFlags, (nint)window); + #endif + } + + /// + /// To be documented. + /// + public static void TabBarAddTab(ImGuiTabBarPtr tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindowPtr window) + { + TabBarAddTabNative(tabBar, tabFlags, window); + } + + /// + /// To be documented. + /// + public static void TabBarAddTab(ref ImGuiTabBar tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindowPtr window) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + TabBarAddTabNative((ImGuiTabBar*)ptabBar, tabFlags, window); + } + } + + /// + /// To be documented. + /// + public static void TabBarAddTab(ImGuiTabBarPtr tabBar, ImGuiTabItemFlags tabFlags, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + TabBarAddTabNative(tabBar, tabFlags, (ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + public static void TabBarAddTab(ref ImGuiTabBar tabBar, ImGuiTabItemFlags tabFlags, ref ImGuiWindow window) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (ImGuiWindow* pwindow = &window) + { + TabBarAddTabNative((ImGuiTabBar*)ptabBar, tabFlags, (ImGuiWindow*)pwindow); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TabBarRemoveTabNative(ImGuiTabBar* tabBar, uint tabId) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1165])(tabBar, tabId); + #else + ((delegate* unmanaged[Cdecl])funcTable[1165])((nint)tabBar, tabId); + #endif + } + + /// + /// To be documented. + /// + public static void TabBarRemoveTab(ImGuiTabBarPtr tabBar, uint tabId) + { + TabBarRemoveTabNative(tabBar, tabId); + } + + /// + /// To be documented. + /// + public static void TabBarRemoveTab(ref ImGuiTabBar tabBar, uint tabId) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + TabBarRemoveTabNative((ImGuiTabBar*)ptabBar, tabId); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TabBarCloseTabNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1166])(tabBar, tab); + #else + ((delegate* unmanaged[Cdecl])funcTable[1166])((nint)tabBar, (nint)tab); + #endif + } + + /// + /// To be documented. + /// + public static void TabBarCloseTab(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab) + { + TabBarCloseTabNative(tabBar, tab); + } + + /// + /// To be documented. + /// + public static void TabBarCloseTab(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + TabBarCloseTabNative((ImGuiTabBar*)ptabBar, tab); + } + } + + /// + /// To be documented. + /// + public static void TabBarCloseTab(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab) + { + fixed (ImGuiTabItem* ptab = &tab) + { + TabBarCloseTabNative(tabBar, (ImGuiTabItem*)ptab); + } + } + + /// + /// To be documented. + /// + public static void TabBarCloseTab(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (ImGuiTabItem* ptab = &tab) + { + TabBarCloseTabNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TabBarQueueReorderNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab, int offset) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1167])(tabBar, tab, offset); + #else + ((delegate* unmanaged[Cdecl])funcTable[1167])((nint)tabBar, (nint)tab, offset); + #endif + } + + /// + /// To be documented. + /// + public static void TabBarQueueReorder(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, int offset) + { + TabBarQueueReorderNative(tabBar, tab, offset); + } + + /// + /// To be documented. + /// + public static void TabBarQueueReorder(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab, int offset) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + TabBarQueueReorderNative((ImGuiTabBar*)ptabBar, tab, offset); + } + } + + /// + /// To be documented. + /// + public static void TabBarQueueReorder(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab, int offset) + { + fixed (ImGuiTabItem* ptab = &tab) + { + TabBarQueueReorderNative(tabBar, (ImGuiTabItem*)ptab, offset); + } + } + + /// + /// To be documented. + /// + public static void TabBarQueueReorder(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab, int offset) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (ImGuiTabItem* ptab = &tab) + { + TabBarQueueReorderNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab, offset); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TabBarQueueReorderFromMousePosNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab, Vector2 mousePos) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1168])(tabBar, tab, mousePos); + #else + ((delegate* unmanaged[Cdecl])funcTable[1168])((nint)tabBar, (nint)tab, mousePos); + #endif + } + + /// + /// To be documented. + /// + public static void TabBarQueueReorderFromMousePos(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, Vector2 mousePos) + { + TabBarQueueReorderFromMousePosNative(tabBar, tab, mousePos); + } + + /// + /// To be documented. + /// + public static void TabBarQueueReorderFromMousePos(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab, Vector2 mousePos) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + TabBarQueueReorderFromMousePosNative((ImGuiTabBar*)ptabBar, tab, mousePos); + } + } + + /// + /// To be documented. + /// + public static void TabBarQueueReorderFromMousePos(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab, Vector2 mousePos) + { + fixed (ImGuiTabItem* ptab = &tab) + { + TabBarQueueReorderFromMousePosNative(tabBar, (ImGuiTabItem*)ptab, mousePos); + } + } + + /// + /// To be documented. + /// + public static void TabBarQueueReorderFromMousePos(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab, Vector2 mousePos) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (ImGuiTabItem* ptab = &tab) + { + TabBarQueueReorderFromMousePosNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab, mousePos); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TabBarProcessReorderNative(ImGuiTabBar* tabBar) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1169])(tabBar); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1169])((nint)tabBar); + #endif + } + + /// + /// To be documented. + /// + public static bool TabBarProcessReorder(ImGuiTabBarPtr tabBar) + { + byte ret = TabBarProcessReorderNative(tabBar); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TabBarProcessReorder(ref ImGuiTabBar tabBar) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + byte ret = TabBarProcessReorderNative((ImGuiTabBar*)ptabBar); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TabItemExNative(ImGuiTabBar* tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindow* dockedWindow) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1170])(tabBar, label, pOpen, flags, dockedWindow); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1170])((nint)tabBar, (nint)label, (nint)pOpen, flags, (nint)dockedWindow); + #endif + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + byte ret = TabItemExNative(tabBar, label, pOpen, flags, dockedWindow); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, pOpen, flags, dockedWindow); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + fixed (byte* plabel = &label) + { + byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, dockedWindow); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + fixed (byte* plabel = label) + { + byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, dockedWindow); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TabItemExNative(tabBar, pStr0, pOpen, flags, dockedWindow); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (byte* plabel = &label) + { + byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, dockedWindow); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (byte* plabel = label) + { + byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, dockedWindow); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, pOpen, flags, dockedWindow); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = TabItemExNative(tabBar, label, (bool*)ppOpen, flags, dockedWindow); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, (bool*)ppOpen, flags, dockedWindow); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + fixed (byte* plabel = &label) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + fixed (byte* plabel = label) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (bool* ppOpen = &pOpen) + { + byte ret = TabItemExNative(tabBar, pStr0, (bool*)ppOpen, flags, dockedWindow); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (byte* plabel = &label) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (byte* plabel = label) + { + fixed (bool* ppOpen = &pOpen) + { + byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (bool* ppOpen = &pOpen) + { + byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, (bool*)ppOpen, flags, dockedWindow); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, label, pOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, pOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) + { + fixed (byte* plabel = &label) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) + { + fixed (byte* plabel = label) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, pStr0, pOpen, flags, (ImGuiWindow*)pdockedWindow); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (byte* plabel = &label) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (byte* plabel = label) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, pOpen, flags, (ImGuiWindow*)pdockedWindow); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) + { + fixed (bool* ppOpen = &pOpen) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, label, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (bool* ppOpen = &pOpen) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) + { + fixed (byte* plabel = &label) + { + fixed (bool* ppOpen = &pOpen) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) + { + fixed (byte* plabel = label) + { + fixed (bool* ppOpen = &pOpen) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (bool* ppOpen = &pOpen) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, pStr0, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (byte* plabel = &label) + { + fixed (bool* ppOpen = &pOpen) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + fixed (byte* plabel = label) + { + fixed (bool* ppOpen = &pOpen) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (bool* ppOpen = &pOpen) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TabItemCalcSizeNative(Vector2* pOut, byte* label, byte hasCloseButton) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1171])(pOut, label, hasCloseButton); + #else + ((delegate* unmanaged[Cdecl])funcTable[1171])((nint)pOut, (nint)label, hasCloseButton); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 TabItemCalcSize(byte* label, bool hasCloseButton) + { + Vector2 ret; + TabItemCalcSizeNative(&ret, label, hasCloseButton ? (byte)1 : (byte)0); + return ret; + } + + /// + /// To be documented. + /// + public static void TabItemCalcSize(Vector2* pOut, byte* label, bool hasCloseButton) + { + TabItemCalcSizeNative(pOut, label, hasCloseButton ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void TabItemCalcSize(ref Vector2 pOut, byte* label, bool hasCloseButton) + { + fixed (Vector2* ppOut = &pOut) + { + TabItemCalcSizeNative((Vector2*)ppOut, label, hasCloseButton ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static Vector2 TabItemCalcSize(ref byte label, bool hasCloseButton) + { + fixed (byte* plabel = &label) + { + Vector2 ret; + TabItemCalcSizeNative(&ret, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 TabItemCalcSize(ReadOnlySpan label, bool hasCloseButton) + { + fixed (byte* plabel = label) + { + Vector2 ret; + TabItemCalcSizeNative(&ret, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); + return ret; + } + } + + /// + /// To be documented. + /// + public static Vector2 TabItemCalcSize(string label, bool hasCloseButton) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + Vector2 ret; + TabItemCalcSizeNative(&ret, pStr0, hasCloseButton ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static void TabItemCalcSize(ref Vector2 pOut, ref byte label, bool hasCloseButton) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* plabel = &label) + { + TabItemCalcSizeNative((Vector2*)ppOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void TabItemCalcSize(ref Vector2 pOut, ReadOnlySpan label, bool hasCloseButton) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* plabel = label) + { + TabItemCalcSizeNative((Vector2*)ppOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void TabItemCalcSize(ref Vector2 pOut, string label, bool hasCloseButton) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TabItemCalcSizeNative((Vector2*)ppOut, pStr0, hasCloseButton ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void TabItemCalcSize(Vector2* pOut, ref byte label, bool hasCloseButton) + { + fixed (byte* plabel = &label) + { + TabItemCalcSizeNative(pOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void TabItemCalcSize(Vector2* pOut, ReadOnlySpan label, bool hasCloseButton) + { + fixed (byte* plabel = label) + { + TabItemCalcSizeNative(pOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void TabItemCalcSize(Vector2* pOut, string label, bool hasCloseButton) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TabItemCalcSizeNative(pOut, pStr0, hasCloseButton ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TabItemBackgroundNative(ImDrawList* drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1172])(drawList, bb, flags, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[1172])((nint)drawList, bb, flags, col); + #endif + } + + /// + /// To be documented. + /// + public static void TabItemBackground(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) + { + TabItemBackgroundNative(drawList, bb, flags, col); + } + + /// + /// To be documented. + /// + public static void TabItemBackground(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) + { + fixed (ImDrawList* pdrawList = &drawList) + { + TabItemBackgroundNative((ImDrawList*)pdrawList, bb, flags, col); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TabItemLabelAndCloseButtonNative(ImDrawList* drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, byte isContentsVisible, bool* outJustClosed, bool* outTextClipped) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1173])(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible, outJustClosed, outTextClipped); + #else + ((delegate* unmanaged[Cdecl])funcTable[1173])((nint)drawList, bb, flags, framePadding, (nint)label, tabId, closeButtonId, isContentsVisible, (nint)outJustClosed, (nint)outTextClipped); + #endif + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) + { + fixed (ImDrawList* pdrawList = &drawList) + { + TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); + } + } + + /// + /// To be documented. + /// + public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) + { + fixed (byte* plabel = &label) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.011.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.011.cs index 29032934e..f7d2e4988 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.011.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.011.cs @@ -18,3253 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGuiP { - /// - /// To be documented. - /// - public static float TableGetHeaderRowHeight() - { - float ret = TableGetHeaderRowHeightNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TablePushBackgroundChannelNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1120])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[1120])(); - #endif - } - - /// - /// To be documented. - /// - public static void TablePushBackgroundChannel() - { - TablePushBackgroundChannelNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TablePopBackgroundChannelNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1121])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[1121])(); - #endif - } - - /// - /// To be documented. - /// - public static void TablePopBackgroundChannel() - { - TablePopBackgroundChannelNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTable* GetCurrentTableNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1122])(); - #else - return (ImGuiTable*)((delegate* unmanaged[Cdecl])funcTable[1122])(); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTablePtr GetCurrentTable() - { - ImGuiTablePtr ret = GetCurrentTableNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTable* TableFindByIDNative(uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1123])(id); - #else - return (ImGuiTable*)((delegate* unmanaged[Cdecl])funcTable[1123])(id); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTablePtr TableFindByID(uint id) - { - ImGuiTablePtr ret = TableFindByIDNative(id); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginTableExNative(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1124])(name, id, columnsCount, flags, outerSize, innerWidth); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1124])((nint)name, id, columnsCount, flags, outerSize, innerWidth); - #endif - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - byte ret = BeginTableExNative(name, id, columnsCount, flags, outerSize, innerWidth); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) - { - byte ret = BeginTableExNative(name, id, columnsCount, flags, outerSize, (float)(0.0f)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags) - { - byte ret = BeginTableExNative(name, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(byte* name, uint id, int columnsCount) - { - byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(byte* name, uint id, int columnsCount, Vector2 outerSize) - { - byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) - { - byte ret = BeginTableExNative(name, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(byte* name, uint id, int columnsCount, float innerWidth) - { - byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(byte* name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) - { - byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - fixed (byte* pname = &name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, innerWidth); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) - { - fixed (byte* pname = &name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, (float)(0.0f)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags) - { - fixed (byte* pname = &name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(ref byte name, uint id, int columnsCount) - { - fixed (byte* pname = &name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(ref byte name, uint id, int columnsCount, Vector2 outerSize) - { - fixed (byte* pname = &name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) - { - fixed (byte* pname = &name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(ref byte name, uint id, int columnsCount, float innerWidth) - { - fixed (byte* pname = &name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(ref byte name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) - { - fixed (byte* pname = &name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - fixed (byte* pname = name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, innerWidth); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) - { - fixed (byte* pname = name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, (float)(0.0f)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, ImGuiTableFlags flags) - { - fixed (byte* pname = name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount) - { - fixed (byte* pname = name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, Vector2 outerSize) - { - fixed (byte* pname = name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) - { - fixed (byte* pname = name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, float innerWidth) - { - fixed (byte* pname = name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) - { - fixed (byte* pname = name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, outerSize, innerWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, outerSize, (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(string name, uint id, int columnsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(string name, uint id, int columnsCount, Vector2 outerSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(string name, uint id, int columnsCount, float innerWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginTableEx(string name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableBeginInitMemoryNative(ImGuiTable* table, int columnsCount) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1125])(table, columnsCount); - #else - ((delegate* unmanaged[Cdecl])funcTable[1125])((nint)table, columnsCount); - #endif - } - - /// - /// To be documented. - /// - public static void TableBeginInitMemory(ImGuiTablePtr table, int columnsCount) - { - TableBeginInitMemoryNative(table, columnsCount); - } - - /// - /// To be documented. - /// - public static void TableBeginInitMemory(ref ImGuiTable table, int columnsCount) - { - fixed (ImGuiTable* ptable = &table) - { - TableBeginInitMemoryNative((ImGuiTable*)ptable, columnsCount); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableBeginApplyRequestsNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1126])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1126])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableBeginApplyRequests(ImGuiTablePtr table) - { - TableBeginApplyRequestsNative(table); - } - - /// - /// To be documented. - /// - public static void TableBeginApplyRequests(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableBeginApplyRequestsNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSetupDrawChannelsNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1127])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1127])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableSetupDrawChannels(ImGuiTablePtr table) - { - TableSetupDrawChannelsNative(table); - } - - /// - /// To be documented. - /// - public static void TableSetupDrawChannels(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableSetupDrawChannelsNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableUpdateLayoutNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1128])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1128])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableUpdateLayout(ImGuiTablePtr table) - { - TableUpdateLayoutNative(table); - } - - /// - /// To be documented. - /// - public static void TableUpdateLayout(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableUpdateLayoutNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableUpdateBordersNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1129])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1129])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableUpdateBorders(ImGuiTablePtr table) - { - TableUpdateBordersNative(table); - } - - /// - /// To be documented. - /// - public static void TableUpdateBorders(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableUpdateBordersNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableUpdateColumnsWeightFromWidthNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1130])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1130])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableUpdateColumnsWeightFromWidth(ImGuiTablePtr table) - { - TableUpdateColumnsWeightFromWidthNative(table); - } - - /// - /// To be documented. - /// - public static void TableUpdateColumnsWeightFromWidth(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableUpdateColumnsWeightFromWidthNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableDrawBordersNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1131])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1131])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableDrawBorders(ImGuiTablePtr table) - { - TableDrawBordersNative(table); - } - - /// - /// To be documented. - /// - public static void TableDrawBorders(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableDrawBordersNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableDrawContextMenuNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1132])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1132])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableDrawContextMenu(ImGuiTablePtr table) - { - TableDrawContextMenuNative(table); - } - - /// - /// To be documented. - /// - public static void TableDrawContextMenu(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableDrawContextMenuNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableMergeDrawChannelsNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1133])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1133])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableMergeDrawChannels(ImGuiTablePtr table) - { - TableMergeDrawChannelsNative(table); - } - - /// - /// To be documented. - /// - public static void TableMergeDrawChannels(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableMergeDrawChannelsNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableInstanceData* TableGetInstanceDataNative(ImGuiTable* table, int instanceNo) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1134])(table, instanceNo); - #else - return (ImGuiTableInstanceData*)((delegate* unmanaged[Cdecl])funcTable[1134])((nint)table, instanceNo); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTableInstanceDataPtr TableGetInstanceData(ImGuiTablePtr table, int instanceNo) - { - ImGuiTableInstanceDataPtr ret = TableGetInstanceDataNative(table, instanceNo); - return ret; - } - - /// - /// To be documented. - /// - public static ImGuiTableInstanceDataPtr TableGetInstanceData(ref ImGuiTable table, int instanceNo) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiTableInstanceDataPtr ret = TableGetInstanceDataNative((ImGuiTable*)ptable, instanceNo); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSortSpecsSanitizeNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1135])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1135])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableSortSpecsSanitize(ImGuiTablePtr table) - { - TableSortSpecsSanitizeNative(table); - } - - /// - /// To be documented. - /// - public static void TableSortSpecsSanitize(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableSortSpecsSanitizeNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSortSpecsBuildNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1136])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1136])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableSortSpecsBuild(ImGuiTablePtr table) - { - TableSortSpecsBuildNative(table); - } - - /// - /// To be documented. - /// - public static void TableSortSpecsBuild(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableSortSpecsBuildNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiSortDirection TableGetColumnNextSortDirectionNative(ImGuiTableColumn* column) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1137])(column); - #else - return (ImGuiSortDirection)((delegate* unmanaged[Cdecl])funcTable[1137])((nint)column); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumnPtr column) - { - ImGuiSortDirection ret = TableGetColumnNextSortDirectionNative(column); - return ret; - } - - /// - /// To be documented. - /// - public static ImGuiSortDirection TableGetColumnNextSortDirection(ref ImGuiTableColumn column) - { - fixed (ImGuiTableColumn* pcolumn = &column) - { - ImGuiSortDirection ret = TableGetColumnNextSortDirectionNative((ImGuiTableColumn*)pcolumn); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableFixColumnSortDirectionNative(ImGuiTable* table, ImGuiTableColumn* column) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1138])(table, column); - #else - ((delegate* unmanaged[Cdecl])funcTable[1138])((nint)table, (nint)column); - #endif - } - - /// - /// To be documented. - /// - public static void TableFixColumnSortDirection(ImGuiTablePtr table, ImGuiTableColumnPtr column) - { - TableFixColumnSortDirectionNative(table, column); - } - - /// - /// To be documented. - /// - public static void TableFixColumnSortDirection(ref ImGuiTable table, ImGuiTableColumnPtr column) - { - fixed (ImGuiTable* ptable = &table) - { - TableFixColumnSortDirectionNative((ImGuiTable*)ptable, column); - } - } - - /// - /// To be documented. - /// - public static void TableFixColumnSortDirection(ImGuiTablePtr table, ref ImGuiTableColumn column) - { - fixed (ImGuiTableColumn* pcolumn = &column) - { - TableFixColumnSortDirectionNative(table, (ImGuiTableColumn*)pcolumn); - } - } - - /// - /// To be documented. - /// - public static void TableFixColumnSortDirection(ref ImGuiTable table, ref ImGuiTableColumn column) - { - fixed (ImGuiTable* ptable = &table) - { - fixed (ImGuiTableColumn* pcolumn = &column) - { - TableFixColumnSortDirectionNative((ImGuiTable*)ptable, (ImGuiTableColumn*)pcolumn); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float TableGetColumnWidthAutoNative(ImGuiTable* table, ImGuiTableColumn* column) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1139])(table, column); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[1139])((nint)table, (nint)column); - #endif - } - - /// - /// To be documented. - /// - public static float TableGetColumnWidthAuto(ImGuiTablePtr table, ImGuiTableColumnPtr column) - { - float ret = TableGetColumnWidthAutoNative(table, column); - return ret; - } - - /// - /// To be documented. - /// - public static float TableGetColumnWidthAuto(ref ImGuiTable table, ImGuiTableColumnPtr column) - { - fixed (ImGuiTable* ptable = &table) - { - float ret = TableGetColumnWidthAutoNative((ImGuiTable*)ptable, column); - return ret; - } - } - - /// - /// To be documented. - /// - public static float TableGetColumnWidthAuto(ImGuiTablePtr table, ref ImGuiTableColumn column) - { - fixed (ImGuiTableColumn* pcolumn = &column) - { - float ret = TableGetColumnWidthAutoNative(table, (ImGuiTableColumn*)pcolumn); - return ret; - } - } - - /// - /// To be documented. - /// - public static float TableGetColumnWidthAuto(ref ImGuiTable table, ref ImGuiTableColumn column) - { - fixed (ImGuiTable* ptable = &table) - { - fixed (ImGuiTableColumn* pcolumn = &column) - { - float ret = TableGetColumnWidthAutoNative((ImGuiTable*)ptable, (ImGuiTableColumn*)pcolumn); - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableBeginRowNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1140])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1140])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableBeginRow(ImGuiTablePtr table) - { - TableBeginRowNative(table); - } - - /// - /// To be documented. - /// - public static void TableBeginRow(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableBeginRowNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableEndRowNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1141])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1141])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableEndRow(ImGuiTablePtr table) - { - TableEndRowNative(table); - } - - /// - /// To be documented. - /// - public static void TableEndRow(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableEndRowNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableBeginCellNative(ImGuiTable* table, int columnN) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1142])(table, columnN); - #else - ((delegate* unmanaged[Cdecl])funcTable[1142])((nint)table, columnN); - #endif - } - - /// - /// To be documented. - /// - public static void TableBeginCell(ImGuiTablePtr table, int columnN) - { - TableBeginCellNative(table, columnN); - } - - /// - /// To be documented. - /// - public static void TableBeginCell(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - TableBeginCellNative((ImGuiTable*)ptable, columnN); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableEndCellNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1143])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1143])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableEndCell(ImGuiTablePtr table) - { - TableEndCellNative(table); - } - - /// - /// To be documented. - /// - public static void TableEndCell(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableEndCellNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableGetCellBgRectNative(ImRect* pOut, ImGuiTable* table, int columnN) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1144])(pOut, table, columnN); - #else - ((delegate* unmanaged[Cdecl])funcTable[1144])((nint)pOut, (nint)table, columnN); - #endif - } - - /// - /// To be documented. - /// - public static ImRect TableGetCellBgRect(ImGuiTablePtr table, int columnN) - { - ImRect ret; - TableGetCellBgRectNative(&ret, table, columnN); - return ret; - } - - /// - /// To be documented. - /// - public static void TableGetCellBgRect(ImRectPtr pOut, ImGuiTablePtr table, int columnN) - { - TableGetCellBgRectNative(pOut, table, columnN); - } - - /// - /// To be documented. - /// - public static void TableGetCellBgRect(ref ImRect pOut, ImGuiTablePtr table, int columnN) - { - fixed (ImRect* ppOut = &pOut) - { - TableGetCellBgRectNative((ImRect*)ppOut, table, columnN); - } - } - - /// - /// To be documented. - /// - public static ImRect TableGetCellBgRect(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - ImRect ret; - TableGetCellBgRectNative(&ret, (ImGuiTable*)ptable, columnN); - return ret; - } - } - - /// - /// To be documented. - /// - public static void TableGetCellBgRect(ImRectPtr pOut, ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - TableGetCellBgRectNative(pOut, (ImGuiTable*)ptable, columnN); - } - } - - /// - /// To be documented. - /// - public static void TableGetCellBgRect(ref ImRect pOut, ref ImGuiTable table, int columnN) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiTable* ptable = &table) - { - TableGetCellBgRectNative((ImRect*)ppOut, (ImGuiTable*)ptable, columnN); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* TableGetColumnNameNative(ImGuiTable* table, int columnN) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1145])(table, columnN); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[1145])((nint)table, columnN); - #endif - } - - /// - /// To be documented. - /// - public static byte* TableGetColumnName(ImGuiTablePtr table, int columnN) - { - byte* ret = TableGetColumnNameNative(table, columnN); - return ret; - } - - /// - /// To be documented. - /// - public static string TableGetColumnNameS(ImGuiTablePtr table, int columnN) - { - string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative(table, columnN)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* TableGetColumnName(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - byte* ret = TableGetColumnNameNative((ImGuiTable*)ptable, columnN); - return ret; - } - } - - /// - /// To be documented. - /// - public static string TableGetColumnNameS(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative((ImGuiTable*)ptable, columnN)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint TableGetColumnResizeIDNative(ImGuiTable* table, int columnN, int instanceNo) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1146])(table, columnN, instanceNo); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[1146])((nint)table, columnN, instanceNo); - #endif - } - - /// - /// To be documented. - /// - public static uint TableGetColumnResizeID(ImGuiTablePtr table, int columnN, int instanceNo) - { - uint ret = TableGetColumnResizeIDNative(table, columnN, instanceNo); - return ret; - } - - /// - /// To be documented. - /// - public static uint TableGetColumnResizeID(ImGuiTablePtr table, int columnN) - { - uint ret = TableGetColumnResizeIDNative(table, columnN, (int)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static uint TableGetColumnResizeID(ref ImGuiTable table, int columnN, int instanceNo) - { - fixed (ImGuiTable* ptable = &table) - { - uint ret = TableGetColumnResizeIDNative((ImGuiTable*)ptable, columnN, instanceNo); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint TableGetColumnResizeID(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - uint ret = TableGetColumnResizeIDNative((ImGuiTable*)ptable, columnN, (int)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float TableGetMaxColumnWidthNative(ImGuiTable* table, int columnN) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1147])(table, columnN); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[1147])((nint)table, columnN); - #endif - } - - /// - /// To be documented. - /// - public static float TableGetMaxColumnWidth(ImGuiTablePtr table, int columnN) - { - float ret = TableGetMaxColumnWidthNative(table, columnN); - return ret; - } - - /// - /// To be documented. - /// - public static float TableGetMaxColumnWidth(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - float ret = TableGetMaxColumnWidthNative((ImGuiTable*)ptable, columnN); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSetColumnWidthAutoSingleNative(ImGuiTable* table, int columnN) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1148])(table, columnN); - #else - ((delegate* unmanaged[Cdecl])funcTable[1148])((nint)table, columnN); - #endif - } - - /// - /// To be documented. - /// - public static void TableSetColumnWidthAutoSingle(ImGuiTablePtr table, int columnN) - { - TableSetColumnWidthAutoSingleNative(table, columnN); - } - - /// - /// To be documented. - /// - public static void TableSetColumnWidthAutoSingle(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - TableSetColumnWidthAutoSingleNative((ImGuiTable*)ptable, columnN); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSetColumnWidthAutoAllNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1149])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1149])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableSetColumnWidthAutoAll(ImGuiTablePtr table) - { - TableSetColumnWidthAutoAllNative(table); - } - - /// - /// To be documented. - /// - public static void TableSetColumnWidthAutoAll(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableSetColumnWidthAutoAllNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableRemoveNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1150])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1150])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableRemove(ImGuiTablePtr table) - { - TableRemoveNative(table); - } - - /// - /// To be documented. - /// - public static void TableRemove(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableRemoveNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableGcCompactTransientBuffersNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1151])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1151])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableGcCompactTransientBuffers(ImGuiTablePtr table) - { - TableGcCompactTransientBuffersNative(table); - } - - /// - /// To be documented. - /// - public static void TableGcCompactTransientBuffers(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableGcCompactTransientBuffersNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableGcCompactTransientBuffersNative(ImGuiTableTempData* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1152])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1152])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableGcCompactTransientBuffers(ImGuiTableTempDataPtr table) - { - TableGcCompactTransientBuffersNative(table); - } - - /// - /// To be documented. - /// - public static void TableGcCompactTransientBuffers(ref ImGuiTableTempData table) - { - fixed (ImGuiTableTempData* ptable = &table) - { - TableGcCompactTransientBuffersNative((ImGuiTableTempData*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableGcCompactSettingsNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1153])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[1153])(); - #endif - } - - /// - /// To be documented. - /// - public static void TableGcCompactSettings() - { - TableGcCompactSettingsNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableLoadSettingsNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1154])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1154])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableLoadSettings(ImGuiTablePtr table) - { - TableLoadSettingsNative(table); - } - - /// - /// To be documented. - /// - public static void TableLoadSettings(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableLoadSettingsNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSaveSettingsNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1155])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1155])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableSaveSettings(ImGuiTablePtr table) - { - TableSaveSettingsNative(table); - } - - /// - /// To be documented. - /// - public static void TableSaveSettings(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableSaveSettingsNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableResetSettingsNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1156])(table); - #else - ((delegate* unmanaged[Cdecl])funcTable[1156])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static void TableResetSettings(ImGuiTablePtr table) - { - TableResetSettingsNative(table); - } - - /// - /// To be documented. - /// - public static void TableResetSettings(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableResetSettingsNative((ImGuiTable*)ptable); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableSettings* TableGetBoundSettingsNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1157])(table); - #else - return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl])funcTable[1157])((nint)table); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTableSettingsPtr TableGetBoundSettings(ImGuiTablePtr table) - { - ImGuiTableSettingsPtr ret = TableGetBoundSettingsNative(table); - return ret; - } - - /// - /// To be documented. - /// - public static ImGuiTableSettingsPtr TableGetBoundSettings(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiTableSettingsPtr ret = TableGetBoundSettingsNative((ImGuiTable*)ptable); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSettingsAddSettingsHandlerNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1158])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[1158])(); - #endif - } - - /// - /// To be documented. - /// - public static void TableSettingsAddSettingsHandler() - { - TableSettingsAddSettingsHandlerNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableSettings* TableSettingsCreateNative(uint id, int columnsCount) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1159])(id, columnsCount); - #else - return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl])funcTable[1159])(id, columnsCount); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTableSettingsPtr TableSettingsCreate(uint id, int columnsCount) - { - ImGuiTableSettingsPtr ret = TableSettingsCreateNative(id, columnsCount); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableSettings* TableSettingsFindByIDNative(uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1160])(id); - #else - return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl])funcTable[1160])(id); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTableSettingsPtr TableSettingsFindByID(uint id) - { - ImGuiTableSettingsPtr ret = TableSettingsFindByIDNative(id); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginTabBarExNative(ImGuiTabBar* tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNode* dockNode) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1161])(tabBar, bb, flags, dockNode); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1161])((nint)tabBar, bb, flags, (nint)dockNode); - #endif - } - - /// - /// To be documented. - /// - public static bool BeginTabBarEx(ImGuiTabBarPtr tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNodePtr dockNode) - { - byte ret = BeginTabBarExNative(tabBar, bb, flags, dockNode); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginTabBarEx(ref ImGuiTabBar tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNodePtr dockNode) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte ret = BeginTabBarExNative((ImGuiTabBar*)ptabBar, bb, flags, dockNode); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTabBarEx(ImGuiTabBarPtr tabBar, ImRect bb, ImGuiTabBarFlags flags, ref ImGuiDockNode dockNode) - { - fixed (ImGuiDockNode* pdockNode = &dockNode) - { - byte ret = BeginTabBarExNative(tabBar, bb, flags, (ImGuiDockNode*)pdockNode); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginTabBarEx(ref ImGuiTabBar tabBar, ImRect bb, ImGuiTabBarFlags flags, ref ImGuiDockNode dockNode) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiDockNode* pdockNode = &dockNode) - { - byte ret = BeginTabBarExNative((ImGuiTabBar*)ptabBar, bb, flags, (ImGuiDockNode*)pdockNode); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTabItem* TabBarFindTabByIDNative(ImGuiTabBar* tabBar, uint tabId) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1162])(tabBar, tabId); - #else - return (ImGuiTabItem*)((delegate* unmanaged[Cdecl])funcTable[1162])((nint)tabBar, tabId); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTabItemPtr TabBarFindTabByID(ImGuiTabBarPtr tabBar, uint tabId) - { - ImGuiTabItemPtr ret = TabBarFindTabByIDNative(tabBar, tabId); - return ret; - } - - /// - /// To be documented. - /// - public static ImGuiTabItemPtr TabBarFindTabByID(ref ImGuiTabBar tabBar, uint tabId) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - ImGuiTabItemPtr ret = TabBarFindTabByIDNative((ImGuiTabBar*)ptabBar, tabId); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindowNative(ImGuiTabBar* tabBar) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1163])(tabBar); - #else - return (ImGuiTabItem*)((delegate* unmanaged[Cdecl])funcTable[1163])((nint)tabBar); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiTabItemPtr TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBarPtr tabBar) - { - ImGuiTabItemPtr ret = TabBarFindMostRecentlySelectedTabForActiveWindowNative(tabBar); - return ret; - } - - /// - /// To be documented. - /// - public static ImGuiTabItemPtr TabBarFindMostRecentlySelectedTabForActiveWindow(ref ImGuiTabBar tabBar) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - ImGuiTabItemPtr ret = TabBarFindMostRecentlySelectedTabForActiveWindowNative((ImGuiTabBar*)ptabBar); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TabBarAddTabNative(ImGuiTabBar* tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1164])(tabBar, tabFlags, window); - #else - ((delegate* unmanaged[Cdecl])funcTable[1164])((nint)tabBar, tabFlags, (nint)window); - #endif - } - - /// - /// To be documented. - /// - public static void TabBarAddTab(ImGuiTabBarPtr tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindowPtr window) - { - TabBarAddTabNative(tabBar, tabFlags, window); - } - - /// - /// To be documented. - /// - public static void TabBarAddTab(ref ImGuiTabBar tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindowPtr window) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - TabBarAddTabNative((ImGuiTabBar*)ptabBar, tabFlags, window); - } - } - - /// - /// To be documented. - /// - public static void TabBarAddTab(ImGuiTabBarPtr tabBar, ImGuiTabItemFlags tabFlags, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - TabBarAddTabNative(tabBar, tabFlags, (ImGuiWindow*)pwindow); - } - } - - /// - /// To be documented. - /// - public static void TabBarAddTab(ref ImGuiTabBar tabBar, ImGuiTabItemFlags tabFlags, ref ImGuiWindow window) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiWindow* pwindow = &window) - { - TabBarAddTabNative((ImGuiTabBar*)ptabBar, tabFlags, (ImGuiWindow*)pwindow); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TabBarRemoveTabNative(ImGuiTabBar* tabBar, uint tabId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1165])(tabBar, tabId); - #else - ((delegate* unmanaged[Cdecl])funcTable[1165])((nint)tabBar, tabId); - #endif - } - - /// - /// To be documented. - /// - public static void TabBarRemoveTab(ImGuiTabBarPtr tabBar, uint tabId) - { - TabBarRemoveTabNative(tabBar, tabId); - } - - /// - /// To be documented. - /// - public static void TabBarRemoveTab(ref ImGuiTabBar tabBar, uint tabId) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - TabBarRemoveTabNative((ImGuiTabBar*)ptabBar, tabId); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TabBarCloseTabNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1166])(tabBar, tab); - #else - ((delegate* unmanaged[Cdecl])funcTable[1166])((nint)tabBar, (nint)tab); - #endif - } - - /// - /// To be documented. - /// - public static void TabBarCloseTab(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab) - { - TabBarCloseTabNative(tabBar, tab); - } - - /// - /// To be documented. - /// - public static void TabBarCloseTab(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - TabBarCloseTabNative((ImGuiTabBar*)ptabBar, tab); - } - } - - /// - /// To be documented. - /// - public static void TabBarCloseTab(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab) - { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarCloseTabNative(tabBar, (ImGuiTabItem*)ptab); - } - } - - /// - /// To be documented. - /// - public static void TabBarCloseTab(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarCloseTabNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TabBarQueueReorderNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab, int offset) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1167])(tabBar, tab, offset); - #else - ((delegate* unmanaged[Cdecl])funcTable[1167])((nint)tabBar, (nint)tab, offset); - #endif - } - - /// - /// To be documented. - /// - public static void TabBarQueueReorder(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, int offset) - { - TabBarQueueReorderNative(tabBar, tab, offset); - } - - /// - /// To be documented. - /// - public static void TabBarQueueReorder(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab, int offset) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - TabBarQueueReorderNative((ImGuiTabBar*)ptabBar, tab, offset); - } - } - - /// - /// To be documented. - /// - public static void TabBarQueueReorder(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab, int offset) - { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarQueueReorderNative(tabBar, (ImGuiTabItem*)ptab, offset); - } - } - - /// - /// To be documented. - /// - public static void TabBarQueueReorder(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab, int offset) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarQueueReorderNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab, offset); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TabBarQueueReorderFromMousePosNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab, Vector2 mousePos) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1168])(tabBar, tab, mousePos); - #else - ((delegate* unmanaged[Cdecl])funcTable[1168])((nint)tabBar, (nint)tab, mousePos); - #endif - } - - /// - /// To be documented. - /// - public static void TabBarQueueReorderFromMousePos(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, Vector2 mousePos) - { - TabBarQueueReorderFromMousePosNative(tabBar, tab, mousePos); - } - - /// - /// To be documented. - /// - public static void TabBarQueueReorderFromMousePos(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab, Vector2 mousePos) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - TabBarQueueReorderFromMousePosNative((ImGuiTabBar*)ptabBar, tab, mousePos); - } - } - - /// - /// To be documented. - /// - public static void TabBarQueueReorderFromMousePos(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab, Vector2 mousePos) - { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarQueueReorderFromMousePosNative(tabBar, (ImGuiTabItem*)ptab, mousePos); - } - } - - /// - /// To be documented. - /// - public static void TabBarQueueReorderFromMousePos(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab, Vector2 mousePos) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarQueueReorderFromMousePosNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab, mousePos); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TabBarProcessReorderNative(ImGuiTabBar* tabBar) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1169])(tabBar); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1169])((nint)tabBar); - #endif - } - - /// - /// To be documented. - /// - public static bool TabBarProcessReorder(ImGuiTabBarPtr tabBar) - { - byte ret = TabBarProcessReorderNative(tabBar); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TabBarProcessReorder(ref ImGuiTabBar tabBar) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte ret = TabBarProcessReorderNative((ImGuiTabBar*)ptabBar); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TabItemExNative(ImGuiTabBar* tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindow* dockedWindow) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1170])(tabBar, label, pOpen, flags, dockedWindow); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1170])((nint)tabBar, (nint)label, (nint)pOpen, flags, (nint)dockedWindow); - #endif - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - byte ret = TabItemExNative(tabBar, label, pOpen, flags, dockedWindow); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, pOpen, flags, dockedWindow); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (byte* plabel = &label) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, dockedWindow); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (byte* plabel = label) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, dockedWindow); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TabItemExNative(tabBar, pStr0, pOpen, flags, dockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = &label) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, dockedWindow); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = label) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, dockedWindow); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, pOpen, flags, dockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = TabItemExNative(tabBar, label, (bool*)ppOpen, flags, dockedWindow); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, (bool*)ppOpen, flags, dockedWindow); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (byte* plabel = label) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppOpen = &pOpen) - { - byte ret = TabItemExNative(tabBar, pStr0, (bool*)ppOpen, flags, dockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = label) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppOpen = &pOpen) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, (bool*)ppOpen, flags, dockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, label, pOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, pOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (byte* plabel = &label) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (byte* plabel = label) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, pStr0, pOpen, flags, (ImGuiWindow*)pdockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = &label) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = label) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, pOpen, flags, (ImGuiWindow*)pdockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (bool* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, label, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (bool* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (byte* plabel = label) - { - fixed (bool* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, pStr0, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = label) - { - fixed (bool* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TabItemCalcSizeNative(Vector2* pOut, byte* label, byte hasCloseButton) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1171])(pOut, label, hasCloseButton); - #else - ((delegate* unmanaged[Cdecl])funcTable[1171])((nint)pOut, (nint)label, hasCloseButton); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 TabItemCalcSize(byte* label, bool hasCloseButton) - { - Vector2 ret; - TabItemCalcSizeNative(&ret, label, hasCloseButton ? (byte)1 : (byte)0); - return ret; - } - - /// - /// To be documented. - /// - public static void TabItemCalcSize(Vector2* pOut, byte* label, bool hasCloseButton) - { - TabItemCalcSizeNative(pOut, label, hasCloseButton ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void TabItemCalcSize(ref Vector2 pOut, byte* label, bool hasCloseButton) - { - fixed (Vector2* ppOut = &pOut) - { - TabItemCalcSizeNative((Vector2*)ppOut, label, hasCloseButton ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static Vector2 TabItemCalcSize(ref byte label, bool hasCloseButton) - { - fixed (byte* plabel = &label) - { - Vector2 ret; - TabItemCalcSizeNative(&ret, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 TabItemCalcSize(ReadOnlySpan label, bool hasCloseButton) - { - fixed (byte* plabel = label) - { - Vector2 ret; - TabItemCalcSizeNative(&ret, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 TabItemCalcSize(string label, bool hasCloseButton) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - TabItemCalcSizeNative(&ret, pStr0, hasCloseButton ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static void TabItemCalcSize(ref Vector2 pOut, ref byte label, bool hasCloseButton) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* plabel = &label) - { - TabItemCalcSizeNative((Vector2*)ppOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void TabItemCalcSize(ref Vector2 pOut, ReadOnlySpan label, bool hasCloseButton) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* plabel = label) - { - TabItemCalcSizeNative((Vector2*)ppOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void TabItemCalcSize(ref Vector2 pOut, string label, bool hasCloseButton) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TabItemCalcSizeNative((Vector2*)ppOut, pStr0, hasCloseButton ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void TabItemCalcSize(Vector2* pOut, ref byte label, bool hasCloseButton) - { - fixed (byte* plabel = &label) - { - TabItemCalcSizeNative(pOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void TabItemCalcSize(Vector2* pOut, ReadOnlySpan label, bool hasCloseButton) - { - fixed (byte* plabel = label) - { - TabItemCalcSizeNative(pOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void TabItemCalcSize(Vector2* pOut, string label, bool hasCloseButton) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TabItemCalcSizeNative(pOut, pStr0, hasCloseButton ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TabItemBackgroundNative(ImDrawList* drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1172])(drawList, bb, flags, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[1172])((nint)drawList, bb, flags, col); - #endif - } - - /// - /// To be documented. - /// - public static void TabItemBackground(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) - { - TabItemBackgroundNative(drawList, bb, flags, col); - } - - /// - /// To be documented. - /// - public static void TabItemBackground(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) - { - fixed (ImDrawList* pdrawList = &drawList) - { - TabItemBackgroundNative((ImDrawList*)pdrawList, bb, flags, col); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TabItemLabelAndCloseButtonNative(ImDrawList* drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, byte isContentsVisible, bool* outJustClosed, bool* outTextClipped) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1173])(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible, outJustClosed, outTextClipped); - #else - ((delegate* unmanaged[Cdecl])funcTable[1173])((nint)drawList, bb, flags, framePadding, (nint)label, tabId, closeButtonId, isContentsVisible, (nint)outJustClosed, (nint)outTextClipped); - #endif - } - - /// - /// To be documented. - /// - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); - } - - /// - /// To be documented. - /// - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); - } - } - - /// - /// To be documented. - /// - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) - { - fixed (byte* plabel = &label) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); - } - } - /// /// To be documented. /// @@ -5026,5 +1779,3258 @@ namespace Dalamud.Bindings.ImGui } } } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderTextClippedNative(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1176])(posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); + #else + ((delegate* unmanaged[Cdecl])funcTable[1176])(posMin, posMax, (nint)text, (nint)textEnd, (nint)textSizeIfKnown, align, (nint)clipRect); + #endif + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = &text) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = text) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = text) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, clipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = text) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptext = text) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.012.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.012.cs index 9e8b5a71a..76ce5b14c 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.012.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.012.cs @@ -18,3259 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGuiP { - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderTextClippedNative(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1176])(posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); - #else - ((delegate* unmanaged[Cdecl])funcTable[1176])(posMin, posMax, (nint)text, (nint)textEnd, (nint)textSizeIfKnown, align, (nint)clipRect); - #endif - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - /// /// To be documented. /// @@ -5029,5 +1776,3257 @@ namespace Dalamud.Bindings.ImGui } } } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, clipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, clipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.013.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.013.cs index 1dd7a6cb4..c57d27c26 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.013.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.013.cs @@ -18,3258 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGuiP { - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - /// /// To be documented. /// @@ -5031,5 +1779,3259 @@ namespace Dalamud.Bindings.ImGui } } } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = text) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptext = text) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.014.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.014.cs index 0c6b26f63..39b8a423a 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.014.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.014.cs @@ -18,3260 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGuiP { - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - /// /// To be documented. /// @@ -5044,5 +1790,3236 @@ namespace Dalamud.Bindings.ImGui } } } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, textSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, textSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, textSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, (Vector2*)ptextSizeIfKnown); + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, (Vector2*)ptextSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, (Vector2*)ptextSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, string textEnd, ref Vector2 textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, (Vector2*)ptextSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, string textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, (Vector2*)ptextSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, string textEnd, ref Vector2 textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, (Vector2*)ptextSizeIfKnown); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, string textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, string textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, (Vector2*)ptextSizeIfKnown); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, string textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderFrameNative(Vector2 pMin, Vector2 pMax, uint fillCol, byte border, float rounding) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1179])(pMin, pMax, fillCol, border, rounding); + #else + ((delegate* unmanaged[Cdecl])funcTable[1179])(pMin, pMax, fillCol, border, rounding); + #endif + } + + /// + /// To be documented. + /// + public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, bool border, float rounding) + { + RenderFrameNative(pMin, pMax, fillCol, border ? (byte)1 : (byte)0, rounding); + } + + /// + /// To be documented. + /// + public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, bool border) + { + RenderFrameNative(pMin, pMax, fillCol, border ? (byte)1 : (byte)0, (float)(0.0f)); + } + + /// + /// To be documented. + /// + public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol) + { + RenderFrameNative(pMin, pMax, fillCol, (byte)(1), (float)(0.0f)); + } + + /// + /// To be documented. + /// + public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, float rounding) + { + RenderFrameNative(pMin, pMax, fillCol, (byte)(1), rounding); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderFrameBorderNative(Vector2 pMin, Vector2 pMax, float rounding) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1180])(pMin, pMax, rounding); + #else + ((delegate* unmanaged[Cdecl])funcTable[1180])(pMin, pMax, rounding); + #endif + } + + /// + /// To be documented. + /// + public static void RenderFrameBorder(Vector2 pMin, Vector2 pMax, float rounding) + { + RenderFrameBorderNative(pMin, pMax, rounding); + } + + /// + /// To be documented. + /// + public static void RenderFrameBorder(Vector2 pMin, Vector2 pMax) + { + RenderFrameBorderNative(pMin, pMax, (float)(0.0f)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderColorRectWithAlphaCheckerboardNative(ImDrawList* drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1181])(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[1181])((nint)drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); + #endif + } + + /// + /// To be documented. + /// + public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags) + { + RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); + } + + /// + /// To be documented. + /// + public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding) + { + RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, (ImDrawFlags)(0)); + } + + /// + /// To be documented. + /// + public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff) + { + RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), (ImDrawFlags)(0)); + } + + /// + /// To be documented. + /// + public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, ImDrawFlags flags) + { + RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), flags); + } + + /// + /// To be documented. + /// + public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); + } + } + + /// + /// To be documented. + /// + public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, (ImDrawFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), (ImDrawFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, ImDrawFlags flags) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), flags); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderNavHighlightNative(ImRect bb, uint id, ImGuiNavHighlightFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1182])(bb, id, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[1182])(bb, id, flags); + #endif + } + + /// + /// To be documented. + /// + public static void RenderNavHighlight(ImRect bb, uint id, ImGuiNavHighlightFlags flags) + { + RenderNavHighlightNative(bb, id, flags); + } + + /// + /// To be documented. + /// + public static void RenderNavHighlight(ImRect bb, uint id) + { + RenderNavHighlightNative(bb, id, (ImGuiNavHighlightFlags)(ImGuiNavHighlightFlags.TypeDefault)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* FindRenderedTextEndNative(byte* text, byte* textEnd) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1183])(text, textEnd); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[1183])((nint)text, (nint)textEnd); + #endif + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(byte* text, byte* textEnd) + { + byte* ret = FindRenderedTextEndNative(text, textEnd); + return ret; + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(byte* text) + { + byte* ret = FindRenderedTextEndNative(text, (byte*)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(byte* text) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, (byte*)(default))); + return ret; + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(byte* text, byte* textEnd) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, textEnd)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + byte* ret = FindRenderedTextEndNative((byte*)ptext, textEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(ref byte text) + { + fixed (byte* ptext = &text) + { + byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(ref byte text) + { + fixed (byte* ptext = &text) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)(default))); + return ret; + } + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, textEnd)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(ReadOnlySpan text, byte* textEnd) + { + fixed (byte* ptext = text) + { + byte* ret = FindRenderedTextEndNative((byte*)ptext, textEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(ReadOnlySpan text) + { + fixed (byte* ptext = text) + { + byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(ReadOnlySpan text) + { + fixed (byte* ptext = text) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)(default))); + return ret; + } + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(ReadOnlySpan text, byte* textEnd) + { + fixed (byte* ptext = text) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, textEnd)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(string text, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = FindRenderedTextEndNative(pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(string text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = FindRenderedTextEndNative(pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(string text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, (byte*)(default))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(string text, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, textEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = FindRenderedTextEndNative(text, (byte*)ptextEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, (byte*)ptextEnd)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(byte* text, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + byte* ret = FindRenderedTextEndNative(text, (byte*)ptextEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(byte* text, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, (byte*)ptextEnd)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(byte* text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = FindRenderedTextEndNative(text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(byte* text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(string text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = FindRenderedTextEndNative(pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(string text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, pStr1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(ref byte text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(ref byte text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(ref byte text, string textEnd) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = FindRenderedTextEndNative((byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(ref byte text, string textEnd) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(ReadOnlySpan text, ref byte textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(ReadOnlySpan text, ref byte textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(ReadOnlySpan text, string textEnd) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = FindRenderedTextEndNative((byte*)ptext, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(ReadOnlySpan text, string textEnd) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(string text, ref byte textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = FindRenderedTextEndNative(pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(string text, ref byte textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, (byte*)ptextEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* FindRenderedTextEnd(string text, ReadOnlySpan textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + byte* ret = FindRenderedTextEndNative(pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string FindRenderedTextEndS(string text, ReadOnlySpan textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, (byte*)ptextEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderMouseCursorNative(Vector2 pos, float scale, ImGuiMouseCursor mouseCursor, uint colFill, uint colBorder, uint colShadow) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1184])(pos, scale, mouseCursor, colFill, colBorder, colShadow); + #else + ((delegate* unmanaged[Cdecl])funcTable[1184])(pos, scale, mouseCursor, colFill, colBorder, colShadow); + #endif + } + + /// + /// To be documented. + /// + public static void RenderMouseCursor(Vector2 pos, float scale, ImGuiMouseCursor mouseCursor, uint colFill, uint colBorder, uint colShadow) + { + RenderMouseCursorNative(pos, scale, mouseCursor, colFill, colBorder, colShadow); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderArrowNative(ImDrawList* drawList, Vector2 pos, uint col, ImGuiDir dir, float scale) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1185])(drawList, pos, col, dir, scale); + #else + ((delegate* unmanaged[Cdecl])funcTable[1185])((nint)drawList, pos, col, dir, scale); + #endif + } + + /// + /// To be documented. + /// + public static void RenderArrow(ImDrawListPtr drawList, Vector2 pos, uint col, ImGuiDir dir, float scale) + { + RenderArrowNative(drawList, pos, col, dir, scale); + } + + /// + /// To be documented. + /// + public static void RenderArrow(ImDrawListPtr drawList, Vector2 pos, uint col, ImGuiDir dir) + { + RenderArrowNative(drawList, pos, col, dir, (float)(1.0f)); + } + + /// + /// To be documented. + /// + public static void RenderArrow(ref ImDrawList drawList, Vector2 pos, uint col, ImGuiDir dir, float scale) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderArrowNative((ImDrawList*)pdrawList, pos, col, dir, scale); + } + } + + /// + /// To be documented. + /// + public static void RenderArrow(ref ImDrawList drawList, Vector2 pos, uint col, ImGuiDir dir) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderArrowNative((ImDrawList*)pdrawList, pos, col, dir, (float)(1.0f)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderBulletNative(ImDrawList* drawList, Vector2 pos, uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1186])(drawList, pos, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[1186])((nint)drawList, pos, col); + #endif + } + + /// + /// To be documented. + /// + public static void RenderBullet(ImDrawListPtr drawList, Vector2 pos, uint col) + { + RenderBulletNative(drawList, pos, col); + } + + /// + /// To be documented. + /// + public static void RenderBullet(ref ImDrawList drawList, Vector2 pos, uint col) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderBulletNative((ImDrawList*)pdrawList, pos, col); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderCheckMarkNative(ImDrawList* drawList, Vector2 pos, uint col, float sz) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1187])(drawList, pos, col, sz); + #else + ((delegate* unmanaged[Cdecl])funcTable[1187])((nint)drawList, pos, col, sz); + #endif + } + + /// + /// To be documented. + /// + public static void RenderCheckMark(ImDrawListPtr drawList, Vector2 pos, uint col, float sz) + { + RenderCheckMarkNative(drawList, pos, col, sz); + } + + /// + /// To be documented. + /// + public static void RenderCheckMark(ref ImDrawList drawList, Vector2 pos, uint col, float sz) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderCheckMarkNative((ImDrawList*)pdrawList, pos, col, sz); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderArrowPointingAtNative(ImDrawList* drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1188])(drawList, pos, halfSz, direction, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[1188])((nint)drawList, pos, halfSz, direction, col); + #endif + } + + /// + /// To be documented. + /// + public static void RenderArrowPointingAt(ImDrawListPtr drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col) + { + RenderArrowPointingAtNative(drawList, pos, halfSz, direction, col); + } + + /// + /// To be documented. + /// + public static void RenderArrowPointingAt(ref ImDrawList drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderArrowPointingAtNative((ImDrawList*)pdrawList, pos, halfSz, direction, col); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderArrowDockMenuNative(ImDrawList* drawList, Vector2 pMin, float sz, uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1189])(drawList, pMin, sz, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[1189])((nint)drawList, pMin, sz, col); + #endif + } + + /// + /// To be documented. + /// + public static void RenderArrowDockMenu(ImDrawListPtr drawList, Vector2 pMin, float sz, uint col) + { + RenderArrowDockMenuNative(drawList, pMin, sz, col); + } + + /// + /// To be documented. + /// + public static void RenderArrowDockMenu(ref ImDrawList drawList, Vector2 pMin, float sz, uint col) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderArrowDockMenuNative((ImDrawList*)pdrawList, pMin, sz, col); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderRectFilledRangeHNative(ImDrawList* drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1190])(drawList, rect, col, xStartNorm, xEndNorm, rounding); + #else + ((delegate* unmanaged[Cdecl])funcTable[1190])((nint)drawList, rect, col, xStartNorm, xEndNorm, rounding); + #endif + } + + /// + /// To be documented. + /// + public static void RenderRectFilledRangeH(ImDrawListPtr drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) + { + RenderRectFilledRangeHNative(drawList, rect, col, xStartNorm, xEndNorm, rounding); + } + + /// + /// To be documented. + /// + public static void RenderRectFilledRangeH(ref ImDrawList drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderRectFilledRangeHNative((ImDrawList*)pdrawList, rect, col, xStartNorm, xEndNorm, rounding); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderRectFilledWithHoleNative(ImDrawList* drawList, ImRect outer, ImRect inner, uint col, float rounding) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1191])(drawList, outer, inner, col, rounding); + #else + ((delegate* unmanaged[Cdecl])funcTable[1191])((nint)drawList, outer, inner, col, rounding); + #endif + } + + /// + /// To be documented. + /// + public static void RenderRectFilledWithHole(ImDrawListPtr drawList, ImRect outer, ImRect inner, uint col, float rounding) + { + RenderRectFilledWithHoleNative(drawList, outer, inner, col, rounding); + } + + /// + /// To be documented. + /// + public static void RenderRectFilledWithHole(ref ImDrawList drawList, ImRect outer, ImRect inner, uint col, float rounding) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderRectFilledWithHoleNative((ImDrawList*)pdrawList, outer, inner, col, rounding); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImDrawFlags CalcRoundingFlagsForRectInRectNative(ImRect rIn, ImRect rOuter, float threshold) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1192])(rIn, rOuter, threshold); + #else + return (ImDrawFlags)((delegate* unmanaged[Cdecl])funcTable[1192])(rIn, rOuter, threshold); + #endif + } + + /// + /// To be documented. + /// + public static ImDrawFlags CalcRoundingFlagsForRectInRect(ImRect rIn, ImRect rOuter, float threshold) + { + ImDrawFlags ret = CalcRoundingFlagsForRectInRectNative(rIn, rOuter, threshold); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TextExNative(byte* text, byte* textEnd, ImGuiTextFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1193])(text, textEnd, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[1193])((nint)text, (nint)textEnd, flags); + #endif + } + + /// + /// To be documented. + /// + public static void TextEx(byte* text, byte* textEnd, ImGuiTextFlags flags) + { + TextExNative(text, textEnd, flags); + } + + /// + /// To be documented. + /// + public static void TextEx(byte* text, byte* textEnd) + { + TextExNative(text, textEnd, (ImGuiTextFlags)(0)); + } + + /// + /// To be documented. + /// + public static void TextEx(byte* text) + { + TextExNative(text, (byte*)(default), (ImGuiTextFlags)(0)); + } + + /// + /// To be documented. + /// + public static void TextEx(byte* text, ImGuiTextFlags flags) + { + TextExNative(text, (byte*)(default), flags); + } + + /// + /// To be documented. + /// + public static void TextEx(ref byte text, byte* textEnd, ImGuiTextFlags flags) + { + fixed (byte* ptext = &text) + { + TextExNative((byte*)ptext, textEnd, flags); + } + } + + /// + /// To be documented. + /// + public static void TextEx(ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + TextExNative((byte*)ptext, textEnd, (ImGuiTextFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void TextEx(ref byte text) + { + fixed (byte* ptext = &text) + { + TextExNative((byte*)ptext, (byte*)(default), (ImGuiTextFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void TextEx(ref byte text, ImGuiTextFlags flags) + { + fixed (byte* ptext = &text) + { + TextExNative((byte*)ptext, (byte*)(default), flags); + } + } + + /// + /// To be documented. + /// + public static void TextEx(ReadOnlySpan text, byte* textEnd, ImGuiTextFlags flags) + { + fixed (byte* ptext = text) + { + TextExNative((byte*)ptext, textEnd, flags); + } + } + + /// + /// To be documented. + /// + public static void TextEx(ReadOnlySpan text, byte* textEnd) + { + fixed (byte* ptext = text) + { + TextExNative((byte*)ptext, textEnd, (ImGuiTextFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void TextEx(ReadOnlySpan text) + { + fixed (byte* ptext = text) + { + TextExNative((byte*)ptext, (byte*)(default), (ImGuiTextFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void TextEx(ReadOnlySpan text, ImGuiTextFlags flags) + { + fixed (byte* ptext = text) + { + TextExNative((byte*)ptext, (byte*)(default), flags); + } + } + + /// + /// To be documented. + /// + public static void TextEx(string text, byte* textEnd, ImGuiTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextExNative(pStr0, textEnd, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TextEx(string text, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextExNative(pStr0, textEnd, (ImGuiTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TextEx(string text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextExNative(pStr0, (byte*)(default), (ImGuiTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TextEx(string text, ImGuiTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextExNative(pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TextEx(byte* text, ref byte textEnd, ImGuiTextFlags flags) + { + fixed (byte* ptextEnd = &textEnd) + { + TextExNative(text, (byte*)ptextEnd, flags); + } + } + + /// + /// To be documented. + /// + public static void TextEx(byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + TextExNative(text, (byte*)ptextEnd, (ImGuiTextFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void TextEx(byte* text, ReadOnlySpan textEnd, ImGuiTextFlags flags) + { + fixed (byte* ptextEnd = textEnd) + { + TextExNative(text, (byte*)ptextEnd, flags); + } + } + + /// + /// To be documented. + /// + public static void TextEx(byte* text, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + TextExNative(text, (byte*)ptextEnd, (ImGuiTextFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void TextEx(byte* text, string textEnd, ImGuiTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextExNative(text, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TextEx(byte* text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextExNative(text, pStr0, (ImGuiTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TextEx(ref byte text, ref byte textEnd, ImGuiTextFlags flags) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + TextExNative((byte*)ptext, (byte*)ptextEnd, flags); + } + } + } + + /// + /// To be documented. + /// + public static void TextEx(ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void TextEx(ReadOnlySpan text, ReadOnlySpan textEnd, ImGuiTextFlags flags) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + TextExNative((byte*)ptext, (byte*)ptextEnd, flags); + } + } + } + + /// + /// To be documented. + /// + public static void TextEx(ReadOnlySpan text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = textEnd) + { + TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void TextEx(string text, string textEnd, ImGuiTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + TextExNative(pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TextEx(string text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + TextExNative(pStr0, pStr1, (ImGuiTextFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void TextEx(ref byte text, ReadOnlySpan textEnd, ImGuiTextFlags flags) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + TextExNative((byte*)ptext, (byte*)ptextEnd, flags); + } + } + } + + /// + /// To be documented. + /// + public static void TextEx(ref byte text, ReadOnlySpan textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = textEnd) + { + TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void TextEx(ref byte text, string textEnd, ImGuiTextFlags flags) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextExNative((byte*)ptext, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void TextEx(ref byte text, string textEnd) + { + fixed (byte* ptext = &text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextExNative((byte*)ptext, pStr0, (ImGuiTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void TextEx(ReadOnlySpan text, ref byte textEnd, ImGuiTextFlags flags) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + TextExNative((byte*)ptext, (byte*)ptextEnd, flags); + } + } + } + + /// + /// To be documented. + /// + public static void TextEx(ReadOnlySpan text, ref byte textEnd) + { + fixed (byte* ptext = text) + { + fixed (byte* ptextEnd = &textEnd) + { + TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void TextEx(ReadOnlySpan text, string textEnd, ImGuiTextFlags flags) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextExNative((byte*)ptext, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void TextEx(ReadOnlySpan text, string textEnd) + { + fixed (byte* ptext = text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextExNative((byte*)ptext, pStr0, (ImGuiTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void TextEx(string text, ref byte textEnd, ImGuiTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + TextExNative(pStr0, (byte*)ptextEnd, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void TextEx(string text, ref byte textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + TextExNative(pStr0, (byte*)ptextEnd, (ImGuiTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void TextEx(string text, ReadOnlySpan textEnd, ImGuiTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + TextExNative(pStr0, (byte*)ptextEnd, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void TextEx(string text, ReadOnlySpan textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + TextExNative(pStr0, (byte*)ptextEnd, (ImGuiTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ButtonExNative(byte* label, Vector2 sizeArg, ImGuiButtonFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1194])(label, sizeArg, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1194])((nint)label, sizeArg, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool ButtonEx(byte* label, Vector2 sizeArg, ImGuiButtonFlags flags) + { + byte ret = ButtonExNative(label, sizeArg, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ButtonEx(byte* label, Vector2 sizeArg) + { + byte ret = ButtonExNative(label, sizeArg, (ImGuiButtonFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ButtonEx(byte* label) + { + byte ret = ButtonExNative(label, (Vector2)(new Vector2(0,0)), (ImGuiButtonFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ButtonEx(byte* label, ImGuiButtonFlags flags) + { + byte ret = ButtonExNative(label, (Vector2)(new Vector2(0,0)), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ButtonEx(ref byte label, Vector2 sizeArg, ImGuiButtonFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = ButtonExNative((byte*)plabel, sizeArg, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ButtonEx(ref byte label, Vector2 sizeArg) + { + fixed (byte* plabel = &label) + { + byte ret = ButtonExNative((byte*)plabel, sizeArg, (ImGuiButtonFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ButtonEx(ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = ButtonExNative((byte*)plabel, (Vector2)(new Vector2(0,0)), (ImGuiButtonFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ButtonEx(ref byte label, ImGuiButtonFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = ButtonExNative((byte*)plabel, (Vector2)(new Vector2(0,0)), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ButtonEx(ReadOnlySpan label, Vector2 sizeArg, ImGuiButtonFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = ButtonExNative((byte*)plabel, sizeArg, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ButtonEx(ReadOnlySpan label, Vector2 sizeArg) + { + fixed (byte* plabel = label) + { + byte ret = ButtonExNative((byte*)plabel, sizeArg, (ImGuiButtonFlags)(0)); + return ret != 0; + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.015.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.015.cs index 0bd6ee10b..768ed1aa7 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.015.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.015.cs @@ -18,3237 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGuiP { - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ReadOnlySpan textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, (Vector2*)ptextSizeIfKnown); - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, string textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, string textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, (Vector2*)ptextSizeIfKnown); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, (Vector2*)ptextSizeIfKnown); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ReadOnlySpan textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderFrameNative(Vector2 pMin, Vector2 pMax, uint fillCol, byte border, float rounding) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1179])(pMin, pMax, fillCol, border, rounding); - #else - ((delegate* unmanaged[Cdecl])funcTable[1179])(pMin, pMax, fillCol, border, rounding); - #endif - } - - /// - /// To be documented. - /// - public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, bool border, float rounding) - { - RenderFrameNative(pMin, pMax, fillCol, border ? (byte)1 : (byte)0, rounding); - } - - /// - /// To be documented. - /// - public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, bool border) - { - RenderFrameNative(pMin, pMax, fillCol, border ? (byte)1 : (byte)0, (float)(0.0f)); - } - - /// - /// To be documented. - /// - public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol) - { - RenderFrameNative(pMin, pMax, fillCol, (byte)(1), (float)(0.0f)); - } - - /// - /// To be documented. - /// - public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, float rounding) - { - RenderFrameNative(pMin, pMax, fillCol, (byte)(1), rounding); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderFrameBorderNative(Vector2 pMin, Vector2 pMax, float rounding) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1180])(pMin, pMax, rounding); - #else - ((delegate* unmanaged[Cdecl])funcTable[1180])(pMin, pMax, rounding); - #endif - } - - /// - /// To be documented. - /// - public static void RenderFrameBorder(Vector2 pMin, Vector2 pMax, float rounding) - { - RenderFrameBorderNative(pMin, pMax, rounding); - } - - /// - /// To be documented. - /// - public static void RenderFrameBorder(Vector2 pMin, Vector2 pMax) - { - RenderFrameBorderNative(pMin, pMax, (float)(0.0f)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderColorRectWithAlphaCheckerboardNative(ImDrawList* drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1181])(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[1181])((nint)drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); - #endif - } - - /// - /// To be documented. - /// - public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags) - { - RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); - } - - /// - /// To be documented. - /// - public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding) - { - RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, (ImDrawFlags)(0)); - } - - /// - /// To be documented. - /// - public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff) - { - RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), (ImDrawFlags)(0)); - } - - /// - /// To be documented. - /// - public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, ImDrawFlags flags) - { - RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), flags); - } - - /// - /// To be documented. - /// - public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); - } - } - - /// - /// To be documented. - /// - public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, (ImDrawFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), (ImDrawFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, ImDrawFlags flags) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), flags); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderNavHighlightNative(ImRect bb, uint id, ImGuiNavHighlightFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1182])(bb, id, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[1182])(bb, id, flags); - #endif - } - - /// - /// To be documented. - /// - public static void RenderNavHighlight(ImRect bb, uint id, ImGuiNavHighlightFlags flags) - { - RenderNavHighlightNative(bb, id, flags); - } - - /// - /// To be documented. - /// - public static void RenderNavHighlight(ImRect bb, uint id) - { - RenderNavHighlightNative(bb, id, (ImGuiNavHighlightFlags)(ImGuiNavHighlightFlags.TypeDefault)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* FindRenderedTextEndNative(byte* text, byte* textEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1183])(text, textEnd); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[1183])((nint)text, (nint)textEnd); - #endif - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(byte* text, byte* textEnd) - { - byte* ret = FindRenderedTextEndNative(text, textEnd); - return ret; - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(byte* text) - { - byte* ret = FindRenderedTextEndNative(text, (byte*)(default)); - return ret; - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(byte* text) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, (byte*)(default))); - return ret; - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(byte* text, byte* textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, textEnd)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, textEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(ref byte text) - { - fixed (byte* ptext = &text) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(ref byte text) - { - fixed (byte* ptext = &text) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)(default))); - return ret; - } - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, textEnd)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(ReadOnlySpan text, byte* textEnd) - { - fixed (byte* ptext = text) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, textEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(ReadOnlySpan text) - { - fixed (byte* ptext = text) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(ReadOnlySpan text) - { - fixed (byte* ptext = text) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)(default))); - return ret; - } - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(ReadOnlySpan text, byte* textEnd) - { - fixed (byte* ptext = text) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, textEnd)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = FindRenderedTextEndNative(pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = FindRenderedTextEndNative(pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, (byte*)(default))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, textEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = FindRenderedTextEndNative(text, (byte*)ptextEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, (byte*)ptextEnd)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(byte* text, ReadOnlySpan textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = FindRenderedTextEndNative(text, (byte*)ptextEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(byte* text, ReadOnlySpan textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, (byte*)ptextEnd)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = FindRenderedTextEndNative(text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(ReadOnlySpan text, ReadOnlySpan textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(ReadOnlySpan text, ReadOnlySpan textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = FindRenderedTextEndNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(ref byte text, ReadOnlySpan textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(ref byte text, ReadOnlySpan textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = FindRenderedTextEndNative((byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(ReadOnlySpan text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(ReadOnlySpan text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(ReadOnlySpan text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = FindRenderedTextEndNative((byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(ReadOnlySpan text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = FindRenderedTextEndNative(pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, (byte*)ptextEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* FindRenderedTextEnd(string text, ReadOnlySpan textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - byte* ret = FindRenderedTextEndNative(pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string FindRenderedTextEndS(string text, ReadOnlySpan textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, (byte*)ptextEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderMouseCursorNative(Vector2 pos, float scale, ImGuiMouseCursor mouseCursor, uint colFill, uint colBorder, uint colShadow) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1184])(pos, scale, mouseCursor, colFill, colBorder, colShadow); - #else - ((delegate* unmanaged[Cdecl])funcTable[1184])(pos, scale, mouseCursor, colFill, colBorder, colShadow); - #endif - } - - /// - /// To be documented. - /// - public static void RenderMouseCursor(Vector2 pos, float scale, ImGuiMouseCursor mouseCursor, uint colFill, uint colBorder, uint colShadow) - { - RenderMouseCursorNative(pos, scale, mouseCursor, colFill, colBorder, colShadow); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderArrowNative(ImDrawList* drawList, Vector2 pos, uint col, ImGuiDir dir, float scale) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1185])(drawList, pos, col, dir, scale); - #else - ((delegate* unmanaged[Cdecl])funcTable[1185])((nint)drawList, pos, col, dir, scale); - #endif - } - - /// - /// To be documented. - /// - public static void RenderArrow(ImDrawListPtr drawList, Vector2 pos, uint col, ImGuiDir dir, float scale) - { - RenderArrowNative(drawList, pos, col, dir, scale); - } - - /// - /// To be documented. - /// - public static void RenderArrow(ImDrawListPtr drawList, Vector2 pos, uint col, ImGuiDir dir) - { - RenderArrowNative(drawList, pos, col, dir, (float)(1.0f)); - } - - /// - /// To be documented. - /// - public static void RenderArrow(ref ImDrawList drawList, Vector2 pos, uint col, ImGuiDir dir, float scale) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderArrowNative((ImDrawList*)pdrawList, pos, col, dir, scale); - } - } - - /// - /// To be documented. - /// - public static void RenderArrow(ref ImDrawList drawList, Vector2 pos, uint col, ImGuiDir dir) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderArrowNative((ImDrawList*)pdrawList, pos, col, dir, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderBulletNative(ImDrawList* drawList, Vector2 pos, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1186])(drawList, pos, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[1186])((nint)drawList, pos, col); - #endif - } - - /// - /// To be documented. - /// - public static void RenderBullet(ImDrawListPtr drawList, Vector2 pos, uint col) - { - RenderBulletNative(drawList, pos, col); - } - - /// - /// To be documented. - /// - public static void RenderBullet(ref ImDrawList drawList, Vector2 pos, uint col) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderBulletNative((ImDrawList*)pdrawList, pos, col); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderCheckMarkNative(ImDrawList* drawList, Vector2 pos, uint col, float sz) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1187])(drawList, pos, col, sz); - #else - ((delegate* unmanaged[Cdecl])funcTable[1187])((nint)drawList, pos, col, sz); - #endif - } - - /// - /// To be documented. - /// - public static void RenderCheckMark(ImDrawListPtr drawList, Vector2 pos, uint col, float sz) - { - RenderCheckMarkNative(drawList, pos, col, sz); - } - - /// - /// To be documented. - /// - public static void RenderCheckMark(ref ImDrawList drawList, Vector2 pos, uint col, float sz) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderCheckMarkNative((ImDrawList*)pdrawList, pos, col, sz); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderArrowPointingAtNative(ImDrawList* drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1188])(drawList, pos, halfSz, direction, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[1188])((nint)drawList, pos, halfSz, direction, col); - #endif - } - - /// - /// To be documented. - /// - public static void RenderArrowPointingAt(ImDrawListPtr drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col) - { - RenderArrowPointingAtNative(drawList, pos, halfSz, direction, col); - } - - /// - /// To be documented. - /// - public static void RenderArrowPointingAt(ref ImDrawList drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderArrowPointingAtNative((ImDrawList*)pdrawList, pos, halfSz, direction, col); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderArrowDockMenuNative(ImDrawList* drawList, Vector2 pMin, float sz, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1189])(drawList, pMin, sz, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[1189])((nint)drawList, pMin, sz, col); - #endif - } - - /// - /// To be documented. - /// - public static void RenderArrowDockMenu(ImDrawListPtr drawList, Vector2 pMin, float sz, uint col) - { - RenderArrowDockMenuNative(drawList, pMin, sz, col); - } - - /// - /// To be documented. - /// - public static void RenderArrowDockMenu(ref ImDrawList drawList, Vector2 pMin, float sz, uint col) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderArrowDockMenuNative((ImDrawList*)pdrawList, pMin, sz, col); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderRectFilledRangeHNative(ImDrawList* drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1190])(drawList, rect, col, xStartNorm, xEndNorm, rounding); - #else - ((delegate* unmanaged[Cdecl])funcTable[1190])((nint)drawList, rect, col, xStartNorm, xEndNorm, rounding); - #endif - } - - /// - /// To be documented. - /// - public static void RenderRectFilledRangeH(ImDrawListPtr drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) - { - RenderRectFilledRangeHNative(drawList, rect, col, xStartNorm, xEndNorm, rounding); - } - - /// - /// To be documented. - /// - public static void RenderRectFilledRangeH(ref ImDrawList drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderRectFilledRangeHNative((ImDrawList*)pdrawList, rect, col, xStartNorm, xEndNorm, rounding); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderRectFilledWithHoleNative(ImDrawList* drawList, ImRect outer, ImRect inner, uint col, float rounding) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1191])(drawList, outer, inner, col, rounding); - #else - ((delegate* unmanaged[Cdecl])funcTable[1191])((nint)drawList, outer, inner, col, rounding); - #endif - } - - /// - /// To be documented. - /// - public static void RenderRectFilledWithHole(ImDrawListPtr drawList, ImRect outer, ImRect inner, uint col, float rounding) - { - RenderRectFilledWithHoleNative(drawList, outer, inner, col, rounding); - } - - /// - /// To be documented. - /// - public static void RenderRectFilledWithHole(ref ImDrawList drawList, ImRect outer, ImRect inner, uint col, float rounding) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderRectFilledWithHoleNative((ImDrawList*)pdrawList, outer, inner, col, rounding); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawFlags CalcRoundingFlagsForRectInRectNative(ImRect rIn, ImRect rOuter, float threshold) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1192])(rIn, rOuter, threshold); - #else - return (ImDrawFlags)((delegate* unmanaged[Cdecl])funcTable[1192])(rIn, rOuter, threshold); - #endif - } - - /// - /// To be documented. - /// - public static ImDrawFlags CalcRoundingFlagsForRectInRect(ImRect rIn, ImRect rOuter, float threshold) - { - ImDrawFlags ret = CalcRoundingFlagsForRectInRectNative(rIn, rOuter, threshold); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TextExNative(byte* text, byte* textEnd, ImGuiTextFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1193])(text, textEnd, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[1193])((nint)text, (nint)textEnd, flags); - #endif - } - - /// - /// To be documented. - /// - public static void TextEx(byte* text, byte* textEnd, ImGuiTextFlags flags) - { - TextExNative(text, textEnd, flags); - } - - /// - /// To be documented. - /// - public static void TextEx(byte* text, byte* textEnd) - { - TextExNative(text, textEnd, (ImGuiTextFlags)(0)); - } - - /// - /// To be documented. - /// - public static void TextEx(byte* text) - { - TextExNative(text, (byte*)(default), (ImGuiTextFlags)(0)); - } - - /// - /// To be documented. - /// - public static void TextEx(byte* text, ImGuiTextFlags flags) - { - TextExNative(text, (byte*)(default), flags); - } - - /// - /// To be documented. - /// - public static void TextEx(ref byte text, byte* textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptext = &text) - { - TextExNative((byte*)ptext, textEnd, flags); - } - } - - /// - /// To be documented. - /// - public static void TextEx(ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - TextExNative((byte*)ptext, textEnd, (ImGuiTextFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void TextEx(ref byte text) - { - fixed (byte* ptext = &text) - { - TextExNative((byte*)ptext, (byte*)(default), (ImGuiTextFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void TextEx(ref byte text, ImGuiTextFlags flags) - { - fixed (byte* ptext = &text) - { - TextExNative((byte*)ptext, (byte*)(default), flags); - } - } - - /// - /// To be documented. - /// - public static void TextEx(ReadOnlySpan text, byte* textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptext = text) - { - TextExNative((byte*)ptext, textEnd, flags); - } - } - - /// - /// To be documented. - /// - public static void TextEx(ReadOnlySpan text, byte* textEnd) - { - fixed (byte* ptext = text) - { - TextExNative((byte*)ptext, textEnd, (ImGuiTextFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void TextEx(ReadOnlySpan text) - { - fixed (byte* ptext = text) - { - TextExNative((byte*)ptext, (byte*)(default), (ImGuiTextFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void TextEx(ReadOnlySpan text, ImGuiTextFlags flags) - { - fixed (byte* ptext = text) - { - TextExNative((byte*)ptext, (byte*)(default), flags); - } - } - - /// - /// To be documented. - /// - public static void TextEx(string text, byte* textEnd, ImGuiTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(pStr0, textEnd, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void TextEx(string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(pStr0, textEnd, (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void TextEx(string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(pStr0, (byte*)(default), (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void TextEx(string text, ImGuiTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void TextEx(byte* text, ref byte textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptextEnd = &textEnd) - { - TextExNative(text, (byte*)ptextEnd, flags); - } - } - - /// - /// To be documented. - /// - public static void TextEx(byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - TextExNative(text, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void TextEx(byte* text, ReadOnlySpan textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptextEnd = textEnd) - { - TextExNative(text, (byte*)ptextEnd, flags); - } - } - - /// - /// To be documented. - /// - public static void TextEx(byte* text, ReadOnlySpan textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - TextExNative(text, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void TextEx(byte* text, string textEnd, ImGuiTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(text, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void TextEx(byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(text, pStr0, (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void TextEx(ref byte text, ref byte textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, flags); - } - } - } - - /// - /// To be documented. - /// - public static void TextEx(ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void TextEx(ReadOnlySpan text, ReadOnlySpan textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, flags); - } - } - } - - /// - /// To be documented. - /// - public static void TextEx(ReadOnlySpan text, ReadOnlySpan textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void TextEx(string text, string textEnd, ImGuiTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - TextExNative(pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void TextEx(string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - TextExNative(pStr0, pStr1, (ImGuiTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void TextEx(ref byte text, ReadOnlySpan textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, flags); - } - } - } - - /// - /// To be documented. - /// - public static void TextEx(ref byte text, ReadOnlySpan textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void TextEx(ref byte text, string textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative((byte*)ptext, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void TextEx(ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative((byte*)ptext, pStr0, (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void TextEx(ReadOnlySpan text, ref byte textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, flags); - } - } - } - - /// - /// To be documented. - /// - public static void TextEx(ReadOnlySpan text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void TextEx(ReadOnlySpan text, string textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative((byte*)ptext, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void TextEx(ReadOnlySpan text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative((byte*)ptext, pStr0, (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void TextEx(string text, ref byte textEnd, ImGuiTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - TextExNative(pStr0, (byte*)ptextEnd, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void TextEx(string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - TextExNative(pStr0, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void TextEx(string text, ReadOnlySpan textEnd, ImGuiTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - TextExNative(pStr0, (byte*)ptextEnd, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void TextEx(string text, ReadOnlySpan textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - TextExNative(pStr0, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ButtonExNative(byte* label, Vector2 sizeArg, ImGuiButtonFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1194])(label, sizeArg, flags); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1194])((nint)label, sizeArg, flags); - #endif - } - - /// - /// To be documented. - /// - public static bool ButtonEx(byte* label, Vector2 sizeArg, ImGuiButtonFlags flags) - { - byte ret = ButtonExNative(label, sizeArg, flags); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ButtonEx(byte* label, Vector2 sizeArg) - { - byte ret = ButtonExNative(label, sizeArg, (ImGuiButtonFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ButtonEx(byte* label) - { - byte ret = ButtonExNative(label, (Vector2)(new Vector2(0,0)), (ImGuiButtonFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ButtonEx(byte* label, ImGuiButtonFlags flags) - { - byte ret = ButtonExNative(label, (Vector2)(new Vector2(0,0)), flags); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ButtonEx(ref byte label, Vector2 sizeArg, ImGuiButtonFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = ButtonExNative((byte*)plabel, sizeArg, flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ButtonEx(ref byte label, Vector2 sizeArg) - { - fixed (byte* plabel = &label) - { - byte ret = ButtonExNative((byte*)plabel, sizeArg, (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ButtonEx(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = ButtonExNative((byte*)plabel, (Vector2)(new Vector2(0,0)), (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ButtonEx(ref byte label, ImGuiButtonFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = ButtonExNative((byte*)plabel, (Vector2)(new Vector2(0,0)), flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ButtonEx(ReadOnlySpan label, Vector2 sizeArg, ImGuiButtonFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = ButtonExNative((byte*)plabel, sizeArg, flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ButtonEx(ReadOnlySpan label, Vector2 sizeArg) - { - fixed (byte* plabel = label) - { - byte ret = ButtonExNative((byte*)plabel, sizeArg, (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - /// /// To be documented. /// @@ -3631,18 +400,6 @@ namespace Dalamud.Bindings.ImGui return ret != 0; } - /// - /// To be documented. - /// - public static bool ScrollbarEx(ImRect bb, uint id, ImGuiAxis axis, ref long pScrollV, long availV, long contentsV, ImDrawFlags flags) - { - fixed (long* ppScrollV = &pScrollV) - { - byte ret = ScrollbarExNative(bb, id, axis, (long*)ppScrollV, availV, contentsV, flags); - return ret != 0; - } - } - /// /// To be documented. /// @@ -3944,81 +701,6 @@ namespace Dalamud.Bindings.ImGui return ret != 0; } - /// - /// To be documented. - /// - public static bool CheckboxFlags(byte* label, ref long flags, long flagsValue) - { - fixed (long* pflags = &flags) - { - byte ret = CheckboxFlagsNative(label, (long*)pflags, flagsValue); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool CheckboxFlags(ref byte label, ref long flags, long flagsValue) - { - fixed (byte* plabel = &label) - { - fixed (long* pflags = &flags) - { - byte ret = CheckboxFlagsNative((byte*)plabel, (long*)pflags, flagsValue); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool CheckboxFlags(ReadOnlySpan label, ref long flags, long flagsValue) - { - fixed (byte* plabel = label) - { - fixed (long* pflags = &flags) - { - byte ret = CheckboxFlagsNative((byte*)plabel, (long*)pflags, flagsValue); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool CheckboxFlags(string label, ref long flags, long flagsValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pflags = &flags) - { - byte ret = CheckboxFlagsNative(pStr0, (long*)pflags, flagsValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - /// /// To be documented. /// @@ -4095,81 +777,6 @@ namespace Dalamud.Bindings.ImGui return ret != 0; } - /// - /// To be documented. - /// - public static bool CheckboxFlags(byte* label, ref ulong flags, ulong flagsValue) - { - fixed (ulong* pflags = &flags) - { - byte ret = CheckboxFlagsNative(label, (ulong*)pflags, flagsValue); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool CheckboxFlags(ref byte label, ref ulong flags, ulong flagsValue) - { - fixed (byte* plabel = &label) - { - fixed (ulong* pflags = &flags) - { - byte ret = CheckboxFlagsNative((byte*)plabel, (ulong*)pflags, flagsValue); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool CheckboxFlags(ReadOnlySpan label, ref ulong flags, ulong flagsValue) - { - fixed (byte* plabel = label) - { - fixed (ulong* pflags = &flags) - { - byte ret = CheckboxFlagsNative((byte*)plabel, (ulong*)pflags, flagsValue); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool CheckboxFlags(string label, ref ulong flags, ulong flagsValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pflags = &flags) - { - byte ret = CheckboxFlagsNative(pStr0, (ulong*)pflags, flagsValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - /// /// To be documented. /// @@ -5029,5 +1636,3392 @@ namespace Dalamud.Bindings.ImGui } } } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, string label, string labelEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = TreeNodeBehaviorNative(id, flags, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ref byte label, ReadOnlySpan labelEnd) + { + fixed (byte* plabel = &label) + { + fixed (byte* plabelEnd = labelEnd) + { + byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)plabelEnd); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ref byte label, string labelEnd) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ReadOnlySpan label, ref byte labelEnd) + { + fixed (byte* plabel = label) + { + fixed (byte* plabelEnd = &labelEnd) + { + byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)plabelEnd); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ReadOnlySpan label, string labelEnd) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, string label, ref byte labelEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelEnd = &labelEnd) + { + byte ret = TreeNodeBehaviorNative(id, flags, pStr0, (byte*)plabelEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, string label, ReadOnlySpan labelEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelEnd = labelEnd) + { + byte ret = TreeNodeBehaviorNative(id, flags, pStr0, (byte*)plabelEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TreeNodeBehaviorIsOpenNative(uint id, ImGuiTreeNodeFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1213])(id, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1213])(id, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehaviorIsOpen(uint id, ImGuiTreeNodeFlags flags) + { + byte ret = TreeNodeBehaviorIsOpenNative(id, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TreeNodeBehaviorIsOpen(uint id) + { + byte ret = TreeNodeBehaviorIsOpenNative(id, (ImGuiTreeNodeFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TreePushOverrideIDNative(uint id) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1214])(id); + #else + ((delegate* unmanaged[Cdecl])funcTable[1214])(id); + #endif + } + + /// + /// To be documented. + /// + public static void TreePushOverrideID(uint id) + { + TreePushOverrideIDNative(id); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiDataTypeInfo* DataTypeGetInfoNative(ImGuiDataType dataType) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1215])(dataType); + #else + return (ImGuiDataTypeInfo*)((delegate* unmanaged[Cdecl])funcTable[1215])(dataType); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiDataTypeInfoPtr DataTypeGetInfo(ImGuiDataType dataType) + { + ImGuiDataTypeInfoPtr ret = DataTypeGetInfoNative(dataType); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DataTypeApplyOpNative(ImGuiDataType dataType, int op, void* output, void* arg1, void* arg2) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1216])(dataType, op, output, arg1, arg2); + #else + ((delegate* unmanaged[Cdecl])funcTable[1216])(dataType, op, (nint)output, (nint)arg1, (nint)arg2); + #endif + } + + /// + /// To be documented. + /// + public static void DataTypeApplyOp(ImGuiDataType dataType, int op, void* output, void* arg1, void* arg2) + { + DataTypeApplyOpNative(dataType, op, output, arg1, arg2); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DataTypeApplyFromTextNative(byte* buf, ImGuiDataType dataType, void* pData, byte* format) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1217])(buf, dataType, pData, format); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1217])((nint)buf, dataType, (nint)pData, (nint)format); + #endif + } + + /// + /// To be documented. + /// + public static bool DataTypeApplyFromText(byte* buf, ImGuiDataType dataType, void* pData, byte* format) + { + byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, format); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DataTypeApplyFromText(ref byte buf, ImGuiDataType dataType, void* pData, byte* format) + { + fixed (byte* pbuf = &buf) + { + byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, format); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DataTypeApplyFromText(ReadOnlySpan buf, ImGuiDataType dataType, void* pData, byte* format) + { + fixed (byte* pbuf = buf) + { + byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, format); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DataTypeApplyFromText(string buf, ImGuiDataType dataType, void* pData, byte* format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Utils.GetByteCountUTF8(buf); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DataTypeApplyFromTextNative(pStr0, dataType, pData, format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DataTypeApplyFromText(byte* buf, ImGuiDataType dataType, void* pData, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, (byte*)pformat); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DataTypeApplyFromText(byte* buf, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, (byte*)pformat); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DataTypeApplyFromText(byte* buf, ImGuiDataType dataType, void* pData, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DataTypeApplyFromText(ref byte buf, ImGuiDataType dataType, void* pData, ref byte format) + { + fixed (byte* pbuf = &buf) + { + fixed (byte* pformat = &format) + { + byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, (byte*)pformat); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DataTypeApplyFromText(ReadOnlySpan buf, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + fixed (byte* pbuf = buf) + { + fixed (byte* pformat = format) + { + byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, (byte*)pformat); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DataTypeApplyFromText(string buf, ImGuiDataType dataType, void* pData, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Utils.GetByteCountUTF8(buf); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DataTypeApplyFromTextNative(pStr0, dataType, pData, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DataTypeApplyFromText(ref byte buf, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + fixed (byte* pbuf = &buf) + { + fixed (byte* pformat = format) + { + byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, (byte*)pformat); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DataTypeApplyFromText(ref byte buf, ImGuiDataType dataType, void* pData, string format) + { + fixed (byte* pbuf = &buf) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DataTypeApplyFromText(ReadOnlySpan buf, ImGuiDataType dataType, void* pData, ref byte format) + { + fixed (byte* pbuf = buf) + { + fixed (byte* pformat = &format) + { + byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, (byte*)pformat); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DataTypeApplyFromText(ReadOnlySpan buf, ImGuiDataType dataType, void* pData, string format) + { + fixed (byte* pbuf = buf) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DataTypeApplyFromText(string buf, ImGuiDataType dataType, void* pData, ref byte format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Utils.GetByteCountUTF8(buf); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = &format) + { + byte ret = DataTypeApplyFromTextNative(pStr0, dataType, pData, (byte*)pformat); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DataTypeApplyFromText(string buf, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Utils.GetByteCountUTF8(buf); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + byte ret = DataTypeApplyFromTextNative(pStr0, dataType, pData, (byte*)pformat); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int DataTypeCompareNative(ImGuiDataType dataType, void* arg1, void* arg2) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1218])(dataType, arg1, arg2); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[1218])(dataType, (nint)arg1, (nint)arg2); + #endif + } + + /// + /// To be documented. + /// + public static int DataTypeCompare(ImGuiDataType dataType, void* arg1, void* arg2) + { + int ret = DataTypeCompareNative(dataType, arg1, arg2); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DataTypeClampNative(ImGuiDataType dataType, void* pData, void* pMin, void* pMax) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1219])(dataType, pData, pMin, pMax); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1219])(dataType, (nint)pData, (nint)pMin, (nint)pMax); + #endif + } + + /// + /// To be documented. + /// + public static bool DataTypeClamp(ImGuiDataType dataType, void* pData, void* pMin, void* pMax) + { + byte ret = DataTypeClampNative(dataType, pData, pMin, pMax); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TempInputScalarNative(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1220])(bb, id, label, dataType, pData, format, pClampMin, pClampMax); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1220])(bb, id, (nint)label, dataType, (nint)pData, (nint)format, (nint)pClampMin, (nint)pClampMax); + #endif + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) + { + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, format, pClampMin, pClampMax); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin) + { + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, format, pClampMin, (void*)(default)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, byte* format) + { + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, format, (void*)(default), (void*)(default)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) + { + fixed (byte* plabel = &label) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, pClampMin, pClampMax); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin) + { + fixed (byte* plabel = &label) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, pClampMin, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, (void*)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) + { + fixed (byte* plabel = label) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, pClampMin, pClampMax); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin) + { + fixed (byte* plabel = label) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, pClampMin, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, (void*)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, format, pClampMin, pClampMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, format, pClampMin, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, byte* format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, format, (void*)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin, void* pClampMax) + { + fixed (byte* pformat = &format) + { + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, pClampMin, pClampMax); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin) + { + fixed (byte* pformat = &format) + { + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, void* pClampMin, void* pClampMax) + { + fixed (byte* pformat = format) + { + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, pClampMin, pClampMax); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, void* pClampMin) + { + fixed (byte* pformat = format) + { + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, string format, void* pClampMin, void* pClampMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, pStr0, pClampMin, pClampMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, string format, void* pClampMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, pStr0, pClampMin, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, pStr0, (void*)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin, void* pClampMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, pClampMax); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, void* pClampMin, void* pClampMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, pClampMax); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, void* pClampMin) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, string format, void* pClampMin, void* pClampMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, pStr1, pClampMin, pClampMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, string format, void* pClampMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, pStr1, pClampMin, (void*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, pStr1, (void*)(default), (void*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, void* pClampMin, void* pClampMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, pClampMax); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, void* pClampMin) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, string format, void* pClampMin, void* pClampMax) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, pClampMin, pClampMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, string format, void* pClampMin) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, pClampMin, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, string format) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, (void*)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin, void* pClampMax) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, pClampMax); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, string format, void* pClampMin, void* pClampMax) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, pClampMin, pClampMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, string format, void* pClampMin) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, pClampMin, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, string format) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, (void*)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin, void* pClampMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = &format) + { + byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, pClampMin, pClampMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = &format) + { + byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ref byte format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = &format) + { + byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, void* pClampMin, void* pClampMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, pClampMin, pClampMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, void* pClampMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TempInputIsActiveNative(uint id) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1221])(id); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1221])(id); + #endif + } + + /// + /// To be documented. + /// + public static bool TempInputIsActive(uint id) + { + byte ret = TempInputIsActiveNative(id); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImGuiInputTextState* GetInputTextStateNative(uint id) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1222])(id); + #else + return (ImGuiInputTextState*)((delegate* unmanaged[Cdecl])funcTable[1222])(id); + #endif + } + + /// + /// To be documented. + /// + public static ImGuiInputTextStatePtr GetInputTextState(uint id) + { + ImGuiInputTextStatePtr ret = GetInputTextStateNative(id); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void Custom_StbTextMakeUndoReplaceNative(ImGuiInputTextState* str, int where, int oldLength, int newLength) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1223])(str, where, oldLength, newLength); + #else + ((delegate* unmanaged[Cdecl])funcTable[1223])((nint)str, where, oldLength, newLength); + #endif + } + + /// + /// To be documented. + /// + public static void Custom_StbTextMakeUndoReplace(ImGuiInputTextStatePtr str, int where, int oldLength, int newLength) + { + Custom_StbTextMakeUndoReplaceNative(str, where, oldLength, newLength); + } + + /// + /// To be documented. + /// + public static void Custom_StbTextMakeUndoReplace(ref ImGuiInputTextState str, int where, int oldLength, int newLength) + { + fixed (ImGuiInputTextState* pstr = &str) + { + Custom_StbTextMakeUndoReplaceNative((ImGuiInputTextState*)pstr, where, oldLength, newLength); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void Custom_StbTextUndoNative(ImGuiInputTextState* str) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1224])(str); + #else + ((delegate* unmanaged[Cdecl])funcTable[1224])((nint)str); + #endif + } + + /// + /// To be documented. + /// + public static void Custom_StbTextUndo(ImGuiInputTextStatePtr str) + { + Custom_StbTextUndoNative(str); + } + + /// + /// To be documented. + /// + public static void Custom_StbTextUndo(ref ImGuiInputTextState str) + { + fixed (ImGuiInputTextState* pstr = &str) + { + Custom_StbTextUndoNative((ImGuiInputTextState*)pstr); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ColorTooltipNative(byte* text, float* col, ImGuiColorEditFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1225])(text, col, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[1225])((nint)text, (nint)col, flags); + #endif + } + + /// + /// To be documented. + /// + public static void ColorTooltip(byte* text, float* col, ImGuiColorEditFlags flags) + { + ColorTooltipNative(text, col, flags); + } + + /// + /// To be documented. + /// + public static void ColorTooltip(ref byte text, float* col, ImGuiColorEditFlags flags) + { + fixed (byte* ptext = &text) + { + ColorTooltipNative((byte*)ptext, col, flags); + } + } + + /// + /// To be documented. + /// + public static void ColorTooltip(ReadOnlySpan text, float* col, ImGuiColorEditFlags flags) + { + fixed (byte* ptext = text) + { + ColorTooltipNative((byte*)ptext, col, flags); + } + } + + /// + /// To be documented. + /// + public static void ColorTooltip(string text, float* col, ImGuiColorEditFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColorTooltipNative(pStr0, col, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColorTooltip(byte* text, ref float col, ImGuiColorEditFlags flags) + { + fixed (float* pcol = &col) + { + ColorTooltipNative(text, (float*)pcol, flags); + } + } + + /// + /// To be documented. + /// + public static void ColorTooltip(ref byte text, ref float col, ImGuiColorEditFlags flags) + { + fixed (byte* ptext = &text) + { + fixed (float* pcol = &col) + { + ColorTooltipNative((byte*)ptext, (float*)pcol, flags); + } + } + } + + /// + /// To be documented. + /// + public static void ColorTooltip(ReadOnlySpan text, ref float col, ImGuiColorEditFlags flags) + { + fixed (byte* ptext = text) + { + fixed (float* pcol = &col) + { + ColorTooltipNative((byte*)ptext, (float*)pcol, flags); + } + } + } + + /// + /// To be documented. + /// + public static void ColorTooltip(string text, ref float col, ImGuiColorEditFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pcol = &col) + { + ColorTooltipNative(pStr0, (float*)pcol, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ColorEditOptionsPopupNative(float* col, ImGuiColorEditFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1226])(col, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[1226])((nint)col, flags); + #endif + } + + /// + /// To be documented. + /// + public static void ColorEditOptionsPopup(float* col, ImGuiColorEditFlags flags) + { + ColorEditOptionsPopupNative(col, flags); + } + + /// + /// To be documented. + /// + public static void ColorEditOptionsPopup(ref float col, ImGuiColorEditFlags flags) + { + fixed (float* pcol = &col) + { + ColorEditOptionsPopupNative((float*)pcol, flags); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ColorPickerOptionsPopupNative(float* refCol, ImGuiColorEditFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1227])(refCol, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[1227])((nint)refCol, flags); + #endif + } + + /// + /// To be documented. + /// + public static void ColorPickerOptionsPopup(float* refCol, ImGuiColorEditFlags flags) + { + ColorPickerOptionsPopupNative(refCol, flags); + } + + /// + /// To be documented. + /// + public static void ColorPickerOptionsPopup(ref float refCol, ImGuiColorEditFlags flags) + { + fixed (float* prefCol = &refCol) + { + ColorPickerOptionsPopupNative((float*)prefCol, flags); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int PlotExNative(ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl], void*, int, int, byte*, float, float, Vector2, float>, void*, int, int, byte*, float, float, Vector2, int>)funcTable[1228])(plotType, label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[1228])(plotType, (nint)label, (nint)valuesGetter, (nint)data, valuesCount, valuesOffset, (nint)overlayText, scaleMin, scaleMax, frameSize); + #endif + } + + /// + /// To be documented. + /// + public static int PlotEx(ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + int ret = PlotExNative(plotType, label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); + return ret; + } + + /// + /// To be documented. + /// + public static int PlotEx(ImGuiPlotType plotType, ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + fixed (byte* plabel = &label) + { + int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); + return ret; + } + } + + /// + /// To be documented. + /// + public static int PlotEx(ImGuiPlotType plotType, ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + fixed (byte* plabel = label) + { + int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); + return ret; + } + } + + /// + /// To be documented. + /// + public static int PlotEx(ImGuiPlotType plotType, string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = PlotExNative(plotType, pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int PlotEx(ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + fixed (byte* poverlayText = &overlayText) + { + int ret = PlotExNative(plotType, label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); + return ret; + } + } + + /// + /// To be documented. + /// + public static int PlotEx(ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + fixed (byte* poverlayText = overlayText) + { + int ret = PlotExNative(plotType, label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); + return ret; + } + } + + /// + /// To be documented. + /// + public static int PlotEx(ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = PlotExNative(plotType, label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, frameSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int PlotEx(ImGuiPlotType plotType, ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int PlotEx(ImGuiPlotType plotType, ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = overlayText) + { + int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int PlotEx(ImGuiPlotType plotType, string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (overlayText != null) + { + pStrSize1 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + int ret = PlotExNative(plotType, pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, frameSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int PlotEx(ImGuiPlotType plotType, ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = overlayText) + { + int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int PlotEx(ImGuiPlotType plotType, ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, frameSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int PlotEx(ImGuiPlotType plotType, ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + fixed (byte* plabel = label) + { + fixed (byte* poverlayText = &overlayText) + { + int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int PlotEx(ImGuiPlotType plotType, ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, frameSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int PlotEx(ImGuiPlotType plotType, string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* poverlayText = &overlayText) + { + int ret = PlotExNative(plotType, pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int PlotEx(ImGuiPlotType plotType, string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 frameSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* poverlayText = overlayText) + { + int ret = PlotExNative(plotType, pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShadeVertsLinearColorGradientKeepAlphaNative(ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1229])(drawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); + #else + ((delegate* unmanaged[Cdecl])funcTable[1229])((nint)drawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); + #endif + } + + /// + /// To be documented. + /// + public static void ShadeVertsLinearColorGradientKeepAlpha(ImDrawListPtr drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) + { + ShadeVertsLinearColorGradientKeepAlphaNative(drawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); + } + + /// + /// To be documented. + /// + public static void ShadeVertsLinearColorGradientKeepAlpha(ref ImDrawList drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ShadeVertsLinearColorGradientKeepAlphaNative((ImDrawList*)pdrawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShadeVertsLinearUVNative(ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, byte clamp) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1230])(drawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp); + #else + ((delegate* unmanaged[Cdecl])funcTable[1230])((nint)drawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp); + #endif + } + + /// + /// To be documented. + /// + public static void ShadeVertsLinearUV(ImDrawListPtr drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, bool clamp) + { + ShadeVertsLinearUVNative(drawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void ShadeVertsLinearUV(ref ImDrawList drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, bool clamp) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ShadeVertsLinearUVNative((ImDrawList*)pdrawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GcCompactTransientMiscBuffersNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1231])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1231])(); + #endif + } + + /// + /// To be documented. + /// + public static void GcCompactTransientMiscBuffers() + { + GcCompactTransientMiscBuffersNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GcCompactTransientWindowBuffersNative(ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1232])(window); + #else + ((delegate* unmanaged[Cdecl])funcTable[1232])((nint)window); + #endif + } + + /// + /// To be documented. + /// + public static void GcCompactTransientWindowBuffers(ImGuiWindowPtr window) + { + GcCompactTransientWindowBuffersNative(window); + } + + /// + /// To be documented. + /// + public static void GcCompactTransientWindowBuffers(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + GcCompactTransientWindowBuffersNative((ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GcAwakeTransientWindowBuffersNative(ImGuiWindow* window) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1233])(window); + #else + ((delegate* unmanaged[Cdecl])funcTable[1233])((nint)window); + #endif + } + + /// + /// To be documented. + /// + public static void GcAwakeTransientWindowBuffers(ImGuiWindowPtr window) + { + GcAwakeTransientWindowBuffersNative(window); + } + + /// + /// To be documented. + /// + public static void GcAwakeTransientWindowBuffers(ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + GcAwakeTransientWindowBuffersNative((ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugLogNative(byte* fmt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1234])(fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[1234])((nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static void DebugLog(byte* fmt) + { + DebugLogNative(fmt); + } + + /// + /// To be documented. + /// + public static void DebugLog(ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + DebugLogNative((byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void DebugLog(ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + DebugLogNative((byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void DebugLog(string fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugLogNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugLogVNative(byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1235])(fmt, args); + #else + ((delegate* unmanaged[Cdecl])funcTable[1235])((nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static void DebugLogV(byte* fmt, nuint args) + { + DebugLogVNative(fmt, args); + } + + /// + /// To be documented. + /// + public static void DebugLogV(ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + DebugLogVNative((byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void DebugLogV(ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + DebugLogVNative((byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void DebugLogV(string fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugLogVNative(pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ErrorCheckEndFrameRecoverNative(ImGuiErrorLogCallback logCallback, void* userData) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, void>)funcTable[1236])((delegate*)Utils.GetFunctionPointerForDelegate(logCallback), userData); + #else + ((delegate* unmanaged[Cdecl])funcTable[1236])((nint)Utils.GetFunctionPointerForDelegate(logCallback), (nint)userData); + #endif + } + + /// + /// To be documented. + /// + public static void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback logCallback, void* userData) + { + ErrorCheckEndFrameRecoverNative(logCallback, userData); + } + + /// + /// To be documented. + /// + public static void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback logCallback) + { + ErrorCheckEndFrameRecoverNative(logCallback, (void*)(default)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ErrorCheckEndWindowRecoverNative(ImGuiErrorLogCallback logCallback, void* userData) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, void>)funcTable[1237])((delegate*)Utils.GetFunctionPointerForDelegate(logCallback), userData); + #else + ((delegate* unmanaged[Cdecl])funcTable[1237])((nint)Utils.GetFunctionPointerForDelegate(logCallback), (nint)userData); + #endif + } + + /// + /// To be documented. + /// + public static void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback logCallback, void* userData) + { + ErrorCheckEndWindowRecoverNative(logCallback, userData); + } + + /// + /// To be documented. + /// + public static void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback logCallback) + { + ErrorCheckEndWindowRecoverNative(logCallback, (void*)(default)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugDrawItemRectNative(uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1238])(col); + #else + ((delegate* unmanaged[Cdecl])funcTable[1238])(col); + #endif + } + + /// + /// To be documented. + /// + public static void DebugDrawItemRect(uint col) + { + DebugDrawItemRectNative(col); + } + + /// + /// To be documented. + /// + public static void DebugDrawItemRect() + { + DebugDrawItemRectNative((uint)(4278190335)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugStartItemPickerNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1239])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[1239])(); + #endif + } + + /// + /// To be documented. + /// + public static void DebugStartItemPicker() + { + DebugStartItemPickerNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShowFontAtlasNative(ImFontAtlas* atlas) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1240])(atlas); + #else + ((delegate* unmanaged[Cdecl])funcTable[1240])((nint)atlas); + #endif + } + + /// + /// To be documented. + /// + public static void ShowFontAtlas(ImFontAtlasPtr atlas) + { + ShowFontAtlasNative(atlas); + } + + /// + /// To be documented. + /// + public static void ShowFontAtlas(ref ImFontAtlas atlas) + { + fixed (ImFontAtlas* patlas = &atlas) + { + ShowFontAtlasNative((ImFontAtlas*)patlas); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugHookIdInfoNative(uint id, ImGuiDataType dataType, void* dataId, void* dataIdEnd) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1241])(id, dataType, dataId, dataIdEnd); + #else + ((delegate* unmanaged[Cdecl])funcTable[1241])(id, dataType, (nint)dataId, (nint)dataIdEnd); + #endif + } + + /// + /// To be documented. + /// + public static void DebugHookIdInfo(uint id, ImGuiDataType dataType, void* dataId, void* dataIdEnd) + { + DebugHookIdInfoNative(id, dataType, dataId, dataIdEnd); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugNodeColumnsNative(ImGuiOldColumns* columns) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1242])(columns); + #else + ((delegate* unmanaged[Cdecl])funcTable[1242])((nint)columns); + #endif + } + + /// + /// To be documented. + /// + public static void DebugNodeColumns(ImGuiOldColumnsPtr columns) + { + DebugNodeColumnsNative(columns); + } + + /// + /// To be documented. + /// + public static void DebugNodeColumns(ref ImGuiOldColumns columns) + { + fixed (ImGuiOldColumns* pcolumns = &columns) + { + DebugNodeColumnsNative((ImGuiOldColumns*)pcolumns); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugNodeDockNodeNative(ImGuiDockNode* node, byte* label) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1243])(node, label); + #else + ((delegate* unmanaged[Cdecl])funcTable[1243])((nint)node, (nint)label); + #endif + } + + /// + /// To be documented. + /// + public static void DebugNodeDockNode(ImGuiDockNodePtr node, byte* label) + { + DebugNodeDockNodeNative(node, label); + } + + /// + /// To be documented. + /// + public static void DebugNodeDockNode(ref ImGuiDockNode node, byte* label) + { + fixed (ImGuiDockNode* pnode = &node) + { + DebugNodeDockNodeNative((ImGuiDockNode*)pnode, label); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDockNode(ImGuiDockNodePtr node, ref byte label) + { + fixed (byte* plabel = &label) + { + DebugNodeDockNodeNative(node, (byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDockNode(ImGuiDockNodePtr node, ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + DebugNodeDockNodeNative(node, (byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDockNode(ImGuiDockNodePtr node, string label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugNodeDockNodeNative(node, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDockNode(ref ImGuiDockNode node, ref byte label) + { + fixed (ImGuiDockNode* pnode = &node) + { + fixed (byte* plabel = &label) + { + DebugNodeDockNodeNative((ImGuiDockNode*)pnode, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDockNode(ref ImGuiDockNode node, ReadOnlySpan label) + { + fixed (ImGuiDockNode* pnode = &node) + { + fixed (byte* plabel = label) + { + DebugNodeDockNodeNative((ImGuiDockNode*)pnode, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDockNode(ref ImGuiDockNode node, string label) + { + fixed (ImGuiDockNode* pnode = &node) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugNodeDockNodeNative((ImGuiDockNode*)pnode, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DebugNodeDrawListNative(ImGuiWindow* window, ImGuiViewportP* viewport, ImDrawList* drawList, byte* label) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1244])(window, viewport, drawList, label); + #else + ((delegate* unmanaged[Cdecl])funcTable[1244])((nint)window, (nint)viewport, (nint)drawList, (nint)label); + #endif + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, byte* label) + { + DebugNodeDrawListNative(window, viewport, drawList, label); + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, byte* label) + { + fixed (ImGuiWindow* pwindow = &window) + { + DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, drawList, label); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, byte* label) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, drawList, label); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, byte* label) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, drawList, label); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, byte* label) + { + fixed (ImDrawList* pdrawList = &drawList) + { + DebugNodeDrawListNative(window, viewport, (ImDrawList*)pdrawList, label); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, byte* label) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImDrawList* pdrawList = &drawList) + { + DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, (ImDrawList*)pdrawList, label); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ref ImDrawList drawList, byte* label) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + fixed (ImDrawList* pdrawList = &drawList) + { + DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, label); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ref ImDrawList drawList, byte* label) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + fixed (ImDrawList* pdrawList = &drawList) + { + DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, label); + } + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, ref byte label) + { + fixed (byte* plabel = &label) + { + DebugNodeDrawListNative(window, viewport, drawList, (byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + DebugNodeDrawListNative(window, viewport, drawList, (byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, string label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugNodeDrawListNative(window, viewport, drawList, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, ref byte label) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (byte* plabel = &label) + { + DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, drawList, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, ReadOnlySpan label) + { + fixed (ImGuiWindow* pwindow = &window) + { + fixed (byte* plabel = label) + { + DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, drawList, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, string label) + { + fixed (ImGuiWindow* pwindow = &window) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, drawList, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, ref byte label) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + fixed (byte* plabel = &label) + { + DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, drawList, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, ReadOnlySpan label) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + fixed (byte* plabel = label) + { + DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, drawList, (byte*)plabel); + } + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.016.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.016.cs index 976056c11..fed057871 100644 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.016.cs +++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.016.cs @@ -18,3393 +18,6 @@ namespace Dalamud.Bindings.ImGui public unsafe partial class ImGuiP { - /// - /// To be documented. - /// - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, string label, string labelEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TreeNodeBehaviorNative(id, flags, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ref byte label, ReadOnlySpan labelEnd) - { - fixed (byte* plabel = &label) - { - fixed (byte* plabelEnd = labelEnd) - { - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)plabelEnd); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ref byte label, string labelEnd) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ReadOnlySpan label, ref byte labelEnd) - { - fixed (byte* plabel = label) - { - fixed (byte* plabelEnd = &labelEnd) - { - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)plabelEnd); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ReadOnlySpan label, string labelEnd) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, string label, ref byte labelEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelEnd = &labelEnd) - { - byte ret = TreeNodeBehaviorNative(id, flags, pStr0, (byte*)plabelEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, string label, ReadOnlySpan labelEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelEnd = labelEnd) - { - byte ret = TreeNodeBehaviorNative(id, flags, pStr0, (byte*)plabelEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TreeNodeBehaviorIsOpenNative(uint id, ImGuiTreeNodeFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1213])(id, flags); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1213])(id, flags); - #endif - } - - /// - /// To be documented. - /// - public static bool TreeNodeBehaviorIsOpen(uint id, ImGuiTreeNodeFlags flags) - { - byte ret = TreeNodeBehaviorIsOpenNative(id, flags); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TreeNodeBehaviorIsOpen(uint id) - { - byte ret = TreeNodeBehaviorIsOpenNative(id, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TreePushOverrideIDNative(uint id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1214])(id); - #else - ((delegate* unmanaged[Cdecl])funcTable[1214])(id); - #endif - } - - /// - /// To be documented. - /// - public static void TreePushOverrideID(uint id) - { - TreePushOverrideIDNative(id); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiDataTypeInfo* DataTypeGetInfoNative(ImGuiDataType dataType) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1215])(dataType); - #else - return (ImGuiDataTypeInfo*)((delegate* unmanaged[Cdecl])funcTable[1215])(dataType); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiDataTypeInfoPtr DataTypeGetInfo(ImGuiDataType dataType) - { - ImGuiDataTypeInfoPtr ret = DataTypeGetInfoNative(dataType); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DataTypeApplyOpNative(ImGuiDataType dataType, int op, void* output, void* arg1, void* arg2) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1216])(dataType, op, output, arg1, arg2); - #else - ((delegate* unmanaged[Cdecl])funcTable[1216])(dataType, op, (nint)output, (nint)arg1, (nint)arg2); - #endif - } - - /// - /// To be documented. - /// - public static void DataTypeApplyOp(ImGuiDataType dataType, int op, void* output, void* arg1, void* arg2) - { - DataTypeApplyOpNative(dataType, op, output, arg1, arg2); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DataTypeApplyFromTextNative(byte* buf, ImGuiDataType dataType, void* pData, byte* format) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1217])(buf, dataType, pData, format); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1217])((nint)buf, dataType, (nint)pData, (nint)format); - #endif - } - - /// - /// To be documented. - /// - public static bool DataTypeApplyFromText(byte* buf, ImGuiDataType dataType, void* pData, byte* format) - { - byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, format); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DataTypeApplyFromText(ref byte buf, ImGuiDataType dataType, void* pData, byte* format) - { - fixed (byte* pbuf = &buf) - { - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, format); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DataTypeApplyFromText(ReadOnlySpan buf, ImGuiDataType dataType, void* pData, byte* format) - { - fixed (byte* pbuf = buf) - { - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, format); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DataTypeApplyFromText(string buf, ImGuiDataType dataType, void* pData, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DataTypeApplyFromTextNative(pStr0, dataType, pData, format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DataTypeApplyFromText(byte* buf, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, (byte*)pformat); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DataTypeApplyFromText(byte* buf, ImGuiDataType dataType, void* pData, ReadOnlySpan format) - { - fixed (byte* pformat = format) - { - byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, (byte*)pformat); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DataTypeApplyFromText(byte* buf, ImGuiDataType dataType, void* pData, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DataTypeApplyFromText(ref byte buf, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pformat = &format) - { - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, (byte*)pformat); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DataTypeApplyFromText(ReadOnlySpan buf, ImGuiDataType dataType, void* pData, ReadOnlySpan format) - { - fixed (byte* pbuf = buf) - { - fixed (byte* pformat = format) - { - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, (byte*)pformat); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DataTypeApplyFromText(string buf, ImGuiDataType dataType, void* pData, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DataTypeApplyFromTextNative(pStr0, dataType, pData, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DataTypeApplyFromText(ref byte buf, ImGuiDataType dataType, void* pData, ReadOnlySpan format) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pformat = format) - { - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, (byte*)pformat); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DataTypeApplyFromText(ref byte buf, ImGuiDataType dataType, void* pData, string format) - { - fixed (byte* pbuf = &buf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DataTypeApplyFromText(ReadOnlySpan buf, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* pbuf = buf) - { - fixed (byte* pformat = &format) - { - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, (byte*)pformat); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DataTypeApplyFromText(ReadOnlySpan buf, ImGuiDataType dataType, void* pData, string format) - { - fixed (byte* pbuf = buf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DataTypeApplyFromText(string buf, ImGuiDataType dataType, void* pData, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DataTypeApplyFromTextNative(pStr0, dataType, pData, (byte*)pformat); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DataTypeApplyFromText(string buf, ImGuiDataType dataType, void* pData, ReadOnlySpan format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DataTypeApplyFromTextNative(pStr0, dataType, pData, (byte*)pformat); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int DataTypeCompareNative(ImGuiDataType dataType, void* arg1, void* arg2) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1218])(dataType, arg1, arg2); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[1218])(dataType, (nint)arg1, (nint)arg2); - #endif - } - - /// - /// To be documented. - /// - public static int DataTypeCompare(ImGuiDataType dataType, void* arg1, void* arg2) - { - int ret = DataTypeCompareNative(dataType, arg1, arg2); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DataTypeClampNative(ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1219])(dataType, pData, pMin, pMax); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1219])(dataType, (nint)pData, (nint)pMin, (nint)pMax); - #endif - } - - /// - /// To be documented. - /// - public static bool DataTypeClamp(ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - byte ret = DataTypeClampNative(dataType, pData, pMin, pMax); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TempInputScalarNative(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1220])(bb, id, label, dataType, pData, format, pClampMin, pClampMax); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1220])(bb, id, (nint)label, dataType, (nint)pData, (nint)format, (nint)pClampMin, (nint)pClampMax); - #endif - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, format, pClampMin, pClampMax); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, format, pClampMin, (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, byte* format) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, format, (void*)(default), (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) - { - fixed (byte* plabel = &label) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, pClampMin, pClampMax); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin) - { - fixed (byte* plabel = &label) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, pClampMin, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, (void*)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) - { - fixed (byte* plabel = label) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, pClampMin, pClampMax); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin) - { - fixed (byte* plabel = label) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, pClampMin, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, (void*)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, format, pClampMin, pClampMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, format, pClampMin, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, format, (void*)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin, void* pClampMax) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, void* pClampMin, void* pClampMax) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, void* pClampMin) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan format) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, string format, void* pClampMin, void* pClampMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, pStr0, pClampMin, pClampMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, string format, void* pClampMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, pStr0, pClampMin, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, pStr0, (void*)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin, void* pClampMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, void* pClampMin, void* pClampMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, void* pClampMin) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, ReadOnlySpan format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, string format, void* pClampMin, void* pClampMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, pStr1, pClampMin, pClampMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, string format, void* pClampMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, pStr1, pClampMin, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, pStr1, (void*)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, void* pClampMin, void* pClampMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, void* pClampMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, string format, void* pClampMin, void* pClampMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, pClampMin, pClampMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, string format, void* pClampMin) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, pClampMin, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, (void*)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin, void* pClampMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, string format, void* pClampMin, void* pClampMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, pClampMin, pClampMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, string format, void* pClampMin) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, pClampMin, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan label, ImGuiDataType dataType, void* pData, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, (void*)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin, void* pClampMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, void* pClampMin, void* pClampMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ReadOnlySpan format, void* pClampMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ReadOnlySpan format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TempInputIsActiveNative(uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1221])(id); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1221])(id); - #endif - } - - /// - /// To be documented. - /// - public static bool TempInputIsActive(uint id) - { - byte ret = TempInputIsActiveNative(id); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiInputTextState* GetInputTextStateNative(uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1222])(id); - #else - return (ImGuiInputTextState*)((delegate* unmanaged[Cdecl])funcTable[1222])(id); - #endif - } - - /// - /// To be documented. - /// - public static ImGuiInputTextStatePtr GetInputTextState(uint id) - { - ImGuiInputTextStatePtr ret = GetInputTextStateNative(id); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void Custom_StbTextMakeUndoReplaceNative(ImGuiInputTextState* str, int where, int oldLength, int newLength) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1223])(str, where, oldLength, newLength); - #else - ((delegate* unmanaged[Cdecl])funcTable[1223])((nint)str, where, oldLength, newLength); - #endif - } - - /// - /// To be documented. - /// - public static void Custom_StbTextMakeUndoReplace(ImGuiInputTextStatePtr str, int where, int oldLength, int newLength) - { - Custom_StbTextMakeUndoReplaceNative(str, where, oldLength, newLength); - } - - /// - /// To be documented. - /// - public static void Custom_StbTextMakeUndoReplace(ref ImGuiInputTextState str, int where, int oldLength, int newLength) - { - fixed (ImGuiInputTextState* pstr = &str) - { - Custom_StbTextMakeUndoReplaceNative((ImGuiInputTextState*)pstr, where, oldLength, newLength); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void Custom_StbTextUndoNative(ImGuiInputTextState* str) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1224])(str); - #else - ((delegate* unmanaged[Cdecl])funcTable[1224])((nint)str); - #endif - } - - /// - /// To be documented. - /// - public static void Custom_StbTextUndo(ImGuiInputTextStatePtr str) - { - Custom_StbTextUndoNative(str); - } - - /// - /// To be documented. - /// - public static void Custom_StbTextUndo(ref ImGuiInputTextState str) - { - fixed (ImGuiInputTextState* pstr = &str) - { - Custom_StbTextUndoNative((ImGuiInputTextState*)pstr); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ColorTooltipNative(byte* text, float* col, ImGuiColorEditFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1225])(text, col, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[1225])((nint)text, (nint)col, flags); - #endif - } - - /// - /// To be documented. - /// - public static void ColorTooltip(byte* text, float* col, ImGuiColorEditFlags flags) - { - ColorTooltipNative(text, col, flags); - } - - /// - /// To be documented. - /// - public static void ColorTooltip(ref byte text, float* col, ImGuiColorEditFlags flags) - { - fixed (byte* ptext = &text) - { - ColorTooltipNative((byte*)ptext, col, flags); - } - } - - /// - /// To be documented. - /// - public static void ColorTooltip(ReadOnlySpan text, float* col, ImGuiColorEditFlags flags) - { - fixed (byte* ptext = text) - { - ColorTooltipNative((byte*)ptext, col, flags); - } - } - - /// - /// To be documented. - /// - public static void ColorTooltip(string text, float* col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColorTooltipNative(pStr0, col, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColorTooltip(byte* text, ref float col, ImGuiColorEditFlags flags) - { - fixed (float* pcol = &col) - { - ColorTooltipNative(text, (float*)pcol, flags); - } - } - - /// - /// To be documented. - /// - public static void ColorTooltip(ref byte text, ref float col, ImGuiColorEditFlags flags) - { - fixed (byte* ptext = &text) - { - fixed (float* pcol = &col) - { - ColorTooltipNative((byte*)ptext, (float*)pcol, flags); - } - } - } - - /// - /// To be documented. - /// - public static void ColorTooltip(ReadOnlySpan text, ref float col, ImGuiColorEditFlags flags) - { - fixed (byte* ptext = text) - { - fixed (float* pcol = &col) - { - ColorTooltipNative((byte*)ptext, (float*)pcol, flags); - } - } - } - - /// - /// To be documented. - /// - public static void ColorTooltip(string text, ref float col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcol = &col) - { - ColorTooltipNative(pStr0, (float*)pcol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ColorEditOptionsPopupNative(float* col, ImGuiColorEditFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1226])(col, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[1226])((nint)col, flags); - #endif - } - - /// - /// To be documented. - /// - public static void ColorEditOptionsPopup(float* col, ImGuiColorEditFlags flags) - { - ColorEditOptionsPopupNative(col, flags); - } - - /// - /// To be documented. - /// - public static void ColorEditOptionsPopup(ref float col, ImGuiColorEditFlags flags) - { - fixed (float* pcol = &col) - { - ColorEditOptionsPopupNative((float*)pcol, flags); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ColorPickerOptionsPopupNative(float* refCol, ImGuiColorEditFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1227])(refCol, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[1227])((nint)refCol, flags); - #endif - } - - /// - /// To be documented. - /// - public static void ColorPickerOptionsPopup(float* refCol, ImGuiColorEditFlags flags) - { - ColorPickerOptionsPopupNative(refCol, flags); - } - - /// - /// To be documented. - /// - public static void ColorPickerOptionsPopup(ref float refCol, ImGuiColorEditFlags flags) - { - fixed (float* prefCol = &refCol) - { - ColorPickerOptionsPopupNative((float*)prefCol, flags); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int PlotExNative(ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl], void*, int, int, byte*, float, float, Vector2, float>, void*, int, int, byte*, float, float, Vector2, int>)funcTable[1228])(plotType, label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[1228])(plotType, (nint)label, (nint)valuesGetter, (nint)data, valuesCount, valuesOffset, (nint)overlayText, scaleMin, scaleMax, frameSize); - #endif - } - - /// - /// To be documented. - /// - public static int PlotEx(ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - int ret = PlotExNative(plotType, label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); - return ret; - } - - /// - /// To be documented. - /// - public static int PlotEx(ImGuiPlotType plotType, ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* plabel = &label) - { - int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static int PlotEx(ImGuiPlotType plotType, ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* plabel = label) - { - int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static int PlotEx(ImGuiPlotType plotType, string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = PlotExNative(plotType, pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int PlotEx(ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* poverlayText = &overlayText) - { - int ret = PlotExNative(plotType, label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static int PlotEx(ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* poverlayText = overlayText) - { - int ret = PlotExNative(plotType, label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static int PlotEx(ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = PlotExNative(plotType, label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, frameSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int PlotEx(ImGuiPlotType plotType, ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int PlotEx(ImGuiPlotType plotType, ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int PlotEx(ImGuiPlotType plotType, string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = PlotExNative(plotType, pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, frameSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int PlotEx(ImGuiPlotType plotType, ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int PlotEx(ImGuiPlotType plotType, ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, frameSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int PlotEx(ImGuiPlotType plotType, ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int PlotEx(ImGuiPlotType plotType, ReadOnlySpan label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, frameSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int PlotEx(ImGuiPlotType plotType, string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - int ret = PlotExNative(plotType, pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int PlotEx(ImGuiPlotType plotType, string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - int ret = PlotExNative(plotType, pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShadeVertsLinearColorGradientKeepAlphaNative(ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1229])(drawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); - #else - ((delegate* unmanaged[Cdecl])funcTable[1229])((nint)drawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); - #endif - } - - /// - /// To be documented. - /// - public static void ShadeVertsLinearColorGradientKeepAlpha(ImDrawListPtr drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) - { - ShadeVertsLinearColorGradientKeepAlphaNative(drawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); - } - - /// - /// To be documented. - /// - public static void ShadeVertsLinearColorGradientKeepAlpha(ref ImDrawList drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ShadeVertsLinearColorGradientKeepAlphaNative((ImDrawList*)pdrawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShadeVertsLinearUVNative(ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, byte clamp) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1230])(drawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp); - #else - ((delegate* unmanaged[Cdecl])funcTable[1230])((nint)drawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp); - #endif - } - - /// - /// To be documented. - /// - public static void ShadeVertsLinearUV(ImDrawListPtr drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, bool clamp) - { - ShadeVertsLinearUVNative(drawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void ShadeVertsLinearUV(ref ImDrawList drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, bool clamp) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ShadeVertsLinearUVNative((ImDrawList*)pdrawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GcCompactTransientMiscBuffersNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1231])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[1231])(); - #endif - } - - /// - /// To be documented. - /// - public static void GcCompactTransientMiscBuffers() - { - GcCompactTransientMiscBuffersNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GcCompactTransientWindowBuffersNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1232])(window); - #else - ((delegate* unmanaged[Cdecl])funcTable[1232])((nint)window); - #endif - } - - /// - /// To be documented. - /// - public static void GcCompactTransientWindowBuffers(ImGuiWindowPtr window) - { - GcCompactTransientWindowBuffersNative(window); - } - - /// - /// To be documented. - /// - public static void GcCompactTransientWindowBuffers(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - GcCompactTransientWindowBuffersNative((ImGuiWindow*)pwindow); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GcAwakeTransientWindowBuffersNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1233])(window); - #else - ((delegate* unmanaged[Cdecl])funcTable[1233])((nint)window); - #endif - } - - /// - /// To be documented. - /// - public static void GcAwakeTransientWindowBuffers(ImGuiWindowPtr window) - { - GcAwakeTransientWindowBuffersNative(window); - } - - /// - /// To be documented. - /// - public static void GcAwakeTransientWindowBuffers(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - GcAwakeTransientWindowBuffersNative((ImGuiWindow*)pwindow); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugLogNative(byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1234])(fmt); - #else - ((delegate* unmanaged[Cdecl])funcTable[1234])((nint)fmt); - #endif - } - - /// - /// To be documented. - /// - public static void DebugLog(byte* fmt) - { - DebugLogNative(fmt); - } - - /// - /// To be documented. - /// - public static void DebugLog(ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - DebugLogNative((byte*)pfmt); - } - } - - /// - /// To be documented. - /// - public static void DebugLog(ReadOnlySpan fmt) - { - fixed (byte* pfmt = fmt) - { - DebugLogNative((byte*)pfmt); - } - } - - /// - /// To be documented. - /// - public static void DebugLog(string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugLogNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugLogVNative(byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1235])(fmt, args); - #else - ((delegate* unmanaged[Cdecl])funcTable[1235])((nint)fmt, args); - #endif - } - - /// - /// To be documented. - /// - public static void DebugLogV(byte* fmt, nuint args) - { - DebugLogVNative(fmt, args); - } - - /// - /// To be documented. - /// - public static void DebugLogV(ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - DebugLogVNative((byte*)pfmt, args); - } - } - - /// - /// To be documented. - /// - public static void DebugLogV(ReadOnlySpan fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - DebugLogVNative((byte*)pfmt, args); - } - } - - /// - /// To be documented. - /// - public static void DebugLogV(string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugLogVNative(pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ErrorCheckEndFrameRecoverNative(ImGuiErrorLogCallback logCallback, void* userData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl], void*, void>)funcTable[1236])((delegate*)Utils.GetFunctionPointerForDelegate(logCallback), userData); - #else - ((delegate* unmanaged[Cdecl])funcTable[1236])((nint)Utils.GetFunctionPointerForDelegate(logCallback), (nint)userData); - #endif - } - - /// - /// To be documented. - /// - public static void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback logCallback, void* userData) - { - ErrorCheckEndFrameRecoverNative(logCallback, userData); - } - - /// - /// To be documented. - /// - public static void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback logCallback) - { - ErrorCheckEndFrameRecoverNative(logCallback, (void*)(default)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ErrorCheckEndWindowRecoverNative(ImGuiErrorLogCallback logCallback, void* userData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl], void*, void>)funcTable[1237])((delegate*)Utils.GetFunctionPointerForDelegate(logCallback), userData); - #else - ((delegate* unmanaged[Cdecl])funcTable[1237])((nint)Utils.GetFunctionPointerForDelegate(logCallback), (nint)userData); - #endif - } - - /// - /// To be documented. - /// - public static void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback logCallback, void* userData) - { - ErrorCheckEndWindowRecoverNative(logCallback, userData); - } - - /// - /// To be documented. - /// - public static void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback logCallback) - { - ErrorCheckEndWindowRecoverNative(logCallback, (void*)(default)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugDrawItemRectNative(uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1238])(col); - #else - ((delegate* unmanaged[Cdecl])funcTable[1238])(col); - #endif - } - - /// - /// To be documented. - /// - public static void DebugDrawItemRect(uint col) - { - DebugDrawItemRectNative(col); - } - - /// - /// To be documented. - /// - public static void DebugDrawItemRect() - { - DebugDrawItemRectNative((uint)(4278190335)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugStartItemPickerNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1239])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[1239])(); - #endif - } - - /// - /// To be documented. - /// - public static void DebugStartItemPicker() - { - DebugStartItemPickerNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowFontAtlasNative(ImFontAtlas* atlas) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1240])(atlas); - #else - ((delegate* unmanaged[Cdecl])funcTable[1240])((nint)atlas); - #endif - } - - /// - /// To be documented. - /// - public static void ShowFontAtlas(ImFontAtlasPtr atlas) - { - ShowFontAtlasNative(atlas); - } - - /// - /// To be documented. - /// - public static void ShowFontAtlas(ref ImFontAtlas atlas) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ShowFontAtlasNative((ImFontAtlas*)patlas); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugHookIdInfoNative(uint id, ImGuiDataType dataType, void* dataId, void* dataIdEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1241])(id, dataType, dataId, dataIdEnd); - #else - ((delegate* unmanaged[Cdecl])funcTable[1241])(id, dataType, (nint)dataId, (nint)dataIdEnd); - #endif - } - - /// - /// To be documented. - /// - public static void DebugHookIdInfo(uint id, ImGuiDataType dataType, void* dataId, void* dataIdEnd) - { - DebugHookIdInfoNative(id, dataType, dataId, dataIdEnd); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeColumnsNative(ImGuiOldColumns* columns) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1242])(columns); - #else - ((delegate* unmanaged[Cdecl])funcTable[1242])((nint)columns); - #endif - } - - /// - /// To be documented. - /// - public static void DebugNodeColumns(ImGuiOldColumnsPtr columns) - { - DebugNodeColumnsNative(columns); - } - - /// - /// To be documented. - /// - public static void DebugNodeColumns(ref ImGuiOldColumns columns) - { - fixed (ImGuiOldColumns* pcolumns = &columns) - { - DebugNodeColumnsNative((ImGuiOldColumns*)pcolumns); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeDockNodeNative(ImGuiDockNode* node, byte* label) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1243])(node, label); - #else - ((delegate* unmanaged[Cdecl])funcTable[1243])((nint)node, (nint)label); - #endif - } - - /// - /// To be documented. - /// - public static void DebugNodeDockNode(ImGuiDockNodePtr node, byte* label) - { - DebugNodeDockNodeNative(node, label); - } - - /// - /// To be documented. - /// - public static void DebugNodeDockNode(ref ImGuiDockNode node, byte* label) - { - fixed (ImGuiDockNode* pnode = &node) - { - DebugNodeDockNodeNative((ImGuiDockNode*)pnode, label); - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDockNode(ImGuiDockNodePtr node, ref byte label) - { - fixed (byte* plabel = &label) - { - DebugNodeDockNodeNative(node, (byte*)plabel); - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDockNode(ImGuiDockNodePtr node, ReadOnlySpan label) - { - fixed (byte* plabel = label) - { - DebugNodeDockNodeNative(node, (byte*)plabel); - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDockNode(ImGuiDockNodePtr node, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDockNodeNative(node, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDockNode(ref ImGuiDockNode node, ref byte label) - { - fixed (ImGuiDockNode* pnode = &node) - { - fixed (byte* plabel = &label) - { - DebugNodeDockNodeNative((ImGuiDockNode*)pnode, (byte*)plabel); - } - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDockNode(ref ImGuiDockNode node, ReadOnlySpan label) - { - fixed (ImGuiDockNode* pnode = &node) - { - fixed (byte* plabel = label) - { - DebugNodeDockNodeNative((ImGuiDockNode*)pnode, (byte*)plabel); - } - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDockNode(ref ImGuiDockNode node, string label) - { - fixed (ImGuiDockNode* pnode = &node) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDockNodeNative((ImGuiDockNode*)pnode, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeDrawListNative(ImGuiWindow* window, ImGuiViewportP* viewport, ImDrawList* drawList, byte* label) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1244])(window, viewport, drawList, label); - #else - ((delegate* unmanaged[Cdecl])funcTable[1244])((nint)window, (nint)viewport, (nint)drawList, (nint)label); - #endif - } - - /// - /// To be documented. - /// - public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, byte* label) - { - DebugNodeDrawListNative(window, viewport, drawList, label); - } - - /// - /// To be documented. - /// - public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, byte* label) - { - fixed (ImGuiWindow* pwindow = &window) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, drawList, label); - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, byte* label) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, drawList, label); - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, byte* label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, drawList, label); - } - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, byte* label) - { - fixed (ImDrawList* pdrawList = &drawList) - { - DebugNodeDrawListNative(window, viewport, (ImDrawList*)pdrawList, label); - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, byte* label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImDrawList* pdrawList = &drawList) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, (ImDrawList*)pdrawList, label); - } - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ref ImDrawList drawList, byte* label) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (ImDrawList* pdrawList = &drawList) - { - DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, label); - } - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ref ImDrawList drawList, byte* label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (ImDrawList* pdrawList = &drawList) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, label); - } - } - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, ref byte label) - { - fixed (byte* plabel = &label) - { - DebugNodeDrawListNative(window, viewport, drawList, (byte*)plabel); - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, ReadOnlySpan label) - { - fixed (byte* plabel = label) - { - DebugNodeDrawListNative(window, viewport, drawList, (byte*)plabel); - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDrawListNative(window, viewport, drawList, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, ref byte label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (byte* plabel = &label) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, drawList, (byte*)plabel); - } - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, ReadOnlySpan label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (byte* plabel = label) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, drawList, (byte*)plabel); - } - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, string label) - { - fixed (ImGuiWindow* pwindow = &window) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, drawList, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, ref byte label) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (byte* plabel = &label) - { - DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, drawList, (byte*)plabel); - } - } - } - - /// - /// To be documented. - /// - public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, ReadOnlySpan label) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (byte* plabel = label) - { - DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, drawList, (byte*)plabel); - } - } - } - /// /// To be documented. /// @@ -4996,5 +1609,510 @@ namespace Dalamud.Bindings.ImGui } } } + + /* + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImFontAtlasBuildPackCustomRectsNative(ImFontAtlas* atlas, ImVector* packContexts) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, void>)funcTable[1262])(atlas, packContexts); + #else + ((delegate* unmanaged[Cdecl])funcTable[1262])((nint)atlas, (nint)packContexts); + #endif + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildPackCustomRects(ImFontAtlasPtr atlas, ImVector* packContexts) + { + ImFontAtlasBuildPackCustomRectsNative(atlas, packContexts); + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildPackCustomRects(ref ImFontAtlas atlas, ImVector* packContexts) + { + fixed (ImFontAtlas* patlas = &atlas) + { + ImFontAtlasBuildPackCustomRectsNative((ImFontAtlas*)patlas, packContexts); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildPackCustomRects(ImFontAtlasPtr atlas, ref ImVector packContexts) + { + fixed (ImVector* ppackContexts = &packContexts) + { + ImFontAtlasBuildPackCustomRectsNative(atlas, (ImVector*)ppackContexts); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildPackCustomRects(ref ImFontAtlas atlas, ref ImVector packContexts) + { + fixed (ImFontAtlas* patlas = &atlas) + { + fixed (ImVector* ppackContexts = &packContexts) + { + ImFontAtlasBuildPackCustomRectsNative((ImFontAtlas*)patlas, (ImVector*)ppackContexts); + } + } + } + + */ + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImFontAtlasBuildFinishNative(ImFontAtlas* atlas) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1263])(atlas); + #else + ((delegate* unmanaged[Cdecl])funcTable[1263])((nint)atlas); + #endif + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildFinish(ImFontAtlasPtr atlas) + { + ImFontAtlasBuildFinishNative(atlas); + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildFinish(ref ImFontAtlas atlas) + { + fixed (ImFontAtlas* patlas = &atlas) + { + ImFontAtlasBuildFinishNative((ImFontAtlas*)patlas); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImFontAtlasBuildRender8bppRectFromStringNative(ImFontAtlas* atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1264])(atlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); + #else + ((delegate* unmanaged[Cdecl])funcTable[1264])((nint)atlas, textureIndex, x, y, w, h, (nint)inStr, inMarkerChar, inMarkerPixelValue); + #endif + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue) + { + ImFontAtlasBuildRender8bppRectFromStringNative(atlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildRender8bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue) + { + fixed (ImFontAtlas* patlas = &atlas) + { + ImFontAtlasBuildRender8bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, ref byte inStr, byte inMarkerChar, byte inMarkerPixelValue) + { + fixed (byte* pinStr = &inStr) + { + ImFontAtlasBuildRender8bppRectFromStringNative(atlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, ReadOnlySpan inStr, byte inMarkerChar, byte inMarkerPixelValue) + { + fixed (byte* pinStr = inStr) + { + ImFontAtlasBuildRender8bppRectFromStringNative(atlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, string inStr, byte inMarkerChar, byte inMarkerPixelValue) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inStr != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inStr); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontAtlasBuildRender8bppRectFromStringNative(atlas, textureIndex, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildRender8bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, ref byte inStr, byte inMarkerChar, byte inMarkerPixelValue) + { + fixed (ImFontAtlas* patlas = &atlas) + { + fixed (byte* pinStr = &inStr) + { + ImFontAtlasBuildRender8bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); + } + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildRender8bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, ReadOnlySpan inStr, byte inMarkerChar, byte inMarkerPixelValue) + { + fixed (ImFontAtlas* patlas = &atlas) + { + fixed (byte* pinStr = inStr) + { + ImFontAtlasBuildRender8bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); + } + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildRender8bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, string inStr, byte inMarkerChar, byte inMarkerPixelValue) + { + fixed (ImFontAtlas* patlas = &atlas) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inStr != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inStr); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontAtlasBuildRender8bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImFontAtlasBuildRender32bppRectFromStringNative(ImFontAtlas* atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1265])(atlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); + #else + ((delegate* unmanaged[Cdecl])funcTable[1265])((nint)atlas, textureIndex, x, y, w, h, (nint)inStr, inMarkerChar, inMarkerPixelValue); + #endif + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue) + { + ImFontAtlasBuildRender32bppRectFromStringNative(atlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildRender32bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue) + { + fixed (ImFontAtlas* patlas = &atlas) + { + ImFontAtlasBuildRender32bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, ref byte inStr, byte inMarkerChar, uint inMarkerPixelValue) + { + fixed (byte* pinStr = &inStr) + { + ImFontAtlasBuildRender32bppRectFromStringNative(atlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, ReadOnlySpan inStr, byte inMarkerChar, uint inMarkerPixelValue) + { + fixed (byte* pinStr = inStr) + { + ImFontAtlasBuildRender32bppRectFromStringNative(atlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, string inStr, byte inMarkerChar, uint inMarkerPixelValue) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inStr != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inStr); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontAtlasBuildRender32bppRectFromStringNative(atlas, textureIndex, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildRender32bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, ref byte inStr, byte inMarkerChar, uint inMarkerPixelValue) + { + fixed (ImFontAtlas* patlas = &atlas) + { + fixed (byte* pinStr = &inStr) + { + ImFontAtlasBuildRender32bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); + } + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildRender32bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, ReadOnlySpan inStr, byte inMarkerChar, uint inMarkerPixelValue) + { + fixed (ImFontAtlas* patlas = &atlas) + { + fixed (byte* pinStr = inStr) + { + ImFontAtlasBuildRender32bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); + } + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildRender32bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, string inStr, byte inMarkerChar, uint inMarkerPixelValue) + { + fixed (ImFontAtlas* patlas = &atlas) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inStr != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inStr); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontAtlasBuildRender32bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImFontAtlasBuildMultiplyCalcLookupTableNative(byte* outTable, float inMultiplyFactor, float gammaFactor) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1266])(outTable, inMultiplyFactor, gammaFactor); + #else + ((delegate* unmanaged[Cdecl])funcTable[1266])((nint)outTable, inMultiplyFactor, gammaFactor); + #endif + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildMultiplyCalcLookupTable(byte* outTable, float inMultiplyFactor, float gammaFactor) + { + ImFontAtlasBuildMultiplyCalcLookupTableNative(outTable, inMultiplyFactor, gammaFactor); + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildMultiplyCalcLookupTable(ref byte outTable, float inMultiplyFactor, float gammaFactor) + { + fixed (byte* poutTable = &outTable) + { + ImFontAtlasBuildMultiplyCalcLookupTableNative((byte*)poutTable, inMultiplyFactor, gammaFactor); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildMultiplyCalcLookupTable(ReadOnlySpan outTable, float inMultiplyFactor, float gammaFactor) + { + fixed (byte* poutTable = outTable) + { + ImFontAtlasBuildMultiplyCalcLookupTableNative((byte*)poutTable, inMultiplyFactor, gammaFactor); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImFontAtlasBuildMultiplyRectAlpha8Native(byte* table, byte* pixels, int x, int y, int w, int h, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[1267])(table, pixels, x, y, w, h, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[1267])((nint)table, (nint)pixels, x, y, w, h, stride); + #endif + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildMultiplyRectAlpha8(byte* table, byte* pixels, int x, int y, int w, int h, int stride) + { + ImFontAtlasBuildMultiplyRectAlpha8Native(table, pixels, x, y, w, h, stride); + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildMultiplyRectAlpha8(ref byte table, byte* pixels, int x, int y, int w, int h, int stride) + { + fixed (byte* ptable = &table) + { + ImFontAtlasBuildMultiplyRectAlpha8Native((byte*)ptable, pixels, x, y, w, h, stride); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildMultiplyRectAlpha8(ReadOnlySpan table, byte* pixels, int x, int y, int w, int h, int stride) + { + fixed (byte* ptable = table) + { + ImFontAtlasBuildMultiplyRectAlpha8Native((byte*)ptable, pixels, x, y, w, h, stride); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildMultiplyRectAlpha8(byte* table, ref byte pixels, int x, int y, int w, int h, int stride) + { + fixed (byte* ppixels = &pixels) + { + ImFontAtlasBuildMultiplyRectAlpha8Native(table, (byte*)ppixels, x, y, w, h, stride); + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildMultiplyRectAlpha8(ref byte table, ref byte pixels, int x, int y, int w, int h, int stride) + { + fixed (byte* ptable = &table) + { + fixed (byte* ppixels = &pixels) + { + ImFontAtlasBuildMultiplyRectAlpha8Native((byte*)ptable, (byte*)ppixels, x, y, w, h, stride); + } + } + } + + /// + /// To be documented. + /// + public static void ImFontAtlasBuildMultiplyRectAlpha8(ReadOnlySpan table, ref byte pixels, int x, int y, int w, int h, int stride) + { + fixed (byte* ptable = table) + { + fixed (byte* ppixels = &pixels) + { + ImFontAtlasBuildMultiplyRectAlpha8Native((byte*)ptable, (byte*)ppixels, x, y, w, h, stride); + } + } + } + } } diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.017.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.017.cs deleted file mode 100644 index 40a9101b5..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.017.cs +++ /dev/null @@ -1,465 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFontAtlasBuildFinishNative(ImFontAtlas* atlas) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1263])(atlas); - #else - ((delegate* unmanaged[Cdecl])funcTable[1263])((nint)atlas); - #endif - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildFinish(ImFontAtlasPtr atlas) - { - ImFontAtlasBuildFinishNative(atlas); - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildFinish(ref ImFontAtlas atlas) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImFontAtlasBuildFinishNative((ImFontAtlas*)patlas); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFontAtlasBuildRender8bppRectFromStringNative(ImFontAtlas* atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1264])(atlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - #else - ((delegate* unmanaged[Cdecl])funcTable[1264])((nint)atlas, textureIndex, x, y, w, h, (nint)inStr, inMarkerChar, inMarkerPixelValue); - #endif - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - ImFontAtlasBuildRender8bppRectFromStringNative(atlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildRender8bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImFontAtlasBuildRender8bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, ref byte inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - fixed (byte* pinStr = &inStr) - { - ImFontAtlasBuildRender8bppRectFromStringNative(atlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, ReadOnlySpan inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - fixed (byte* pinStr = inStr) - { - ImFontAtlasBuildRender8bppRectFromStringNative(atlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, string inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontAtlasBuildRender8bppRectFromStringNative(atlas, textureIndex, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildRender8bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, ref byte inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (byte* pinStr = &inStr) - { - ImFontAtlasBuildRender8bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildRender8bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, ReadOnlySpan inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (byte* pinStr = inStr) - { - ImFontAtlasBuildRender8bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildRender8bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, string inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontAtlasBuildRender8bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFontAtlasBuildRender32bppRectFromStringNative(ImFontAtlas* atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1265])(atlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - #else - ((delegate* unmanaged[Cdecl])funcTable[1265])((nint)atlas, textureIndex, x, y, w, h, (nint)inStr, inMarkerChar, inMarkerPixelValue); - #endif - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - ImFontAtlasBuildRender32bppRectFromStringNative(atlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildRender32bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImFontAtlasBuildRender32bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, ref byte inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - fixed (byte* pinStr = &inStr) - { - ImFontAtlasBuildRender32bppRectFromStringNative(atlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, ReadOnlySpan inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - fixed (byte* pinStr = inStr) - { - ImFontAtlasBuildRender32bppRectFromStringNative(atlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, string inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontAtlasBuildRender32bppRectFromStringNative(atlas, textureIndex, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildRender32bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, ref byte inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (byte* pinStr = &inStr) - { - ImFontAtlasBuildRender32bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildRender32bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, ReadOnlySpan inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (byte* pinStr = inStr) - { - ImFontAtlasBuildRender32bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildRender32bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, string inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontAtlasBuildRender32bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFontAtlasBuildMultiplyCalcLookupTableNative(byte* outTable, float inMultiplyFactor, float gammaFactor) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1266])(outTable, inMultiplyFactor, gammaFactor); - #else - ((delegate* unmanaged[Cdecl])funcTable[1266])((nint)outTable, inMultiplyFactor, gammaFactor); - #endif - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildMultiplyCalcLookupTable(byte* outTable, float inMultiplyFactor, float gammaFactor) - { - ImFontAtlasBuildMultiplyCalcLookupTableNative(outTable, inMultiplyFactor, gammaFactor); - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildMultiplyCalcLookupTable(ref byte outTable, float inMultiplyFactor, float gammaFactor) - { - fixed (byte* poutTable = &outTable) - { - ImFontAtlasBuildMultiplyCalcLookupTableNative((byte*)poutTable, inMultiplyFactor, gammaFactor); - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildMultiplyCalcLookupTable(ReadOnlySpan outTable, float inMultiplyFactor, float gammaFactor) - { - fixed (byte* poutTable = outTable) - { - ImFontAtlasBuildMultiplyCalcLookupTableNative((byte*)poutTable, inMultiplyFactor, gammaFactor); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFontAtlasBuildMultiplyRectAlpha8Native(byte* table, byte* pixels, int x, int y, int w, int h, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[1267])(table, pixels, x, y, w, h, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[1267])((nint)table, (nint)pixels, x, y, w, h, stride); - #endif - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildMultiplyRectAlpha8(byte* table, byte* pixels, int x, int y, int w, int h, int stride) - { - ImFontAtlasBuildMultiplyRectAlpha8Native(table, pixels, x, y, w, h, stride); - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildMultiplyRectAlpha8(ref byte table, byte* pixels, int x, int y, int w, int h, int stride) - { - fixed (byte* ptable = &table) - { - ImFontAtlasBuildMultiplyRectAlpha8Native((byte*)ptable, pixels, x, y, w, h, stride); - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildMultiplyRectAlpha8(ReadOnlySpan table, byte* pixels, int x, int y, int w, int h, int stride) - { - fixed (byte* ptable = table) - { - ImFontAtlasBuildMultiplyRectAlpha8Native((byte*)ptable, pixels, x, y, w, h, stride); - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildMultiplyRectAlpha8(byte* table, ref byte pixels, int x, int y, int w, int h, int stride) - { - fixed (byte* ppixels = &pixels) - { - ImFontAtlasBuildMultiplyRectAlpha8Native(table, (byte*)ppixels, x, y, w, h, stride); - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildMultiplyRectAlpha8(ref byte table, ref byte pixels, int x, int y, int w, int h, int stride) - { - fixed (byte* ptable = &table) - { - fixed (byte* ppixels = &pixels) - { - ImFontAtlasBuildMultiplyRectAlpha8Native((byte*)ptable, (byte*)ppixels, x, y, w, h, stride); - } - } - } - - /// - /// To be documented. - /// - public static void ImFontAtlasBuildMultiplyRectAlpha8(ReadOnlySpan table, ref byte pixels, int x, int y, int w, int h, int stride) - { - fixed (byte* ptable = table) - { - fixed (byte* ppixels = &pixels) - { - ImFontAtlasBuildMultiplyRectAlpha8Native((byte*)ptable, (byte*)ppixels, x, y, w, h, stride); - } - } - } - - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.000.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.000.cs index 55106a850..c69cf3a9a 100644 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.000.cs +++ b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.000.cs @@ -21,2423 +21,15 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputTextNative(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + internal static byte InputTextNative(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl], void*, byte>)funcTable[1268])(label, buf, bufSize, flags, (delegate*)Utils.GetFunctionPointerForDelegate(callback), userData); + return ((delegate* unmanaged[Cdecl], void*, byte>)funcTable[1268])(label, buf, bufSize, flags, (delegate*)Utils.GetFunctionPointerForDelegate(callback), userData); #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1268])((nint)label, (nint)buf, bufSize, flags, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)userData); + return (byte)((delegate* unmanaged[Cdecl])funcTable[1268])((nint)label, (nint)buf, bufSize, flags, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)userData); #endif } - /// - /// To be documented. - /// - public static bool InputText(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextNative(label, buf, bufSize, flags, callback, userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte ret = InputTextNative(label, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte ret = InputTextNative(label, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, byte* buf, ulong bufSize) - { - byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte ret = InputTextNative(label, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, byte* buf, ulong bufSize, void* userData) - { - byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, byte* buf, ulong bufSize) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, byte* buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, byte* buf, ulong bufSize) - { - fixed (byte* plabel = label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, byte* buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(string label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(string label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(string label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(string label, byte* buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(string label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(string label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(string label, byte* buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(string label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, ref byte buf, ulong bufSize) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, ref string buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, ref string buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(byte* label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, ref byte buf, ulong bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, ref byte buf, ulong bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputText(string label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(string label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(string label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(string label, ref string buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(string label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(string label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(string label, ref string buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(string label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, ref string buf, ulong bufSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, ref string buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, ref string buf, ulong bufSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, ref string buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(string label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(string label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(string label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(string label, ref byte buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(string label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(string label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(string label, ref byte buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputText(string label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - /// /// To be documented. /// @@ -3061,7 +653,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, flags, callback, userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3095,7 +687,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3129,7 +721,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3231,7 +823,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3590,7 +1182,7 @@ namespace Dalamud.Bindings.ImGui pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, callback, userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr1); } @@ -3645,7 +1237,7 @@ namespace Dalamud.Bindings.ImGui pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr1); } @@ -3700,7 +1292,7 @@ namespace Dalamud.Bindings.ImGui pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr1); } @@ -3865,7 +1457,7 @@ namespace Dalamud.Bindings.ImGui pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr1); } @@ -4015,7 +1607,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -4052,7 +1644,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -4089,7 +1681,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -4200,7 +1792,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -4311,7 +1903,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -4348,7 +1940,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -4385,7 +1977,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -4496,7 +2088,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -4850,19 +2442,19 @@ namespace Dalamud.Bindings.ImGui /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputTextMultilineNative(byte* label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + internal static byte InputTextMultilineNative(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl], void*, byte>)funcTable[1269])(label, buf, bufSize, size, flags, (delegate*)Utils.GetFunctionPointerForDelegate(callback), userData); + return ((delegate* unmanaged[Cdecl], void*, byte>)funcTable[1269])(label, buf, bufSize, size, flags, (delegate*)Utils.GetFunctionPointerForDelegate(callback), userData); #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1269])((nint)label, (nint)buf, bufSize, size, flags, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)userData); + return (byte)((delegate* unmanaged[Cdecl])funcTable[1269])((nint)label, (nint)buf, bufSize, size, flags, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)userData); #endif } /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, callback, userData); return ret != 0; @@ -4871,7 +2463,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, callback, (void*)(default)); return ret != 0; @@ -4880,7 +2472,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags) + public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) { byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; @@ -4889,7 +2481,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, Vector2 size) + public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size) { byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; @@ -4898,7 +2490,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize) + public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize) { byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; @@ -4907,7 +2499,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) + public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) { byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; @@ -4916,7 +2508,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) { byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; @@ -4925,7 +2517,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) { byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; @@ -4934,7 +2526,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); return ret != 0; @@ -4943,7 +2535,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) { byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; @@ -4952,7 +2544,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, Vector2 size, void* userData) + public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, void* userData) { byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; @@ -4961,7 +2553,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, void* userData) + public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, void* userData) { byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; @@ -4970,7 +2562,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; @@ -4979,7 +2571,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) { byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; @@ -4988,7 +2580,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; @@ -4997,7 +2589,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); return ret != 0; @@ -5006,7 +2598,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { @@ -5014,5 +2606,2458 @@ namespace Dalamud.Bindings.ImGui return ret != 0; } } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, void* userData) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, Vector2 size) + { + fixed (byte* plabel = label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize) + { + fixed (byte* plabel = label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, Vector2 size, void* userData) + { + fixed (byte* plabel = label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, byte* buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, void* userData) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, void* userData) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, Vector2 size) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, Vector2 size, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, ref string buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.001.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.001.cs index 974a134cb..7d2e8a977 100644 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.001.cs +++ b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.001.cs @@ -21,2460 +21,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize, Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize, Vector2 size, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, ulong bufSize, Vector2 size) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, ulong bufSize) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, ulong bufSize, Vector2 size, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, ulong bufSize, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, ulong bufSize, Vector2 size, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, ulong bufSize, Vector2 size) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, ulong bufSize) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, ulong bufSize, Vector2 size, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, ulong bufSize, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, ulong bufSize, Vector2 size, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, ulong bufSize, Vector2 size) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, ulong bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, ulong bufSize, Vector2 size, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, ulong bufSize, Vector2 size) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, ulong bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, ulong bufSize, Vector2 size, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref string buf, ulong bufSize, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref string buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2529,7 +76,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2566,7 +113,7 @@ namespace Dalamud.Bindings.ImGui pStr1[pStrOffset1] = 0; } byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr1); } @@ -2584,7 +131,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2621,7 +168,7 @@ namespace Dalamud.Bindings.ImGui pStr1[pStrOffset1] = 0; } byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr1); } @@ -2639,7 +186,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref string buf, ulong bufSize, Vector2 size, void* userData) + public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2694,7 +241,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref string buf, ulong bufSize, void* userData) + public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2749,7 +296,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2786,7 +333,7 @@ namespace Dalamud.Bindings.ImGui pStr1[pStrOffset1] = 0; } byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr1); } @@ -2804,7 +351,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2859,7 +406,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2914,7 +461,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2951,7 +498,7 @@ namespace Dalamud.Bindings.ImGui pStr1[pStrOffset1] = 0; } byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr1); } @@ -2969,7 +516,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { @@ -2991,7 +538,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, callback, userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3006,7 +553,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { @@ -3028,7 +575,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, callback, (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3043,7 +590,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags) + public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) { fixed (byte* plabel = &label) { @@ -3065,7 +612,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3080,7 +627,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, ulong bufSize, Vector2 size) + public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size) { fixed (byte* plabel = &label) { @@ -3117,7 +664,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, ulong bufSize) + public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize) { fixed (byte* plabel = &label) { @@ -3154,7 +701,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) + public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = &label) { @@ -3176,7 +723,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3191,7 +738,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { @@ -3228,7 +775,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { @@ -3265,7 +812,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { @@ -3287,7 +834,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3302,7 +849,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = &label) { @@ -3324,7 +871,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3339,7 +886,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, ulong bufSize, Vector2 size, void* userData) + public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, void* userData) { fixed (byte* plabel = &label) { @@ -3376,7 +923,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, ulong bufSize, void* userData) + public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, void* userData) { fixed (byte* plabel = &label) { @@ -3413,7 +960,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = &label) { @@ -3435,7 +982,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3450,7 +997,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { @@ -3487,7 +1034,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { @@ -3524,7 +1071,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { @@ -3546,7 +1093,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3561,7 +1108,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { @@ -3583,7 +1130,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, callback, userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3598,7 +1145,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { @@ -3620,7 +1167,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, callback, (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3635,7 +1182,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags) + public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) { fixed (byte* plabel = label) { @@ -3657,7 +1204,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3672,7 +1219,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, ulong bufSize, Vector2 size) + public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size) { fixed (byte* plabel = label) { @@ -3709,7 +1256,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, ulong bufSize) + public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize) { fixed (byte* plabel = label) { @@ -3746,7 +1293,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) + public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = label) { @@ -3768,7 +1315,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3783,7 +1330,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { @@ -3820,7 +1367,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { @@ -3857,7 +1404,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { @@ -3879,7 +1426,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3894,7 +1441,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = label) { @@ -3916,7 +1463,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3931,7 +1478,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, ulong bufSize, Vector2 size, void* userData) + public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, void* userData) { fixed (byte* plabel = label) { @@ -3968,7 +1515,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, ulong bufSize, void* userData) + public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, void* userData) { fixed (byte* plabel = label) { @@ -4005,7 +1552,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = label) { @@ -4027,7 +1574,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -4042,7 +1589,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { @@ -4079,7 +1626,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { @@ -4116,7 +1663,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { @@ -4138,7 +1685,7 @@ namespace Dalamud.Bindings.ImGui pStr0[pStrOffset0] = 0; } byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (ret != 0) + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -4153,7 +1700,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4186,7 +1733,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4219,7 +1766,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags) + public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4252,7 +1799,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, ulong bufSize, Vector2 size) + public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4285,7 +1832,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, ulong bufSize) + public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4318,7 +1865,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) + public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4351,7 +1898,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4384,7 +1931,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4417,7 +1964,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4450,7 +1997,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4483,7 +2030,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, ulong bufSize, Vector2 size, void* userData) + public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4516,7 +2063,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, ulong bufSize, void* userData) + public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4549,7 +2096,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4582,7 +2129,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4615,7 +2162,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4648,7 +2195,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4681,155 +2228,96 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte InputTextWithHintNative(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, callback, userData); + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl], void*, byte>)funcTable[1270])(label, hint, buf, bufSize, flags, (delegate*)Utils.GetFunctionPointerForDelegate(callback), userData); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1270])((nint)label, (nint)hint, (nint)buf, bufSize, flags, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)userData); + #endif + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, callback, userData); return ret != 0; } /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, callback, (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, callback, (void*)(default)); return ret != 0; } /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size) + public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize) { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize) + public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, void* userData) { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, userData); + byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, userData); return ret != 0; } } @@ -4837,11 +2325,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, (void*)(default)); return ret != 0; } } @@ -4849,11 +2337,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = &label) { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } @@ -4861,11 +2349,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size) + public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize) { fixed (byte* plabel = &label) { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } @@ -4873,11 +2361,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize) + public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } } @@ -4885,11 +2373,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = &label) { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } } @@ -4897,11 +2385,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, void* userData) { fixed (byte* plabel = &label) { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } } @@ -4909,11 +2397,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } } @@ -4921,107 +2409,2612 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, userData); + byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, nuint bufSize) + { + fixed (byte* plabel = label) + { + byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = label) + { + byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, void* userData) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, nuint bufSize) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, nuint bufSize, void* userData) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, nuint bufSize) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (hint != null) + { + pStrSize1 = Utils.GetByteCountUTF8(hint); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, callback, userData); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (hint != null) + { + pStrSize1 = Utils.GetByteCountUTF8(hint); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, callback, (void*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (hint != null) + { + pStrSize1 = Utils.GetByteCountUTF8(hint); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (hint != null) + { + pStrSize1 = Utils.GetByteCountUTF8(hint); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (hint != null) + { + pStrSize1 = Utils.GetByteCountUTF8(hint); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (hint != null) + { + pStrSize1 = Utils.GetByteCountUTF8(hint); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (hint != null) + { + pStrSize1 = Utils.GetByteCountUTF8(hint); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (hint != null) + { + pStrSize1 = Utils.GetByteCountUTF8(hint); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, nuint bufSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, nuint bufSize) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, nuint bufSize) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.002.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.002.cs index fd0c9c7b8..123aae9c8 100644 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.002.cs +++ b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.002.cs @@ -21,187 +21,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, Vector2 size) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, Vector2 size, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -220,18 +40,21 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* phint = hint) { - Utils.Free(pStr0); + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, nuint bufSize, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -250,18 +73,21 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* phint = hint) { - Utils.Free(pStr0); + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -280,412 +106,13 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* phint = hint) { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + Utils.Free(pStr0); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, callback, userData); return ret != 0; } } @@ -693,11 +120,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, callback, (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, callback, userData); return ret != 0; } } @@ -705,11 +132,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); return ret != 0; } } @@ -717,11 +144,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size) + public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } @@ -729,11 +156,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize) + public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } @@ -741,11 +168,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } } @@ -753,11 +180,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } } @@ -765,11 +192,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, void* userData) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } } @@ -777,11 +204,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } } @@ -789,91 +216,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -892,8 +235,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, callback, userData); - if (ret != 0) + byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -907,7 +250,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -926,8 +269,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, callback, (void*)(default)); - if (ret != 0) + byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -941,7 +284,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -960,8 +303,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -975,7 +318,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size) + public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -994,7 +337,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); @@ -1009,7 +352,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize) + public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1028,7 +371,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); @@ -1043,7 +386,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1062,8 +405,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -1077,7 +420,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1096,7 +439,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); @@ -1111,7 +454,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1130,7 +473,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); @@ -1145,285 +488,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, userData); + byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, userData); return ret != 0; } } @@ -1432,13 +503,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); return ret != 0; } } @@ -1447,13 +518,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } @@ -1462,13 +533,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size) + public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } @@ -1477,13 +548,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize) + public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } } @@ -1492,13 +563,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } } @@ -1507,13 +578,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, void* userData) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } } @@ -1522,13 +593,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } } @@ -1537,133 +608,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, userData); + byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, userData); return ret != 0; } } @@ -1672,13 +623,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); return ret != 0; } } @@ -1687,13 +638,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } @@ -1702,13 +653,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, Vector2 size) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, nuint bufSize) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } @@ -1717,13 +668,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } } @@ -1732,13 +683,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } } @@ -1747,13 +698,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, nuint bufSize, void* userData) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } } @@ -1762,13 +713,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } } @@ -1777,127 +728,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, Vector2 size, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1933,8 +764,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, callback, userData); - if (ret != 0) + byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr1); } @@ -1952,7 +783,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1988,8 +819,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, callback, (void*)(default)); - if (ret != 0) + byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr1); } @@ -2007,7 +838,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2043,8 +874,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr1); } @@ -2062,7 +893,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size) + public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2098,7 +929,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); @@ -2117,7 +948,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize) + public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2153,7 +984,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); @@ -2172,7 +1003,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2208,8 +1039,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr1); } @@ -2227,7 +1058,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2263,7 +1094,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); @@ -2282,7 +1113,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2318,7 +1149,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); @@ -2337,447 +1168,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { @@ -2798,8 +1189,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, callback, userData); - if (ret != 0) + byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -2814,7 +1205,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { @@ -2835,8 +1226,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, callback, (void*)(default)); - if (ret != 0) + byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -2851,7 +1242,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = &label) { @@ -2872,8 +1263,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -2888,7 +1279,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size) + public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize) { fixed (byte* plabel = &label) { @@ -2909,7 +1300,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); @@ -2925,7 +1316,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize) + public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { @@ -2946,7 +1337,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); @@ -2962,7 +1353,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = &label) { @@ -2983,8 +1374,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -2999,7 +1390,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, void* userData) { fixed (byte* plabel = &label) { @@ -3020,7 +1411,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); @@ -3036,7 +1427,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { @@ -3057,7 +1448,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); @@ -3073,303 +1464,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { @@ -3390,8 +1485,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, callback, userData); - if (ret != 0) + byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3406,7 +1501,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { @@ -3427,8 +1522,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, callback, (void*)(default)); - if (ret != 0) + byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3443,7 +1538,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = label) { @@ -3464,8 +1559,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3480,7 +1575,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, nuint bufSize) { fixed (byte* plabel = label) { @@ -3501,7 +1596,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); @@ -3517,7 +1612,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { @@ -3538,7 +1633,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); @@ -3554,7 +1649,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = label) { @@ -3575,8 +1670,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -3591,7 +1686,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, nuint bufSize, void* userData) { fixed (byte* plabel = label) { @@ -3612,7 +1707,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); @@ -3628,7 +1723,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { @@ -3649,7 +1744,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); @@ -3665,303 +1760,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3982,7 +1781,7 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, flags, callback, userData); + byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, flags, callback, userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3994,7 +1793,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4015,7 +1814,7 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, flags, callback, (void*)(default)); + byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4027,7 +1826,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4048,7 +1847,7 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4060,7 +1859,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size) + public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4081,7 +1880,7 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4093,7 +1892,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize) + public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4114,7 +1913,7 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4126,7 +1925,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4147,7 +1946,7 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); + byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4159,7 +1958,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4180,7 +1979,7 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4192,7 +1991,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4213,7 +2012,7 @@ namespace Dalamud.Bindings.ImGui } fixed (byte* pbuf = &buf) { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); + byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4225,792 +2024,716 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputTextWithHintNative(byte* label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl], void*, byte>)funcTable[1270])(label, hint, buf, bufSize, flags, (delegate*)Utils.GetFunctionPointerForDelegate(callback), userData); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1270])((nint)label, (nint)hint, (nint)buf, bufSize, flags, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)userData); - #endif - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, ulong bufSize) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, ulong bufSize, void* userData) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, ulong bufSize) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, ulong bufSize) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, byte* buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, byte* buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* phint = &hint) { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, userData); + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, void* userData) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, nuint bufSize) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, nuint bufSize, void* userData) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } @@ -5018,13 +2741,2300 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* phint = &hint) { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, void* userData) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, nuint bufSize) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, nuint bufSize, void* userData) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, nuint bufSize) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (hint != null) + { + pStrSize1 = Utils.GetByteCountUTF8(hint); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (buf != null) + { + pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr2); + } + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (hint != null) + { + pStrSize1 = Utils.GetByteCountUTF8(hint); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (buf != null) + { + pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr2); + } + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (hint != null) + { + pStrSize1 = Utils.GetByteCountUTF8(hint); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (buf != null) + { + pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr2); + } + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (hint != null) + { + pStrSize1 = Utils.GetByteCountUTF8(hint); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (buf != null) + { + pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr2); + } + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (hint != null) + { + pStrSize1 = Utils.GetByteCountUTF8(hint); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (buf != null) + { + pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr2); + } + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (hint != null) + { + pStrSize1 = Utils.GetByteCountUTF8(hint); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (buf != null) + { + pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr2); + } + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (hint != null) + { + pStrSize1 = Utils.GetByteCountUTF8(hint); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (buf != null) + { + pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr2); + } + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (hint != null) + { + pStrSize1 = Utils.GetByteCountUTF8(hint); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (buf != null) + { + pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr2); + } + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, nuint bufSize) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.003.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.003.cs index 3fd48c9b8..a9cf6e9ba 100644 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.003.cs +++ b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.003.cs @@ -21,181 +21,2717 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, nuint bufSize) { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, nuint bufSize) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, nuint bufSize) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, nuint bufSize) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, nuint bufSize) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, nuint bufSize) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, nuint bufSize, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } fixed (byte* phint = &hint) { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, ulong bufSize) + public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } fixed (byte* phint = &hint) { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } fixed (byte* phint = &hint) { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize) { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } fixed (byte* phint = &hint) { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, ulong bufSize, void* userData) + public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } fixed (byte* phint = &hint) { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } fixed (byte* phint = &hint) { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, ulong bufSize) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, ulong bufSize, void* userData) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -205,27 +2741,33 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* phint = &hint) { - Utils.Free(pStr0); + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, string hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -235,27 +2777,33 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* phint = &hint) { - Utils.Free(pStr0); + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, string hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -265,27 +2813,55 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* phint = &hint) { - Utils.Free(pStr0); + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, string hint, byte* buf, ulong bufSize) + public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -295,27 +2871,55 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* phint = &hint) { - Utils.Free(pStr0); + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, string hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -325,27 +2929,55 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* phint = &hint) { - Utils.Free(pStr0); + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, string hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -355,27 +2987,55 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* phint = &hint) { - Utils.Free(pStr0); + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, string hint, byte* buf, ulong bufSize, void* userData) + public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -385,27 +3045,55 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* phint = &hint) { - Utils.Free(pStr0); + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, string hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -415,27 +3103,192 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* phint = &hint) { - Utils.Free(pStr0); + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, void* userData) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* phint = &hint) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } @@ -444,13 +3297,34 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* phint = &hint) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } @@ -459,13 +3333,34 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* phint = &hint) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } @@ -474,13 +3369,34 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, ulong bufSize) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, nuint bufSize) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* phint = &hint) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } @@ -489,13 +3405,34 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* phint = &hint) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } @@ -504,13 +3441,34 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* phint = &hint) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } @@ -519,13 +3477,34 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, ulong bufSize, void* userData) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, nuint bufSize, void* userData) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* phint = &hint) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } @@ -534,13 +3513,34 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* phint = &hint) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } @@ -549,127 +3549,471 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { - fixed (byte* plabel = label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* phint = hint) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { - fixed (byte* plabel = label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* phint = hint) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) { - fixed (byte* plabel = label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* phint = hint) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, ulong bufSize) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, nuint bufSize) { - fixed (byte* plabel = label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* phint = hint) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) { - fixed (byte* plabel = label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* phint = hint) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { - fixed (byte* plabel = label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* phint = hint) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, ulong bufSize, void* userData) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, nuint bufSize, void* userData) { - fixed (byte* plabel = label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* phint = hint) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { - fixed (byte* plabel = label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* phint = hint) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (ret != 0) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -705,22 +4049,25 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pbuf = &buf) { - Utils.Free(pStr1); + byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, flags, callback, userData); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -756,22 +4103,25 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pbuf = &buf) { - Utils.Free(pStr1); + byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) + public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -807,22 +4157,25 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pbuf = &buf) { - Utils.Free(pStr1); + byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, byte* buf, ulong bufSize) + public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -858,22 +4211,25 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pbuf = &buf) { - Utils.Free(pStr1); + byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) + public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -909,22 +4265,25 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pbuf = &buf) { - Utils.Free(pStr1); + byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -960,22 +4319,25 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pbuf = &buf) { - Utils.Free(pStr1); + byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, byte* buf, ulong bufSize, void* userData) + public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1011,22 +4373,25 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pbuf = &buf) { - Utils.Free(pStr1); + byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1062,163 +4427,13 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pbuf = &buf) { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) + byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + if (pStrSize1 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; + Utils.Free(pStr1); } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, ulong bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, callback, userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1230,1246 +4445,41 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImFormatStringNative(byte* buf, nuint bufSize, byte* fmt) { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1271])(buf, bufSize, fmt); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[1271])((nint)buf, bufSize, (nint)fmt); + #endif } /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) + public static int ImFormatString(byte* buf, nuint bufSize, byte* fmt) { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + int ret = ImFormatStringNative(buf, bufSize, fmt); + return ret; } /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, ulong bufSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, ulong bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, ulong bufSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static int ImFormatString(ref byte buf, nuint bufSize, byte* fmt) { fixed (byte* pbuf = &buf) { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; + int ret = ImFormatStringNative((byte*)pbuf, bufSize, fmt); + return ret; } } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, ulong bufSize) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static int ImFormatString(ref string buf, nuint bufSize, byte* fmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2488,22 +4498,103 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } + int ret = ImFormatStringNative(pStr0, bufSize, fmt); + buf = Utils.DecodeStringUTF8(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; + return ret; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static int ImFormatString(byte* buf, nuint bufSize, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + int ret = ImFormatStringNative(buf, bufSize, (byte*)pfmt); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImFormatString(byte* buf, nuint bufSize, ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + int ret = ImFormatStringNative(buf, bufSize, (byte*)pfmt); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImFormatString(byte* buf, nuint bufSize, string fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImFormatStringNative(buf, bufSize, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImFormatString(ref byte buf, nuint bufSize, ref byte fmt) + { + fixed (byte* pbuf = &buf) + { + fixed (byte* pfmt = &fmt) + { + int ret = ImFormatStringNative((byte*)pbuf, bufSize, (byte*)pfmt); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImFormatString(ref byte buf, nuint bufSize, ReadOnlySpan fmt) + { + fixed (byte* pbuf = &buf) + { + fixed (byte* pfmt = fmt) + { + int ret = ImFormatStringNative((byte*)pbuf, bufSize, (byte*)pfmt); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImFormatString(ref string buf, nuint bufSize, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2522,22 +4613,73 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) + byte* pStr1 = null; + int pStrSize1 = 0; + if (fmt != null) { - buf = Utils.DecodeStringUTF8(pStr0); + pStrSize1 = Utils.GetByteCountUTF8(fmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + int ret = ImFormatStringNative(pStr0, bufSize, pStr1); + buf = Utils.DecodeStringUTF8(pStr0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; + return ret; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) + public static int ImFormatString(ref byte buf, nuint bufSize, string fmt) + { + fixed (byte* pbuf = &buf) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImFormatStringNative((byte*)pbuf, bufSize, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImFormatString(ref string buf, nuint bufSize, ref byte fmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2556,22 +4698,22 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + fixed (byte* pfmt = &fmt) { + int ret = ImFormatStringNative(pStr0, bufSize, (byte*)pfmt); buf = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, ulong bufSize) + public static int ImFormatString(ref string buf, nuint bufSize, ReadOnlySpan fmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2590,22 +4732,56 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) + fixed (byte* pfmt = fmt) { + int ret = ImFormatStringNative(pStr0, bufSize, (byte*)pfmt); buf = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImFormatStringVNative(byte* buf, nuint bufSize, byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1272])(buf, bufSize, fmt, args); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[1272])((nint)buf, bufSize, (nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static int ImFormatStringV(byte* buf, nuint bufSize, byte* fmt, nuint args) + { + int ret = ImFormatStringVNative(buf, bufSize, fmt, args); + return ret; + } + + /// + /// To be documented. + /// + public static int ImFormatStringV(ref byte buf, nuint bufSize, byte* fmt, nuint args) + { + fixed (byte* pbuf = &buf) + { + int ret = ImFormatStringVNative((byte*)pbuf, bufSize, fmt, args); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImFormatStringV(ref string buf, nuint bufSize, byte* fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2624,22 +4800,103 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } + int ret = ImFormatStringVNative(pStr0, bufSize, fmt, args); + buf = Utils.DecodeStringUTF8(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; + return ret; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) + public static int ImFormatStringV(byte* buf, nuint bufSize, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + int ret = ImFormatStringVNative(buf, bufSize, (byte*)pfmt, args); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImFormatStringV(byte* buf, nuint bufSize, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + int ret = ImFormatStringVNative(buf, bufSize, (byte*)pfmt, args); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImFormatStringV(byte* buf, nuint bufSize, string fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImFormatStringVNative(buf, bufSize, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImFormatStringV(ref byte buf, nuint bufSize, ref byte fmt, nuint args) + { + fixed (byte* pbuf = &buf) + { + fixed (byte* pfmt = &fmt) + { + int ret = ImFormatStringVNative((byte*)pbuf, bufSize, (byte*)pfmt, args); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImFormatStringV(ref byte buf, nuint bufSize, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pbuf = &buf) + { + fixed (byte* pfmt = fmt) + { + int ret = ImFormatStringVNative((byte*)pbuf, bufSize, (byte*)pfmt, args); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImFormatStringV(ref string buf, nuint bufSize, string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2658,22 +4915,73 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) + byte* pStr1 = null; + int pStrSize1 = 0; + if (fmt != null) { - buf = Utils.DecodeStringUTF8(pStr0); + pStrSize1 = Utils.GetByteCountUTF8(fmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + int ret = ImFormatStringVNative(pStr0, bufSize, pStr1, args); + buf = Utils.DecodeStringUTF8(pStr0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; + return ret; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, ulong bufSize, void* userData) + public static int ImFormatStringV(ref byte buf, nuint bufSize, string fmt, nuint args) + { + fixed (byte* pbuf = &buf) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImFormatStringVNative((byte*)pbuf, bufSize, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImFormatStringV(ref string buf, nuint bufSize, ref byte fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2692,22 +5000,22 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) + fixed (byte* pfmt = &fmt) { + int ret = ImFormatStringVNative(pStr0, bufSize, (byte*)pfmt, args); buf = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) + public static int ImFormatStringV(ref string buf, nuint bufSize, ReadOnlySpan fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2726,2305 +5034,15 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) + fixed (byte* pfmt = fmt) { + int ret = ImFormatStringVNative(pStr0, bufSize, (byte*)pfmt, args); buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, ulong bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, ulong bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref string buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref string buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, ulong bufSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, ulong bufSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, ulong bufSize) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, ulong bufSize) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref string buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref string buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + return ret; } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.004.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.004.cs index 8e3d8057e..7f6b7f843 100644 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.004.cs +++ b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.004.cs @@ -21,36 +21,2375 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* ImParseFormatTrimDecorationsNative(byte* format, byte* buf, nuint bufSize) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1273])(format, buf, bufSize); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[1273])((nint)format, (nint)buf, bufSize); + #endif + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatTrimDecorations(byte* format, byte* buf, nuint bufSize) + { + byte* ret = ImParseFormatTrimDecorationsNative(format, buf, bufSize); + return ret; + } + + /// + /// To be documented. + /// + public static string ImParseFormatTrimDecorationsS(byte* format, byte* buf, nuint bufSize) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(format, buf, bufSize)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatTrimDecorations(ref byte format, byte* buf, nuint bufSize) + { + fixed (byte* pformat = &format) + { + byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatTrimDecorationsS(ref byte format, byte* buf, nuint bufSize) + { + fixed (byte* pformat = &format) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatTrimDecorations(ReadOnlySpan format, byte* buf, nuint bufSize) + { + fixed (byte* pformat = format) + { + byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatTrimDecorationsS(ReadOnlySpan format, byte* buf, nuint bufSize) + { + fixed (byte* pformat = format) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatTrimDecorations(string format, byte* buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImParseFormatTrimDecorationsNative(pStr0, buf, bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImParseFormatTrimDecorationsS(string format, byte* buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(pStr0, buf, bufSize)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatTrimDecorations(byte* format, ref byte buf, nuint bufSize) + { + fixed (byte* pbuf = &buf) + { + byte* ret = ImParseFormatTrimDecorationsNative(format, (byte*)pbuf, bufSize); + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatTrimDecorationsS(byte* format, ref byte buf, nuint bufSize) + { + fixed (byte* pbuf = &buf) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(format, (byte*)pbuf, bufSize)); + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatTrimDecorations(byte* format, ref string buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImParseFormatTrimDecorationsNative(format, pStr0, bufSize); + buf = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImParseFormatTrimDecorationsS(byte* format, ref string buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(format, pStr0, bufSize)); + buf = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatTrimDecorations(ref byte format, ref byte buf, nuint bufSize) + { + fixed (byte* pformat = &format) + { + fixed (byte* pbuf = &buf) + { + byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatTrimDecorationsS(ref byte format, ref byte buf, nuint bufSize) + { + fixed (byte* pformat = &format) + { + fixed (byte* pbuf = &buf) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatTrimDecorations(ReadOnlySpan format, ref byte buf, nuint bufSize) + { + fixed (byte* pformat = format) + { + fixed (byte* pbuf = &buf) + { + byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatTrimDecorationsS(ReadOnlySpan format, ref byte buf, nuint bufSize) + { + fixed (byte* pformat = format) + { + fixed (byte* pbuf = &buf) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatTrimDecorations(string format, ref string buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImParseFormatTrimDecorationsNative(pStr0, pStr1, bufSize); + buf = Utils.DecodeStringUTF8(pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static string ImParseFormatTrimDecorationsS(string format, ref string buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(pStr0, pStr1, bufSize)); + buf = Utils.DecodeStringUTF8(pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatTrimDecorations(ref byte format, ref string buf, nuint bufSize) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, pStr0, bufSize); + buf = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatTrimDecorationsS(ref byte format, ref string buf, nuint bufSize) + { + fixed (byte* pformat = &format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, pStr0, bufSize)); + buf = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatTrimDecorations(ReadOnlySpan format, ref string buf, nuint bufSize) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, pStr0, bufSize); + buf = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatTrimDecorationsS(ReadOnlySpan format, ref string buf, nuint bufSize) + { + fixed (byte* pformat = format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, pStr0, bufSize)); + buf = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static byte* ImParseFormatTrimDecorations(string format, ref byte buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte* ret = ImParseFormatTrimDecorationsNative(pStr0, (byte*)pbuf, bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static string ImParseFormatTrimDecorationsS(string format, ref byte buf, nuint bufSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(pStr0, (byte*)pbuf, bufSize)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImTextStrToUtf8Native(byte* outBuf, int outBufSize, ushort* inText, ushort* inTextEnd) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1274])(outBuf, outBufSize, inText, inTextEnd); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[1274])((nint)outBuf, outBufSize, (nint)inText, (nint)inTextEnd); + #endif + } + + /// + /// To be documented. + /// + public static int ImTextStrToUtf8(byte* outBuf, int outBufSize, ushort* inText, ushort* inTextEnd) + { + int ret = ImTextStrToUtf8Native(outBuf, outBufSize, inText, inTextEnd); + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextStrToUtf8(ref byte outBuf, int outBufSize, ushort* inText, ushort* inTextEnd) + { + fixed (byte* poutBuf = &outBuf) + { + int ret = ImTextStrToUtf8Native((byte*)poutBuf, outBufSize, inText, inTextEnd); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrToUtf8(ref string outBuf, int outBufSize, ushort* inText, ushort* inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (outBuf != null) + { + pStrSize0 = Utils.GetByteCountUTF8(outBuf); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(outBuf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextStrToUtf8Native(pStr0, outBufSize, inText, inTextEnd); + outBuf = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImTextStrFromUtf8Native(ushort* outBuf, int outBufSize, byte* inText, byte* inTextEnd, byte** inRemaining) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1275])(outBuf, outBufSize, inText, inTextEnd, inRemaining); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[1275])((nint)outBuf, outBufSize, (nint)inText, (nint)inTextEnd, (nint)inRemaining); + #endif + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, byte* inTextEnd, byte** inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, inTextEnd, inRemaining); + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, byte* inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, inTextEnd, (byte**)(default)); + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, byte* inTextEnd, byte** inRemaining) + { + fixed (byte* pinText = &inText) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, inRemaining); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, byte* inTextEnd) + { + fixed (byte* pinText = &inText) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, byte* inTextEnd, byte** inRemaining) + { + fixed (byte* pinText = inText) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, inRemaining); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, byte* inTextEnd) + { + fixed (byte* pinText = inText) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, byte* inTextEnd, byte** inRemaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, inTextEnd, inRemaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, byte* inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, inTextEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ref byte inTextEnd, byte** inRemaining) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, inRemaining); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ref byte inTextEnd) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ReadOnlySpan inTextEnd, byte** inRemaining) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, inRemaining); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ReadOnlySpan inTextEnd) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)(default)); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, string inTextEnd, byte** inRemaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, pStr0, inRemaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, string inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ref byte inTextEnd, byte** inRemaining) + { + fixed (byte* pinText = &inText) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ref byte inTextEnd) + { + fixed (byte* pinText = &inText) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, ReadOnlySpan inTextEnd, byte** inRemaining) + { + fixed (byte* pinText = inText) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, ReadOnlySpan inTextEnd) + { + fixed (byte* pinText = inText) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, string inTextEnd, byte** inRemaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (inTextEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, pStr1, inRemaining); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, string inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (inTextEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, pStr1, (byte**)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ReadOnlySpan inTextEnd, byte** inRemaining) + { + fixed (byte* pinText = &inText) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ReadOnlySpan inTextEnd) + { + fixed (byte* pinText = &inText) + { + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, string inTextEnd, byte** inRemaining) + { + fixed (byte* pinText = &inText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, inRemaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, string inTextEnd) + { + fixed (byte* pinText = &inText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, ref byte inTextEnd, byte** inRemaining) + { + fixed (byte* pinText = inText) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, ref byte inTextEnd) + { + fixed (byte* pinText = inText) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, string inTextEnd, byte** inRemaining) + { + fixed (byte* pinText = inText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, inRemaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, string inTextEnd) + { + fixed (byte* pinText = inText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ref byte inTextEnd, byte** inRemaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, inRemaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ref byte inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ReadOnlySpan inTextEnd, byte** inRemaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, inRemaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ReadOnlySpan inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pinTextEnd = inTextEnd) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, byte* inTextEnd, ref byte* inRemaining) + { + fixed (byte** pinRemaining = &inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, inTextEnd, (byte**)pinRemaining); + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, byte* inTextEnd, ref byte* inRemaining) + { + fixed (byte* pinText = &inText) + { + fixed (byte** pinRemaining = &inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)pinRemaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, byte* inTextEnd, ref byte* inRemaining) + { + fixed (byte* pinText = inText) + { + fixed (byte** pinRemaining = &inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)pinRemaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, byte* inTextEnd, ref byte* inRemaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** pinRemaining = &inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, inTextEnd, (byte**)pinRemaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ref byte inTextEnd, ref byte* inRemaining) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + fixed (byte** pinRemaining = &inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)pinRemaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ReadOnlySpan inTextEnd, ref byte* inRemaining) + { + fixed (byte* pinTextEnd = inTextEnd) + { + fixed (byte** pinRemaining = &inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)pinRemaining); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, string inTextEnd, ref byte* inRemaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** pinRemaining = &inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, pStr0, (byte**)pinRemaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ref byte inTextEnd, ref byte* inRemaining) + { + fixed (byte* pinText = &inText) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + fixed (byte** pinRemaining = &inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, ReadOnlySpan inTextEnd, ref byte* inRemaining) + { + fixed (byte* pinText = inText) + { + fixed (byte* pinTextEnd = inTextEnd) + { + fixed (byte** pinRemaining = &inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, string inTextEnd, ref byte* inRemaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (inTextEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte** pinRemaining = &inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, pStr1, (byte**)pinRemaining); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ReadOnlySpan inTextEnd, ref byte* inRemaining) + { + fixed (byte* pinText = &inText) + { + fixed (byte* pinTextEnd = inTextEnd) + { + fixed (byte** pinRemaining = &inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, string inTextEnd, ref byte* inRemaining) + { + fixed (byte* pinText = &inText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** pinRemaining = &inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, (byte**)pinRemaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, ref byte inTextEnd, ref byte* inRemaining) + { + fixed (byte* pinText = inText) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + fixed (byte** pinRemaining = &inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, string inTextEnd, ref byte* inRemaining) + { + fixed (byte* pinText = inText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** pinRemaining = &inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, (byte**)pinRemaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ref byte inTextEnd, ref byte* inRemaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pinTextEnd = &inTextEnd) + { + fixed (byte** pinRemaining = &inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, (byte**)pinRemaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ReadOnlySpan inTextEnd, ref byte* inRemaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pinTextEnd = inTextEnd) + { + fixed (byte** pinRemaining = &inRemaining) + { + int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, (byte**)pinRemaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int DataTypeFormatStringNative(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, byte* format) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1276])(buf, bufSize, dataType, pData, format); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[1276])((nint)buf, bufSize, dataType, (nint)pData, (nint)format); + #endif + } + + /// + /// To be documented. + /// + public static int DataTypeFormatString(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, byte* format) + { + int ret = DataTypeFormatStringNative(buf, bufSize, dataType, pData, format); + return ret; + } + + /// + /// To be documented. + /// + public static int DataTypeFormatString(ref byte buf, int bufSize, ImGuiDataType dataType, void* pData, byte* format) + { + fixed (byte* pbuf = &buf) + { + int ret = DataTypeFormatStringNative((byte*)pbuf, bufSize, dataType, pData, format); + return ret; + } + } + + /// + /// To be documented. + /// + public static int DataTypeFormatString(ref string buf, int bufSize, ImGuiDataType dataType, void* pData, byte* format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = DataTypeFormatStringNative(pStr0, bufSize, dataType, pData, format); + buf = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int DataTypeFormatString(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, ref byte format) + { + fixed (byte* pformat = &format) + { + int ret = DataTypeFormatStringNative(buf, bufSize, dataType, pData, (byte*)pformat); + return ret; + } + } + + /// + /// To be documented. + /// + public static int DataTypeFormatString(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + int ret = DataTypeFormatStringNative(buf, bufSize, dataType, pData, (byte*)pformat); + return ret; + } + } + + /// + /// To be documented. + /// + public static int DataTypeFormatString(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = DataTypeFormatStringNative(buf, bufSize, dataType, pData, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int DataTypeFormatString(ref byte buf, int bufSize, ImGuiDataType dataType, void* pData, ref byte format) + { + fixed (byte* pbuf = &buf) + { + fixed (byte* pformat = &format) + { + int ret = DataTypeFormatStringNative((byte*)pbuf, bufSize, dataType, pData, (byte*)pformat); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int DataTypeFormatString(ref byte buf, int bufSize, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + fixed (byte* pbuf = &buf) + { + fixed (byte* pformat = format) + { + int ret = DataTypeFormatStringNative((byte*)pbuf, bufSize, dataType, pData, (byte*)pformat); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int DataTypeFormatString(ref string buf, int bufSize, ImGuiDataType dataType, void* pData, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + int ret = DataTypeFormatStringNative(pStr0, bufSize, dataType, pData, pStr1); + buf = Utils.DecodeStringUTF8(pStr0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int DataTypeFormatString(ref byte buf, int bufSize, ImGuiDataType dataType, void* pData, string format) + { + fixed (byte* pbuf = &buf) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = DataTypeFormatStringNative((byte*)pbuf, bufSize, dataType, pData, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int DataTypeFormatString(ref string buf, int bufSize, ImGuiDataType dataType, void* pData, ref byte format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = &format) + { + int ret = DataTypeFormatStringNative(pStr0, bufSize, dataType, pData, (byte*)pformat); + buf = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static int DataTypeFormatString(ref string buf, int bufSize, ImGuiDataType dataType, void* pData, ReadOnlySpan format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + int ret = DataTypeFormatStringNative(pStr0, bufSize, dataType, pData, (byte*)pformat); + buf = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte InputTextExNative(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl], void*, byte>)funcTable[1277])(label, hint, buf, bufSize, sizeArg, flags, (delegate*)Utils.GetFunctionPointerForDelegate(callback), userData); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1277])((nint)label, (nint)hint, (nint)buf, bufSize, sizeArg, flags, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)userData); + #endif + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte ret = InputTextExNative(label, hint, buf, bufSize, sizeArg, flags, callback, userData); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte ret = InputTextExNative(label, hint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + byte ret = InputTextExNative(label, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + byte ret = InputTextExNative(label, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative(pStr0, hint, buf, bufSize, sizeArg, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative(pStr0, hint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative(pStr0, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative(pStr0, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* phint = &hint) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); return ret != 0; } } @@ -58,36 +2397,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, ulong bufSize) + public static bool InputTextEx(byte* label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* phint = &hint) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); return ret != 0; } } @@ -95,36 +2409,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) + public static bool InputTextEx(byte* label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { fixed (byte* phint = &hint) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } @@ -132,36 +2421,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextEx(byte* label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) { fixed (byte* phint = &hint) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } } @@ -169,110 +2433,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, ulong bufSize, void* userData) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextEx(byte* label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* phint = hint) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); return ret != 0; } } @@ -280,36 +2445,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextEx(byte* label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* phint = hint) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); return ret != 0; } } @@ -317,36 +2457,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) + public static bool InputTextEx(byte* label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { fixed (byte* phint = hint) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } @@ -354,36 +2469,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, ulong bufSize) + public static bool InputTextEx(byte* label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) { fixed (byte* phint = hint) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } } @@ -391,155 +2481,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, ulong bufSize, void* userData) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextEx(byte* label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -558,21 +2500,18 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pbuf = &buf) + byte ret = InputTextExNative(label, pStr0, buf, bufSize, sizeArg, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextEx(byte* label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -591,21 +2530,18 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pbuf = &buf) + byte ret = InputTextExNative(label, pStr0, buf, bufSize, sizeArg, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) + public static bool InputTextEx(byte* label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -624,21 +2560,18 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pbuf = &buf) + byte ret = InputTextExNative(label, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, ulong bufSize) + public static bool InputTextEx(byte* label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -657,163 +2590,25 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pbuf = &buf) + byte ret = InputTextExNative(label, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextEx(ref byte label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { fixed (byte* phint = &hint) { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); + return ret != 0; } } } @@ -821,17 +2616,14 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextEx(ref byte label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { fixed (byte* phint = &hint) { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); + return ret != 0; } } } @@ -839,17 +2631,14 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) + public static bool InputTextEx(ref byte label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { fixed (byte* plabel = &label) { fixed (byte* phint = &hint) { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; } } } @@ -857,17 +2646,14 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, ulong bufSize) + public static bool InputTextEx(ref byte label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = &label) { fixed (byte* phint = &hint) { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; } } } @@ -875,89 +2661,14 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { fixed (byte* phint = hint) { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); + return ret != 0; } } } @@ -965,17 +2676,14 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { fixed (byte* phint = hint) { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); + return ret != 0; } } } @@ -983,17 +2691,14 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) + public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { fixed (byte* plabel = label) { fixed (byte* phint = hint) { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; } } } @@ -1001,17 +2706,14 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, ulong bufSize) + public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = label) { fixed (byte* phint = hint) { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; } } } @@ -1019,79 +2721,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextEx(string label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1127,32 +2757,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } + byte ret = InputTextExNative(pStr0, pStr1, buf, bufSize, sizeArg, flags, callback, userData); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -1167,7 +2772,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextEx(string label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1203,32 +2808,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } + byte ret = InputTextExNative(pStr0, pStr1, buf, bufSize, sizeArg, flags, callback, (void*)(default)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -1243,7 +2823,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) + public static bool InputTextEx(string label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1279,32 +2859,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } + byte ret = InputTextExNative(pStr0, pStr1, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -1319,7 +2874,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, ref string buf, ulong bufSize) + public static bool InputTextEx(string label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1355,32 +2910,7 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } + byte ret = InputTextExNative(pStr0, pStr1, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -1395,7 +2925,959 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) + public static bool InputTextEx(ref byte label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(label, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(label, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(label, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(label, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative(label, hint, pStr0, bufSize, sizeArg, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative(label, hint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative(label, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative(label, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1416,9 +3898,9 @@ namespace Dalamud.Bindings.ImGui } byte* pStr1 = null; int pStrSize1 = 0; - if (hint != null) + if (buf != null) { - pStrSize1 = Utils.GetByteCountUTF8(hint); + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -1428,34 +3910,13 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) + byte ret = InputTextExNative(pStr0, hint, pStr1, bufSize, sizeArg, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); + buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { @@ -1471,7 +3932,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextEx(string label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1492,9 +3953,9 @@ namespace Dalamud.Bindings.ImGui } byte* pStr1 = null; int pStrSize1 = 0; - if (hint != null) + if (buf != null) { - pStrSize1 = Utils.GetByteCountUTF8(hint); + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -1504,34 +3965,13 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) + byte ret = InputTextExNative(pStr0, hint, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); + buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { @@ -1547,7 +3987,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, ref string buf, ulong bufSize, void* userData) + public static bool InputTextEx(string label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1568,9 +4008,9 @@ namespace Dalamud.Bindings.ImGui } byte* pStr1 = null; int pStrSize1 = 0; - if (hint != null) + if (buf != null) { - pStrSize1 = Utils.GetByteCountUTF8(hint); + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -1580,34 +4020,13 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) + byte ret = InputTextExNative(pStr0, hint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); + buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { @@ -1623,7 +4042,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextEx(string label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1644,9 +4063,9 @@ namespace Dalamud.Bindings.ImGui } byte* pStr1 = null; int pStrSize1 = 0; - if (hint != null) + if (buf != null) { - pStrSize1 = Utils.GetByteCountUTF8(hint); + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -1656,34 +4075,13 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) + byte ret = InputTextExNative(pStr0, hint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); + buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { @@ -1699,1124 +4097,31 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, ulong bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, ulong bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, ulong bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextEx(ref byte label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, ulong bufSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; if (buf != null) { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, callback, userData); - if (ret != 0) + byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { @@ -2829,15 +4134,15 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextEx(ref byte label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (buf != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -2847,34 +4152,13 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) + byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { @@ -2887,15 +4171,15 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) + public static bool InputTextEx(ref byte label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (buf != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -2905,34 +4189,13 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) + byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { @@ -2945,15 +4208,15 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, ulong bufSize) + public static bool InputTextEx(ref byte label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (buf != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -2963,34 +4226,13 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) + byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { @@ -3003,15 +4245,15 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) + public static bool InputTextEx(ReadOnlySpan label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { - fixed (byte* plabel = &label) + fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (buf != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3021,34 +4263,13 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) + byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { @@ -3061,15 +4282,15 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextEx(ReadOnlySpan label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { - fixed (byte* plabel = &label) + fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (buf != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3079,34 +4300,13 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) + byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { @@ -3119,15 +4319,15 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, ulong bufSize, void* userData) + public static bool InputTextEx(ReadOnlySpan label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { - fixed (byte* plabel = &label) + fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (buf != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3137,34 +4337,13 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) + byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { @@ -3177,15 +4356,15 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextEx(ReadOnlySpan label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) { - fixed (byte* plabel = &label) + fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (buf != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3195,34 +4374,13 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) + byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { @@ -3235,1543 +4393,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, ulong bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, ulong bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, ulong bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, ulong bufSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, ulong bufSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, ulong bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextEx(string label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4790,24 +4412,21 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* phint = &hint) + fixed (byte* pbuf = &buf) { - fixed (byte* pbuf = &buf) + byte ret = InputTextExNative(pStr0, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } /// /// To be documented. /// - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextEx(string label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4826,24 +4445,21 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* phint = &hint) + fixed (byte* pbuf = &buf) { - fixed (byte* pbuf = &buf) + byte ret = InputTextExNative(pStr0, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } /// /// To be documented. /// - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) + public static bool InputTextEx(string label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4862,24 +4478,21 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* phint = &hint) + fixed (byte* pbuf = &buf) { - fixed (byte* pbuf = &buf) + byte ret = InputTextExNative(pStr0, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } /// /// To be documented. /// - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, ulong bufSize) + public static bool InputTextEx(string label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4898,15 +4511,27 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(pStr0, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { fixed (byte* phint = &hint) { fixed (byte* pbuf = &buf) { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); return ret != 0; } } @@ -4915,13 +4540,118 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) + public static bool InputTextEx(byte* label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (hint != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(hint); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4931,33 +4661,52 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* phint = &hint) + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) { - fixed (byte* pbuf = &buf) + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } + byte ret = InputTextExNative(label, pStr0, pStr1, bufSize, sizeArg, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextEx(byte* label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (hint != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(hint); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4967,33 +4716,52 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* phint = &hint) + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) { - fixed (byte* pbuf = &buf) + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } + byte ret = InputTextExNative(label, pStr0, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, ulong bufSize, void* userData) + public static bool InputTextEx(byte* label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (hint != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(hint); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -5003,20 +4771,279 @@ namespace Dalamud.Bindings.ImGui byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative(label, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative(label, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { fixed (byte* phint = &hint) { - fixed (byte* pbuf = &buf) + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - return ret != 0; + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(byte* label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } } diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.005.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.005.cs index c659698a3..5147fc41b 100644 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.005.cs +++ b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.005.cs @@ -21,88 +21,31 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextEx(byte* label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte* phint = hint) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, callback, userData); - if (ret != 0) + byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { @@ -115,746 +58,68 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextEx(byte* label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } fixed (byte* phint = hint) { - fixed (byte* pbuf = &buf) + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - return ret != 0; + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextEx(byte* label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } fixed (byte* phint = hint) { - fixed (byte* pbuf = &buf) + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, callback, userData); - if (ret != 0) + byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { @@ -867,1541 +132,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref byte buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref byte buf, ulong bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, void* userData) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, nuint bufSize) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextEx(byte* label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2420,18 +151,21 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pbuf = &buf) { - Utils.Free(pStr0); + byte ret = InputTextExNative(label, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextEx(byte* label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2450,18 +184,21 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pbuf = &buf) { - Utils.Free(pStr0); + byte ret = InputTextExNative(label, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + public static bool InputTextEx(byte* label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2480,18 +217,21 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pbuf = &buf) { - Utils.Free(pStr0); + byte ret = InputTextExNative(label, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize) + public static bool InputTextEx(byte* label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2510,145 +250,31 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pbuf = &buf) { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); + byte ret = InputTextExNative(label, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + Utils.Free(pStr0); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextEx(ref byte label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { fixed (byte* phint = &hint) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); + return ret != 0; + } } } } @@ -2656,14 +282,17 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextEx(ref byte label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { fixed (byte* phint = &hint) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); + return ret != 0; + } } } } @@ -2671,14 +300,17 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + public static bool InputTextEx(ref byte label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { fixed (byte* plabel = &label) { fixed (byte* phint = &hint) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } } } } @@ -2686,14 +318,17 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize) + public static bool InputTextEx(ref byte label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = &label) { fixed (byte* phint = &hint) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } } } } @@ -2701,74 +336,17 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { fixed (byte* phint = hint) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); + return ret != 0; + } } } } @@ -2776,14 +354,17 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { fixed (byte* phint = hint) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); + return ret != 0; + } } } } @@ -2791,14 +372,17 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { fixed (byte* plabel = label) { fixed (byte* phint = hint) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } } } } @@ -2806,14 +390,17 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, nuint bufSize) + public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = label) { fixed (byte* phint = hint) { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } } } } @@ -2821,67 +408,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextEx(string label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2917,7 +444,32 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, callback, userData); + byte* pStr2 = null; + int pStrSize2 = 0; + if (buf != null) + { + pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = InputTextExNative(pStr0, pStr1, pStr2, bufSize, sizeArg, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr2); + } + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -2932,7 +484,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool InputTextEx(string label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2968,7 +520,32 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, callback, (void*)(default)); + byte* pStr2 = null; + int pStrSize2 = 0; + if (buf != null) + { + pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = InputTextExNative(pStr0, pStr1, pStr2, bufSize, sizeArg, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr2); + } + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -2983,7 +560,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) + public static bool InputTextEx(string label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3019,7 +596,32 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + byte* pStr2 = null; + int pStrSize2 = 0; + if (buf != null) + { + pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = InputTextExNative(pStr0, pStr1, pStr2, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr2); + } + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -3034,7 +636,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize) + public static bool InputTextEx(string label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3070,7 +672,32 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); + byte* pStr2 = null; + int pStrSize2 = 0; + if (buf != null) + { + pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte ret = InputTextExNative(pStr0, pStr1, pStr2, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr2); + } + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -3085,7 +712,2295 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) + public static bool InputTextEx(ref byte label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ref byte label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = &hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + fixed (byte* phint = hint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) + { + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(ReadOnlySpan label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (hint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(hint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = &hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + fixed (byte* pbuf = &buf) + { + byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, callback, userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* phint = hint) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool InputTextEx(string label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3121,22 +3036,25 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pbuf = &buf) { - Utils.Free(pStr1); + byte ret = InputTextExNative(pStr0, pStr1, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) + public static bool InputTextEx(string label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3172,22 +3090,25 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pbuf = &buf) { - Utils.Free(pStr1); + byte ret = InputTextExNative(pStr0, pStr1, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, void* userData) + public static bool InputTextEx(string label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3223,22 +3144,25 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pbuf = &buf) { - Utils.Free(pStr1); + byte ret = InputTextExNative(pStr0, pStr1, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } /// /// To be documented. /// - public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) + public static bool InputTextEx(string label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3274,11 +3198,90 @@ namespace Dalamud.Bindings.ImGui int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pbuf = &buf) { - Utils.Free(pStr1); + byte ret = InputTextExNative(pStr0, pStr1, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte TempInputTextNative(ImRect bb, uint id, byte* label, byte* buf, int bufSize, ImGuiInputTextFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[1278])(bb, id, label, buf, bufSize, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[1278])(bb, id, (nint)label, (nint)buf, bufSize, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool TempInputText(ImRect bb, uint id, byte* label, byte* buf, int bufSize, ImGuiInputTextFlags flags) + { + byte ret = TempInputTextNative(bb, id, label, buf, bufSize, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TempInputText(ImRect bb, uint id, ref byte label, byte* buf, int bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = &label) + { + byte ret = TempInputTextNative(bb, id, (byte*)plabel, buf, bufSize, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputText(ImRect bb, uint id, ReadOnlySpan label, byte* buf, int bufSize, ImGuiInputTextFlags flags) + { + fixed (byte* plabel = label) + { + byte ret = TempInputTextNative(bb, id, (byte*)plabel, buf, bufSize, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool TempInputText(ImRect bb, uint id, string label, byte* buf, int bufSize, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TempInputTextNative(bb, id, pStr0, buf, bufSize, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3289,1307 +3292,11 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool TempInputText(ImRect bb, uint id, byte* label, ref byte buf, int bufSize, ImGuiInputTextFlags flags) { fixed (byte* pbuf = &buf) { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, callback, userData); + byte ret = TempInputTextNative(bb, id, label, (byte*)pbuf, bufSize, flags); return ret != 0; } } @@ -4597,91 +3304,7 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool TempInputText(ImRect bb, uint id, byte* label, ref string buf, int bufSize, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4700,8 +3323,8 @@ namespace Dalamud.Bindings.ImGui int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) + byte ret = TempInputTextNative(bb, id, label, pStr0, bufSize, flags); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) { buf = Utils.DecodeStringUTF8(pStr0); } @@ -4715,251 +3338,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) + public static bool TempInputText(ImRect bb, uint id, ref byte label, ref byte buf, int bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, userData); + byte ret = TempInputTextNative(bb, id, (byte*)plabel, (byte*)pbuf, bufSize, flags); return ret != 0; } } @@ -4968,13 +3353,13 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) + public static bool TempInputText(ImRect bb, uint id, ReadOnlySpan label, ref byte buf, int bufSize, ImGuiInputTextFlags flags) { - fixed (byte* plabel = &label) + fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); + byte ret = TempInputTextNative(bb, id, (byte*)plabel, (byte*)pbuf, bufSize, flags); return ret != 0; } } @@ -4983,46 +3368,164 @@ namespace Dalamud.Bindings.ImGui /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) + public static bool TempInputText(ImRect bb, uint id, string label, ref string buf, int bufSize, ImGuiInputTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (buf != null) + { + pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = TempInputTextNative(bb, id, pStr0, pStr1, bufSize, flags); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr1); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool TempInputText(ImRect bb, uint id, ref byte label, ref string buf, int bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = &label) { - fixed (byte* pbuf = &buf) + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = TempInputTextNative(bb, id, (byte*)plabel, pStr0, bufSize, flags); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize) + public static bool TempInputText(ImRect bb, uint id, ReadOnlySpan label, ref string buf, int bufSize, ImGuiInputTextFlags flags) { - fixed (byte* plabel = &label) + fixed (byte* plabel = label) { - fixed (byte* pbuf = &buf) + byte* pStr0 = null; + int pStrSize0 = 0; + if (buf != null) { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; + pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = TempInputTextNative(bb, id, (byte*)plabel, pStr0, bufSize, flags); + if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) + { + buf = Utils.DecodeStringUTF8(pStr0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) + public static bool TempInputText(ImRect bb, uint id, string label, ref byte buf, int bufSize, ImGuiInputTextFlags flags) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (byte* pbuf = &buf) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pbuf = &buf) + { + byte ret = TempInputTextNative(bb, id, pStr0, (byte*)pbuf, bufSize, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } + } } diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.006.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.006.cs deleted file mode 100644 index 6db604647..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.006.cs +++ /dev/null @@ -1,5044 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, nuint bufSize) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, nuint bufSize) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.007.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.007.cs deleted file mode 100644 index aaa4e599f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.007.cs +++ /dev/null @@ -1,5047 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(ReadOnlySpan label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, ReadOnlySpan hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImFormatStringNative(byte* buf, ulong bufSize, byte* fmt) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1271])(buf, bufSize, fmt); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[1271])((nint)buf, bufSize, (nint)fmt); - #endif - } - - /// - /// To be documented. - /// - public static int ImFormatString(byte* buf, ulong bufSize, byte* fmt) - { - int ret = ImFormatStringNative(buf, bufSize, fmt); - return ret; - } - - /// - /// To be documented. - /// - public static int ImFormatString(ref byte buf, ulong bufSize, byte* fmt) - { - fixed (byte* pbuf = &buf) - { - int ret = ImFormatStringNative((byte*)pbuf, bufSize, fmt); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatString(ref string buf, ulong bufSize, byte* fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringNative(pStr0, bufSize, fmt); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImFormatString(byte* buf, nuint bufSize, byte* fmt) - { - int ret = ImFormatStringNative(buf, bufSize, fmt); - return ret; - } - - /// - /// To be documented. - /// - public static int ImFormatString(ref byte buf, nuint bufSize, byte* fmt) - { - fixed (byte* pbuf = &buf) - { - int ret = ImFormatStringNative((byte*)pbuf, bufSize, fmt); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatString(ref string buf, nuint bufSize, byte* fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringNative(pStr0, bufSize, fmt); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImFormatString(byte* buf, ulong bufSize, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringNative(buf, bufSize, (byte*)pfmt); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatString(byte* buf, ulong bufSize, ReadOnlySpan fmt) - { - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringNative(buf, bufSize, (byte*)pfmt); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatString(byte* buf, ulong bufSize, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringNative(buf, bufSize, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImFormatString(ref byte buf, ulong bufSize, ref byte fmt) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringNative((byte*)pbuf, bufSize, (byte*)pfmt); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImFormatString(ref byte buf, ulong bufSize, ReadOnlySpan fmt) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringNative((byte*)pbuf, bufSize, (byte*)pfmt); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImFormatString(ref string buf, ulong bufSize, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImFormatStringNative(pStr0, bufSize, pStr1); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImFormatString(ref byte buf, ulong bufSize, string fmt) - { - fixed (byte* pbuf = &buf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringNative((byte*)pbuf, bufSize, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatString(ref string buf, ulong bufSize, ref byte fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringNative(pStr0, bufSize, (byte*)pfmt); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatString(ref string buf, ulong bufSize, ReadOnlySpan fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringNative(pStr0, bufSize, (byte*)pfmt); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatString(byte* buf, nuint bufSize, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringNative(buf, bufSize, (byte*)pfmt); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatString(byte* buf, nuint bufSize, ReadOnlySpan fmt) - { - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringNative(buf, bufSize, (byte*)pfmt); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatString(byte* buf, nuint bufSize, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringNative(buf, bufSize, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImFormatString(ref byte buf, nuint bufSize, ref byte fmt) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringNative((byte*)pbuf, bufSize, (byte*)pfmt); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImFormatString(ref byte buf, nuint bufSize, ReadOnlySpan fmt) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringNative((byte*)pbuf, bufSize, (byte*)pfmt); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImFormatString(ref string buf, nuint bufSize, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImFormatStringNative(pStr0, bufSize, pStr1); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImFormatString(ref byte buf, nuint bufSize, string fmt) - { - fixed (byte* pbuf = &buf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringNative((byte*)pbuf, bufSize, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatString(ref string buf, nuint bufSize, ref byte fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringNative(pStr0, bufSize, (byte*)pfmt); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatString(ref string buf, nuint bufSize, ReadOnlySpan fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringNative(pStr0, bufSize, (byte*)pfmt); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImFormatStringVNative(byte* buf, ulong bufSize, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1272])(buf, bufSize, fmt, args); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[1272])((nint)buf, bufSize, (nint)fmt, args); - #endif - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(byte* buf, ulong bufSize, byte* fmt, nuint args) - { - int ret = ImFormatStringVNative(buf, bufSize, fmt, args); - return ret; - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(ref byte buf, ulong bufSize, byte* fmt, nuint args) - { - fixed (byte* pbuf = &buf) - { - int ret = ImFormatStringVNative((byte*)pbuf, bufSize, fmt, args); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(ref string buf, ulong bufSize, byte* fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringVNative(pStr0, bufSize, fmt, args); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(byte* buf, nuint bufSize, byte* fmt, nuint args) - { - int ret = ImFormatStringVNative(buf, bufSize, fmt, args); - return ret; - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(ref byte buf, nuint bufSize, byte* fmt, nuint args) - { - fixed (byte* pbuf = &buf) - { - int ret = ImFormatStringVNative((byte*)pbuf, bufSize, fmt, args); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(ref string buf, nuint bufSize, byte* fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringVNative(pStr0, bufSize, fmt, args); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(byte* buf, ulong bufSize, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringVNative(buf, bufSize, (byte*)pfmt, args); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(byte* buf, ulong bufSize, ReadOnlySpan fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringVNative(buf, bufSize, (byte*)pfmt, args); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(byte* buf, ulong bufSize, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringVNative(buf, bufSize, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(ref byte buf, ulong bufSize, ref byte fmt, nuint args) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringVNative((byte*)pbuf, bufSize, (byte*)pfmt, args); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(ref byte buf, ulong bufSize, ReadOnlySpan fmt, nuint args) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringVNative((byte*)pbuf, bufSize, (byte*)pfmt, args); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(ref string buf, ulong bufSize, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImFormatStringVNative(pStr0, bufSize, pStr1, args); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(ref byte buf, ulong bufSize, string fmt, nuint args) - { - fixed (byte* pbuf = &buf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringVNative((byte*)pbuf, bufSize, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(ref string buf, ulong bufSize, ref byte fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringVNative(pStr0, bufSize, (byte*)pfmt, args); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(ref string buf, ulong bufSize, ReadOnlySpan fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringVNative(pStr0, bufSize, (byte*)pfmt, args); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(byte* buf, nuint bufSize, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringVNative(buf, bufSize, (byte*)pfmt, args); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(byte* buf, nuint bufSize, ReadOnlySpan fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringVNative(buf, bufSize, (byte*)pfmt, args); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(byte* buf, nuint bufSize, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringVNative(buf, bufSize, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(ref byte buf, nuint bufSize, ref byte fmt, nuint args) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringVNative((byte*)pbuf, bufSize, (byte*)pfmt, args); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(ref byte buf, nuint bufSize, ReadOnlySpan fmt, nuint args) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringVNative((byte*)pbuf, bufSize, (byte*)pfmt, args); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(ref string buf, nuint bufSize, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImFormatStringVNative(pStr0, bufSize, pStr1, args); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(ref byte buf, nuint bufSize, string fmt, nuint args) - { - fixed (byte* pbuf = &buf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringVNative((byte*)pbuf, bufSize, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImFormatStringV(ref string buf, nuint bufSize, ref byte fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringVNative(pStr0, bufSize, (byte*)pfmt, args); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.008.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.008.cs deleted file mode 100644 index d9767bbae..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.008.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// - /// To be documented. - /// - public static int ImFormatStringV(ref string buf, nuint bufSize, ReadOnlySpan fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringVNative(pStr0, bufSize, (byte*)pfmt, args); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* ImParseFormatTrimDecorationsNative(byte* format, byte* buf, ulong bufSize) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1273])(format, buf, bufSize); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[1273])((nint)format, (nint)buf, bufSize); - #endif - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(byte* format, byte* buf, ulong bufSize) - { - byte* ret = ImParseFormatTrimDecorationsNative(format, buf, bufSize); - return ret; - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(byte* format, byte* buf, ulong bufSize) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(format, buf, bufSize)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(ref byte format, byte* buf, ulong bufSize) - { - fixed (byte* pformat = &format) - { - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(ref byte format, byte* buf, ulong bufSize) - { - fixed (byte* pformat = &format) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(ReadOnlySpan format, byte* buf, ulong bufSize) - { - fixed (byte* pformat = format) - { - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(ReadOnlySpan format, byte* buf, ulong bufSize) - { - fixed (byte* pformat = format) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(string format, byte* buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatTrimDecorationsNative(pStr0, buf, bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(string format, byte* buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(pStr0, buf, bufSize)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(byte* format, ref byte buf, ulong bufSize) - { - fixed (byte* pbuf = &buf) - { - byte* ret = ImParseFormatTrimDecorationsNative(format, (byte*)pbuf, bufSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(byte* format, ref byte buf, ulong bufSize) - { - fixed (byte* pbuf = &buf) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(format, (byte*)pbuf, bufSize)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(byte* format, ref string buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatTrimDecorationsNative(format, pStr0, bufSize); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(byte* format, ref string buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(format, pStr0, bufSize)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(ref byte format, ref byte buf, ulong bufSize) - { - fixed (byte* pformat = &format) - { - fixed (byte* pbuf = &buf) - { - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(ref byte format, ref byte buf, ulong bufSize) - { - fixed (byte* pformat = &format) - { - fixed (byte* pbuf = &buf) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(ReadOnlySpan format, ref byte buf, ulong bufSize) - { - fixed (byte* pformat = format) - { - fixed (byte* pbuf = &buf) - { - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(ReadOnlySpan format, ref byte buf, ulong bufSize) - { - fixed (byte* pformat = format) - { - fixed (byte* pbuf = &buf) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(string format, ref string buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImParseFormatTrimDecorationsNative(pStr0, pStr1, bufSize); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(string format, ref string buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(pStr0, pStr1, bufSize)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(ref byte format, ref string buf, ulong bufSize) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, pStr0, bufSize); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(ref byte format, ref string buf, ulong bufSize) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, pStr0, bufSize)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(ReadOnlySpan format, ref string buf, ulong bufSize) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, pStr0, bufSize); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(ReadOnlySpan format, ref string buf, ulong bufSize) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, pStr0, bufSize)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(string format, ref byte buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte* ret = ImParseFormatTrimDecorationsNative(pStr0, (byte*)pbuf, bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(string format, ref byte buf, ulong bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(pStr0, (byte*)pbuf, bufSize)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(byte* format, byte* buf, nuint bufSize) - { - byte* ret = ImParseFormatTrimDecorationsNative(format, buf, bufSize); - return ret; - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(byte* format, byte* buf, nuint bufSize) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(format, buf, bufSize)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(ref byte format, byte* buf, nuint bufSize) - { - fixed (byte* pformat = &format) - { - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(ref byte format, byte* buf, nuint bufSize) - { - fixed (byte* pformat = &format) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(ReadOnlySpan format, byte* buf, nuint bufSize) - { - fixed (byte* pformat = format) - { - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(ReadOnlySpan format, byte* buf, nuint bufSize) - { - fixed (byte* pformat = format) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(string format, byte* buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatTrimDecorationsNative(pStr0, buf, bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(string format, byte* buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(pStr0, buf, bufSize)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(byte* format, ref byte buf, nuint bufSize) - { - fixed (byte* pbuf = &buf) - { - byte* ret = ImParseFormatTrimDecorationsNative(format, (byte*)pbuf, bufSize); - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(byte* format, ref byte buf, nuint bufSize) - { - fixed (byte* pbuf = &buf) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(format, (byte*)pbuf, bufSize)); - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(byte* format, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatTrimDecorationsNative(format, pStr0, bufSize); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(byte* format, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(format, pStr0, bufSize)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(ref byte format, ref byte buf, nuint bufSize) - { - fixed (byte* pformat = &format) - { - fixed (byte* pbuf = &buf) - { - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(ref byte format, ref byte buf, nuint bufSize) - { - fixed (byte* pformat = &format) - { - fixed (byte* pbuf = &buf) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(ReadOnlySpan format, ref byte buf, nuint bufSize) - { - fixed (byte* pformat = format) - { - fixed (byte* pbuf = &buf) - { - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(ReadOnlySpan format, ref byte buf, nuint bufSize) - { - fixed (byte* pformat = format) - { - fixed (byte* pbuf = &buf) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(string format, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImParseFormatTrimDecorationsNative(pStr0, pStr1, bufSize); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(string format, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(pStr0, pStr1, bufSize)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(ref byte format, ref string buf, nuint bufSize) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, pStr0, bufSize); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(ref byte format, ref string buf, nuint bufSize) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, pStr0, bufSize)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(ReadOnlySpan format, ref string buf, nuint bufSize) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, pStr0, bufSize); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(ReadOnlySpan format, ref string buf, nuint bufSize) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, pStr0, bufSize)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static byte* ImParseFormatTrimDecorations(string format, ref byte buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte* ret = ImParseFormatTrimDecorationsNative(pStr0, (byte*)pbuf, bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static string ImParseFormatTrimDecorationsS(string format, ref byte buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(pStr0, (byte*)pbuf, bufSize)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImTextStrToUtf8Native(byte* outBuf, int outBufSize, ushort* inText, ushort* inTextEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1274])(outBuf, outBufSize, inText, inTextEnd); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[1274])((nint)outBuf, outBufSize, (nint)inText, (nint)inTextEnd); - #endif - } - - /// - /// To be documented. - /// - public static int ImTextStrToUtf8(byte* outBuf, int outBufSize, ushort* inText, ushort* inTextEnd) - { - int ret = ImTextStrToUtf8Native(outBuf, outBufSize, inText, inTextEnd); - return ret; - } - - /// - /// To be documented. - /// - public static int ImTextStrToUtf8(ref byte outBuf, int outBufSize, ushort* inText, ushort* inTextEnd) - { - fixed (byte* poutBuf = &outBuf) - { - int ret = ImTextStrToUtf8Native((byte*)poutBuf, outBufSize, inText, inTextEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrToUtf8(ref string outBuf, int outBufSize, ushort* inText, ushort* inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (outBuf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(outBuf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(outBuf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrToUtf8Native(pStr0, outBufSize, inText, inTextEnd); - outBuf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImTextStrToUtf8(byte* outBuf, int outBufSize, ref ushort inText, ushort* inTextEnd) - { - fixed (ushort* pinText = &inText) - { - int ret = ImTextStrToUtf8Native(outBuf, outBufSize, (ushort*)pinText, inTextEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrToUtf8(ref byte outBuf, int outBufSize, ref ushort inText, ushort* inTextEnd) - { - fixed (byte* poutBuf = &outBuf) - { - fixed (ushort* pinText = &inText) - { - int ret = ImTextStrToUtf8Native((byte*)poutBuf, outBufSize, (ushort*)pinText, inTextEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrToUtf8(ref string outBuf, int outBufSize, ref ushort inText, ushort* inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (outBuf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(outBuf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(outBuf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pinText = &inText) - { - int ret = ImTextStrToUtf8Native(pStr0, outBufSize, (ushort*)pinText, inTextEnd); - outBuf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrToUtf8(byte* outBuf, int outBufSize, ushort* inText, ref ushort inTextEnd) - { - fixed (ushort* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrToUtf8Native(outBuf, outBufSize, inText, (ushort*)pinTextEnd); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrToUtf8(ref byte outBuf, int outBufSize, ushort* inText, ref ushort inTextEnd) - { - fixed (byte* poutBuf = &outBuf) - { - fixed (ushort* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrToUtf8Native((byte*)poutBuf, outBufSize, inText, (ushort*)pinTextEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrToUtf8(ref string outBuf, int outBufSize, ushort* inText, ref ushort inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (outBuf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(outBuf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(outBuf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrToUtf8Native(pStr0, outBufSize, inText, (ushort*)pinTextEnd); - outBuf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrToUtf8(byte* outBuf, int outBufSize, ref ushort inText, ref ushort inTextEnd) - { - fixed (ushort* pinText = &inText) - { - fixed (ushort* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrToUtf8Native(outBuf, outBufSize, (ushort*)pinText, (ushort*)pinTextEnd); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrToUtf8(ref byte outBuf, int outBufSize, ref ushort inText, ref ushort inTextEnd) - { - fixed (byte* poutBuf = &outBuf) - { - fixed (ushort* pinText = &inText) - { - fixed (ushort* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrToUtf8Native((byte*)poutBuf, outBufSize, (ushort*)pinText, (ushort*)pinTextEnd); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrToUtf8(ref string outBuf, int outBufSize, ref ushort inText, ref ushort inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (outBuf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(outBuf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(outBuf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pinText = &inText) - { - fixed (ushort* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrToUtf8Native(pStr0, outBufSize, (ushort*)pinText, (ushort*)pinTextEnd); - outBuf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImTextStrFromUtf8Native(ushort* outBuf, int outBufSize, byte* inText, byte* inTextEnd, byte** inRemaining) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1275])(outBuf, outBufSize, inText, inTextEnd, inRemaining); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[1275])((nint)outBuf, outBufSize, (nint)inText, (nint)inTextEnd, (nint)inRemaining); - #endif - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, byte* inTextEnd, byte** inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, inTextEnd, inRemaining); - return ret; - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, byte* inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, inTextEnd, (byte**)(default)); - return ret; - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, byte* inText, byte* inTextEnd, byte** inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, inText, inTextEnd, inRemaining); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, byte* inText, byte* inTextEnd) - { - fixed (ushort* poutBuf = &outBuf) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, inText, inTextEnd, (byte**)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, byte* inTextEnd, byte** inRemaining) - { - fixed (byte* pinText = &inText) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, inRemaining); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, byte* inTextEnd) - { - fixed (byte* pinText = &inText) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, byte* inTextEnd, byte** inRemaining) - { - fixed (byte* pinText = inText) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, inRemaining); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, byte* inTextEnd) - { - fixed (byte* pinText = inText) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, byte* inTextEnd, byte** inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, inTextEnd, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, byte* inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, inTextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ref byte inText, byte* inTextEnd, byte** inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, inTextEnd, inRemaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ref byte inText, byte* inTextEnd) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ReadOnlySpan inText, byte* inTextEnd, byte** inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = inText) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, inTextEnd, inRemaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ReadOnlySpan inText, byte* inTextEnd) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = inText) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, string inText, byte* inTextEnd, byte** inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, pStr0, inTextEnd, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, string inText, byte* inTextEnd) - { - fixed (ushort* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, pStr0, inTextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ref byte inTextEnd, byte** inRemaining) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ref byte inTextEnd) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ReadOnlySpan inTextEnd, byte** inRemaining) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ReadOnlySpan inTextEnd) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, string inTextEnd, byte** inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, pStr0, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, string inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, byte* inText, ref byte inTextEnd, byte** inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, inText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, byte* inText, ref byte inTextEnd) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, byte* inText, ReadOnlySpan inTextEnd, byte** inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, inText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, byte* inText, ReadOnlySpan inTextEnd) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, byte* inText, string inTextEnd, byte** inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, inText, pStr0, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, byte* inText, string inTextEnd) - { - fixed (ushort* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, inText, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ref byte inTextEnd, byte** inRemaining) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ref byte inTextEnd) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, ReadOnlySpan inTextEnd, byte** inRemaining) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, ReadOnlySpan inTextEnd) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, string inTextEnd, byte** inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, pStr1, inRemaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, string inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ReadOnlySpan inTextEnd, byte** inRemaining) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ReadOnlySpan inTextEnd) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, string inTextEnd, byte** inRemaining) - { - fixed (byte* pinText = &inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, string inTextEnd) - { - fixed (byte* pinText = &inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, ref byte inTextEnd, byte** inRemaining) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, ref byte inTextEnd) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, string inTextEnd, byte** inRemaining) - { - fixed (byte* pinText = inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, string inTextEnd) - { - fixed (byte* pinText = inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ref byte inTextEnd, byte** inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ref byte inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ReadOnlySpan inTextEnd, byte** inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ReadOnlySpan inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ref byte inText, ref byte inTextEnd, byte** inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ref byte inText, ref byte inTextEnd) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ReadOnlySpan inText, ReadOnlySpan inTextEnd, byte** inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ReadOnlySpan inText, ReadOnlySpan inTextEnd) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, string inText, string inTextEnd, byte** inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, pStr0, pStr1, inRemaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, string inText, string inTextEnd) - { - fixed (ushort* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ref byte inText, ReadOnlySpan inTextEnd, byte** inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ref byte inText, ReadOnlySpan inTextEnd) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ref byte inText, string inTextEnd, byte** inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, pStr0, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ref byte inText, string inTextEnd) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ReadOnlySpan inText, ref byte inTextEnd, byte** inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ReadOnlySpan inText, ref byte inTextEnd) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ReadOnlySpan inText, string inTextEnd, byte** inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, pStr0, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ReadOnlySpan inText, string inTextEnd) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, string inText, ref byte inTextEnd, byte** inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, pStr0, (byte*)pinTextEnd, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, string inText, ref byte inTextEnd) - { - fixed (ushort* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, pStr0, (byte*)pinTextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, string inText, ReadOnlySpan inTextEnd, byte** inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, pStr0, (byte*)pinTextEnd, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, string inText, ReadOnlySpan inTextEnd) - { - fixed (ushort* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, pStr0, (byte*)pinTextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, byte* inTextEnd, ref byte* inRemaining) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, inTextEnd, (byte**)pinRemaining); - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, byte* inText, byte* inTextEnd, ref byte* inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, inText, inTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, byte* inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinText = &inText) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, byte* inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinText = inText) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, byte* inTextEnd, ref byte* inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, inTextEnd, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ref byte inText, byte* inTextEnd, ref byte* inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ReadOnlySpan inText, byte* inTextEnd, ref byte* inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = inText) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, string inText, byte* inTextEnd, ref byte* inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, pStr0, inTextEnd, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ref byte inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ReadOnlySpan inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinTextEnd = inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, string inTextEnd, ref byte* inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, pStr0, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, byte* inText, ref byte inTextEnd, ref byte* inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, byte* inText, ReadOnlySpan inTextEnd, ref byte* inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinTextEnd = inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, byte* inText, string inTextEnd, ref byte* inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, inText, pStr0, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ref byte inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, ReadOnlySpan inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, string inTextEnd, ref byte* inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, pStr1, (byte**)pinRemaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ReadOnlySpan inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, string inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinText = &inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, ref byte inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan inText, string inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinText = inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ref byte inTextEnd, ref byte* inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = &inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ReadOnlySpan inTextEnd, ref byte* inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ref byte inText, ref byte inTextEnd, ref byte* inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ReadOnlySpan inText, ReadOnlySpan inTextEnd, ref byte* inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, string inText, string inTextEnd, ref byte* inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, pStr0, pStr1, (byte**)pinRemaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ref byte inText, ReadOnlySpan inTextEnd, ref byte* inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ref byte inText, string inTextEnd, ref byte* inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, pStr0, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ReadOnlySpan inText, ref byte inTextEnd, ref byte* inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, ReadOnlySpan inText, string inTextEnd, ref byte* inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - fixed (byte* pinText = inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, (byte*)pinText, pStr0, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, string inText, ref byte inTextEnd, ref byte* inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = &inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, pStr0, (byte*)pinTextEnd, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int ImTextStrFromUtf8(ref ushort outBuf, int outBufSize, string inText, ReadOnlySpan inTextEnd, ref byte* inRemaining) - { - fixed (ushort* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((ushort*)poutBuf, outBufSize, pStr0, (byte*)pinTextEnd, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int DataTypeFormatStringNative(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, byte* format) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1276])(buf, bufSize, dataType, pData, format); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[1276])((nint)buf, bufSize, dataType, (nint)pData, (nint)format); - #endif - } - - /// - /// To be documented. - /// - public static int DataTypeFormatString(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, byte* format) - { - int ret = DataTypeFormatStringNative(buf, bufSize, dataType, pData, format); - return ret; - } - - /// - /// To be documented. - /// - public static int DataTypeFormatString(ref byte buf, int bufSize, ImGuiDataType dataType, void* pData, byte* format) - { - fixed (byte* pbuf = &buf) - { - int ret = DataTypeFormatStringNative((byte*)pbuf, bufSize, dataType, pData, format); - return ret; - } - } - - /// - /// To be documented. - /// - public static int DataTypeFormatString(ref string buf, int bufSize, ImGuiDataType dataType, void* pData, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = DataTypeFormatStringNative(pStr0, bufSize, dataType, pData, format); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int DataTypeFormatString(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* pformat = &format) - { - int ret = DataTypeFormatStringNative(buf, bufSize, dataType, pData, (byte*)pformat); - return ret; - } - } - - /// - /// To be documented. - /// - public static int DataTypeFormatString(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, ReadOnlySpan format) - { - fixed (byte* pformat = format) - { - int ret = DataTypeFormatStringNative(buf, bufSize, dataType, pData, (byte*)pformat); - return ret; - } - } - - /// - /// To be documented. - /// - public static int DataTypeFormatString(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = DataTypeFormatStringNative(buf, bufSize, dataType, pData, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int DataTypeFormatString(ref byte buf, int bufSize, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pformat = &format) - { - int ret = DataTypeFormatStringNative((byte*)pbuf, bufSize, dataType, pData, (byte*)pformat); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int DataTypeFormatString(ref byte buf, int bufSize, ImGuiDataType dataType, void* pData, ReadOnlySpan format) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pformat = format) - { - int ret = DataTypeFormatStringNative((byte*)pbuf, bufSize, dataType, pData, (byte*)pformat); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int DataTypeFormatString(ref string buf, int bufSize, ImGuiDataType dataType, void* pData, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = DataTypeFormatStringNative(pStr0, bufSize, dataType, pData, pStr1); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int DataTypeFormatString(ref byte buf, int bufSize, ImGuiDataType dataType, void* pData, string format) - { - fixed (byte* pbuf = &buf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = DataTypeFormatStringNative((byte*)pbuf, bufSize, dataType, pData, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int DataTypeFormatString(ref string buf, int bufSize, ImGuiDataType dataType, void* pData, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - int ret = DataTypeFormatStringNative(pStr0, bufSize, dataType, pData, (byte*)pformat); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int DataTypeFormatString(ref string buf, int bufSize, ImGuiDataType dataType, void* pData, ReadOnlySpan format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - int ret = DataTypeFormatStringNative(pStr0, bufSize, dataType, pData, (byte*)pformat); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputTextExNative(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl], void*, byte>)funcTable[1277])(label, hint, buf, bufSize, sizeArg, flags, (delegate*)Utils.GetFunctionPointerForDelegate(callback), userData); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1277])((nint)label, (nint)hint, (nint)buf, bufSize, sizeArg, flags, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)userData); - #endif - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextExNative(label, hint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte ret = InputTextExNative(label, hint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte ret = InputTextExNative(label, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte ret = InputTextExNative(label, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(pStr0, hint, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(pStr0, hint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(pStr0, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(pStr0, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, pStr0, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, pStr0, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.009.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.009.cs deleted file mode 100644 index 524cb7245..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.009.cs +++ /dev/null @@ -1,5037 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ReadOnlySpan hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, hint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, hint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, hint, pStr1, bufSize, sizeArg, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, hint, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, hint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, hint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(label, pStr0, pStr1, bufSize, sizeArg, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(label, pStr0, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(label, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(label, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(byte* label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, pStr2, bufSize, sizeArg, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, pStr2, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, pStr2, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, pStr2, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ref byte label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(ReadOnlySpan label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ReadOnlySpan hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.010.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.010.cs deleted file mode 100644 index 9784bd4c4..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.010.cs +++ /dev/null @@ -1,610 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, ReadOnlySpan hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, pStr1, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, pStr1, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, pStr1, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool InputTextEx(string label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, pStr1, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TempInputTextNative(ImRect bb, uint id, byte* label, byte* buf, int bufSize, ImGuiInputTextFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[1278])(bb, id, label, buf, bufSize, flags); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[1278])(bb, id, (nint)label, (nint)buf, bufSize, flags); - #endif - } - - /// - /// To be documented. - /// - public static bool TempInputText(ImRect bb, uint id, byte* label, byte* buf, int bufSize, ImGuiInputTextFlags flags) - { - byte ret = TempInputTextNative(bb, id, label, buf, bufSize, flags); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TempInputText(ImRect bb, uint id, ref byte label, byte* buf, int bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = TempInputTextNative(bb, id, (byte*)plabel, buf, bufSize, flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputText(ImRect bb, uint id, ReadOnlySpan label, byte* buf, int bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = TempInputTextNative(bb, id, (byte*)plabel, buf, bufSize, flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputText(ImRect bb, uint id, string label, byte* buf, int bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputTextNative(bb, id, pStr0, buf, bufSize, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TempInputText(ImRect bb, uint id, byte* label, ref byte buf, int bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = TempInputTextNative(bb, id, label, (byte*)pbuf, bufSize, flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputText(ImRect bb, uint id, byte* label, ref string buf, int bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputTextNative(bb, id, label, pStr0, bufSize, flags); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TempInputText(ImRect bb, uint id, ref byte label, ref byte buf, int bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = TempInputTextNative(bb, id, (byte*)plabel, (byte*)pbuf, bufSize, flags); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TempInputText(ImRect bb, uint id, ReadOnlySpan label, ref byte buf, int bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = TempInputTextNative(bb, id, (byte*)plabel, (byte*)pbuf, bufSize, flags); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool TempInputText(ImRect bb, uint id, string label, ref string buf, int bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TempInputTextNative(bb, id, pStr0, pStr1, bufSize, flags); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool TempInputText(ImRect bb, uint id, ref byte label, ref string buf, int bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputTextNative(bb, id, (byte*)plabel, pStr0, bufSize, flags); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputText(ImRect bb, uint id, ReadOnlySpan label, ref string buf, int bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputTextNative(bb, id, (byte*)plabel, pStr0, bufSize, flags); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool TempInputText(ImRect bb, uint id, string label, ref byte buf, int bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = TempInputTextNative(bb, id, pStr0, (byte*)pbuf, bufSize, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - } -} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Dalamud.Bindings.ImGuizmo.csproj b/imgui/Dalamud.Bindings.ImGuizmo/Dalamud.Bindings.ImGuizmo.csproj index 35892c48e..650381100 100644 --- a/imgui/Dalamud.Bindings.ImGuizmo/Dalamud.Bindings.ImGuizmo.csproj +++ b/imgui/Dalamud.Bindings.ImGuizmo/Dalamud.Bindings.ImGuizmo.csproj @@ -9,7 +9,7 @@ - + diff --git a/imgui/Dalamud.Bindings.ImPlot/Dalamud.Bindings.ImPlot.csproj b/imgui/Dalamud.Bindings.ImPlot/Dalamud.Bindings.ImPlot.csproj index 35892c48e..650381100 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Dalamud.Bindings.ImPlot.csproj +++ b/imgui/Dalamud.Bindings.ImPlot/Dalamud.Bindings.ImPlot.csproj @@ -9,7 +9,7 @@ - + diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/FunctionTable.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/FunctionTable.cs index 4800abef7..3b3d48bc7 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/FunctionTable.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/FunctionTable.cs @@ -25,7 +25,7 @@ namespace Dalamud.Bindings.ImPlot /// public static void InitApi(INativeContext context) { - funcTable = new FunctionTable(context, 695); + funcTable = new FunctionTable(context, 727); funcTable.Load(0, "ImPlotPoint_ImPlotPoint_Nil"); funcTable.Load(1, "ImPlotPoint_destroy"); funcTable.Load(2, "ImPlotPoint_ImPlotPoint_double"); @@ -83,644 +83,676 @@ namespace Dalamud.Bindings.ImPlot funcTable.Load(54, "ImPlot_PlotLine_FloatPtrInt"); funcTable.Load(55, "ImPlot_PlotLine_doublePtrInt"); funcTable.Load(56, "ImPlot_PlotLine_S8PtrInt"); - funcTable.Load(57, "ImPlot_PlotLine_S16PtrInt"); - funcTable.Load(58, "ImPlot_PlotLine_U16PtrInt"); - funcTable.Load(59, "ImPlot_PlotLine_S32PtrInt"); - funcTable.Load(60, "ImPlot_PlotLine_U32PtrInt"); - funcTable.Load(61, "ImPlot_PlotLine_S64PtrInt"); - funcTable.Load(62, "ImPlot_PlotLine_U64PtrInt"); - funcTable.Load(63, "ImPlot_PlotLine_FloatPtrFloatPtr"); - funcTable.Load(64, "ImPlot_PlotLine_doublePtrdoublePtr"); - funcTable.Load(65, "ImPlot_PlotLine_S8PtrS8Ptr"); - funcTable.Load(66, "ImPlot_PlotLine_S16PtrS16Ptr"); - funcTable.Load(67, "ImPlot_PlotLine_U16PtrU16Ptr"); - funcTable.Load(68, "ImPlot_PlotLine_S32PtrS32Ptr"); - funcTable.Load(69, "ImPlot_PlotLine_U32PtrU32Ptr"); - funcTable.Load(70, "ImPlot_PlotLine_S64PtrS64Ptr"); - funcTable.Load(71, "ImPlot_PlotLine_U64PtrU64Ptr"); - funcTable.Load(72, "ImPlot_PlotScatter_FloatPtrInt"); - funcTable.Load(73, "ImPlot_PlotScatter_doublePtrInt"); - funcTable.Load(74, "ImPlot_PlotScatter_S8PtrInt"); - funcTable.Load(75, "ImPlot_PlotScatter_S16PtrInt"); - funcTable.Load(76, "ImPlot_PlotScatter_U16PtrInt"); - funcTable.Load(77, "ImPlot_PlotScatter_S32PtrInt"); - funcTable.Load(78, "ImPlot_PlotScatter_U32PtrInt"); - funcTable.Load(79, "ImPlot_PlotScatter_S64PtrInt"); - funcTable.Load(80, "ImPlot_PlotScatter_U64PtrInt"); - funcTable.Load(81, "ImPlot_PlotScatter_FloatPtrFloatPtr"); - funcTable.Load(82, "ImPlot_PlotScatter_doublePtrdoublePtr"); - funcTable.Load(83, "ImPlot_PlotScatter_S8PtrS8Ptr"); - funcTable.Load(84, "ImPlot_PlotScatter_S16PtrS16Ptr"); - funcTable.Load(85, "ImPlot_PlotScatter_U16PtrU16Ptr"); - funcTable.Load(86, "ImPlot_PlotScatter_S32PtrS32Ptr"); - funcTable.Load(87, "ImPlot_PlotScatter_U32PtrU32Ptr"); - funcTable.Load(88, "ImPlot_PlotScatter_S64PtrS64Ptr"); - funcTable.Load(89, "ImPlot_PlotScatter_U64PtrU64Ptr"); - funcTable.Load(90, "ImPlot_PlotStairs_FloatPtrInt"); - funcTable.Load(91, "ImPlot_PlotStairs_doublePtrInt"); - funcTable.Load(92, "ImPlot_PlotStairs_S8PtrInt"); - funcTable.Load(93, "ImPlot_PlotStairs_S16PtrInt"); - funcTable.Load(94, "ImPlot_PlotStairs_U16PtrInt"); - funcTable.Load(95, "ImPlot_PlotStairs_S32PtrInt"); - funcTable.Load(96, "ImPlot_PlotStairs_U32PtrInt"); - funcTable.Load(97, "ImPlot_PlotStairs_S64PtrInt"); - funcTable.Load(98, "ImPlot_PlotStairs_U64PtrInt"); - funcTable.Load(99, "ImPlot_PlotStairs_FloatPtrFloatPtr"); - funcTable.Load(100, "ImPlot_PlotStairs_doublePtrdoublePtr"); - funcTable.Load(101, "ImPlot_PlotStairs_S8PtrS8Ptr"); - funcTable.Load(102, "ImPlot_PlotStairs_S16PtrS16Ptr"); - funcTable.Load(103, "ImPlot_PlotStairs_U16PtrU16Ptr"); - funcTable.Load(104, "ImPlot_PlotStairs_S32PtrS32Ptr"); - funcTable.Load(105, "ImPlot_PlotStairs_U32PtrU32Ptr"); - funcTable.Load(106, "ImPlot_PlotStairs_S64PtrS64Ptr"); - funcTable.Load(107, "ImPlot_PlotStairs_U64PtrU64Ptr"); - funcTable.Load(108, "ImPlot_PlotStairsG"); - funcTable.Load(109, "ImPlot_PlotShaded_FloatPtrInt"); - funcTable.Load(110, "ImPlot_PlotShaded_doublePtrInt"); - funcTable.Load(111, "ImPlot_PlotShaded_S8PtrInt"); - funcTable.Load(112, "ImPlot_PlotShaded_S16PtrInt"); - funcTable.Load(113, "ImPlot_PlotShaded_U16PtrInt"); - funcTable.Load(114, "ImPlot_PlotShaded_S32PtrInt"); - funcTable.Load(115, "ImPlot_PlotShaded_U32PtrInt"); - funcTable.Load(116, "ImPlot_PlotShaded_S64PtrInt"); - funcTable.Load(117, "ImPlot_PlotShaded_U64PtrInt"); - funcTable.Load(118, "ImPlot_PlotShaded_FloatPtrFloatPtrInt"); - funcTable.Load(119, "ImPlot_PlotShaded_doublePtrdoublePtrInt"); - funcTable.Load(120, "ImPlot_PlotShaded_S8PtrS8PtrInt"); - funcTable.Load(121, "ImPlot_PlotShaded_S16PtrS16PtrInt"); - funcTable.Load(122, "ImPlot_PlotShaded_U16PtrU16PtrInt"); - funcTable.Load(123, "ImPlot_PlotShaded_S32PtrS32PtrInt"); - funcTable.Load(124, "ImPlot_PlotShaded_U32PtrU32PtrInt"); - funcTable.Load(125, "ImPlot_PlotShaded_S64PtrS64PtrInt"); - funcTable.Load(126, "ImPlot_PlotShaded_U64PtrU64PtrInt"); - funcTable.Load(127, "ImPlot_PlotShaded_FloatPtrFloatPtrFloatPtr"); - funcTable.Load(128, "ImPlot_PlotShaded_doublePtrdoublePtrdoublePtr"); - funcTable.Load(129, "ImPlot_PlotShaded_S8PtrS8PtrS8Ptr"); - funcTable.Load(130, "ImPlot_PlotShaded_S16PtrS16PtrS16Ptr"); - funcTable.Load(131, "ImPlot_PlotShaded_U16PtrU16PtrU16Ptr"); - funcTable.Load(132, "ImPlot_PlotShaded_S32PtrS32PtrS32Ptr"); - funcTable.Load(133, "ImPlot_PlotShaded_U32PtrU32PtrU32Ptr"); - funcTable.Load(134, "ImPlot_PlotShaded_S64PtrS64PtrS64Ptr"); - funcTable.Load(135, "ImPlot_PlotShaded_U64PtrU64PtrU64Ptr"); - funcTable.Load(136, "ImPlot_PlotBars_FloatPtrInt"); - funcTable.Load(137, "ImPlot_PlotBars_doublePtrInt"); - funcTable.Load(138, "ImPlot_PlotBars_S8PtrInt"); - funcTable.Load(139, "ImPlot_PlotBars_S16PtrInt"); - funcTable.Load(140, "ImPlot_PlotBars_U16PtrInt"); - funcTable.Load(141, "ImPlot_PlotBars_S32PtrInt"); - funcTable.Load(142, "ImPlot_PlotBars_U32PtrInt"); - funcTable.Load(143, "ImPlot_PlotBars_S64PtrInt"); - funcTable.Load(144, "ImPlot_PlotBars_U64PtrInt"); - funcTable.Load(145, "ImPlot_PlotBars_FloatPtrFloatPtr"); - funcTable.Load(146, "ImPlot_PlotBars_doublePtrdoublePtr"); - funcTable.Load(147, "ImPlot_PlotBars_S8PtrS8Ptr"); - funcTable.Load(148, "ImPlot_PlotBars_S16PtrS16Ptr"); - funcTable.Load(149, "ImPlot_PlotBars_U16PtrU16Ptr"); - funcTable.Load(150, "ImPlot_PlotBars_S32PtrS32Ptr"); - funcTable.Load(151, "ImPlot_PlotBars_U32PtrU32Ptr"); - funcTable.Load(152, "ImPlot_PlotBars_S64PtrS64Ptr"); - funcTable.Load(153, "ImPlot_PlotBars_U64PtrU64Ptr"); - funcTable.Load(154, "ImPlot_PlotBarGroups_FloatPtr"); - funcTable.Load(155, "ImPlot_PlotBarGroups_doublePtr"); - funcTable.Load(156, "ImPlot_PlotBarGroups_S8Ptr"); - funcTable.Load(157, "ImPlot_PlotBarGroups_S16Ptr"); - funcTable.Load(158, "ImPlot_PlotBarGroups_U16Ptr"); - funcTable.Load(159, "ImPlot_PlotBarGroups_S32Ptr"); - funcTable.Load(160, "ImPlot_PlotBarGroups_U32Ptr"); - funcTable.Load(161, "ImPlot_PlotBarGroups_S64Ptr"); - funcTable.Load(162, "ImPlot_PlotBarGroups_U64Ptr"); - funcTable.Load(163, "ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrInt"); - funcTable.Load(164, "ImPlot_PlotErrorBars_doublePtrdoublePtrdoublePtrInt"); - funcTable.Load(165, "ImPlot_PlotErrorBars_S8PtrS8PtrS8PtrInt"); - funcTable.Load(166, "ImPlot_PlotErrorBars_S16PtrS16PtrS16PtrInt"); - funcTable.Load(167, "ImPlot_PlotErrorBars_U16PtrU16PtrU16PtrInt"); - funcTable.Load(168, "ImPlot_PlotErrorBars_S32PtrS32PtrS32PtrInt"); - funcTable.Load(169, "ImPlot_PlotErrorBars_U32PtrU32PtrU32PtrInt"); - funcTable.Load(170, "ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrInt"); - funcTable.Load(171, "ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrInt"); - funcTable.Load(172, "ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrFloatPtr"); - funcTable.Load(173, "ImPlot_PlotErrorBars_doublePtrdoublePtrdoublePtrdoublePtr"); - funcTable.Load(174, "ImPlot_PlotErrorBars_S8PtrS8PtrS8PtrS8Ptr"); - funcTable.Load(175, "ImPlot_PlotErrorBars_S16PtrS16PtrS16PtrS16Ptr"); - funcTable.Load(176, "ImPlot_PlotErrorBars_U16PtrU16PtrU16PtrU16Ptr"); - funcTable.Load(177, "ImPlot_PlotErrorBars_S32PtrS32PtrS32PtrS32Ptr"); - funcTable.Load(178, "ImPlot_PlotErrorBars_U32PtrU32PtrU32PtrU32Ptr"); - funcTable.Load(179, "ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrS64Ptr"); - funcTable.Load(180, "ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrU64Ptr"); - funcTable.Load(181, "ImPlot_PlotStems_FloatPtrInt"); - funcTable.Load(182, "ImPlot_PlotStems_doublePtrInt"); - funcTable.Load(183, "ImPlot_PlotStems_S8PtrInt"); - funcTable.Load(184, "ImPlot_PlotStems_S16PtrInt"); - funcTable.Load(185, "ImPlot_PlotStems_U16PtrInt"); - funcTable.Load(186, "ImPlot_PlotStems_S32PtrInt"); - funcTable.Load(187, "ImPlot_PlotStems_U32PtrInt"); - funcTable.Load(188, "ImPlot_PlotStems_S64PtrInt"); - funcTable.Load(189, "ImPlot_PlotStems_U64PtrInt"); - funcTable.Load(190, "ImPlot_PlotStems_FloatPtrFloatPtr"); - funcTable.Load(191, "ImPlot_PlotStems_doublePtrdoublePtr"); - funcTable.Load(192, "ImPlot_PlotStems_S8PtrS8Ptr"); - funcTable.Load(193, "ImPlot_PlotStems_S16PtrS16Ptr"); - funcTable.Load(194, "ImPlot_PlotStems_U16PtrU16Ptr"); - funcTable.Load(195, "ImPlot_PlotStems_S32PtrS32Ptr"); - funcTable.Load(196, "ImPlot_PlotStems_U32PtrU32Ptr"); - funcTable.Load(197, "ImPlot_PlotStems_S64PtrS64Ptr"); - funcTable.Load(198, "ImPlot_PlotStems_U64PtrU64Ptr"); - funcTable.Load(199, "ImPlot_PlotInfLines_FloatPtr"); - funcTable.Load(200, "ImPlot_PlotInfLines_doublePtr"); - funcTable.Load(201, "ImPlot_PlotInfLines_S8Ptr"); - funcTable.Load(202, "ImPlot_PlotInfLines_S16Ptr"); - funcTable.Load(203, "ImPlot_PlotInfLines_U16Ptr"); - funcTable.Load(204, "ImPlot_PlotInfLines_S32Ptr"); - funcTable.Load(205, "ImPlot_PlotInfLines_U32Ptr"); - funcTable.Load(206, "ImPlot_PlotInfLines_S64Ptr"); - funcTable.Load(207, "ImPlot_PlotInfLines_U64Ptr"); - funcTable.Load(208, "ImPlot_PlotPieChart_FloatPtr"); - funcTable.Load(209, "ImPlot_PlotPieChart_doublePtr"); - funcTable.Load(210, "ImPlot_PlotPieChart_S8Ptr"); - funcTable.Load(211, "ImPlot_PlotPieChart_S16Ptr"); - funcTable.Load(212, "ImPlot_PlotPieChart_U16Ptr"); - funcTable.Load(213, "ImPlot_PlotPieChart_S32Ptr"); - funcTable.Load(214, "ImPlot_PlotPieChart_U32Ptr"); - funcTable.Load(215, "ImPlot_PlotPieChart_S64Ptr"); - funcTable.Load(216, "ImPlot_PlotPieChart_U64Ptr"); - funcTable.Load(217, "ImPlot_PlotHeatmap_FloatPtr"); - funcTable.Load(218, "ImPlot_PlotHeatmap_doublePtr"); - funcTable.Load(219, "ImPlot_PlotHeatmap_S8Ptr"); - funcTable.Load(220, "ImPlot_PlotHeatmap_S16Ptr"); - funcTable.Load(221, "ImPlot_PlotHeatmap_U16Ptr"); - funcTable.Load(222, "ImPlot_PlotHeatmap_S32Ptr"); - funcTable.Load(223, "ImPlot_PlotHeatmap_U32Ptr"); - funcTable.Load(224, "ImPlot_PlotHeatmap_S64Ptr"); - funcTable.Load(225, "ImPlot_PlotHeatmap_U64Ptr"); - funcTable.Load(226, "ImPlot_PlotHistogram_FloatPtr"); - funcTable.Load(227, "ImPlot_PlotHistogram_doublePtr"); - funcTable.Load(228, "ImPlot_PlotHistogram_S8Ptr"); - funcTable.Load(229, "ImPlot_PlotHistogram_S16Ptr"); - funcTable.Load(230, "ImPlot_PlotHistogram_U16Ptr"); - funcTable.Load(231, "ImPlot_PlotHistogram_S32Ptr"); - funcTable.Load(232, "ImPlot_PlotHistogram_U32Ptr"); - funcTable.Load(233, "ImPlot_PlotHistogram_S64Ptr"); - funcTable.Load(234, "ImPlot_PlotHistogram_U64Ptr"); - funcTable.Load(235, "ImPlot_PlotHistogram2D_FloatPtr"); - funcTable.Load(236, "ImPlot_PlotHistogram2D_doublePtr"); - funcTable.Load(237, "ImPlot_PlotHistogram2D_S8Ptr"); - funcTable.Load(238, "ImPlot_PlotHistogram2D_S16Ptr"); - funcTable.Load(239, "ImPlot_PlotHistogram2D_U16Ptr"); - funcTable.Load(240, "ImPlot_PlotHistogram2D_S32Ptr"); - funcTable.Load(241, "ImPlot_PlotHistogram2D_U32Ptr"); - funcTable.Load(242, "ImPlot_PlotHistogram2D_S64Ptr"); - funcTable.Load(243, "ImPlot_PlotHistogram2D_U64Ptr"); - funcTable.Load(244, "ImPlot_PlotDigital_FloatPtr"); - funcTable.Load(245, "ImPlot_PlotDigital_doublePtr"); - funcTable.Load(246, "ImPlot_PlotDigital_S8Ptr"); - funcTable.Load(247, "ImPlot_PlotDigital_S16Ptr"); - funcTable.Load(248, "ImPlot_PlotDigital_U16Ptr"); - funcTable.Load(249, "ImPlot_PlotDigital_S32Ptr"); - funcTable.Load(250, "ImPlot_PlotDigital_U32Ptr"); - funcTable.Load(251, "ImPlot_PlotDigital_S64Ptr"); - funcTable.Load(252, "ImPlot_PlotDigital_U64Ptr"); - funcTable.Load(253, "ImPlot_PlotImage"); - funcTable.Load(254, "ImPlot_PlotText"); - funcTable.Load(255, "ImPlot_PlotDummy"); - funcTable.Load(256, "ImPlot_DragPoint"); - funcTable.Load(257, "ImPlot_DragLineX"); - funcTable.Load(258, "ImPlot_DragLineY"); - funcTable.Load(259, "ImPlot_DragRect"); - funcTable.Load(260, "ImPlot_Annotation_Bool"); - funcTable.Load(261, "ImPlot_Annotation_Str"); - funcTable.Load(262, "ImPlot_AnnotationV"); - funcTable.Load(263, "ImPlot_TagX_Bool"); - funcTable.Load(264, "ImPlot_TagX_Str"); - funcTable.Load(265, "ImPlot_TagXV"); - funcTable.Load(266, "ImPlot_TagY_Bool"); - funcTable.Load(267, "ImPlot_TagY_Str"); - funcTable.Load(268, "ImPlot_TagYV"); - funcTable.Load(269, "ImPlot_SetAxis"); - funcTable.Load(270, "ImPlot_SetAxes"); - funcTable.Load(271, "ImPlot_PixelsToPlot_Vec2"); - funcTable.Load(272, "ImPlot_PixelsToPlot_Float"); - funcTable.Load(273, "ImPlot_PlotToPixels_PlotPoInt"); - funcTable.Load(274, "ImPlot_PlotToPixels_double"); - funcTable.Load(275, "ImPlot_GetPlotPos"); - funcTable.Load(276, "ImPlot_GetPlotSize"); - funcTable.Load(277, "ImPlot_GetPlotMousePos"); - funcTable.Load(278, "ImPlot_GetPlotLimits"); - funcTable.Load(279, "ImPlot_IsPlotHovered"); - funcTable.Load(280, "ImPlot_IsAxisHovered"); - funcTable.Load(281, "ImPlot_IsSubplotsHovered"); - funcTable.Load(282, "ImPlot_IsPlotSelected"); - funcTable.Load(283, "ImPlot_GetPlotSelection"); - funcTable.Load(284, "ImPlot_CancelPlotSelection"); - funcTable.Load(285, "ImPlot_HideNextItem"); - funcTable.Load(286, "ImPlot_BeginAlignedPlots"); - funcTable.Load(287, "ImPlot_EndAlignedPlots"); - funcTable.Load(288, "ImPlot_BeginLegendPopup"); - funcTable.Load(289, "ImPlot_EndLegendPopup"); - funcTable.Load(290, "ImPlot_IsLegendEntryHovered"); - funcTable.Load(291, "ImPlot_BeginDragDropTargetPlot"); - funcTable.Load(292, "ImPlot_BeginDragDropTargetAxis"); - funcTable.Load(293, "ImPlot_BeginDragDropTargetLegend"); - funcTable.Load(294, "ImPlot_EndDragDropTarget"); - funcTable.Load(295, "ImPlot_BeginDragDropSourcePlot"); - funcTable.Load(296, "ImPlot_BeginDragDropSourceAxis"); - funcTable.Load(297, "ImPlot_BeginDragDropSourceItem"); - funcTable.Load(298, "ImPlot_EndDragDropSource"); - funcTable.Load(299, "ImPlot_GetStyle"); - funcTable.Load(300, "ImPlot_StyleColorsAuto"); - funcTable.Load(301, "ImPlot_StyleColorsClassic"); - funcTable.Load(302, "ImPlot_StyleColorsDark"); - funcTable.Load(303, "ImPlot_StyleColorsLight"); - funcTable.Load(304, "ImPlot_PushStyleColor_U32"); - funcTable.Load(305, "ImPlot_PushStyleColor_Vec4"); - funcTable.Load(306, "ImPlot_PopStyleColor"); - funcTable.Load(307, "ImPlot_PushStyleVar_Float"); - funcTable.Load(308, "ImPlot_PushStyleVar_Int"); - funcTable.Load(309, "ImPlot_PushStyleVar_Vec2"); - funcTable.Load(310, "ImPlot_PopStyleVar"); - funcTable.Load(311, "ImPlot_SetNextLineStyle"); - funcTable.Load(312, "ImPlot_SetNextFillStyle"); - funcTable.Load(313, "ImPlot_SetNextMarkerStyle"); - funcTable.Load(314, "ImPlot_SetNextErrorBarStyle"); - funcTable.Load(315, "ImPlot_GetLastItemColor"); - funcTable.Load(316, "ImPlot_GetStyleColorName"); - funcTable.Load(317, "ImPlot_GetMarkerName"); - funcTable.Load(318, "ImPlot_AddColormap_Vec4Ptr"); - funcTable.Load(319, "ImPlot_AddColormap_U32Ptr"); - funcTable.Load(320, "ImPlot_GetColormapCount"); - funcTable.Load(321, "ImPlot_GetColormapName"); - funcTable.Load(322, "ImPlot_GetColormapIndex"); - funcTable.Load(323, "ImPlot_PushColormap_PlotColormap"); - funcTable.Load(324, "ImPlot_PushColormap_Str"); - funcTable.Load(325, "ImPlot_PopColormap"); - funcTable.Load(326, "ImPlot_NextColormapColor"); - funcTable.Load(327, "ImPlot_GetColormapSize"); - funcTable.Load(328, "ImPlot_GetColormapColor"); - funcTable.Load(329, "ImPlot_SampleColormap"); - funcTable.Load(330, "ImPlot_ColormapScale"); - funcTable.Load(331, "ImPlot_ColormapSlider"); - funcTable.Load(332, "ImPlot_ColormapButton"); - funcTable.Load(333, "ImPlot_BustColorCache"); - funcTable.Load(334, "ImPlot_GetInputMap"); - funcTable.Load(335, "ImPlot_MapInputDefault"); - funcTable.Load(336, "ImPlot_MapInputReverse"); - funcTable.Load(337, "ImPlot_ItemIcon_Vec4"); - funcTable.Load(338, "ImPlot_ItemIcon_U32"); - funcTable.Load(339, "ImPlot_ColormapIcon"); - funcTable.Load(340, "ImPlot_GetPlotDrawList"); - funcTable.Load(341, "ImPlot_PushPlotClipRect"); - funcTable.Load(342, "ImPlot_PopPlotClipRect"); - funcTable.Load(343, "ImPlot_ShowStyleSelector"); - funcTable.Load(344, "ImPlot_ShowColormapSelector"); - funcTable.Load(345, "ImPlot_ShowInputMapSelector"); - funcTable.Load(346, "ImPlot_ShowStyleEditor"); - funcTable.Load(347, "ImPlot_ShowUserGuide"); - funcTable.Load(348, "ImPlot_ShowMetricsWindow"); - funcTable.Load(349, "ImPlot_ShowDemoWindow"); - funcTable.Load(350, "ImPlot_ImLog10_Float"); - funcTable.Load(351, "ImPlot_ImLog10_double"); - funcTable.Load(352, "ImPlot_ImSinh_Float"); - funcTable.Load(353, "ImPlot_ImSinh_double"); - funcTable.Load(354, "ImPlot_ImAsinh_Float"); - funcTable.Load(355, "ImPlot_ImAsinh_double"); - funcTable.Load(356, "ImPlot_ImRemap_Float"); - funcTable.Load(357, "ImPlot_ImRemap_double"); - funcTable.Load(358, "ImPlot_ImRemap_S8"); - funcTable.Load(359, "ImPlot_ImRemap_S16"); - funcTable.Load(360, "ImPlot_ImRemap_U16"); - funcTable.Load(361, "ImPlot_ImRemap_S32"); - funcTable.Load(362, "ImPlot_ImRemap_U32"); - funcTable.Load(363, "ImPlot_ImRemap_S64"); - funcTable.Load(364, "ImPlot_ImRemap_U64"); - funcTable.Load(365, "ImPlot_ImRemap01_Float"); - funcTable.Load(366, "ImPlot_ImRemap01_double"); - funcTable.Load(367, "ImPlot_ImRemap01_S8"); - funcTable.Load(368, "ImPlot_ImRemap01_S16"); - funcTable.Load(369, "ImPlot_ImRemap01_U16"); - funcTable.Load(370, "ImPlot_ImRemap01_S32"); - funcTable.Load(371, "ImPlot_ImRemap01_U32"); - funcTable.Load(372, "ImPlot_ImRemap01_S64"); - funcTable.Load(373, "ImPlot_ImRemap01_U64"); - funcTable.Load(374, "ImPlot_ImPosMod"); - funcTable.Load(375, "ImPlot_ImNan"); - funcTable.Load(376, "ImPlot_ImNanOrInf"); - funcTable.Load(377, "ImPlot_ImConstrainNan"); - funcTable.Load(378, "ImPlot_ImConstrainInf"); - funcTable.Load(379, "ImPlot_ImConstrainLog"); - funcTable.Load(380, "ImPlot_ImConstrainTime"); - funcTable.Load(381, "ImPlot_ImAlmostEqual"); - funcTable.Load(382, "ImPlot_ImMinArray_FloatPtr"); - funcTable.Load(383, "ImPlot_ImMinArray_doublePtr"); - funcTable.Load(384, "ImPlot_ImMinArray_S8Ptr"); - funcTable.Load(385, "ImPlot_ImMinArray_S16Ptr"); - funcTable.Load(386, "ImPlot_ImMinArray_U16Ptr"); - funcTable.Load(387, "ImPlot_ImMinArray_S32Ptr"); - funcTable.Load(388, "ImPlot_ImMinArray_U32Ptr"); - funcTable.Load(389, "ImPlot_ImMinArray_S64Ptr"); - funcTable.Load(390, "ImPlot_ImMinArray_U64Ptr"); - funcTable.Load(391, "ImPlot_ImMaxArray_FloatPtr"); - funcTable.Load(392, "ImPlot_ImMaxArray_doublePtr"); - funcTable.Load(393, "ImPlot_ImMaxArray_S8Ptr"); - funcTable.Load(394, "ImPlot_ImMaxArray_S16Ptr"); - funcTable.Load(395, "ImPlot_ImMaxArray_U16Ptr"); - funcTable.Load(396, "ImPlot_ImMaxArray_S32Ptr"); - funcTable.Load(397, "ImPlot_ImMaxArray_U32Ptr"); - funcTable.Load(398, "ImPlot_ImMaxArray_S64Ptr"); - funcTable.Load(399, "ImPlot_ImMaxArray_U64Ptr"); - funcTable.Load(400, "ImPlot_ImMinMaxArray_FloatPtr"); - funcTable.Load(401, "ImPlot_ImMinMaxArray_doublePtr"); - funcTable.Load(402, "ImPlot_ImMinMaxArray_S8Ptr"); - funcTable.Load(403, "ImPlot_ImMinMaxArray_S16Ptr"); - funcTable.Load(404, "ImPlot_ImMinMaxArray_U16Ptr"); - funcTable.Load(405, "ImPlot_ImMinMaxArray_S32Ptr"); - funcTable.Load(406, "ImPlot_ImMinMaxArray_U32Ptr"); - funcTable.Load(407, "ImPlot_ImMinMaxArray_S64Ptr"); - funcTable.Load(408, "ImPlot_ImMinMaxArray_U64Ptr"); - funcTable.Load(409, "ImPlot_ImSum_FloatPtr"); - funcTable.Load(410, "ImPlot_ImSum_doublePtr"); - funcTable.Load(411, "ImPlot_ImSum_S8Ptr"); - funcTable.Load(412, "ImPlot_ImSum_S16Ptr"); - funcTable.Load(413, "ImPlot_ImSum_U16Ptr"); - funcTable.Load(414, "ImPlot_ImSum_S32Ptr"); - funcTable.Load(415, "ImPlot_ImSum_U32Ptr"); - funcTable.Load(416, "ImPlot_ImSum_S64Ptr"); - funcTable.Load(417, "ImPlot_ImSum_U64Ptr"); - funcTable.Load(418, "ImPlot_ImMean_FloatPtr"); - funcTable.Load(419, "ImPlot_ImMean_doublePtr"); - funcTable.Load(420, "ImPlot_ImMean_S8Ptr"); - funcTable.Load(421, "ImPlot_ImMean_S16Ptr"); - funcTable.Load(422, "ImPlot_ImMean_U16Ptr"); - funcTable.Load(423, "ImPlot_ImMean_S32Ptr"); - funcTable.Load(424, "ImPlot_ImMean_U32Ptr"); - funcTable.Load(425, "ImPlot_ImMean_S64Ptr"); - funcTable.Load(426, "ImPlot_ImMean_U64Ptr"); - funcTable.Load(427, "ImPlot_ImStdDev_FloatPtr"); - funcTable.Load(428, "ImPlot_ImStdDev_doublePtr"); - funcTable.Load(429, "ImPlot_ImStdDev_S8Ptr"); - funcTable.Load(430, "ImPlot_ImStdDev_S16Ptr"); - funcTable.Load(431, "ImPlot_ImStdDev_U16Ptr"); - funcTable.Load(432, "ImPlot_ImStdDev_S32Ptr"); - funcTable.Load(433, "ImPlot_ImStdDev_U32Ptr"); - funcTable.Load(434, "ImPlot_ImStdDev_S64Ptr"); - funcTable.Load(435, "ImPlot_ImStdDev_U64Ptr"); - funcTable.Load(436, "ImPlot_ImMixU32"); - funcTable.Load(437, "ImPlot_ImLerpU32"); - funcTable.Load(438, "ImPlot_ImAlphaU32"); - funcTable.Load(439, "ImPlot_ImOverlaps_Float"); - funcTable.Load(440, "ImPlot_ImOverlaps_double"); - funcTable.Load(441, "ImPlot_ImOverlaps_S8"); - funcTable.Load(442, "ImPlot_ImOverlaps_S16"); - funcTable.Load(443, "ImPlot_ImOverlaps_U16"); - funcTable.Load(444, "ImPlot_ImOverlaps_S32"); - funcTable.Load(445, "ImPlot_ImOverlaps_U32"); - funcTable.Load(446, "ImPlot_ImOverlaps_S64"); - funcTable.Load(447, "ImPlot_ImOverlaps_U64"); - funcTable.Load(448, "ImPlotDateTimeSpec_ImPlotDateTimeSpec_Nil"); - funcTable.Load(449, "ImPlotDateTimeSpec_destroy"); - funcTable.Load(450, "ImPlotDateTimeSpec_ImPlotDateTimeSpec_PlotDateFmt"); - funcTable.Load(451, "ImPlotTime_ImPlotTime_Nil"); - funcTable.Load(452, "ImPlotTime_destroy"); - funcTable.Load(453, "ImPlotTime_ImPlotTime_time_t"); - funcTable.Load(454, "ImPlotTime_RollOver"); - funcTable.Load(455, "ImPlotTime_ToDouble"); - funcTable.Load(456, "ImPlotTime_FromDouble"); - funcTable.Load(457, "ImPlotColormapData_ImPlotColormapData"); - funcTable.Load(458, "ImPlotColormapData_destroy"); - funcTable.Load(459, "ImPlotColormapData_Append"); - funcTable.Load(460, "ImPlotColormapData__AppendTable"); - funcTable.Load(461, "ImPlotColormapData_RebuildTables"); - funcTable.Load(462, "ImPlotColormapData_IsQual"); - funcTable.Load(463, "ImPlotColormapData_GetName"); - funcTable.Load(464, "ImPlotColormapData_GetIndex"); - funcTable.Load(465, "ImPlotColormapData_GetKeys"); - funcTable.Load(466, "ImPlotColormapData_GetKeyCount"); - funcTable.Load(467, "ImPlotColormapData_GetKeyColor"); - funcTable.Load(468, "ImPlotColormapData_SetKeyColor"); - funcTable.Load(469, "ImPlotColormapData_GetTable"); - funcTable.Load(470, "ImPlotColormapData_GetTableSize"); - funcTable.Load(471, "ImPlotColormapData_GetTableColor"); - funcTable.Load(472, "ImPlotColormapData_LerpTable"); - funcTable.Load(473, "ImPlotPointError_ImPlotPointError"); - funcTable.Load(474, "ImPlotPointError_destroy"); - funcTable.Load(475, "ImPlotAnnotationCollection_ImPlotAnnotationCollection"); - funcTable.Load(476, "ImPlotAnnotationCollection_destroy"); - funcTable.Load(477, "ImPlotAnnotationCollection_AppendV"); - funcTable.Load(478, "ImPlotAnnotationCollection_Append"); - funcTable.Load(479, "ImPlotAnnotationCollection_GetText"); - funcTable.Load(480, "ImPlotAnnotationCollection_Reset"); - funcTable.Load(481, "ImPlotTagCollection_ImPlotTagCollection"); - funcTable.Load(482, "ImPlotTagCollection_destroy"); - funcTable.Load(483, "ImPlotTagCollection_AppendV"); - funcTable.Load(484, "ImPlotTagCollection_Append"); - funcTable.Load(485, "ImPlotTagCollection_GetText"); - funcTable.Load(486, "ImPlotTagCollection_Reset"); - funcTable.Load(487, "ImPlotTick_ImPlotTick"); - funcTable.Load(488, "ImPlotTick_destroy"); - funcTable.Load(489, "ImPlotTicker_ImPlotTicker"); - funcTable.Load(490, "ImPlotTicker_destroy"); - funcTable.Load(491, "ImPlotTicker_AddTick_doubleStr"); - funcTable.Load(492, "ImPlotTicker_AddTick_doublePlotFormatter"); - funcTable.Load(493, "ImPlotTicker_AddTick_PlotTick"); - funcTable.Load(494, "ImPlotTicker_GetText_Int"); - funcTable.Load(495, "ImPlotTicker_GetText_PlotTick"); - funcTable.Load(496, "ImPlotTicker_OverrideSizeLate"); - funcTable.Load(497, "ImPlotTicker_Reset"); - funcTable.Load(498, "ImPlotTicker_TickCount"); - funcTable.Load(499, "ImPlotAxis_ImPlotAxis"); - funcTable.Load(500, "ImPlotAxis_destroy"); - funcTable.Load(501, "ImPlotAxis_Reset"); - funcTable.Load(502, "ImPlotAxis_SetMin"); - funcTable.Load(503, "ImPlotAxis_SetMax"); - funcTable.Load(504, "ImPlotAxis_SetRange_double"); - funcTable.Load(505, "ImPlotAxis_SetRange_PlotRange"); - funcTable.Load(506, "ImPlotAxis_SetAspect"); - funcTable.Load(507, "ImPlotAxis_PixelSize"); - funcTable.Load(508, "ImPlotAxis_GetAspect"); - funcTable.Load(509, "ImPlotAxis_Constrain"); - funcTable.Load(510, "ImPlotAxis_UpdateTransformCache"); - funcTable.Load(511, "ImPlotAxis_PlotToPixels"); - funcTable.Load(512, "ImPlotAxis_PixelsToPlot"); - funcTable.Load(513, "ImPlotAxis_ExtendFit"); - funcTable.Load(514, "ImPlotAxis_ExtendFitWith"); - funcTable.Load(515, "ImPlotAxis_ApplyFit"); - funcTable.Load(516, "ImPlotAxis_HasLabel"); - funcTable.Load(517, "ImPlotAxis_HasGridLines"); - funcTable.Load(518, "ImPlotAxis_HasTickLabels"); - funcTable.Load(519, "ImPlotAxis_HasTickMarks"); - funcTable.Load(520, "ImPlotAxis_WillRender"); - funcTable.Load(521, "ImPlotAxis_IsOpposite"); - funcTable.Load(522, "ImPlotAxis_IsInverted"); - funcTable.Load(523, "ImPlotAxis_IsForeground"); - funcTable.Load(524, "ImPlotAxis_IsAutoFitting"); - funcTable.Load(525, "ImPlotAxis_CanInitFit"); - funcTable.Load(526, "ImPlotAxis_IsRangeLocked"); - funcTable.Load(527, "ImPlotAxis_IsLockedMin"); - funcTable.Load(528, "ImPlotAxis_IsLockedMax"); - funcTable.Load(529, "ImPlotAxis_IsLocked"); - funcTable.Load(530, "ImPlotAxis_IsInputLockedMin"); - funcTable.Load(531, "ImPlotAxis_IsInputLockedMax"); - funcTable.Load(532, "ImPlotAxis_IsInputLocked"); - funcTable.Load(533, "ImPlotAxis_HasMenus"); - funcTable.Load(534, "ImPlotAxis_IsPanLocked"); - funcTable.Load(535, "ImPlotAxis_PushLinks"); - funcTable.Load(536, "ImPlotAxis_PullLinks"); - funcTable.Load(537, "ImPlotAlignmentData_ImPlotAlignmentData"); - funcTable.Load(538, "ImPlotAlignmentData_destroy"); - funcTable.Load(539, "ImPlotAlignmentData_Begin"); - funcTable.Load(540, "ImPlotAlignmentData_Update"); - funcTable.Load(541, "ImPlotAlignmentData_End"); - funcTable.Load(542, "ImPlotAlignmentData_Reset"); - funcTable.Load(543, "ImPlotItem_ImPlotItem"); - funcTable.Load(544, "ImPlotItem_destroy"); - funcTable.Load(545, "ImPlotLegend_ImPlotLegend"); - funcTable.Load(546, "ImPlotLegend_destroy"); - funcTable.Load(547, "ImPlotLegend_Reset"); - funcTable.Load(548, "ImPlotItemGroup_ImPlotItemGroup"); - funcTable.Load(549, "ImPlotItemGroup_destroy"); - funcTable.Load(550, "ImPlotItemGroup_GetItemCount"); - funcTable.Load(551, "ImPlotItemGroup_GetItemID"); - funcTable.Load(552, "ImPlotItemGroup_GetItem_ID"); - funcTable.Load(553, "ImPlotItemGroup_GetItem_Str"); - funcTable.Load(554, "ImPlotItemGroup_GetOrAddItem"); - funcTable.Load(555, "ImPlotItemGroup_GetItemByIndex"); - funcTable.Load(556, "ImPlotItemGroup_GetItemIndex"); - funcTable.Load(557, "ImPlotItemGroup_GetLegendCount"); - funcTable.Load(558, "ImPlotItemGroup_GetLegendItem"); - funcTable.Load(559, "ImPlotItemGroup_GetLegendLabel"); - funcTable.Load(560, "ImPlotItemGroup_Reset"); - funcTable.Load(561, "ImPlotPlot_ImPlotPlot"); - funcTable.Load(562, "ImPlotPlot_destroy"); - funcTable.Load(563, "ImPlotPlot_IsInputLocked"); - funcTable.Load(564, "ImPlotPlot_ClearTextBuffer"); - funcTable.Load(565, "ImPlotPlot_SetTitle"); - funcTable.Load(566, "ImPlotPlot_HasTitle"); - funcTable.Load(567, "ImPlotPlot_GetTitle"); - funcTable.Load(568, "ImPlotPlot_XAxis_Nil"); - funcTable.Load(569, "ImPlotPlot_XAxis__const"); - funcTable.Load(570, "ImPlotPlot_YAxis_Nil"); - funcTable.Load(571, "ImPlotPlot_YAxis__const"); - funcTable.Load(572, "ImPlotPlot_EnabledAxesX"); - funcTable.Load(573, "ImPlotPlot_EnabledAxesY"); - funcTable.Load(574, "ImPlotPlot_SetAxisLabel"); - funcTable.Load(575, "ImPlotPlot_GetAxisLabel"); - funcTable.Load(576, "ImPlotSubplot_ImPlotSubplot"); - funcTable.Load(577, "ImPlotSubplot_destroy"); - funcTable.Load(578, "ImPlotNextPlotData_ImPlotNextPlotData"); - funcTable.Load(579, "ImPlotNextPlotData_destroy"); - funcTable.Load(580, "ImPlotNextPlotData_Reset"); - funcTable.Load(581, "ImPlotNextItemData_ImPlotNextItemData"); - funcTable.Load(582, "ImPlotNextItemData_destroy"); - funcTable.Load(583, "ImPlotNextItemData_Reset"); - funcTable.Load(584, "ImPlot_Initialize"); - funcTable.Load(585, "ImPlot_ResetCtxForNextPlot"); - funcTable.Load(586, "ImPlot_ResetCtxForNextAlignedPlots"); - funcTable.Load(587, "ImPlot_ResetCtxForNextSubplot"); - funcTable.Load(588, "ImPlot_GetPlot"); - funcTable.Load(589, "ImPlot_GetCurrentPlot"); - funcTable.Load(590, "ImPlot_BustPlotCache"); - funcTable.Load(591, "ImPlot_ShowPlotContextMenu"); - funcTable.Load(592, "ImPlot_SetupLock"); - funcTable.Load(593, "ImPlot_SubplotNextCell"); - funcTable.Load(594, "ImPlot_ShowSubplotsContextMenu"); - funcTable.Load(595, "ImPlot_BeginItem"); - funcTable.Load(596, "ImPlot_EndItem"); - funcTable.Load(597, "ImPlot_RegisterOrGetItem"); - funcTable.Load(598, "ImPlot_GetItem"); - funcTable.Load(599, "ImPlot_GetCurrentItem"); - funcTable.Load(600, "ImPlot_BustItemCache"); - funcTable.Load(601, "ImPlot_AnyAxesInputLocked"); - funcTable.Load(602, "ImPlot_AllAxesInputLocked"); - funcTable.Load(603, "ImPlot_AnyAxesHeld"); - funcTable.Load(604, "ImPlot_AnyAxesHovered"); - funcTable.Load(605, "ImPlot_FitThisFrame"); - funcTable.Load(606, "ImPlot_FitPointX"); - funcTable.Load(607, "ImPlot_FitPointY"); - funcTable.Load(608, "ImPlot_FitPoint"); - funcTable.Load(609, "ImPlot_RangesOverlap"); - funcTable.Load(610, "ImPlot_ShowAxisContextMenu"); - funcTable.Load(611, "ImPlot_GetLocationPos"); - funcTable.Load(612, "ImPlot_CalcLegendSize"); - funcTable.Load(613, "ImPlot_ShowLegendEntries"); - funcTable.Load(614, "ImPlot_ShowAltLegend"); - funcTable.Load(615, "ImPlot_ShowLegendContextMenu"); - funcTable.Load(616, "ImPlot_LabelAxisValue"); - funcTable.Load(617, "ImPlot_GetItemData"); - funcTable.Load(618, "ImPlot_IsColorAuto_Vec4"); - funcTable.Load(619, "ImPlot_IsColorAuto_PlotCol"); - funcTable.Load(620, "ImPlot_GetAutoColor"); - funcTable.Load(621, "ImPlot_GetStyleColorVec4"); - funcTable.Load(622, "ImPlot_GetStyleColorU32"); - funcTable.Load(623, "ImPlot_AddTextVertical"); - funcTable.Load(624, "ImPlot_AddTextCentered"); - funcTable.Load(625, "ImPlot_CalcTextSizeVertical"); - funcTable.Load(626, "ImPlot_CalcTextColor_Vec4"); - funcTable.Load(627, "ImPlot_CalcTextColor_U32"); - funcTable.Load(628, "ImPlot_CalcHoverColor"); - funcTable.Load(629, "ImPlot_ClampLabelPos"); - funcTable.Load(630, "ImPlot_GetColormapColorU32"); - funcTable.Load(631, "ImPlot_NextColormapColorU32"); - funcTable.Load(632, "ImPlot_SampleColormapU32"); - funcTable.Load(633, "ImPlot_RenderColorBar"); - funcTable.Load(634, "ImPlot_NiceNum"); - funcTable.Load(635, "ImPlot_OrderOfMagnitude"); - funcTable.Load(636, "ImPlot_OrderToPrecision"); - funcTable.Load(637, "ImPlot_Precision"); - funcTable.Load(638, "ImPlot_RoundTo"); - funcTable.Load(639, "ImPlot_Intersection"); - funcTable.Load(640, "ImPlot_FillRange_Vector_Float_Ptr"); - funcTable.Load(641, "ImPlot_FillRange_Vector_double_Ptr"); - funcTable.Load(642, "ImPlot_FillRange_Vector_S8_Ptr"); - funcTable.Load(643, "ImPlot_FillRange_Vector_U8_Ptr"); - funcTable.Load(644, "ImPlot_FillRange_Vector_S16_Ptr"); - funcTable.Load(645, "ImPlot_FillRange_Vector_U16_Ptr"); - funcTable.Load(646, "ImPlot_FillRange_Vector_S32_Ptr"); - funcTable.Load(647, "ImPlot_FillRange_Vector_U32_Ptr"); - funcTable.Load(648, "ImPlot_FillRange_Vector_S64_Ptr"); - funcTable.Load(649, "ImPlot_FillRange_Vector_U64_Ptr"); - funcTable.Load(650, "ImPlot_CalculateBins_FloatPtr"); - funcTable.Load(651, "ImPlot_CalculateBins_doublePtr"); - funcTable.Load(652, "ImPlot_CalculateBins_S8Ptr"); - funcTable.Load(653, "ImPlot_CalculateBins_S16Ptr"); - funcTable.Load(654, "ImPlot_CalculateBins_U16Ptr"); - funcTable.Load(655, "ImPlot_CalculateBins_S32Ptr"); - funcTable.Load(656, "ImPlot_CalculateBins_U32Ptr"); - funcTable.Load(657, "ImPlot_CalculateBins_S64Ptr"); - funcTable.Load(658, "ImPlot_CalculateBins_U64Ptr"); - funcTable.Load(659, "ImPlot_IsLeapYear"); - funcTable.Load(660, "ImPlot_GetDaysInMonth"); - funcTable.Load(661, "ImPlot_MkGmtTime"); - funcTable.Load(662, "ImPlot_GetGmtTime"); - funcTable.Load(663, "ImPlot_MkLocTime"); - funcTable.Load(664, "ImPlot_GetLocTime"); - funcTable.Load(665, "ImPlot_MakeTime"); - funcTable.Load(666, "ImPlot_GetYear"); - funcTable.Load(667, "ImPlot_AddTime"); - funcTable.Load(668, "ImPlot_FloorTime"); - funcTable.Load(669, "ImPlot_CeilTime"); - funcTable.Load(670, "ImPlot_RoundTime"); - funcTable.Load(671, "ImPlot_CombineDateTime"); - funcTable.Load(672, "ImPlot_FormatTime"); - funcTable.Load(673, "ImPlot_FormatDate"); - funcTable.Load(674, "ImPlot_FormatDateTime"); - funcTable.Load(675, "ImPlot_ShowDatePicker"); - funcTable.Load(676, "ImPlot_ShowTimePicker"); - funcTable.Load(677, "ImPlot_TransformForward_Log10"); - funcTable.Load(678, "ImPlot_TransformInverse_Log10"); - funcTable.Load(679, "ImPlot_TransformForward_SymLog"); - funcTable.Load(680, "ImPlot_TransformInverse_SymLog"); - funcTable.Load(681, "ImPlot_TransformForward_Logit"); - funcTable.Load(682, "ImPlot_TransformInverse_Logit"); - funcTable.Load(683, "ImPlot_Formatter_Default"); - funcTable.Load(684, "ImPlot_Formatter_Logit"); - funcTable.Load(685, "ImPlot_Formatter_Time"); - funcTable.Load(686, "ImPlot_Locator_Default"); - funcTable.Load(687, "ImPlot_Locator_Time"); - funcTable.Load(688, "ImPlot_Locator_Log10"); - funcTable.Load(689, "ImPlot_Locator_SymLog"); - funcTable.Load(690, "ImPlot_PlotLineG"); - funcTable.Load(691, "ImPlot_PlotScatterG"); - funcTable.Load(692, "ImPlot_PlotShadedG"); - funcTable.Load(693, "ImPlot_PlotBarsG"); - funcTable.Load(694, "ImPlot_PlotDigitalG"); + funcTable.Load(57, "ImPlot_PlotLine_U8PtrInt"); + funcTable.Load(58, "ImPlot_PlotLine_S16PtrInt"); + funcTable.Load(59, "ImPlot_PlotLine_U16PtrInt"); + funcTable.Load(60, "ImPlot_PlotLine_S32PtrInt"); + funcTable.Load(61, "ImPlot_PlotLine_U32PtrInt"); + funcTable.Load(62, "ImPlot_PlotLine_S64PtrInt"); + funcTable.Load(63, "ImPlot_PlotLine_U64PtrInt"); + funcTable.Load(64, "ImPlot_PlotLine_FloatPtrFloatPtr"); + funcTable.Load(65, "ImPlot_PlotLine_doublePtrdoublePtr"); + funcTable.Load(66, "ImPlot_PlotLine_S8PtrS8Ptr"); + funcTable.Load(67, "ImPlot_PlotLine_U8PtrU8Ptr"); + funcTable.Load(68, "ImPlot_PlotLine_S16PtrS16Ptr"); + funcTable.Load(69, "ImPlot_PlotLine_U16PtrU16Ptr"); + funcTable.Load(70, "ImPlot_PlotLine_S32PtrS32Ptr"); + funcTable.Load(71, "ImPlot_PlotLine_U32PtrU32Ptr"); + funcTable.Load(72, "ImPlot_PlotLine_S64PtrS64Ptr"); + funcTable.Load(73, "ImPlot_PlotLine_U64PtrU64Ptr"); + funcTable.Load(74, "ImPlot_PlotScatter_FloatPtrInt"); + funcTable.Load(75, "ImPlot_PlotScatter_doublePtrInt"); + funcTable.Load(76, "ImPlot_PlotScatter_S8PtrInt"); + funcTable.Load(77, "ImPlot_PlotScatter_U8PtrInt"); + funcTable.Load(78, "ImPlot_PlotScatter_S16PtrInt"); + funcTable.Load(79, "ImPlot_PlotScatter_U16PtrInt"); + funcTable.Load(80, "ImPlot_PlotScatter_S32PtrInt"); + funcTable.Load(81, "ImPlot_PlotScatter_U32PtrInt"); + funcTable.Load(82, "ImPlot_PlotScatter_S64PtrInt"); + funcTable.Load(83, "ImPlot_PlotScatter_U64PtrInt"); + funcTable.Load(84, "ImPlot_PlotScatter_FloatPtrFloatPtr"); + funcTable.Load(85, "ImPlot_PlotScatter_doublePtrdoublePtr"); + funcTable.Load(86, "ImPlot_PlotScatter_S8PtrS8Ptr"); + funcTable.Load(87, "ImPlot_PlotScatter_U8PtrU8Ptr"); + funcTable.Load(88, "ImPlot_PlotScatter_S16PtrS16Ptr"); + funcTable.Load(89, "ImPlot_PlotScatter_U16PtrU16Ptr"); + funcTable.Load(90, "ImPlot_PlotScatter_S32PtrS32Ptr"); + funcTable.Load(91, "ImPlot_PlotScatter_U32PtrU32Ptr"); + funcTable.Load(92, "ImPlot_PlotScatter_S64PtrS64Ptr"); + funcTable.Load(93, "ImPlot_PlotScatter_U64PtrU64Ptr"); + funcTable.Load(94, "ImPlot_PlotStairs_FloatPtrInt"); + funcTable.Load(95, "ImPlot_PlotStairs_doublePtrInt"); + funcTable.Load(96, "ImPlot_PlotStairs_S8PtrInt"); + funcTable.Load(97, "ImPlot_PlotStairs_U8PtrInt"); + funcTable.Load(98, "ImPlot_PlotStairs_S16PtrInt"); + funcTable.Load(99, "ImPlot_PlotStairs_U16PtrInt"); + funcTable.Load(100, "ImPlot_PlotStairs_S32PtrInt"); + funcTable.Load(101, "ImPlot_PlotStairs_U32PtrInt"); + funcTable.Load(102, "ImPlot_PlotStairs_S64PtrInt"); + funcTable.Load(103, "ImPlot_PlotStairs_U64PtrInt"); + funcTable.Load(104, "ImPlot_PlotStairs_FloatPtrFloatPtr"); + funcTable.Load(105, "ImPlot_PlotStairs_doublePtrdoublePtr"); + funcTable.Load(106, "ImPlot_PlotStairs_S8PtrS8Ptr"); + funcTable.Load(107, "ImPlot_PlotStairs_U8PtrU8Ptr"); + funcTable.Load(108, "ImPlot_PlotStairs_S16PtrS16Ptr"); + funcTable.Load(109, "ImPlot_PlotStairs_U16PtrU16Ptr"); + funcTable.Load(110, "ImPlot_PlotStairs_S32PtrS32Ptr"); + funcTable.Load(111, "ImPlot_PlotStairs_U32PtrU32Ptr"); + funcTable.Load(112, "ImPlot_PlotStairs_S64PtrS64Ptr"); + funcTable.Load(113, "ImPlot_PlotStairs_U64PtrU64Ptr"); + funcTable.Load(114, "ImPlot_PlotStairsG"); + funcTable.Load(115, "ImPlot_PlotShaded_FloatPtrInt"); + funcTable.Load(116, "ImPlot_PlotShaded_doublePtrInt"); + funcTable.Load(117, "ImPlot_PlotShaded_S8PtrInt"); + funcTable.Load(118, "ImPlot_PlotShaded_U8PtrInt"); + funcTable.Load(119, "ImPlot_PlotShaded_S16PtrInt"); + funcTable.Load(120, "ImPlot_PlotShaded_U16PtrInt"); + funcTable.Load(121, "ImPlot_PlotShaded_S32PtrInt"); + funcTable.Load(122, "ImPlot_PlotShaded_U32PtrInt"); + funcTable.Load(123, "ImPlot_PlotShaded_S64PtrInt"); + funcTable.Load(124, "ImPlot_PlotShaded_U64PtrInt"); + funcTable.Load(125, "ImPlot_PlotShaded_FloatPtrFloatPtrInt"); + funcTable.Load(126, "ImPlot_PlotShaded_doublePtrdoublePtrInt"); + funcTable.Load(127, "ImPlot_PlotShaded_S8PtrS8PtrInt"); + funcTable.Load(128, "ImPlot_PlotShaded_U8PtrU8PtrInt"); + funcTable.Load(129, "ImPlot_PlotShaded_S16PtrS16PtrInt"); + funcTable.Load(130, "ImPlot_PlotShaded_U16PtrU16PtrInt"); + funcTable.Load(131, "ImPlot_PlotShaded_S32PtrS32PtrInt"); + funcTable.Load(132, "ImPlot_PlotShaded_U32PtrU32PtrInt"); + funcTable.Load(133, "ImPlot_PlotShaded_S64PtrS64PtrInt"); + funcTable.Load(134, "ImPlot_PlotShaded_U64PtrU64PtrInt"); + funcTable.Load(135, "ImPlot_PlotShaded_FloatPtrFloatPtrFloatPtr"); + funcTable.Load(136, "ImPlot_PlotShaded_doublePtrdoublePtrdoublePtr"); + funcTable.Load(137, "ImPlot_PlotShaded_S8PtrS8PtrS8Ptr"); + funcTable.Load(138, "ImPlot_PlotShaded_U8PtrU8PtrU8Ptr"); + funcTable.Load(139, "ImPlot_PlotShaded_S16PtrS16PtrS16Ptr"); + funcTable.Load(140, "ImPlot_PlotShaded_U16PtrU16PtrU16Ptr"); + funcTable.Load(141, "ImPlot_PlotShaded_S32PtrS32PtrS32Ptr"); + funcTable.Load(142, "ImPlot_PlotShaded_U32PtrU32PtrU32Ptr"); + funcTable.Load(143, "ImPlot_PlotShaded_S64PtrS64PtrS64Ptr"); + funcTable.Load(144, "ImPlot_PlotShaded_U64PtrU64PtrU64Ptr"); + funcTable.Load(145, "ImPlot_PlotBars_FloatPtrInt"); + funcTable.Load(146, "ImPlot_PlotBars_doublePtrInt"); + funcTable.Load(147, "ImPlot_PlotBars_S8PtrInt"); + funcTable.Load(148, "ImPlot_PlotBars_U8PtrInt"); + funcTable.Load(149, "ImPlot_PlotBars_S16PtrInt"); + funcTable.Load(150, "ImPlot_PlotBars_U16PtrInt"); + funcTable.Load(151, "ImPlot_PlotBars_S32PtrInt"); + funcTable.Load(152, "ImPlot_PlotBars_U32PtrInt"); + funcTable.Load(153, "ImPlot_PlotBars_S64PtrInt"); + funcTable.Load(154, "ImPlot_PlotBars_U64PtrInt"); + funcTable.Load(155, "ImPlot_PlotBars_FloatPtrFloatPtr"); + funcTable.Load(156, "ImPlot_PlotBars_doublePtrdoublePtr"); + funcTable.Load(157, "ImPlot_PlotBars_S8PtrS8Ptr"); + funcTable.Load(158, "ImPlot_PlotBars_U8PtrU8Ptr"); + funcTable.Load(159, "ImPlot_PlotBars_S16PtrS16Ptr"); + funcTable.Load(160, "ImPlot_PlotBars_U16PtrU16Ptr"); + funcTable.Load(161, "ImPlot_PlotBars_S32PtrS32Ptr"); + funcTable.Load(162, "ImPlot_PlotBars_U32PtrU32Ptr"); + funcTable.Load(163, "ImPlot_PlotBars_S64PtrS64Ptr"); + funcTable.Load(164, "ImPlot_PlotBars_U64PtrU64Ptr"); + funcTable.Load(165, "ImPlot_PlotBarGroups_FloatPtr"); + funcTable.Load(166, "ImPlot_PlotBarGroups_doublePtr"); + funcTable.Load(167, "ImPlot_PlotBarGroups_S8Ptr"); + funcTable.Load(168, "ImPlot_PlotBarGroups_U8Ptr"); + funcTable.Load(169, "ImPlot_PlotBarGroups_S16Ptr"); + funcTable.Load(170, "ImPlot_PlotBarGroups_U16Ptr"); + funcTable.Load(171, "ImPlot_PlotBarGroups_S32Ptr"); + funcTable.Load(172, "ImPlot_PlotBarGroups_U32Ptr"); + funcTable.Load(173, "ImPlot_PlotBarGroups_S64Ptr"); + funcTable.Load(174, "ImPlot_PlotBarGroups_U64Ptr"); + funcTable.Load(175, "ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrInt"); + funcTable.Load(176, "ImPlot_PlotErrorBars_doublePtrdoublePtrdoublePtrInt"); + funcTable.Load(177, "ImPlot_PlotErrorBars_S8PtrS8PtrS8PtrInt"); + funcTable.Load(178, "ImPlot_PlotErrorBars_U8PtrU8PtrU8PtrInt"); + funcTable.Load(179, "ImPlot_PlotErrorBars_S16PtrS16PtrS16PtrInt"); + funcTable.Load(180, "ImPlot_PlotErrorBars_U16PtrU16PtrU16PtrInt"); + funcTable.Load(181, "ImPlot_PlotErrorBars_S32PtrS32PtrS32PtrInt"); + funcTable.Load(182, "ImPlot_PlotErrorBars_U32PtrU32PtrU32PtrInt"); + funcTable.Load(183, "ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrInt"); + funcTable.Load(184, "ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrInt"); + funcTable.Load(185, "ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrFloatPtr"); + funcTable.Load(186, "ImPlot_PlotErrorBars_doublePtrdoublePtrdoublePtrdoublePtr"); + funcTable.Load(187, "ImPlot_PlotErrorBars_S8PtrS8PtrS8PtrS8Ptr"); + funcTable.Load(188, "ImPlot_PlotErrorBars_U8PtrU8PtrU8PtrU8Ptr"); + funcTable.Load(189, "ImPlot_PlotErrorBars_S16PtrS16PtrS16PtrS16Ptr"); + funcTable.Load(190, "ImPlot_PlotErrorBars_U16PtrU16PtrU16PtrU16Ptr"); + funcTable.Load(191, "ImPlot_PlotErrorBars_S32PtrS32PtrS32PtrS32Ptr"); + funcTable.Load(192, "ImPlot_PlotErrorBars_U32PtrU32PtrU32PtrU32Ptr"); + funcTable.Load(193, "ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrS64Ptr"); + funcTable.Load(194, "ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrU64Ptr"); + funcTable.Load(195, "ImPlot_PlotStems_FloatPtrInt"); + funcTable.Load(196, "ImPlot_PlotStems_doublePtrInt"); + funcTable.Load(197, "ImPlot_PlotStems_S8PtrInt"); + funcTable.Load(198, "ImPlot_PlotStems_U8PtrInt"); + funcTable.Load(199, "ImPlot_PlotStems_S16PtrInt"); + funcTable.Load(200, "ImPlot_PlotStems_U16PtrInt"); + funcTable.Load(201, "ImPlot_PlotStems_S32PtrInt"); + funcTable.Load(202, "ImPlot_PlotStems_U32PtrInt"); + funcTable.Load(203, "ImPlot_PlotStems_S64PtrInt"); + funcTable.Load(204, "ImPlot_PlotStems_U64PtrInt"); + funcTable.Load(205, "ImPlot_PlotStems_FloatPtrFloatPtr"); + funcTable.Load(206, "ImPlot_PlotStems_doublePtrdoublePtr"); + funcTable.Load(207, "ImPlot_PlotStems_S8PtrS8Ptr"); + funcTable.Load(208, "ImPlot_PlotStems_U8PtrU8Ptr"); + funcTable.Load(209, "ImPlot_PlotStems_S16PtrS16Ptr"); + funcTable.Load(210, "ImPlot_PlotStems_U16PtrU16Ptr"); + funcTable.Load(211, "ImPlot_PlotStems_S32PtrS32Ptr"); + funcTable.Load(212, "ImPlot_PlotStems_U32PtrU32Ptr"); + funcTable.Load(213, "ImPlot_PlotStems_S64PtrS64Ptr"); + funcTable.Load(214, "ImPlot_PlotStems_U64PtrU64Ptr"); + funcTable.Load(215, "ImPlot_PlotInfLines_FloatPtr"); + funcTable.Load(216, "ImPlot_PlotInfLines_doublePtr"); + funcTable.Load(217, "ImPlot_PlotInfLines_S8Ptr"); + funcTable.Load(218, "ImPlot_PlotInfLines_U8Ptr"); + funcTable.Load(219, "ImPlot_PlotInfLines_S16Ptr"); + funcTable.Load(220, "ImPlot_PlotInfLines_U16Ptr"); + funcTable.Load(221, "ImPlot_PlotInfLines_S32Ptr"); + funcTable.Load(222, "ImPlot_PlotInfLines_U32Ptr"); + funcTable.Load(223, "ImPlot_PlotInfLines_S64Ptr"); + funcTable.Load(224, "ImPlot_PlotInfLines_U64Ptr"); + funcTable.Load(225, "ImPlot_PlotPieChart_FloatPtr"); + funcTable.Load(226, "ImPlot_PlotPieChart_doublePtr"); + funcTable.Load(227, "ImPlot_PlotPieChart_S8Ptr"); + funcTable.Load(228, "ImPlot_PlotPieChart_U8Ptr"); + funcTable.Load(229, "ImPlot_PlotPieChart_S16Ptr"); + funcTable.Load(230, "ImPlot_PlotPieChart_U16Ptr"); + funcTable.Load(231, "ImPlot_PlotPieChart_S32Ptr"); + funcTable.Load(232, "ImPlot_PlotPieChart_U32Ptr"); + funcTable.Load(233, "ImPlot_PlotPieChart_S64Ptr"); + funcTable.Load(234, "ImPlot_PlotPieChart_U64Ptr"); + funcTable.Load(235, "ImPlot_PlotHeatmap_FloatPtr"); + funcTable.Load(236, "ImPlot_PlotHeatmap_doublePtr"); + funcTable.Load(237, "ImPlot_PlotHeatmap_S8Ptr"); + funcTable.Load(238, "ImPlot_PlotHeatmap_U8Ptr"); + funcTable.Load(239, "ImPlot_PlotHeatmap_S16Ptr"); + funcTable.Load(240, "ImPlot_PlotHeatmap_U16Ptr"); + funcTable.Load(241, "ImPlot_PlotHeatmap_S32Ptr"); + funcTable.Load(242, "ImPlot_PlotHeatmap_U32Ptr"); + funcTable.Load(243, "ImPlot_PlotHeatmap_S64Ptr"); + funcTable.Load(244, "ImPlot_PlotHeatmap_U64Ptr"); + funcTable.Load(245, "ImPlot_PlotHistogram_FloatPtr"); + funcTable.Load(246, "ImPlot_PlotHistogram_doublePtr"); + funcTable.Load(247, "ImPlot_PlotHistogram_S8Ptr"); + funcTable.Load(248, "ImPlot_PlotHistogram_U8Ptr"); + funcTable.Load(249, "ImPlot_PlotHistogram_S16Ptr"); + funcTable.Load(250, "ImPlot_PlotHistogram_U16Ptr"); + funcTable.Load(251, "ImPlot_PlotHistogram_S32Ptr"); + funcTable.Load(252, "ImPlot_PlotHistogram_U32Ptr"); + funcTable.Load(253, "ImPlot_PlotHistogram_S64Ptr"); + funcTable.Load(254, "ImPlot_PlotHistogram_U64Ptr"); + funcTable.Load(255, "ImPlot_PlotHistogram2D_FloatPtr"); + funcTable.Load(256, "ImPlot_PlotHistogram2D_doublePtr"); + funcTable.Load(257, "ImPlot_PlotHistogram2D_S8Ptr"); + funcTable.Load(258, "ImPlot_PlotHistogram2D_U8Ptr"); + funcTable.Load(259, "ImPlot_PlotHistogram2D_S16Ptr"); + funcTable.Load(260, "ImPlot_PlotHistogram2D_U16Ptr"); + funcTable.Load(261, "ImPlot_PlotHistogram2D_S32Ptr"); + funcTable.Load(262, "ImPlot_PlotHistogram2D_U32Ptr"); + funcTable.Load(263, "ImPlot_PlotHistogram2D_S64Ptr"); + funcTable.Load(264, "ImPlot_PlotHistogram2D_U64Ptr"); + funcTable.Load(265, "ImPlot_PlotDigital_FloatPtr"); + funcTable.Load(266, "ImPlot_PlotDigital_doublePtr"); + funcTable.Load(267, "ImPlot_PlotDigital_S8Ptr"); + funcTable.Load(268, "ImPlot_PlotDigital_U8Ptr"); + funcTable.Load(269, "ImPlot_PlotDigital_S16Ptr"); + funcTable.Load(270, "ImPlot_PlotDigital_U16Ptr"); + funcTable.Load(271, "ImPlot_PlotDigital_S32Ptr"); + funcTable.Load(272, "ImPlot_PlotDigital_U32Ptr"); + funcTable.Load(273, "ImPlot_PlotDigital_S64Ptr"); + funcTable.Load(274, "ImPlot_PlotDigital_U64Ptr"); + funcTable.Load(275, "ImPlot_PlotImage"); + funcTable.Load(276, "ImPlot_PlotText"); + funcTable.Load(277, "ImPlot_PlotDummy"); + funcTable.Load(278, "ImPlot_DragPoint"); + funcTable.Load(279, "ImPlot_DragLineX"); + funcTable.Load(280, "ImPlot_DragLineY"); + funcTable.Load(281, "ImPlot_DragRect"); + funcTable.Load(282, "ImPlot_Annotation_Bool"); + funcTable.Load(283, "ImPlot_Annotation_Str"); + funcTable.Load(284, "ImPlot_AnnotationV"); + funcTable.Load(285, "ImPlot_TagX_Bool"); + funcTable.Load(286, "ImPlot_TagX_Str"); + funcTable.Load(287, "ImPlot_TagXV"); + funcTable.Load(288, "ImPlot_TagY_Bool"); + funcTable.Load(289, "ImPlot_TagY_Str"); + funcTable.Load(290, "ImPlot_TagYV"); + funcTable.Load(291, "ImPlot_SetAxis"); + funcTable.Load(292, "ImPlot_SetAxes"); + funcTable.Load(293, "ImPlot_PixelsToPlot_Vec2"); + funcTable.Load(294, "ImPlot_PixelsToPlot_Float"); + funcTable.Load(295, "ImPlot_PlotToPixels_PlotPoInt"); + funcTable.Load(296, "ImPlot_PlotToPixels_double"); + funcTable.Load(297, "ImPlot_GetPlotPos"); + funcTable.Load(298, "ImPlot_GetPlotSize"); + funcTable.Load(299, "ImPlot_GetPlotMousePos"); + funcTable.Load(300, "ImPlot_GetPlotLimits"); + funcTable.Load(301, "ImPlot_IsPlotHovered"); + funcTable.Load(302, "ImPlot_IsAxisHovered"); + funcTable.Load(303, "ImPlot_IsSubplotsHovered"); + funcTable.Load(304, "ImPlot_IsPlotSelected"); + funcTable.Load(305, "ImPlot_GetPlotSelection"); + funcTable.Load(306, "ImPlot_CancelPlotSelection"); + funcTable.Load(307, "ImPlot_HideNextItem"); + funcTable.Load(308, "ImPlot_BeginAlignedPlots"); + funcTable.Load(309, "ImPlot_EndAlignedPlots"); + funcTable.Load(310, "ImPlot_BeginLegendPopup"); + funcTable.Load(311, "ImPlot_EndLegendPopup"); + funcTable.Load(312, "ImPlot_IsLegendEntryHovered"); + funcTable.Load(313, "ImPlot_BeginDragDropTargetPlot"); + funcTable.Load(314, "ImPlot_BeginDragDropTargetAxis"); + funcTable.Load(315, "ImPlot_BeginDragDropTargetLegend"); + funcTable.Load(316, "ImPlot_EndDragDropTarget"); + funcTable.Load(317, "ImPlot_BeginDragDropSourcePlot"); + funcTable.Load(318, "ImPlot_BeginDragDropSourceAxis"); + funcTable.Load(319, "ImPlot_BeginDragDropSourceItem"); + funcTable.Load(320, "ImPlot_EndDragDropSource"); + funcTable.Load(321, "ImPlot_GetStyle"); + funcTable.Load(322, "ImPlot_StyleColorsAuto"); + funcTable.Load(323, "ImPlot_StyleColorsClassic"); + funcTable.Load(324, "ImPlot_StyleColorsDark"); + funcTable.Load(325, "ImPlot_StyleColorsLight"); + funcTable.Load(326, "ImPlot_PushStyleColor_U32"); + funcTable.Load(327, "ImPlot_PushStyleColor_Vec4"); + funcTable.Load(328, "ImPlot_PopStyleColor"); + funcTable.Load(329, "ImPlot_PushStyleVar_Float"); + funcTable.Load(330, "ImPlot_PushStyleVar_Int"); + funcTable.Load(331, "ImPlot_PushStyleVar_Vec2"); + funcTable.Load(332, "ImPlot_PopStyleVar"); + funcTable.Load(333, "ImPlot_SetNextLineStyle"); + funcTable.Load(334, "ImPlot_SetNextFillStyle"); + funcTable.Load(335, "ImPlot_SetNextMarkerStyle"); + funcTable.Load(336, "ImPlot_SetNextErrorBarStyle"); + funcTable.Load(337, "ImPlot_GetLastItemColor"); + funcTable.Load(338, "ImPlot_GetStyleColorName"); + funcTable.Load(339, "ImPlot_GetMarkerName"); + funcTable.Load(340, "ImPlot_AddColormap_Vec4Ptr"); + funcTable.Load(341, "ImPlot_AddColormap_U32Ptr"); + funcTable.Load(342, "ImPlot_GetColormapCount"); + funcTable.Load(343, "ImPlot_GetColormapName"); + funcTable.Load(344, "ImPlot_GetColormapIndex"); + funcTable.Load(345, "ImPlot_PushColormap_PlotColormap"); + funcTable.Load(346, "ImPlot_PushColormap_Str"); + funcTable.Load(347, "ImPlot_PopColormap"); + funcTable.Load(348, "ImPlot_NextColormapColor"); + funcTable.Load(349, "ImPlot_GetColormapSize"); + funcTable.Load(350, "ImPlot_GetColormapColor"); + funcTable.Load(351, "ImPlot_SampleColormap"); + funcTable.Load(352, "ImPlot_ColormapScale"); + funcTable.Load(353, "ImPlot_ColormapSlider"); + funcTable.Load(354, "ImPlot_ColormapButton"); + funcTable.Load(355, "ImPlot_BustColorCache"); + funcTable.Load(356, "ImPlot_GetInputMap"); + funcTable.Load(357, "ImPlot_MapInputDefault"); + funcTable.Load(358, "ImPlot_MapInputReverse"); + funcTable.Load(359, "ImPlot_ItemIcon_Vec4"); + funcTable.Load(360, "ImPlot_ItemIcon_U32"); + funcTable.Load(361, "ImPlot_ColormapIcon"); + funcTable.Load(362, "ImPlot_GetPlotDrawList"); + funcTable.Load(363, "ImPlot_PushPlotClipRect"); + funcTable.Load(364, "ImPlot_PopPlotClipRect"); + funcTable.Load(365, "ImPlot_ShowStyleSelector"); + funcTable.Load(366, "ImPlot_ShowColormapSelector"); + funcTable.Load(367, "ImPlot_ShowInputMapSelector"); + funcTable.Load(368, "ImPlot_ShowStyleEditor"); + funcTable.Load(369, "ImPlot_ShowUserGuide"); + funcTable.Load(370, "ImPlot_ShowMetricsWindow"); + funcTable.Load(371, "ImPlot_ShowDemoWindow"); + funcTable.Load(372, "ImPlot_ImLog10_Float"); + funcTable.Load(373, "ImPlot_ImLog10_double"); + funcTable.Load(374, "ImPlot_ImSinh_Float"); + funcTable.Load(375, "ImPlot_ImSinh_double"); + funcTable.Load(376, "ImPlot_ImAsinh_Float"); + funcTable.Load(377, "ImPlot_ImAsinh_double"); + funcTable.Load(378, "ImPlot_ImRemap_Float"); + funcTable.Load(379, "ImPlot_ImRemap_double"); + funcTable.Load(380, "ImPlot_ImRemap_S8"); + funcTable.Load(381, "ImPlot_ImRemap_U8"); + funcTable.Load(382, "ImPlot_ImRemap_S16"); + funcTable.Load(383, "ImPlot_ImRemap_U16"); + funcTable.Load(384, "ImPlot_ImRemap_S32"); + funcTable.Load(385, "ImPlot_ImRemap_U32"); + funcTable.Load(386, "ImPlot_ImRemap_S64"); + funcTable.Load(387, "ImPlot_ImRemap_U64"); + funcTable.Load(388, "ImPlot_ImRemap01_Float"); + funcTable.Load(389, "ImPlot_ImRemap01_double"); + funcTable.Load(390, "ImPlot_ImRemap01_S8"); + funcTable.Load(391, "ImPlot_ImRemap01_U8"); + funcTable.Load(392, "ImPlot_ImRemap01_S16"); + funcTable.Load(393, "ImPlot_ImRemap01_U16"); + funcTable.Load(394, "ImPlot_ImRemap01_S32"); + funcTable.Load(395, "ImPlot_ImRemap01_U32"); + funcTable.Load(396, "ImPlot_ImRemap01_S64"); + funcTable.Load(397, "ImPlot_ImRemap01_U64"); + funcTable.Load(398, "ImPlot_ImPosMod"); + funcTable.Load(399, "ImPlot_ImNan"); + funcTable.Load(400, "ImPlot_ImNanOrInf"); + funcTable.Load(401, "ImPlot_ImConstrainNan"); + funcTable.Load(402, "ImPlot_ImConstrainInf"); + funcTable.Load(403, "ImPlot_ImConstrainLog"); + funcTable.Load(404, "ImPlot_ImConstrainTime"); + funcTable.Load(405, "ImPlot_ImAlmostEqual"); + funcTable.Load(406, "ImPlot_ImMinArray_FloatPtr"); + funcTable.Load(407, "ImPlot_ImMinArray_doublePtr"); + funcTable.Load(408, "ImPlot_ImMinArray_S8Ptr"); + funcTable.Load(409, "ImPlot_ImMinArray_U8Ptr"); + funcTable.Load(410, "ImPlot_ImMinArray_S16Ptr"); + funcTable.Load(411, "ImPlot_ImMinArray_U16Ptr"); + funcTable.Load(412, "ImPlot_ImMinArray_S32Ptr"); + funcTable.Load(413, "ImPlot_ImMinArray_U32Ptr"); + funcTable.Load(414, "ImPlot_ImMinArray_S64Ptr"); + funcTable.Load(415, "ImPlot_ImMinArray_U64Ptr"); + funcTable.Load(416, "ImPlot_ImMaxArray_FloatPtr"); + funcTable.Load(417, "ImPlot_ImMaxArray_doublePtr"); + funcTable.Load(418, "ImPlot_ImMaxArray_S8Ptr"); + funcTable.Load(419, "ImPlot_ImMaxArray_U8Ptr"); + funcTable.Load(420, "ImPlot_ImMaxArray_S16Ptr"); + funcTable.Load(421, "ImPlot_ImMaxArray_U16Ptr"); + funcTable.Load(422, "ImPlot_ImMaxArray_S32Ptr"); + funcTable.Load(423, "ImPlot_ImMaxArray_U32Ptr"); + funcTable.Load(424, "ImPlot_ImMaxArray_S64Ptr"); + funcTable.Load(425, "ImPlot_ImMaxArray_U64Ptr"); + funcTable.Load(426, "ImPlot_ImMinMaxArray_FloatPtr"); + funcTable.Load(427, "ImPlot_ImMinMaxArray_doublePtr"); + funcTable.Load(428, "ImPlot_ImMinMaxArray_S8Ptr"); + funcTable.Load(429, "ImPlot_ImMinMaxArray_U8Ptr"); + funcTable.Load(430, "ImPlot_ImMinMaxArray_S16Ptr"); + funcTable.Load(431, "ImPlot_ImMinMaxArray_U16Ptr"); + funcTable.Load(432, "ImPlot_ImMinMaxArray_S32Ptr"); + funcTable.Load(433, "ImPlot_ImMinMaxArray_U32Ptr"); + funcTable.Load(434, "ImPlot_ImMinMaxArray_S64Ptr"); + funcTable.Load(435, "ImPlot_ImMinMaxArray_U64Ptr"); + funcTable.Load(436, "ImPlot_ImSum_FloatPtr"); + funcTable.Load(437, "ImPlot_ImSum_doublePtr"); + funcTable.Load(438, "ImPlot_ImSum_S8Ptr"); + funcTable.Load(439, "ImPlot_ImSum_U8Ptr"); + funcTable.Load(440, "ImPlot_ImSum_S16Ptr"); + funcTable.Load(441, "ImPlot_ImSum_U16Ptr"); + funcTable.Load(442, "ImPlot_ImSum_S32Ptr"); + funcTable.Load(443, "ImPlot_ImSum_U32Ptr"); + funcTable.Load(444, "ImPlot_ImSum_S64Ptr"); + funcTable.Load(445, "ImPlot_ImSum_U64Ptr"); + funcTable.Load(446, "ImPlot_ImMean_FloatPtr"); + funcTable.Load(447, "ImPlot_ImMean_doublePtr"); + funcTable.Load(448, "ImPlot_ImMean_S8Ptr"); + funcTable.Load(449, "ImPlot_ImMean_U8Ptr"); + funcTable.Load(450, "ImPlot_ImMean_S16Ptr"); + funcTable.Load(451, "ImPlot_ImMean_U16Ptr"); + funcTable.Load(452, "ImPlot_ImMean_S32Ptr"); + funcTable.Load(453, "ImPlot_ImMean_U32Ptr"); + funcTable.Load(454, "ImPlot_ImMean_S64Ptr"); + funcTable.Load(455, "ImPlot_ImMean_U64Ptr"); + funcTable.Load(456, "ImPlot_ImStdDev_FloatPtr"); + funcTable.Load(457, "ImPlot_ImStdDev_doublePtr"); + funcTable.Load(458, "ImPlot_ImStdDev_S8Ptr"); + funcTable.Load(459, "ImPlot_ImStdDev_U8Ptr"); + funcTable.Load(460, "ImPlot_ImStdDev_S16Ptr"); + funcTable.Load(461, "ImPlot_ImStdDev_U16Ptr"); + funcTable.Load(462, "ImPlot_ImStdDev_S32Ptr"); + funcTable.Load(463, "ImPlot_ImStdDev_U32Ptr"); + funcTable.Load(464, "ImPlot_ImStdDev_S64Ptr"); + funcTable.Load(465, "ImPlot_ImStdDev_U64Ptr"); + funcTable.Load(466, "ImPlot_ImMixU32"); + funcTable.Load(467, "ImPlot_ImLerpU32"); + funcTable.Load(468, "ImPlot_ImAlphaU32"); + funcTable.Load(469, "ImPlot_ImOverlaps_Float"); + funcTable.Load(470, "ImPlot_ImOverlaps_double"); + funcTable.Load(471, "ImPlot_ImOverlaps_S8"); + funcTable.Load(472, "ImPlot_ImOverlaps_U8"); + funcTable.Load(473, "ImPlot_ImOverlaps_S16"); + funcTable.Load(474, "ImPlot_ImOverlaps_U16"); + funcTable.Load(475, "ImPlot_ImOverlaps_S32"); + funcTable.Load(476, "ImPlot_ImOverlaps_U32"); + funcTable.Load(477, "ImPlot_ImOverlaps_S64"); + funcTable.Load(478, "ImPlot_ImOverlaps_U64"); + funcTable.Load(479, "ImPlotDateTimeSpec_ImPlotDateTimeSpec_Nil"); + funcTable.Load(480, "ImPlotDateTimeSpec_destroy"); + funcTable.Load(481, "ImPlotDateTimeSpec_ImPlotDateTimeSpec_PlotDateFmt"); + funcTable.Load(482, "ImPlotTime_ImPlotTime_Nil"); + funcTable.Load(483, "ImPlotTime_destroy"); + funcTable.Load(484, "ImPlotTime_ImPlotTime_time_t"); + funcTable.Load(485, "ImPlotTime_RollOver"); + funcTable.Load(486, "ImPlotTime_ToDouble"); + funcTable.Load(487, "ImPlotTime_FromDouble"); + funcTable.Load(488, "ImPlotColormapData_ImPlotColormapData"); + funcTable.Load(489, "ImPlotColormapData_destroy"); + funcTable.Load(490, "ImPlotColormapData_Append"); + funcTable.Load(491, "ImPlotColormapData__AppendTable"); + funcTable.Load(492, "ImPlotColormapData_RebuildTables"); + funcTable.Load(493, "ImPlotColormapData_IsQual"); + funcTable.Load(494, "ImPlotColormapData_GetName"); + funcTable.Load(495, "ImPlotColormapData_GetIndex"); + funcTable.Load(496, "ImPlotColormapData_GetKeys"); + funcTable.Load(497, "ImPlotColormapData_GetKeyCount"); + funcTable.Load(498, "ImPlotColormapData_GetKeyColor"); + funcTable.Load(499, "ImPlotColormapData_SetKeyColor"); + funcTable.Load(500, "ImPlotColormapData_GetTable"); + funcTable.Load(501, "ImPlotColormapData_GetTableSize"); + funcTable.Load(502, "ImPlotColormapData_GetTableColor"); + funcTable.Load(503, "ImPlotColormapData_LerpTable"); + funcTable.Load(504, "ImPlotPointError_ImPlotPointError"); + funcTable.Load(505, "ImPlotPointError_destroy"); + funcTable.Load(506, "ImPlotAnnotationCollection_ImPlotAnnotationCollection"); + funcTable.Load(507, "ImPlotAnnotationCollection_destroy"); + funcTable.Load(508, "ImPlotAnnotationCollection_AppendV"); + funcTable.Load(509, "ImPlotAnnotationCollection_Append"); + funcTable.Load(510, "ImPlotAnnotationCollection_GetText"); + funcTable.Load(511, "ImPlotAnnotationCollection_Reset"); + funcTable.Load(512, "ImPlotTagCollection_ImPlotTagCollection"); + funcTable.Load(513, "ImPlotTagCollection_destroy"); + funcTable.Load(514, "ImPlotTagCollection_AppendV"); + funcTable.Load(515, "ImPlotTagCollection_Append"); + funcTable.Load(516, "ImPlotTagCollection_GetText"); + funcTable.Load(517, "ImPlotTagCollection_Reset"); + funcTable.Load(518, "ImPlotTick_ImPlotTick"); + funcTable.Load(519, "ImPlotTick_destroy"); + funcTable.Load(520, "ImPlotTicker_ImPlotTicker"); + funcTable.Load(521, "ImPlotTicker_destroy"); + funcTable.Load(522, "ImPlotTicker_AddTick_doubleStr"); + funcTable.Load(523, "ImPlotTicker_AddTick_doublePlotFormatter"); + funcTable.Load(524, "ImPlotTicker_AddTick_PlotTick"); + funcTable.Load(525, "ImPlotTicker_GetText_Int"); + funcTable.Load(526, "ImPlotTicker_GetText_PlotTick"); + funcTable.Load(527, "ImPlotTicker_OverrideSizeLate"); + funcTable.Load(528, "ImPlotTicker_Reset"); + funcTable.Load(529, "ImPlotTicker_TickCount"); + funcTable.Load(530, "ImPlotAxis_ImPlotAxis"); + funcTable.Load(531, "ImPlotAxis_destroy"); + funcTable.Load(532, "ImPlotAxis_Reset"); + funcTable.Load(533, "ImPlotAxis_SetMin"); + funcTable.Load(534, "ImPlotAxis_SetMax"); + funcTable.Load(535, "ImPlotAxis_SetRange_double"); + funcTable.Load(536, "ImPlotAxis_SetRange_PlotRange"); + funcTable.Load(537, "ImPlotAxis_SetAspect"); + funcTable.Load(538, "ImPlotAxis_PixelSize"); + funcTable.Load(539, "ImPlotAxis_GetAspect"); + funcTable.Load(540, "ImPlotAxis_Constrain"); + funcTable.Load(541, "ImPlotAxis_UpdateTransformCache"); + funcTable.Load(542, "ImPlotAxis_PlotToPixels"); + funcTable.Load(543, "ImPlotAxis_PixelsToPlot"); + funcTable.Load(544, "ImPlotAxis_ExtendFit"); + funcTable.Load(545, "ImPlotAxis_ExtendFitWith"); + funcTable.Load(546, "ImPlotAxis_ApplyFit"); + funcTable.Load(547, "ImPlotAxis_HasLabel"); + funcTable.Load(548, "ImPlotAxis_HasGridLines"); + funcTable.Load(549, "ImPlotAxis_HasTickLabels"); + funcTable.Load(550, "ImPlotAxis_HasTickMarks"); + funcTable.Load(551, "ImPlotAxis_WillRender"); + funcTable.Load(552, "ImPlotAxis_IsOpposite"); + funcTable.Load(553, "ImPlotAxis_IsInverted"); + funcTable.Load(554, "ImPlotAxis_IsForeground"); + funcTable.Load(555, "ImPlotAxis_IsAutoFitting"); + funcTable.Load(556, "ImPlotAxis_CanInitFit"); + funcTable.Load(557, "ImPlotAxis_IsRangeLocked"); + funcTable.Load(558, "ImPlotAxis_IsLockedMin"); + funcTable.Load(559, "ImPlotAxis_IsLockedMax"); + funcTable.Load(560, "ImPlotAxis_IsLocked"); + funcTable.Load(561, "ImPlotAxis_IsInputLockedMin"); + funcTable.Load(562, "ImPlotAxis_IsInputLockedMax"); + funcTable.Load(563, "ImPlotAxis_IsInputLocked"); + funcTable.Load(564, "ImPlotAxis_HasMenus"); + funcTable.Load(565, "ImPlotAxis_IsPanLocked"); + funcTable.Load(566, "ImPlotAxis_PushLinks"); + funcTable.Load(567, "ImPlotAxis_PullLinks"); + funcTable.Load(568, "ImPlotAlignmentData_ImPlotAlignmentData"); + funcTable.Load(569, "ImPlotAlignmentData_destroy"); + funcTable.Load(570, "ImPlotAlignmentData_Begin"); + funcTable.Load(571, "ImPlotAlignmentData_Update"); + funcTable.Load(572, "ImPlotAlignmentData_End"); + funcTable.Load(573, "ImPlotAlignmentData_Reset"); + funcTable.Load(574, "ImPlotItem_ImPlotItem"); + funcTable.Load(575, "ImPlotItem_destroy"); + funcTable.Load(576, "ImPlotLegend_ImPlotLegend"); + funcTable.Load(577, "ImPlotLegend_destroy"); + funcTable.Load(578, "ImPlotLegend_Reset"); + funcTable.Load(579, "ImPlotItemGroup_ImPlotItemGroup"); + funcTable.Load(580, "ImPlotItemGroup_destroy"); + funcTable.Load(581, "ImPlotItemGroup_GetItemCount"); + funcTable.Load(582, "ImPlotItemGroup_GetItemID"); + funcTable.Load(583, "ImPlotItemGroup_GetItem_ID"); + funcTable.Load(584, "ImPlotItemGroup_GetItem_Str"); + funcTable.Load(585, "ImPlotItemGroup_GetOrAddItem"); + funcTable.Load(586, "ImPlotItemGroup_GetItemByIndex"); + funcTable.Load(587, "ImPlotItemGroup_GetItemIndex"); + funcTable.Load(588, "ImPlotItemGroup_GetLegendCount"); + funcTable.Load(589, "ImPlotItemGroup_GetLegendItem"); + funcTable.Load(590, "ImPlotItemGroup_GetLegendLabel"); + funcTable.Load(591, "ImPlotItemGroup_Reset"); + funcTable.Load(592, "ImPlotPlot_ImPlotPlot"); + funcTable.Load(593, "ImPlotPlot_destroy"); + funcTable.Load(594, "ImPlotPlot_IsInputLocked"); + funcTable.Load(595, "ImPlotPlot_ClearTextBuffer"); + funcTable.Load(596, "ImPlotPlot_SetTitle"); + funcTable.Load(597, "ImPlotPlot_HasTitle"); + funcTable.Load(598, "ImPlotPlot_GetTitle"); + funcTable.Load(599, "ImPlotPlot_XAxis_Nil"); + funcTable.Load(600, "ImPlotPlot_XAxis__const"); + funcTable.Load(601, "ImPlotPlot_YAxis_Nil"); + funcTable.Load(602, "ImPlotPlot_YAxis__const"); + funcTable.Load(603, "ImPlotPlot_EnabledAxesX"); + funcTable.Load(604, "ImPlotPlot_EnabledAxesY"); + funcTable.Load(605, "ImPlotPlot_SetAxisLabel"); + funcTable.Load(606, "ImPlotPlot_GetAxisLabel"); + funcTable.Load(607, "ImPlotSubplot_ImPlotSubplot"); + funcTable.Load(608, "ImPlotSubplot_destroy"); + funcTable.Load(609, "ImPlotNextPlotData_ImPlotNextPlotData"); + funcTable.Load(610, "ImPlotNextPlotData_destroy"); + funcTable.Load(611, "ImPlotNextPlotData_Reset"); + funcTable.Load(612, "ImPlotNextItemData_ImPlotNextItemData"); + funcTable.Load(613, "ImPlotNextItemData_destroy"); + funcTable.Load(614, "ImPlotNextItemData_Reset"); + funcTable.Load(615, "ImPlot_Initialize"); + funcTable.Load(616, "ImPlot_ResetCtxForNextPlot"); + funcTable.Load(617, "ImPlot_ResetCtxForNextAlignedPlots"); + funcTable.Load(618, "ImPlot_ResetCtxForNextSubplot"); + funcTable.Load(619, "ImPlot_GetPlot"); + funcTable.Load(620, "ImPlot_GetCurrentPlot"); + funcTable.Load(621, "ImPlot_BustPlotCache"); + funcTable.Load(622, "ImPlot_ShowPlotContextMenu"); + funcTable.Load(623, "ImPlot_SetupLock"); + funcTable.Load(624, "ImPlot_SubplotNextCell"); + funcTable.Load(625, "ImPlot_ShowSubplotsContextMenu"); + funcTable.Load(626, "ImPlot_BeginItem"); + funcTable.Load(627, "ImPlot_EndItem"); + funcTable.Load(628, "ImPlot_RegisterOrGetItem"); + funcTable.Load(629, "ImPlot_GetItem"); + funcTable.Load(630, "ImPlot_GetCurrentItem"); + funcTable.Load(631, "ImPlot_BustItemCache"); + funcTable.Load(632, "ImPlot_AnyAxesInputLocked"); + funcTable.Load(633, "ImPlot_AllAxesInputLocked"); + funcTable.Load(634, "ImPlot_AnyAxesHeld"); + funcTable.Load(635, "ImPlot_AnyAxesHovered"); + funcTable.Load(636, "ImPlot_FitThisFrame"); + funcTable.Load(637, "ImPlot_FitPointX"); + funcTable.Load(638, "ImPlot_FitPointY"); + funcTable.Load(639, "ImPlot_FitPoint"); + funcTable.Load(640, "ImPlot_RangesOverlap"); + funcTable.Load(641, "ImPlot_ShowAxisContextMenu"); + funcTable.Load(642, "ImPlot_GetLocationPos"); + funcTable.Load(643, "ImPlot_CalcLegendSize"); + funcTable.Load(644, "ImPlot_ShowLegendEntries"); + funcTable.Load(645, "ImPlot_ShowAltLegend"); + funcTable.Load(646, "ImPlot_ShowLegendContextMenu"); + funcTable.Load(647, "ImPlot_LabelAxisValue"); + funcTable.Load(648, "ImPlot_GetItemData"); + funcTable.Load(649, "ImPlot_IsColorAuto_Vec4"); + funcTable.Load(650, "ImPlot_IsColorAuto_PlotCol"); + funcTable.Load(651, "ImPlot_GetAutoColor"); + funcTable.Load(652, "ImPlot_GetStyleColorVec4"); + funcTable.Load(653, "ImPlot_GetStyleColorU32"); + funcTable.Load(654, "ImPlot_AddTextVertical"); + funcTable.Load(655, "ImPlot_AddTextCentered"); + funcTable.Load(656, "ImPlot_CalcTextSizeVertical"); + funcTable.Load(657, "ImPlot_CalcTextColor_Vec4"); + funcTable.Load(658, "ImPlot_CalcTextColor_U32"); + funcTable.Load(659, "ImPlot_CalcHoverColor"); + funcTable.Load(660, "ImPlot_ClampLabelPos"); + funcTable.Load(661, "ImPlot_GetColormapColorU32"); + funcTable.Load(662, "ImPlot_NextColormapColorU32"); + funcTable.Load(663, "ImPlot_SampleColormapU32"); + funcTable.Load(664, "ImPlot_RenderColorBar"); + funcTable.Load(665, "ImPlot_NiceNum"); + funcTable.Load(666, "ImPlot_OrderOfMagnitude"); + funcTable.Load(667, "ImPlot_OrderToPrecision"); + funcTable.Load(668, "ImPlot_Precision"); + funcTable.Load(669, "ImPlot_RoundTo"); + funcTable.Load(670, "ImPlot_Intersection"); + funcTable.Load(671, "ImPlot_FillRange_Vector_Float_Ptr"); + funcTable.Load(672, "ImPlot_FillRange_Vector_double_Ptr"); + funcTable.Load(673, "ImPlot_FillRange_Vector_S8_Ptr"); + funcTable.Load(674, "ImPlot_FillRange_Vector_U8_Ptr"); + funcTable.Load(675, "ImPlot_FillRange_Vector_S16_Ptr"); + funcTable.Load(676, "ImPlot_FillRange_Vector_U16_Ptr"); + funcTable.Load(677, "ImPlot_FillRange_Vector_S32_Ptr"); + funcTable.Load(678, "ImPlot_FillRange_Vector_U32_Ptr"); + funcTable.Load(679, "ImPlot_FillRange_Vector_S64_Ptr"); + funcTable.Load(680, "ImPlot_FillRange_Vector_U64_Ptr"); + funcTable.Load(681, "ImPlot_CalculateBins_FloatPtr"); + funcTable.Load(682, "ImPlot_CalculateBins_doublePtr"); + funcTable.Load(683, "ImPlot_CalculateBins_S8Ptr"); + funcTable.Load(684, "ImPlot_CalculateBins_U8Ptr"); + funcTable.Load(685, "ImPlot_CalculateBins_S16Ptr"); + funcTable.Load(686, "ImPlot_CalculateBins_U16Ptr"); + funcTable.Load(687, "ImPlot_CalculateBins_S32Ptr"); + funcTable.Load(688, "ImPlot_CalculateBins_U32Ptr"); + funcTable.Load(689, "ImPlot_CalculateBins_S64Ptr"); + funcTable.Load(690, "ImPlot_CalculateBins_U64Ptr"); + funcTable.Load(691, "ImPlot_IsLeapYear"); + funcTable.Load(692, "ImPlot_GetDaysInMonth"); + funcTable.Load(693, "ImPlot_MkGmtTime"); + funcTable.Load(694, "ImPlot_GetGmtTime"); + funcTable.Load(695, "ImPlot_MkLocTime"); + funcTable.Load(696, "ImPlot_GetLocTime"); + funcTable.Load(697, "ImPlot_MakeTime"); + funcTable.Load(698, "ImPlot_GetYear"); + funcTable.Load(699, "ImPlot_AddTime"); + funcTable.Load(700, "ImPlot_FloorTime"); + funcTable.Load(701, "ImPlot_CeilTime"); + funcTable.Load(702, "ImPlot_RoundTime"); + funcTable.Load(703, "ImPlot_CombineDateTime"); + funcTable.Load(704, "ImPlot_FormatTime"); + funcTable.Load(705, "ImPlot_FormatDate"); + funcTable.Load(706, "ImPlot_FormatDateTime"); + funcTable.Load(707, "ImPlot_ShowDatePicker"); + funcTable.Load(708, "ImPlot_ShowTimePicker"); + funcTable.Load(709, "ImPlot_TransformForward_Log10"); + funcTable.Load(710, "ImPlot_TransformInverse_Log10"); + funcTable.Load(711, "ImPlot_TransformForward_SymLog"); + funcTable.Load(712, "ImPlot_TransformInverse_SymLog"); + funcTable.Load(713, "ImPlot_TransformForward_Logit"); + funcTable.Load(714, "ImPlot_TransformInverse_Logit"); + funcTable.Load(715, "ImPlot_Formatter_Default"); + funcTable.Load(716, "ImPlot_Formatter_Logit"); + funcTable.Load(717, "ImPlot_Formatter_Time"); + funcTable.Load(718, "ImPlot_Locator_Default"); + funcTable.Load(719, "ImPlot_Locator_Time"); + funcTable.Load(720, "ImPlot_Locator_Log10"); + funcTable.Load(721, "ImPlot_Locator_SymLog"); + funcTable.Load(722, "ImPlot_PlotLineG"); + funcTable.Load(723, "ImPlot_PlotScatterG"); + funcTable.Load(724, "ImPlot_PlotShadedG"); + funcTable.Load(725, "ImPlot_PlotBarsG"); + funcTable.Load(726, "ImPlot_PlotDigitalG"); } public static void FreeApi() diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.001.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.001.cs index 516fef76e..43be86995 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.001.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.001.cs @@ -4209,10 +4209,10 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + internal static void PlotLineNative(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[56])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[56])(labelId, values, count, xscale, xstart, flags, offset, stride); #else ((delegate* unmanaged[Cdecl])funcTable[56])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); #endif @@ -4221,7 +4221,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) { PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); } @@ -4229,7 +4229,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) { PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); } @@ -4237,7 +4237,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) { PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); } @@ -4245,7 +4245,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart) + public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, double xstart) { PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); } @@ -4253,7 +4253,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, double xscale) + public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale) { PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); } @@ -4261,7 +4261,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count) + public static void PlotLine(byte* labelId, sbyte* values, int count) { PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); } @@ -4269,7 +4269,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, ImPlotLineFlags flags) + public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags) { PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } @@ -4277,7 +4277,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, ImPlotLineFlags flags) + public static void PlotLine(byte* labelId, sbyte* values, int count, ImPlotLineFlags flags) { PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } @@ -4285,7 +4285,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart, int offset) + public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, double xstart, int offset) { PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); } @@ -4293,7 +4293,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, int offset) + public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, int offset) { PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); } @@ -4301,7 +4301,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, int offset) + public static void PlotLine(byte* labelId, sbyte* values, int count, int offset) { PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); } @@ -4309,7 +4309,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset) + public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags, int offset) { PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); } @@ -4317,7 +4317,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, ImPlotLineFlags flags, int offset) + public static void PlotLine(byte* labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset) { PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); } @@ -4325,7 +4325,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) { PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); } @@ -4333,7 +4333,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, int offset, int stride) + public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, int offset, int stride) { PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); } @@ -4341,7 +4341,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, int offset, int stride) + public static void PlotLine(byte* labelId, sbyte* values, int count, int offset, int stride) { PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); } @@ -4349,7 +4349,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) { PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); } @@ -4357,7 +4357,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* values, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(byte* labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset, int stride) { PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); } @@ -4365,7 +4365,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { @@ -4376,7 +4376,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) { fixed (byte* plabelId = &labelId) { @@ -4387,7 +4387,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) { fixed (byte* plabelId = &labelId) { @@ -4398,7 +4398,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart) + public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { @@ -4409,7 +4409,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale) + public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale) { fixed (byte* plabelId = &labelId) { @@ -4420,7 +4420,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count) + public static void PlotLine(ref byte labelId, sbyte* values, int count) { fixed (byte* plabelId = &labelId) { @@ -4431,7 +4431,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, ImPlotLineFlags flags) + public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags) { fixed (byte* plabelId = &labelId) { @@ -4442,7 +4442,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, ImPlotLineFlags flags) + public static void PlotLine(ref byte labelId, sbyte* values, int count, ImPlotLineFlags flags) { fixed (byte* plabelId = &labelId) { @@ -4453,7 +4453,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset) + public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = &labelId) { @@ -4464,7 +4464,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, int offset) + public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, int offset) { fixed (byte* plabelId = &labelId) { @@ -4475,7 +4475,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, int offset) + public static void PlotLine(ref byte labelId, sbyte* values, int count, int offset) { fixed (byte* plabelId = &labelId) { @@ -4486,7 +4486,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset) + public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags, int offset) { fixed (byte* plabelId = &labelId) { @@ -4497,7 +4497,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, ImPlotLineFlags flags, int offset) + public static void PlotLine(ref byte labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset) { fixed (byte* plabelId = &labelId) { @@ -4508,7 +4508,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = &labelId) { @@ -4519,7 +4519,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, int offset, int stride) + public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, int offset, int stride) { fixed (byte* plabelId = &labelId) { @@ -4530,7 +4530,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, int offset, int stride) + public static void PlotLine(ref byte labelId, sbyte* values, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { @@ -4541,7 +4541,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { @@ -4552,7 +4552,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* values, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(ref byte labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { @@ -4563,7 +4563,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { @@ -4574,7 +4574,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) { fixed (byte* plabelId = labelId) { @@ -4585,7 +4585,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) { fixed (byte* plabelId = labelId) { @@ -4596,7 +4596,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart) { fixed (byte* plabelId = labelId) { @@ -4607,7 +4607,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, double xscale) { fixed (byte* plabelId = labelId) { @@ -4618,7 +4618,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count) { fixed (byte* plabelId = labelId) { @@ -4629,7 +4629,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotLineFlags flags) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags) { fixed (byte* plabelId = labelId) { @@ -4640,7 +4640,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, ImPlotLineFlags flags) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, ImPlotLineFlags flags) { fixed (byte* plabelId = labelId) { @@ -4651,7 +4651,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, int offset) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = labelId) { @@ -4662,7 +4662,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, int offset) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, double xscale, int offset) { fixed (byte* plabelId = labelId) { @@ -4673,7 +4673,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, int offset) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, int offset) { fixed (byte* plabelId = labelId) { @@ -4684,7 +4684,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags, int offset) { fixed (byte* plabelId = labelId) { @@ -4695,7 +4695,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, ImPlotLineFlags flags, int offset) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset) { fixed (byte* plabelId = labelId) { @@ -4706,7 +4706,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = labelId) { @@ -4717,7 +4717,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, int offset, int stride) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, double xscale, int offset, int stride) { fixed (byte* plabelId = labelId) { @@ -4728,7 +4728,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, int offset, int stride) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { @@ -4739,7 +4739,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { @@ -4750,7 +4750,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(ReadOnlySpan labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { @@ -4761,7 +4761,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4790,7 +4790,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4819,7 +4819,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4848,7 +4848,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, byte* values, int count, double xscale, double xstart) + public static void PlotLine(string labelId, sbyte* values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4877,7 +4877,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, byte* values, int count, double xscale) + public static void PlotLine(string labelId, sbyte* values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4906,7 +4906,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, byte* values, int count) + public static void PlotLine(string labelId, sbyte* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4935,7 +4935,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, byte* values, int count, double xscale, ImPlotLineFlags flags) + public static void PlotLine(string labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4964,7 +4964,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, byte* values, int count, ImPlotLineFlags flags) + public static void PlotLine(string labelId, sbyte* values, int count, ImPlotLineFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4993,7 +4993,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, byte* values, int count, double xscale, double xstart, int offset) + public static void PlotLine(string labelId, sbyte* values, int count, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.002.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.002.cs index 842b5f734..e10e1296d 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.002.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.002.cs @@ -22,7 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, byte* values, int count, double xscale, int offset) + public static void PlotLine(string labelId, sbyte* values, int count, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -51,7 +51,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, byte* values, int count, int offset) + public static void PlotLine(string labelId, sbyte* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -80,7 +80,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset) + public static void PlotLine(string labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -109,7 +109,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, byte* values, int count, ImPlotLineFlags flags, int offset) + public static void PlotLine(string labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -135,6 +135,1081 @@ namespace Dalamud.Bindings.ImPlot } } + /// + /// To be documented. + /// + public static void PlotLine(string labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, sbyte* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, sbyte* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLineNative(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[57])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[57])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, double xscale) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, double xscale, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, double xscale, int offset) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, int offset) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, double xscale, int offset, int stride) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, int offset, int stride) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, byte* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, byte* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, byte* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, byte* values, int count, double xscale, double xstart) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, byte* values, int count, double xscale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, byte* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, byte* values, int count, double xscale, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, byte* values, int count, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, byte* values, int count, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, byte* values, int count, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, byte* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, byte* values, int count, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + /// /// To be documented. /// @@ -280,1284 +1355,6 @@ namespace Dalamud.Bindings.ImPlot } } - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, double xscale, double xstart) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, double xscale) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, ImPlotLineFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, double xscale, double xstart, int offset) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, double xscale, int offset) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, int offset) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, double xscale, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotLineNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotLineNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// @@ -1565,9 +1362,9 @@ namespace Dalamud.Bindings.ImPlot internal static void PlotLineNative(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[57])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[58])(labelId, values, count, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[57])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[58])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); #endif } @@ -2633,1284 +2430,6 @@ namespace Dalamud.Bindings.ImPlot } } - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, double xscale, double xstart) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, double xscale) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, ImPlotLineFlags flags) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, double xscale, double xstart, int offset) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, double xscale, int offset) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, int offset) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, ImPlotLineFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, double xscale, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotLineNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotLineNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// @@ -3918,9 +2437,9 @@ namespace Dalamud.Bindings.ImPlot internal static void PlotLineNative(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[58])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[59])(labelId, values, count, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[58])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[59])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); #endif } @@ -4989,33 +3508,1518 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref ushort values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLineNative(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) { - fixed (ushort* pvalues = &values) + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[60])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[60])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, double xscale) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, double xscale, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, double xscale, int offset) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, int offset) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, double xscale, int offset, int stride) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, int offset, int stride) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) { - PlotLineNative(labelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, stride); + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref ushort values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) { - fixed (ushort* pvalues = &values) + fixed (byte* plabelId = &labelId) { - PlotLineNative(labelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref ushort values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags) { - fixed (ushort* pvalues = &values) + fixed (byte* plabelId = &labelId) { - PlotLineNative(labelId, (ushort*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, double xscale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, double xscale, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLineNative(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[61])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[61])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, double xscale) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, double xscale, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, double xscale, int offset) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, int offset) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, double xscale, int offset, int stride) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, int offset, int stride) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, uint* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, uint* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, uint* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, uint* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.003.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.003.cs index 2605dd656..6eb0f58e9 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.003.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.003.cs @@ -19,4047 +19,6 @@ namespace Dalamud.Bindings.ImPlot public unsafe partial class ImPlot { - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort values, int count, double xscale, double xstart) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative(labelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort values, int count, double xscale) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort values, int count) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort values, int count, ImPlotLineFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort values, int count, double xscale, double xstart, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative(labelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort values, int count, double xscale, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort values, int count, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort values, int count, ImPlotLineFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative(labelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort values, int count, double xscale, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort values, int count, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotLineNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[59])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[59])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, double xscale) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, double xscale, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, double xscale, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, double xscale, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, double xscale, double xstart) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, double xscale) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, ImPlotLineFlags flags) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, double xscale, double xstart, int offset) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, double xscale, int offset) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, int offset) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, ImPlotLineFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, double xscale, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotLineNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotLineNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[60])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[60])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, double xscale) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, uint* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, uint* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, uint* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, uint* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, uint* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - /// /// To be documented. /// @@ -4695,211 +654,2596 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLineNative(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, xscale, xstart, flags, offset, stride); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[62])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[62])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } + PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } + PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, double xscale, double xstart) + public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } + PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, double xscale) + public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count) + public static void PlotLine(byte* labelId, long* values, int count, double xscale) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, double xscale, ImPlotLineFlags flags) + public static void PlotLine(byte* labelId, long* values, int count) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, ImPlotLineFlags flags) + public static void PlotLine(byte* labelId, long* values, int count, double xscale, ImPlotLineFlags flags) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, double xscale, double xstart, int offset) + public static void PlotLine(byte* labelId, long* values, int count, ImPlotLineFlags flags) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, double xscale, int offset) + public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart, int offset) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, int offset) + public static void PlotLine(byte* labelId, long* values, int count, double xscale, int offset) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, double xscale, ImPlotLineFlags flags, int offset) + public static void PlotLine(byte* labelId, long* values, int count, int offset) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, ImPlotLineFlags flags, int offset) + public static void PlotLine(byte* labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotLine(byte* labelId, long* values, int count, ImPlotLineFlags flags, int offset) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, double xscale, int offset, int stride) + public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart, int offset, int stride) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, int offset, int stride) + public static void PlotLine(byte* labelId, long* values, int count, double xscale, int offset, int stride) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(byte* labelId, long* values, int count, int offset, int stride) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint values, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(byte* labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) { - fixed (uint* pvalues = &values) - { - PlotLineNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(byte* labelId, long* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, double xscale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, double xscale, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLineNative(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[63])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[63])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, double xscale) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, int offset) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, int offset) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, int offset, int stride) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, int offset, int stride) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, double xscale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* values, int count, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLineNative(byte* labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[64])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[64])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* xs, float* ys, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* xs, float* ys, int count) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* xs, float* ys, int count, int offset) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* xs, float* ys, int count, int offset, int stride) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* xs, float* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* xs, float* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* xs, float* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* xs, float* ys, int count, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* xs, float* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* xs, float* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* xs, float* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotLineNative(labelId, (float*)pxs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + PlotLineNative(labelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags) + { + fixed (float* pxs = &xs) + { + PlotLineNative(labelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float xs, float* ys, int count) + { + fixed (float* pxs = &xs) + { + PlotLineNative(labelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float xs, float* ys, int count, int offset) + { + fixed (float* pxs = &xs) + { + PlotLineNative(labelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotLineNative(labelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); } } } @@ -4907,13 +3251,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (float* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); } } } @@ -4921,13 +3265,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (float* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); } } } @@ -4935,13 +3279,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, double xscale, double xstart) + public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (float* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -4949,13 +3293,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, double xscale) + public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (float* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); } } } @@ -4963,13 +3307,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count) + public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (float* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); } } } @@ -4977,13 +3321,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, double xscale, ImPlotLineFlags flags) + public static void PlotLine(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (float* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); } } } @@ -4991,13 +3335,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, ImPlotLineFlags flags) + public static void PlotLine(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (float* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); } } } @@ -5005,13 +3349,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, double xscale, double xstart, int offset) + public static void PlotLine(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (float* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); } } } @@ -5019,13 +3363,1660 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, double xscale, int offset) + public static void PlotLine(ReadOnlySpan labelId, ref float xs, float* ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotLineNative(pStr0, (float*)pxs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotLineNative(pStr0, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotLineNative(pStr0, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref float xs, float* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotLineNative(pStr0, (float*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref float xs, float* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotLineNative(pStr0, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref float xs, float* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotLineNative(pStr0, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotLineNative(labelId, xs, (float*)pys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (float* pys = &ys) + { + PlotLineNative(labelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags) + { + fixed (float* pys = &ys) + { + PlotLineNative(labelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* xs, ref float ys, int count) + { + fixed (float* pys = &ys) + { + PlotLineNative(labelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* xs, ref float ys, int count, int offset) + { + fixed (float* pys = &ys) + { + PlotLineNative(labelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotLineNative(labelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (float* pys = &ys) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* xs, ref float ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotLineNative(pStr0, xs, (float*)pys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotLineNative(pStr0, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotLineNative(pStr0, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* xs, ref float ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotLineNative(pStr0, xs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* xs, ref float ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotLineNative(pStr0, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, float* xs, ref float ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotLineNative(pStr0, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative(labelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float xs, ref float ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref float xs, ref float ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref float xs, ref float ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLineNative(byte* labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[65])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[65])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* xs, double* ys, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* xs, double* ys, int count) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* xs, double* ys, int count, int offset) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* xs, double* ys, int count, int offset, int stride) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* xs, double* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* xs, double* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* xs, double* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* xs, double* ys, int count, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* xs, double* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* xs, double* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* xs, double* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotLineNative(labelId, (double*)pxs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + PlotLineNative(labelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags) + { + fixed (double* pxs = &xs) + { + PlotLineNative(labelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double xs, double* ys, int count) + { + fixed (double* pxs = &xs) + { + PlotLineNative(labelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double xs, double* ys, int count, int offset) + { + fixed (double* pxs = &xs) + { + PlotLineNative(labelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotLineNative(labelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.004.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.004.cs index b6d3ca029..1a02c80c1 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.004.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.004.cs @@ -22,13 +22,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, int offset) + public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); } } } @@ -36,13 +36,355 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, double xscale, ImPlotLineFlags flags, int offset) + public static void PlotLine(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double xs, double* ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotLineNative(pStr0, (double*)pxs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotLineNative(pStr0, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotLineNative(pStr0, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref double xs, double* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotLineNative(pStr0, (double*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref double xs, double* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotLineNative(pStr0, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ref double xs, double* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotLineNative(pStr0, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotLineNative(labelId, xs, (double*)pys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (double* pys = &ys) + { + PlotLineNative(labelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags) + { + fixed (double* pys = &ys) + { + PlotLineNative(labelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* xs, ref double ys, int count) + { + fixed (double* pys = &ys) + { + PlotLineNative(labelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* xs, ref double ys, int count, int offset) + { + fixed (double* pys = &ys) + { + PlotLineNative(labelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotLineNative(labelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pys = &ys) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); } } } @@ -50,13 +392,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, ImPlotLineFlags flags, int offset) + public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pys = &ys) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); } } } @@ -64,13 +406,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pys = &ys) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -78,13 +420,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, double xscale, int offset, int stride) + public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pys = &ys) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -92,13 +434,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, int offset, int stride) + public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pys = &ys) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); } } } @@ -106,13 +448,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pys = &ys) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, stride); + PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); } } } @@ -120,13 +462,376 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint values, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* xs, ref double ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotLineNative(pStr0, xs, (double*)pys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotLineNative(pStr0, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotLineNative(pStr0, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* xs, ref double ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotLineNative(pStr0, xs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* xs, ref double ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotLineNative(pStr0, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, double* xs, ref double ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotLineNative(pStr0, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotLineNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotLineNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotLineNative(labelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotLineNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotLineNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotLineNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); + } } } } @@ -134,13 +839,101 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, offset, stride); + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); + } } } } @@ -148,13 +941,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } } } } @@ -162,13 +958,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } } } } @@ -176,13 +975,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart) + public static void PlotLine(ReadOnlySpan labelId, ref double xs, ref double ys, int count) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + } } } } @@ -190,13 +992,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, double xscale) + public static void PlotLine(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + } } } } @@ -204,13 +1009,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count) + public static void PlotLine(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + fixed (double* pys = &ys) + { + PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); + } } } } @@ -218,175 +1026,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(string labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -405,12 +1045,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotLineNative(pStr0, (uint*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys = &ys) { - Utils.Free(pStr0); + PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -418,7 +1061,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref uint values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(string labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -437,12 +1080,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotLineNative(pStr0, (uint*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys = &ys) { - Utils.Free(pStr0); + PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -450,7 +1096,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref uint values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(string labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -469,12 +1115,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotLineNative(pStr0, (uint*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys = &ys) { - Utils.Free(pStr0); + PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -482,7 +1131,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref uint values, int count, double xscale, double xstart) + public static void PlotLine(string labelId, ref double xs, ref double ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -501,12 +1150,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotLineNative(pStr0, (uint*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys = &ys) { - Utils.Free(pStr0); + PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -514,7 +1166,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref uint values, int count, double xscale) + public static void PlotLine(string labelId, ref double xs, ref double ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -533,12 +1185,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotLineNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys = &ys) { - Utils.Free(pStr0); + PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -546,7 +1201,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref uint values, int count) + public static void PlotLine(string labelId, ref double xs, ref double ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -565,396 +1220,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotLineNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys = &ys) { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotLineNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotLineNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotLineNative(pStr0, (uint*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotLineNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotLineNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotLineNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotLineNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotLineNative(pStr0, (uint*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotLineNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotLineNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotLineNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotLineNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -963,559 +1237,199 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + internal static void PlotLineNative(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[61])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[66])(labelId, xs, ys, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[61])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[66])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset, int stride) { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotLineNative(labelId, xs, ys, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset) { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags) { - PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart) + public static void PlotLine(byte* labelId, sbyte* xs, sbyte* ys, int count) { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, long* values, int count, double xscale) + public static void PlotLine(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset) { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, long* values, int count) + public static void PlotLine(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, long* values, int count, double xscale, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* values, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* values, int count, double xscale, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* values, int count, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* values, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* values, int count, double xscale, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* values, int count, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart) + public static void PlotLine(ref byte labelId, sbyte* xs, sbyte* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, long* values, int count, double xscale) + public static void PlotLine(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, long* values, int count) + public static void PlotLine(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart) + public static void PlotLine(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale) + public static void PlotLine(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count) + public static void PlotLine(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1534,7 +1448,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1544,7 +1458,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1563,7 +1477,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1573,7 +1487,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1592,7 +1506,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1602,7 +1516,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart) + public static void PlotLine(string labelId, sbyte* xs, sbyte* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1621,7 +1535,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1631,7 +1545,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, long* values, int count, double xscale) + public static void PlotLine(string labelId, sbyte* xs, sbyte* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1650,7 +1564,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1660,7 +1574,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, long* values, int count) + public static void PlotLine(string labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1679,2196 +1593,210 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, double xscale, double xstart) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, double xscale) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, ImPlotLineFlags flags) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, double xscale, double xstart, int offset) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, double xscale, int offset) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, int offset) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, ImPlotLineFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, double xscale, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotLineNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotLineNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + internal static void PlotLineNative(byte* labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[62])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[67])(labelId, xs, ys, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[62])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[67])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotLineNative(labelId, xs, ys, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset) { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags) { - PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart) + public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count) { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale) + public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, int offset) { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ulong* values, int count) + public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* values, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* values, int count, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* values, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* values, int count, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart) + public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale) + public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ulong* values, int count) + public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart) + public static void PlotLine(ReadOnlySpan labelId, byte* xs, byte* ys, int count) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale) + public static void PlotLine(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count) + public static void PlotLine(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(string labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3887,7 +1815,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3897,7 +1825,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(string labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3916,7 +1844,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3926,7 +1854,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(string labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3945,7 +1873,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3955,7 +1883,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart) + public static void PlotLine(string labelId, byte* xs, byte* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3974,7 +1902,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3984,7 +1912,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ulong* values, int count, double xscale) + public static void PlotLine(string labelId, byte* xs, byte* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4003,7 +1931,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4013,7 +1941,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ulong* values, int count) + public static void PlotLine(string labelId, byte* xs, byte* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4032,7 +1960,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4042,980 +1970,3074 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLineNative(byte* labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[68])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[68])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotLine(string labelId, ulong* values, int count, ImPlotLineFlags flags) + public static void PlotLine(byte* labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotLineNative(labelId, xs, ys, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart, int offset) + public static void PlotLine(byte* labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotLine(string labelId, ulong* values, int count, double xscale, int offset) + public static void PlotLine(byte* labelId, short* xs, short* ys, int count, ImPlotLineFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotLine(string labelId, ulong* values, int count, int offset) + public static void PlotLine(byte* labelId, short* xs, short* ys, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotLine(string labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset) + public static void PlotLine(byte* labelId, short* xs, short* ys, int count, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotLine(string labelId, ulong* values, int count, ImPlotLineFlags flags, int offset) + public static void PlotLine(byte* labelId, short* xs, short* ys, int count, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ulong* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ulong* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ulong* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, double xscale, double xstart) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, double xscale) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, ImPlotLineFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, double xscale, double xstart, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, double xscale, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, ImPlotLineFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, double xscale, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, stride); - } + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, ImPlotLineFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, double xscale, double xstart) + public static void PlotLine(ref byte labelId, short* xs, short* ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, double xscale) + public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref ulong values, int count) + public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotLine(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, stride); - } + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotLine(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotLine(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotLineFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart) + public static void PlotLine(ReadOnlySpan labelId, short* xs, short* ys, int count) { fixed (byte* plabelId = labelId) { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, double xscale) + public static void PlotLine(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count) + public static void PlotLine(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ulong* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, double xscale, ImPlotLineFlags flags) + public static void PlotLine(string labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) { - fixed (byte* plabelId = labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ulong* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, ImPlotLineFlags flags) + public static void PlotLine(string labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset) { - fixed (byte* plabelId = labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ulong* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart, int offset) + public static void PlotLine(string labelId, short* xs, short* ys, int count, ImPlotLineFlags flags) { - fixed (byte* plabelId = labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ulong* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, double xscale, int offset) + public static void PlotLine(string labelId, short* xs, short* ys, int count) { - fixed (byte* plabelId = labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ulong* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, int offset) + public static void PlotLine(string labelId, short* xs, short* ys, int count, int offset) { - fixed (byte* plabelId = labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ulong* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, double xscale, ImPlotLineFlags flags, int offset) + public static void PlotLine(string labelId, short* xs, short* ys, int count, int offset, int stride) { - fixed (byte* plabelId = labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ulong* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, ImPlotLineFlags flags, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLineNative(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[69])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[69])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count, int offset) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ulong* pvalues = &values) + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLineNative(byte* labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[70])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[70])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* xs, int* ys, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* xs, int* ys, int count) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* xs, int* ys, int count, int offset) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, int* xs, int* ys, int count, int offset, int stride) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* xs, int* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* xs, int* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* xs, int* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* xs, int* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* xs, int* ys, int count, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* xs, int* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* xs, int* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, int* xs, int* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLineNative(byte* labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[71])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[71])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count, int offset) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, uint* xs, uint* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, uint* xs, uint* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, uint* xs, uint* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLineNative(byte* labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[72])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[72])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, long* xs, long* ys, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, long* xs, long* ys, int count) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, long* xs, long* ys, int count, int offset) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, long* xs, long* ys, int count, int offset, int stride) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* xs, long* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* xs, long* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* xs, long* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* xs, long* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* xs, long* ys, int count, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* xs, long* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* xs, long* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, long* xs, long* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLineNative(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[73])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[73])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset) + { + PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags) + { + PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count, int offset) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotScatterNative(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[74])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[74])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, double xscale) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, double xscale, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, double xscale, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, double xscale, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count, double xscale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count, double xscale, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.005.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.005.cs index d9bed3bdc..766e3129f 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.005.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.005.cs @@ -22,13 +22,666 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotScatter(string labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, double xscale) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, ImPlotScatterFlags flags) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart, int offset) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, int offset) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, int offset) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); } } } @@ -36,13 +689,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, double xscale, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); } } } @@ -50,13 +703,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); } } } @@ -64,13 +717,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, stride); + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -78,13 +731,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong values, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale) { fixed (byte* plabelId = labelId) { - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -92,7 +745,189 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -111,9 +946,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, xscale, xstart, flags, offset, stride); + PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -124,7 +959,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -143,9 +978,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -156,7 +991,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, double xscale, double xstart, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -175,9 +1010,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -188,7 +1023,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, double xscale, double xstart) + public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -207,9 +1042,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -220,7 +1055,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, double xscale) + public static void PlotScatter(string labelId, ref float values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -239,9 +1074,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -252,7 +1087,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count) + public static void PlotScatter(string labelId, ref float values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -271,9 +1106,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -284,7 +1119,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, double xscale, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -303,9 +1138,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -316,7 +1151,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, ref float values, int count, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -335,9 +1170,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -348,7 +1183,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, double xscale, double xstart, int offset) + public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -367,9 +1202,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -380,7 +1215,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, double xscale, int offset) + public static void PlotScatter(string labelId, ref float values, int count, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -399,9 +1234,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -412,7 +1247,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, int offset) + public static void PlotScatter(string labelId, ref float values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -431,9 +1266,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -444,7 +1279,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, double xscale, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -463,9 +1298,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); + PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -476,7 +1311,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, ref float values, int count, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -495,9 +1330,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -508,7 +1343,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -527,9 +1362,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -540,7 +1375,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, double xscale, int offset, int stride) + public static void PlotScatter(string labelId, ref float values, int count, double xscale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -559,9 +1394,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -572,7 +1407,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, int offset, int stride) + public static void PlotScatter(string labelId, ref float values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -591,9 +1426,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -604,7 +1439,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -623,9 +1458,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, stride); + PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -636,7 +1471,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong values, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, ref float values, int count, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -655,9 +1490,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (float* pvalues = &values) { - PlotLineNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -669,199 +1504,559 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) + internal static void PlotScatterNative(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[63])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[75])(labelId, values, count, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[63])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[75])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotLine(byte* labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, float* xs, float* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, float* xs, float* ys, int count) + public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, float* xs, float* ys, int count, int offset) + public static void PlotScatter(byte* labelId, double* values, int count, double xscale) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, float* xs, float* ys, int count, int offset, int stride) + public static void PlotScatter(byte* labelId, double* values, int count) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, double* values, int count, double xscale, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* values, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* values, int count, double xscale, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* values, int count, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* values, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* values, int count, double xscale, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* values, int count, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, double* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, float* xs, float* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, float* xs, float* ys, int count) + public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, float* xs, float* ys, int count, int offset) + public static void PlotScatter(ref byte labelId, double* values, int count, double xscale) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) + public static void PlotScatter(ref byte labelId, double* values, int count) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, float* xs, float* ys, int count) + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset) + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(string labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -880,7 +2075,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -890,7 +2085,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -909,7 +2104,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(float))); + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -919,7 +2114,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, float* xs, float* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -938,7 +2133,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -948,7 +2143,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, float* xs, float* ys, int count) + public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -967,7 +2162,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -977,7 +2172,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, float* xs, float* ys, int count, int offset) + public static void PlotScatter(string labelId, double* values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -996,7 +2191,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1006,7 +2201,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, float* xs, float* ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, double* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1025,7 +2220,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1035,241 +2230,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotLineNative(labelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotLineNative(labelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags) - { - fixed (float* pxs = &xs) - { - PlotLineNative(labelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref float xs, float* ys, int count) - { - fixed (float* pxs = &xs) - { - PlotLineNative(labelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref float xs, float* ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotLineNative(labelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotLineNative(labelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, double* values, int count, double xscale, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1288,9 +2249,1059 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (float*)pxs, ys, count, flags, offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* values, int count, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* values, int count, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* values, int count, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, double xscale) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, ImPlotScatterFlags flags) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart, int offset) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, int offset) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, int offset) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1301,7 +3312,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1320,9 +3331,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - PlotLineNative(pStr0, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); + PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1333,7 +3344,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1352,9 +3363,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - PlotLineNative(pStr0, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); + PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1365,7 +3376,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref float xs, float* ys, int count) + public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1384,9 +3395,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - PlotLineNative(pStr0, (float*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1397,7 +3408,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref float xs, float* ys, int count, int offset) + public static void PlotScatter(string labelId, ref double values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1416,9 +3427,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - PlotLineNative(pStr0, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1429,7 +3440,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref float xs, float* ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, ref double values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1448,9 +3459,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - PlotLineNative(pStr0, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1461,241 +3472,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, xs, (float*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, float* xs, ref float ys, int count) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, float* xs, ref float ys, int count, int offset) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1714,9 +3491,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (double* pvalues = &values) { - PlotLineNative(pStr0, xs, (float*)pys, count, flags, offset, stride); + PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1727,7 +3504,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, ref double values, int count, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1746,9 +3523,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (double* pvalues = &values) { - PlotLineNative(pStr0, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1759,7 +3536,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1778,9 +3555,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (double* pvalues = &values) { - PlotLineNative(pStr0, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1791,7 +3568,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, float* xs, ref float ys, int count) + public static void PlotScatter(string labelId, ref double values, int count, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1810,9 +3587,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (double* pvalues = &values) { - PlotLineNative(pStr0, xs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1823,7 +3600,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, float* xs, ref float ys, int count, int offset) + public static void PlotScatter(string labelId, ref double values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1842,9 +3619,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (double* pvalues = &values) { - PlotLineNative(pStr0, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); + PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1855,7 +3632,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, float* xs, ref float ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1874,9 +3651,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (double* pvalues = &values) { - PlotLineNative(pStr0, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1887,295 +3664,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, ref double values, int count, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2194,15 +3683,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2210,7 +3696,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2229,15 +3715,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2245,7 +3728,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, ref double values, int count, double xscale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2264,15 +3747,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2280,7 +3760,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref float xs, ref float ys, int count) + public static void PlotScatter(string labelId, ref double values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2299,15 +3779,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2315,7 +3792,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref float xs, ref float ys, int count, int offset) + public static void PlotScatter(string labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2334,15 +3811,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2350,7 +3824,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref float xs, ref float ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, ref double values, int count, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2369,15 +3843,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2386,199 +3857,559 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) + internal static void PlotScatterNative(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[64])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[76])(labelId, values, count, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[64])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[76])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotLine(byte* labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, double* xs, double* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, double* xs, double* ys, int count) + public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, double xstart) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, double* xs, double* ys, int count, int offset) + public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, double* xs, double* ys, int count, int offset, int stride) + public static void PlotScatter(byte* labelId, sbyte* values, int count) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* values, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, double xstart, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* values, int count, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* values, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* values, int count, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, sbyte* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, double* xs, double* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, double* xs, double* ys, int count) + public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, double* xs, double* ys, int count, int offset) + public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) + public static void PlotScatter(ref byte labelId, sbyte* values, int count) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, sbyte* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, sbyte* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, sbyte* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, sbyte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, sbyte* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, double* xs, double* ys, int count) + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset) + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, double xscale) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotLine(string labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, sbyte* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2597,7 +4428,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2607,7 +4438,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2626,7 +4457,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(double))); + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2636,7 +4467,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, double* xs, double* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2655,7 +4486,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2665,7 +4496,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, double* xs, double* ys, int count) + public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2684,7 +4515,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2694,7 +4525,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, double* xs, double* ys, int count, int offset) + public static void PlotScatter(string labelId, sbyte* values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2713,7 +4544,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2723,7 +4554,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, double* xs, double* ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, sbyte* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2742,7 +4573,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2752,241 +4583,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotLineNative(labelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotLineNative(labelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags) - { - fixed (double* pxs = &xs) - { - PlotLineNative(labelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref double xs, double* ys, int count) - { - fixed (double* pxs = &xs) - { - PlotLineNative(labelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref double xs, double* ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - PlotLineNative(labelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotLineNative(labelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3005,20 +4602,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (double*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, sbyte* values, int count, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3037,20 +4631,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3069,20 +4660,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref double xs, double* ys, int count) + public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3101,20 +4689,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (double*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref double xs, double* ys, int count, int offset) + public static void PlotScatter(string labelId, sbyte* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3133,20 +4718,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref double xs, double* ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3165,254 +4747,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, xs, (double*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, double* xs, ref double ys, int count) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, double* xs, ref double ys, int count, int offset) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, sbyte* values, int count, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3431,20 +4776,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (double*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3463,20 +4805,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3495,20 +4834,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, double* xs, ref double ys, int count) + public static void PlotScatter(string labelId, sbyte* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3527,20 +4863,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, double* xs, ref double ys, int count, int offset) + public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3559,20 +4892,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, double* xs, ref double ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, sbyte* values, int count, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3591,511 +4921,10 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref double xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref double xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } @@ -4103,929 +4932,93 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) + internal static void PlotScatterNative(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[65])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[77])(labelId, values, count, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[65])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[77])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count) + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, int offset) + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) + public static void PlotScatter(byte* labelId, byte* values, int count) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags) { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(byte* labelId, byte* values, int count, ImPlotScatterFlags flags) { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, int offset) { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count) + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, int offset) { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, byte* xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, byte* xs, byte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotLineNative(labelId, (byte*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte xs, byte* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - PlotLineNative(labelId, (byte*)pxs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte xs, byte* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* pxs = &xs) - { - PlotLineNative(labelId, (byte*)pxs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* pxs = &xs) - { - PlotLineNative(labelId, (byte*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* pxs = &xs) - { - PlotLineNative(labelId, (byte*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotLineNative(labelId, (byte*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotLineNative(pStr0, (byte*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte xs, byte* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotLineNative(pStr0, (byte*)pxs, ys, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte xs, byte* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotLineNative(pStr0, (byte*)pxs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotLineNative(pStr0, (byte*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte xs, byte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotLineNative(pStr0, (byte*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotLineNative(pStr0, (byte*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, byte* xs, ref byte ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotLineNative(labelId, xs, (byte*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, byte* xs, ref byte ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* pys = &ys) - { - PlotLineNative(labelId, xs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, byte* xs, ref byte ys, int count, ImPlotLineFlags flags) - { - fixed (byte* pys = &ys) - { - PlotLineNative(labelId, xs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* pys = &ys) - { - PlotLineNative(labelId, xs, (byte*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* pys = &ys) - { - PlotLineNative(labelId, xs, (byte*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotLineNative(labelId, xs, (byte*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (byte*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.006.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.006.cs index 8148c85fa..93f58eaa5 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.006.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.006.cs @@ -22,585 +22,467 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, byte* xs, ref byte ys, int count, int offset, int stride) + public static void PlotScatter(byte* labelId, byte* values, int count, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* values, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* values, int count, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, byte* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (byte*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, byte* xs, ref byte ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotLineNative(pStr0, xs, (byte*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, byte* xs, ref byte ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotLineNative(pStr0, xs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, byte* xs, ref byte ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotLineNative(pStr0, xs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, byte* xs, ref byte ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotLineNative(pStr0, xs, (byte*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, byte* xs, ref byte ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotLineNative(pStr0, xs, (byte*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotLineNative(pStr0, xs, (byte*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative(labelId, (byte*)pxs, (byte*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative(labelId, (byte*)pxs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotLineFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative(labelId, (byte*)pxs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative(labelId, (byte*)pxs, (byte*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte xs, ref byte ys, int count, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative(labelId, (byte*)pxs, (byte*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative(labelId, (byte*)pxs, (byte*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, offset, stride); - } - } + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref byte xs, ref byte ys, int count) + public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref byte xs, ref byte ys, int count, int offset) + public static void PlotScatter(ref byte labelId, byte* values, int count) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref byte xs, ref byte ys, int count, int offset, int stride) + public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ref byte labelId, byte* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, byte* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, offset, stride); - } - } + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count) + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int offset) + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotLineNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref byte xs, ref byte ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -619,23 +501,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - PlotLineNative(pStr0, (byte*)pxs, (byte*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref byte xs, ref byte ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -654,23 +530,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - PlotLineNative(pStr0, (byte*)pxs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref byte xs, ref byte ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -689,23 +559,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - PlotLineNative(pStr0, (byte*)pxs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref byte xs, ref byte ys, int count) + public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -724,23 +588,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - PlotLineNative(pStr0, (byte*)pxs, (byte*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref byte xs, ref byte ys, int count, int offset) + public static void PlotScatter(string labelId, byte* values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -759,23 +617,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - PlotLineNative(pStr0, (byte*)pxs, (byte*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref byte xs, ref byte ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, byte* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -794,16 +646,358 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (byte*)pxs, (byte*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, byte* values, int count, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, byte* values, int count, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, byte* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, byte* values, int count, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, byte* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, byte* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, byte* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } @@ -811,199 +1005,559 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) + internal static void PlotScatterNative(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[66])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[78])(labelId, values, count, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[66])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[78])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotLine(byte* labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(short))); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, short* xs, short* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, short* xs, short* ys, int count) + public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, short* xs, short* ys, int count, int offset) + public static void PlotScatter(byte* labelId, short* values, int count, double xscale) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, short* xs, short* ys, int count, int offset, int stride) + public static void PlotScatter(byte* labelId, short* values, int count) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, short* values, int count, double xscale, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* values, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* values, int count, double xscale, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* values, int count, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* values, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* values, int count, double xscale, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* values, int count, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, short* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, short* xs, short* ys, int count) + public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, int offset) + public static void PlotScatter(ref byte labelId, short* values, int count, double xscale) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) + public static void PlotScatter(ref byte labelId, short* values, int count) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, short* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, short* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, short* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, short* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, short* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, short* xs, short* ys, int count) + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset) + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotLine(string labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1022,7 +1576,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1032,7 +1586,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1051,7 +1605,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(short))); + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1061,7 +1615,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, short* xs, short* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1080,7 +1634,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1090,7 +1644,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, short* xs, short* ys, int count) + public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1109,7 +1663,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1119,7 +1673,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, short* xs, short* ys, int count, int offset) + public static void PlotScatter(string labelId, short* values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1138,7 +1692,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1148,7 +1702,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, short* xs, short* ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, short* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1167,7 +1721,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1177,241 +1731,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref short xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotLineNative(labelId, (short*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short xs, short* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - PlotLineNative(labelId, (short*)pxs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short xs, short* ys, int count, ImPlotLineFlags flags) - { - fixed (short* pxs = &xs) - { - PlotLineNative(labelId, (short*)pxs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short xs, short* ys, int count) - { - fixed (short* pxs = &xs) - { - PlotLineNative(labelId, (short*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short xs, short* ys, int count, int offset) - { - fixed (short* pxs = &xs) - { - PlotLineNative(labelId, (short*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short xs, short* ys, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotLineNative(labelId, (short*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (short*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short xs, short* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (short*)pxs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short xs, short* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (short*)pxs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short xs, short* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (short*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (short*)pxs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (short*)pxs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short xs, short* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, short* values, int count, double xscale, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1430,20 +1750,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (short*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref short xs, short* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, short* values, int count, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1462,20 +1779,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (short*)pxs, ys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref short xs, short* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1494,20 +1808,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (short*)pxs, ys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref short xs, short* ys, int count) + public static void PlotScatter(string labelId, short* values, int count, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1526,20 +1837,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (short*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref short xs, short* ys, int count, int offset) + public static void PlotScatter(string labelId, short* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1558,20 +1866,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (short*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref short xs, short* ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1590,254 +1895,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (short*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, short* xs, ref short ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotLineNative(labelId, xs, (short*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, short* xs, ref short ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (short* pys = &ys) - { - PlotLineNative(labelId, xs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, short* xs, ref short ys, int count, ImPlotLineFlags flags) - { - fixed (short* pys = &ys) - { - PlotLineNative(labelId, xs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, short* xs, ref short ys, int count) - { - fixed (short* pys = &ys) - { - PlotLineNative(labelId, xs, (short*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, short* xs, ref short ys, int count, int offset) - { - fixed (short* pys = &ys) - { - PlotLineNative(labelId, xs, (short*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, short* xs, ref short ys, int count, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotLineNative(labelId, xs, (short*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, short* xs, ref short ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (short*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, short* xs, ref short ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, short* xs, ref short ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, short* xs, ref short ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, short* xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, short* xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (short*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, short* xs, ref short ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, short* xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, short* xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, short* xs, ref short ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, short* values, int count, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1856,20 +1924,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (short*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, short* xs, ref short ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1888,20 +1953,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, short* xs, ref short ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, short* values, int count, double xscale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1920,20 +1982,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, short* xs, ref short ys, int count) + public static void PlotScatter(string labelId, short* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1952,20 +2011,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (short*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, short* xs, ref short ys, int count, int offset) + public static void PlotScatter(string labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1984,20 +2040,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (short*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, short* xs, ref short ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, short* values, int count, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2016,511 +2069,10 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (short*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short xs, ref short ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative(labelId, (short*)pxs, (short*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short xs, ref short ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative(labelId, (short*)pxs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short xs, ref short ys, int count, ImPlotLineFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative(labelId, (short*)pxs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short xs, ref short ys, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative(labelId, (short*)pxs, (short*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative(labelId, (short*)pxs, (short*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative(labelId, (short*)pxs, (short*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short xs, ref short ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short xs, ref short ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short xs, ref short ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short xs, ref short ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short xs, ref short ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short xs, ref short ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative(pStr0, (short*)pxs, (short*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short xs, ref short ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative(pStr0, (short*)pxs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short xs, ref short ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative(pStr0, (short*)pxs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short xs, ref short ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative(pStr0, (short*)pxs, (short*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short xs, ref short ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative(pStr0, (short*)pxs, (short*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotLineNative(pStr0, (short*)pxs, (short*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } @@ -2528,199 +2080,559 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) + internal static void PlotScatterNative(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[67])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[79])(labelId, values, count, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[67])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[79])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count) + public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count, int offset) + public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + public static void PlotScatter(byte* labelId, ushort* values, int count) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* values, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* values, int count, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* values, int count, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count) + public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) + public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + public static void PlotScatter(ref byte labelId, ushort* values, int count) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count) + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset) + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2739,7 +2651,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2749,7 +2661,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2768,7 +2680,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2778,7 +2690,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2797,7 +2709,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2807,7 +2719,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count) + public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2826,7 +2738,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2836,7 +2748,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count, int offset) + public static void PlotScatter(string labelId, ushort* values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2855,7 +2767,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2865,7 +2777,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, ushort* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2884,7 +2796,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2894,241 +2806,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative(labelId, (ushort*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative(labelId, (ushort*)pxs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotLineFlags flags) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative(labelId, (ushort*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort xs, ushort* ys, int count) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative(labelId, (ushort*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort xs, ushort* ys, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative(labelId, (ushort*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative(labelId, (ushort*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3147,20 +2825,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (ushort*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref ushort xs, ushort* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, ushort* values, int count, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3179,20 +2854,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (ushort*)pxs, ys, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref ushort xs, ushort* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3211,20 +2883,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (ushort*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref ushort xs, ushort* ys, int count) + public static void PlotScatter(string labelId, ushort* values, int count, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3243,20 +2912,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (ushort*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref ushort xs, ushort* ys, int count, int offset) + public static void PlotScatter(string labelId, ushort* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3275,20 +2941,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (ushort*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3307,254 +2970,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (ushort*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(labelId, xs, (ushort*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(labelId, xs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotLineFlags flags) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(labelId, xs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ushort* xs, ref ushort ys, int count) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(labelId, xs, (ushort*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ushort* xs, ref ushort ys, int count, int offset) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(labelId, xs, (ushort*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(labelId, xs, (ushort*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ushort*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ushort* xs, ref ushort ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ushort* xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ushort*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ushort* xs, ref ushort ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3573,20 +2999,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (ushort*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ushort* xs, ref ushort ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3605,20 +3028,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ushort* xs, ref ushort ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, ushort* values, int count, double xscale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3637,20 +3057,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ushort* xs, ref ushort ys, int count) + public static void PlotScatter(string labelId, ushort* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3669,20 +3086,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (ushort*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ushort* xs, ref ushort ys, int count, int offset) + public static void PlotScatter(string labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3701,20 +3115,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (ushort*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3733,511 +3144,10 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (ushort*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(labelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(labelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotLineFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(labelId, (ushort*)pxs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(labelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(labelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(labelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(pStr0, (ushort*)pxs, (ushort*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(pStr0, (ushort*)pxs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(pStr0, (ushort*)pxs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort xs, ref ushort ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotLineNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } @@ -4245,199 +3155,559 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) + internal static void PlotScatterNative(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[68])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[80])(labelId, values, count, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[68])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[80])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotLine(byte* labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, int* xs, int* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, int* xs, int* ys, int count) + public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, int* xs, int* ys, int count, int offset) + public static void PlotScatter(byte* labelId, int* values, int count, double xscale) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, int* xs, int* ys, int count, int offset, int stride) + public static void PlotScatter(byte* labelId, int* values, int count) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, int* values, int count, double xscale, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* values, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* values, int count, double xscale, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* values, int count, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* values, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* values, int count, double xscale, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* values, int count, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, int* xs, int* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, int* xs, int* ys, int count) + public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, int* xs, int* ys, int count, int offset) + public static void PlotScatter(ref byte labelId, int* values, int count, double xscale) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) + public static void PlotScatter(ref byte labelId, int* values, int count) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, int* xs, int* ys, int count) + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset) + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotLine(string labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4456,7 +3726,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4466,7 +3736,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4485,7 +3755,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(int))); + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4495,7 +3765,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, int* xs, int* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4514,7 +3784,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4524,7 +3794,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, int* xs, int* ys, int count) + public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4543,7 +3813,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4553,7 +3823,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, int* xs, int* ys, int count, int offset) + public static void PlotScatter(string labelId, int* values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4572,7 +3842,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4582,7 +3852,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, int* xs, int* ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, int* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4601,7 +3871,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4611,241 +3881,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref int xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotLineNative(labelId, (int*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int xs, int* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - PlotLineNative(labelId, (int*)pxs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int xs, int* ys, int count, ImPlotLineFlags flags) - { - fixed (int* pxs = &xs) - { - PlotLineNative(labelId, (int*)pxs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int xs, int* ys, int count) - { - fixed (int* pxs = &xs) - { - PlotLineNative(labelId, (int*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int xs, int* ys, int count, int offset) - { - fixed (int* pxs = &xs) - { - PlotLineNative(labelId, (int*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotLineNative(labelId, (int*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (int*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int xs, int* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (int*)pxs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int xs, int* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (int*)pxs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (int*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (int*)pxs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (int*)pxs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref int xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, int* values, int count, double xscale, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4864,20 +3900,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (int*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref int xs, int* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, int* values, int count, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4896,20 +3929,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (int*)pxs, ys, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref int xs, int* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4928,20 +3958,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (int*)pxs, ys, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref int xs, int* ys, int count) + public static void PlotScatter(string labelId, int* values, int count, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4960,20 +3987,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (int*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref int xs, int* ys, int count, int offset) + public static void PlotScatter(string labelId, int* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4992,20 +4016,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (int*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotLine(string labelId, ref int xs, int* ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5024,13 +4045,998 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (int*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, int* values, int count, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, int* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, int* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, int* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotScatterNative(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[81])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[81])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, double xscale) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count, double xscale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.007.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.007.cs index 2521ed772..d13ff40de 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.007.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.007.cs @@ -22,241 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, int* xs, ref int ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotLineNative(labelId, xs, (int*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* xs, ref int ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (int* pys = &ys) - { - PlotLineNative(labelId, xs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* xs, ref int ys, int count, ImPlotLineFlags flags) - { - fixed (int* pys = &ys) - { - PlotLineNative(labelId, xs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* xs, ref int ys, int count) - { - fixed (int* pys = &ys) - { - PlotLineNative(labelId, xs, (int*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* xs, ref int ys, int count, int offset) - { - fixed (int* pys = &ys) - { - PlotLineNative(labelId, xs, (int*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotLineNative(labelId, xs, (int*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* xs, ref int ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (int*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* xs, ref int ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* xs, ref int ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* xs, ref int ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (int*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* xs, ref int ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, int* xs, ref int ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, uint* values, int count, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -275,9 +41,3021 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, xs, (int*)pys, count, flags, offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotScatterNative(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[82])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[82])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, double xscale) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, double xscale, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, double xscale, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, double xscale, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, double xscale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, double xscale, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotScatterNative(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[83])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[83])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, double xscale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotScatterNative(byte* labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[84])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[84])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* xs, float* ys, int count) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* xs, float* ys, int count, int offset) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, float* xs, float* ys, int count, int offset, int stride) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* xs, float* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* xs, float* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* xs, float* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* xs, float* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotScatterNative(labelId, (float*)pxs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + PlotScatterNative(labelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags) + { + fixed (float* pxs = &xs) + { + PlotScatterNative(labelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count) + { + fixed (float* pxs = &xs) + { + PlotScatterNative(labelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count, int offset) + { + fixed (float* pxs = &xs) + { + PlotScatterNative(labelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotScatterNative(labelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float xs, float* ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotScatterNative(pStr0, (float*)pxs, ys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -288,7 +3066,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, int* xs, ref int ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -307,9 +3085,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (float* pxs = &xs) { - PlotLineNative(pStr0, xs, (int*)pys, count, flags, offset, (int)(sizeof(int))); + PlotScatterNative(pStr0, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -320,7 +3098,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, int* xs, ref int ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -339,9 +3117,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (float* pxs = &xs) { - PlotLineNative(pStr0, xs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); + PlotScatterNative(pStr0, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -352,7 +3130,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, int* xs, ref int ys, int count) + public static void PlotScatter(string labelId, ref float xs, float* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -371,9 +3149,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (float* pxs = &xs) { - PlotLineNative(pStr0, xs, (int*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + PlotScatterNative(pStr0, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -384,7 +3162,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, int* xs, ref int ys, int count, int offset) + public static void PlotScatter(string labelId, ref float xs, float* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -403,9 +3181,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (float* pxs = &xs) { - PlotLineNative(pStr0, xs, (int*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + PlotScatterNative(pStr0, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -416,7 +3194,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, int* xs, ref int ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, ref float xs, float* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -435,9 +3213,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (float* pxs = &xs) { - PlotLineNative(pStr0, xs, (int*)pys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(pStr0, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -448,100 +3226,79 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref int xs, ref int ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative(labelId, (int*)pxs, (int*)pys, count, flags, offset, stride); - } + PlotScatterNative(labelId, xs, (float*)pys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref int xs, ref int ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative(labelId, (int*)pxs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } + PlotScatterNative(labelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref int xs, ref int ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative(labelId, (int*)pxs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } + PlotScatterNative(labelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref int xs, ref int ys, int count) + public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative(labelId, (int*)pxs, (int*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } + PlotScatterNative(labelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref int xs, ref int ys, int count, int offset) + public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count, int offset) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative(labelId, (int*)pxs, (int*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } + PlotScatterNative(labelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref int xs, ref int ys, int count, int offset, int stride) + public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative(labelId, (int*)pxs, (int*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } + PlotScatterNative(labelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref int xs, ref int ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, offset, stride); - } + PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); } } } @@ -549,16 +3306,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref int xs, ref int ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } + PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); } } } @@ -566,16 +3320,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref int xs, ref int ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } + PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); } } } @@ -583,16 +3334,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref int xs, ref int ys, int count) + public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } + PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -600,16 +3348,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref int xs, ref int ys, int count, int offset) + public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } + PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); } } } @@ -617,16 +3362,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref int xs, ref int ys, int count, int offset, int stride) + public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } + PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); } } } @@ -634,16 +3376,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, offset, stride); - } + PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); } } } @@ -651,16 +3390,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } + PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); } } } @@ -668,16 +3404,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags) { fixed (byte* plabelId = labelId) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } + PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); } } } @@ -685,16 +3418,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref int xs, ref int ys, int count) + public static void PlotScatter(ReadOnlySpan labelId, float* xs, ref float ys, int count) { fixed (byte* plabelId = labelId) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } + PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -702,16 +3432,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int offset) + public static void PlotScatter(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } + PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); } } } @@ -719,16 +3446,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) - { - PlotLineNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } + PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); } } } @@ -736,7 +3460,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref int xs, ref int ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -755,11 +3479,491 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (float* pys = &ys) { - fixed (int* pys = &ys) + PlotScatterNative(pStr0, xs, (float*)pys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotLineNative(pStr0, (int*)pxs, (int*)pys, count, flags, offset, stride); + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotScatterNative(pStr0, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotScatterNative(pStr0, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* xs, ref float ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotScatterNative(pStr0, xs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* xs, ref float ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotScatterNative(pStr0, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, float* xs, ref float ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotScatterNative(pStr0, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float xs, ref float ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -771,7 +3975,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref int xs, ref int ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -790,11 +3994,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (int* pys = &ys) + fixed (float* pys = &ys) { - PlotLineNative(pStr0, (int*)pxs, (int*)pys, count, flags, offset, (int)(sizeof(int))); + PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -806,7 +4010,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref int xs, ref int ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -825,11 +4029,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (int* pys = &ys) + fixed (float* pys = &ys) { - PlotLineNative(pStr0, (int*)pxs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); + PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -841,7 +4045,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref int xs, ref int ys, int count) + public static void PlotScatter(string labelId, ref float xs, ref float ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -860,11 +4064,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (int* pys = &ys) + fixed (float* pys = &ys) { - PlotLineNative(pStr0, (int*)pxs, (int*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); + PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -876,7 +4080,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref int xs, ref int ys, int count, int offset) + public static void PlotScatter(string labelId, ref float xs, ref float ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -895,11 +4099,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (int* pys = &ys) + fixed (float* pys = &ys) { - PlotLineNative(pStr0, (int*)pxs, (int*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); + PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -911,7 +4115,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref int xs, ref int ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, ref float xs, ref float ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -930,11 +4134,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (int* pys = &ys) + fixed (float* pys = &ys) { - PlotLineNative(pStr0, (int*)pxs, (int*)pys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -947,199 +4151,199 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) + internal static void PlotScatterNative(byte* labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[69])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[85])(labelId, xs, ys, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[69])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[85])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); + PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset) { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags) { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count) + public static void PlotScatter(byte* labelId, double* xs, double* ys, int count) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count, int offset) + public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, int offset) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) + public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, int offset, int stride) { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count) + public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count, int offset) + public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) + public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, uint* xs, uint* ys, int count) + public static void PlotScatter(ReadOnlySpan labelId, double* xs, double* ys, int count) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset) + public static void PlotScatter(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotLine(string labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1158,7 +4362,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); + PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1168,7 +4372,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1187,7 +4391,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(uint))); + PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1197,7 +4401,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1216,7 +4420,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1226,7 +4430,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, uint* xs, uint* ys, int count) + public static void PlotScatter(string labelId, double* xs, double* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1245,7 +4449,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1255,7 +4459,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, uint* xs, uint* ys, int count, int offset) + public static void PlotScatter(string labelId, double* xs, double* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1274,7 +4478,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1284,7 +4488,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, uint* xs, uint* ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, double* xs, double* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1303,7 +4507,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1313,79 +4517,79 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative(labelId, (uint*)pxs, ys, count, flags, offset, stride); + PlotScatterNative(labelId, (double*)pxs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint xs, uint* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative(labelId, (uint*)pxs, ys, count, flags, offset, (int)(sizeof(uint))); + PlotScatterNative(labelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint xs, uint* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative(labelId, (uint*)pxs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + PlotScatterNative(labelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint xs, uint* ys, int count) + public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative(labelId, (uint*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotScatterNative(labelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint xs, uint* ys, int count, int offset) + public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, int offset) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative(labelId, (uint*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + PlotScatterNative(labelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, ref uint xs, uint* ys, int count, int offset, int stride) + public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative(labelId, (uint*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(labelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pxs, ys, count, flags, offset, stride); + PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); } } } @@ -1393,13 +4597,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pxs, ys, count, flags, offset, (int)(sizeof(uint))); + PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); } } } @@ -1407,13 +4611,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pxs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -1421,13 +4625,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint xs, uint* ys, int count) + public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -1435,13 +4639,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint xs, uint* ys, int count, int offset) + public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); } } } @@ -1449,13 +4653,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ref byte labelId, ref uint xs, uint* ys, int count, int offset, int stride) + public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); } } } @@ -1463,13 +4667,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pxs, ys, count, flags, offset, stride); + PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); } } } @@ -1477,13 +4681,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pxs, ys, count, flags, offset, (int)(sizeof(uint))); + PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); } } } @@ -1491,13 +4695,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags) { fixed (byte* plabelId = labelId) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pxs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -1505,13 +4709,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref uint xs, uint* ys, int count) + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* ys, int count) { fixed (byte* plabelId = labelId) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -1519,13 +4723,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int offset) + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); } } } @@ -1533,13 +4737,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); } } } @@ -1547,7 +4751,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref uint xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1566,9 +4770,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative(pStr0, (uint*)pxs, ys, count, flags, offset, stride); + PlotScatterNative(pStr0, (double*)pxs, ys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1579,7 +4783,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref uint xs, uint* ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1598,9 +4802,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative(pStr0, (uint*)pxs, ys, count, flags, offset, (int)(sizeof(uint))); + PlotScatterNative(pStr0, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1611,7 +4815,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref uint xs, uint* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1630,9 +4834,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative(pStr0, (uint*)pxs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + PlotScatterNative(pStr0, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1643,7 +4847,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref uint xs, uint* ys, int count) + public static void PlotScatter(string labelId, ref double xs, double* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1662,9 +4866,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative(pStr0, (uint*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotScatterNative(pStr0, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1675,7 +4879,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref uint xs, uint* ys, int count, int offset) + public static void PlotScatter(string labelId, ref double xs, double* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1694,9 +4898,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative(pStr0, (uint*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + PlotScatterNative(pStr0, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1707,7 +4911,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref uint xs, uint* ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, ref double xs, double* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1726,9 +4930,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + fixed (double* pxs = &xs) { - PlotLineNative(pStr0, (uint*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(pStr0, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1739,3305 +4943,79 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, uint* xs, ref uint ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) { - fixed (uint* pys = &ys) + fixed (double* pys = &ys) { - PlotLineNative(labelId, xs, (uint*)pys, count, flags, offset, stride); + PlotScatterNative(labelId, xs, (double*)pys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, uint* xs, ref uint ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) { - fixed (uint* pys = &ys) + fixed (double* pys = &ys) { - PlotLineNative(labelId, xs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); + PlotScatterNative(labelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, uint* xs, ref uint ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags) { - fixed (uint* pys = &ys) + fixed (double* pys = &ys) { - PlotLineNative(labelId, xs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); + PlotScatterNative(labelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, uint* xs, ref uint ys, int count) + public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count) { - fixed (uint* pys = &ys) + fixed (double* pys = &ys) { - PlotLineNative(labelId, xs, (uint*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotScatterNative(labelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, uint* xs, ref uint ys, int count, int offset) + public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, int offset) { - fixed (uint* pys = &ys) + fixed (double* pys = &ys) { - PlotLineNative(labelId, xs, (uint*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); + PlotScatterNative(labelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotLine(byte* labelId, uint* xs, ref uint ys, int count, int offset, int stride) + public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) { - fixed (uint* pys = &ys) + fixed (double* pys = &ys) { - PlotLineNative(labelId, xs, (uint*)pys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(labelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotLine(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (uint* pys = &ys) + fixed (double* pys = &ys) { - PlotLineNative((byte*)plabelId, xs, (uint*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* xs, ref uint ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, uint* xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (uint*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, uint* xs, ref uint ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, uint* xs, ref uint ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotLineNative(pStr0, xs, (uint*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, uint* xs, ref uint ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotLineNative(pStr0, xs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, uint* xs, ref uint ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotLineNative(pStr0, xs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, uint* xs, ref uint ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotLineNative(pStr0, xs, (uint*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, uint* xs, ref uint ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotLineNative(pStr0, xs, (uint*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, uint* xs, ref uint ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotLineNative(pStr0, xs, (uint*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative(labelId, (uint*)pxs, (uint*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative(labelId, (uint*)pxs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotLineFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative(labelId, (uint*)pxs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref uint xs, ref uint ys, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative(labelId, (uint*)pxs, (uint*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref uint xs, ref uint ys, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative(labelId, (uint*)pxs, (uint*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative(labelId, (uint*)pxs, (uint*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref uint xs, ref uint ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref uint xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint xs, ref uint ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative(pStr0, (uint*)pxs, (uint*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint xs, ref uint ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative(pStr0, (uint*)pxs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint xs, ref uint ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative(pStr0, (uint*)pxs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint xs, ref uint ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative(pStr0, (uint*)pxs, (uint*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint xs, ref uint ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative(pStr0, (uint*)pxs, (uint*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotLineNative(pStr0, (uint*)pxs, (uint*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[70])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[70])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* xs, long* ys, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* xs, long* ys, int count) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* xs, long* ys, int count, int offset) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* xs, long* ys, int count, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* xs, long* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* xs, long* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* xs, long* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* xs, long* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotLineNative(labelId, (long*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long xs, long* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - PlotLineNative(labelId, (long*)pxs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long xs, long* ys, int count, ImPlotLineFlags flags) - { - fixed (long* pxs = &xs) - { - PlotLineNative(labelId, (long*)pxs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long xs, long* ys, int count) - { - fixed (long* pxs = &xs) - { - PlotLineNative(labelId, (long*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long xs, long* ys, int count, int offset) - { - fixed (long* pxs = &xs) - { - PlotLineNative(labelId, (long*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotLineNative(labelId, (long*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (long*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long xs, long* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (long*)pxs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long xs, long* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (long*)pxs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (long*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (long*)pxs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (long*)pxs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotLineNative(pStr0, (long*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long xs, long* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotLineNative(pStr0, (long*)pxs, ys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long xs, long* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotLineNative(pStr0, (long*)pxs, ys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotLineNative(pStr0, (long*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long xs, long* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotLineNative(pStr0, (long*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long xs, long* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotLineNative(pStr0, (long*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* xs, ref long ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotLineNative(labelId, xs, (long*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* xs, ref long ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (long* pys = &ys) - { - PlotLineNative(labelId, xs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* xs, ref long ys, int count, ImPlotLineFlags flags) - { - fixed (long* pys = &ys) - { - PlotLineNative(labelId, xs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* xs, ref long ys, int count) - { - fixed (long* pys = &ys) - { - PlotLineNative(labelId, xs, (long*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* xs, ref long ys, int count, int offset) - { - fixed (long* pys = &ys) - { - PlotLineNative(labelId, xs, (long*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotLineNative(labelId, xs, (long*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* xs, ref long ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (long*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* xs, ref long ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* xs, ref long ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* xs, ref long ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (long*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* xs, ref long ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* xs, ref long ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotLineNative(pStr0, xs, (long*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* xs, ref long ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotLineNative(pStr0, xs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* xs, ref long ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotLineNative(pStr0, xs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* xs, ref long ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotLineNative(pStr0, xs, (long*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* xs, ref long ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotLineNative(pStr0, xs, (long*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, long* xs, ref long ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotLineNative(pStr0, xs, (long*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long xs, ref long ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative(labelId, (long*)pxs, (long*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long xs, ref long ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative(labelId, (long*)pxs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long xs, ref long ys, int count, ImPlotLineFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative(labelId, (long*)pxs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long xs, ref long ys, int count) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative(labelId, (long*)pxs, (long*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative(labelId, (long*)pxs, (long*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative(labelId, (long*)pxs, (long*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long xs, ref long ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long xs, ref long ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long xs, ref long ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long xs, ref long ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long xs, ref long ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long xs, ref long ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative(pStr0, (long*)pxs, (long*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long xs, ref long ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative(pStr0, (long*)pxs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long xs, ref long ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative(pStr0, (long*)pxs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long xs, ref long ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative(pStr0, (long*)pxs, (long*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long xs, ref long ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative(pStr0, (long*)pxs, (long*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotLineNative(pStr0, (long*)pxs, (long*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[71])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[71])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count, int offset) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative(labelId, (ulong*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative(labelId, (ulong*)pxs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotLineFlags flags) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative(labelId, (ulong*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong xs, ulong* ys, int count) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative(labelId, (ulong*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative(labelId, (ulong*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative(labelId, (ulong*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ulong xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotLineNative(pStr0, (ulong*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ulong xs, ulong* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotLineNative(pStr0, (ulong*)pxs, ys, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.008.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.008.cs index 6480e908b..5ca337f13 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.008.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.008.cs @@ -22,7 +22,161 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong xs, ulong* ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* xs, ref double ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,9 +195,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (double* pys = &ys) { - PlotLineNative(pStr0, (ulong*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + PlotScatterNative(pStr0, xs, (double*)pys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -54,7 +208,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong xs, ulong* ys, int count) + public static void PlotScatter(string labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -73,9 +227,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (double* pys = &ys) { - PlotLineNative(pStr0, (ulong*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotScatterNative(pStr0, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -86,7 +240,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong xs, ulong* ys, int count, int offset) + public static void PlotScatter(string labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -105,9 +259,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (double* pys = &ys) { - PlotLineNative(pStr0, (ulong*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + PlotScatterNative(pStr0, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -118,7 +272,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, double* xs, ref double ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -137,9 +291,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (double* pys = &ys) { - PlotLineNative(pStr0, (ulong*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(pStr0, xs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -150,241 +304,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotLineNative(labelId, xs, (ulong*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (ulong* pys = &ys) - { - PlotLineNative(labelId, xs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotLineFlags flags) - { - fixed (ulong* pys = &ys) - { - PlotLineNative(labelId, xs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* xs, ref ulong ys, int count) - { - fixed (ulong* pys = &ys) - { - PlotLineNative(labelId, xs, (ulong*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (ulong* pys = &ys) - { - PlotLineNative(labelId, xs, (ulong*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotLineNative(labelId, xs, (ulong*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ulong*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* xs, ref ulong ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ulong*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ulong* xs, ref ulong ys, int count, ImPlotLineFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, double* xs, ref double ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -403,9 +323,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + fixed (double* pys = &ys) { - PlotLineNative(pStr0, xs, (ulong*)pys, count, flags, offset, stride); + PlotScatterNative(pStr0, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -416,7 +336,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ulong* xs, ref ulong ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, double* xs, ref double ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -435,9 +355,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + fixed (double* pys = &ys) { - PlotLineNative(pStr0, xs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); + PlotScatterNative(pStr0, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -448,7 +368,295 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ulong* xs, ref ulong ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, ref double ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -467,427 +675,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + fixed (double* pxs = &xs) { - PlotLineNative(pStr0, xs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys = &ys) { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ulong* xs, ref ulong ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotLineNative(pStr0, xs, (ulong*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ulong* xs, ref ulong ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotLineNative(pStr0, xs, (ulong*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotLineNative(pStr0, xs, (ulong*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative(labelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative(labelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotLineFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative(labelId, (ulong*)pxs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative(labelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative(labelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(byte* labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative(labelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ref byte labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotLine(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotLineNative(pStr0, (ulong*)pxs, (ulong*)pys, count, flags, offset, stride); + PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -899,7 +691,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotLineFlags flags, int offset) + public static void PlotScatter(string labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -918,11 +710,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (ulong* pys = &ys) + fixed (double* pys = &ys) { - PlotLineNative(pStr0, (ulong*)pxs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); + PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -934,7 +726,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotLineFlags flags) + public static void PlotScatter(string labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -953,11 +745,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (ulong* pys = &ys) + fixed (double* pys = &ys) { - PlotLineNative(pStr0, (ulong*)pxs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); + PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -969,7 +761,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong xs, ref ulong ys, int count) + public static void PlotScatter(string labelId, ref double xs, ref double ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -988,11 +780,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (ulong* pys = &ys) + fixed (double* pys = &ys) { - PlotLineNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1004,7 +796,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong xs, ref ulong ys, int count, int offset) + public static void PlotScatter(string labelId, ref double xs, ref double ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1023,11 +815,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (ulong* pys = &ys) + fixed (double* pys = &ys) { - PlotLineNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); + PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1039,7 +831,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotLine(string labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) + public static void PlotScatter(string labelId, ref double xs, ref double ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1058,11 +850,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (ulong* pys = &ys) + fixed (double* pys = &ys) { - PlotLineNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (ImPlotLineFlags)(0), offset, stride); + PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1075,559 +867,199 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + internal static void PlotScatterNative(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[72])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[86])(labelId, xs, ys, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[72])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[86])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotScatter(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotScatter(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart) + public static void PlotScatter(byte* labelId, sbyte* xs, sbyte* ys, int count) { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, float* values, int count, double xscale) + public static void PlotScatter(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, float* values, int count) + public static void PlotScatter(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* values, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* values, int count, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* values, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* values, int count, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotScatter(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotScatter(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotScatter(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart) + public static void PlotScatter(ref byte labelId, sbyte* xs, sbyte* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale) + public static void PlotScatter(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, float* values, int count) + public static void PlotScatter(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotScatter(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotScatter(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart) + public static void PlotScatter(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale) + public static void PlotScatter(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count) + public static void PlotScatter(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1646,7 +1078,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1656,7 +1088,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotScatter(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1675,7 +1107,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1685,7 +1117,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotScatter(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1704,7 +1136,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1714,7 +1146,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart) + public static void PlotScatter(string labelId, sbyte* xs, sbyte* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1733,7 +1165,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1743,7 +1175,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, float* values, int count, double xscale) + public static void PlotScatter(string labelId, sbyte* xs, sbyte* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1762,7 +1194,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1772,7 +1204,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, float* values, int count) + public static void PlotScatter(string labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1791,2196 +1223,210 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, ImPlotScatterFlags flags) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart, int offset) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, int offset) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, int offset) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + internal static void PlotScatterNative(byte* labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[73])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[87])(labelId, xs, ys, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[73])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[87])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart) + public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count) { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* values, int count, double xscale) + public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, int offset) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* values, int count) + public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, double* values, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, double* values, int count, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, double* values, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, double* values, int count, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, double* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart) + public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale) + public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* values, int count) + public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, double* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, double* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, double* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotScatter(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotScatter(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart) + public static void PlotScatter(ReadOnlySpan labelId, byte* xs, byte* ys, int count) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale) + public static void PlotScatter(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count) + public static void PlotScatter(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, double* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotScatter(string labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3999,7 +1445,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4009,7 +1455,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotScatter(string labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4028,7 +1474,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4038,7 +1484,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotScatter(string labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4057,7 +1503,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4067,7 +1513,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart) + public static void PlotScatter(string labelId, byte* xs, byte* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4086,7 +1532,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4096,7 +1542,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, double* values, int count, double xscale) + public static void PlotScatter(string labelId, byte* xs, byte* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4115,7 +1561,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4125,7 +1571,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, double* values, int count) + public static void PlotScatter(string labelId, byte* xs, byte* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4144,7 +1590,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4154,868 +1600,3431 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, double* values, int count, double xscale, ImPlotScatterFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotScatterNative(byte* labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[88])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[88])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotScatter(string labelId, double* values, int count, ImPlotScatterFlags flags) + public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart, int offset) + public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(string labelId, double* values, int count, double xscale, int offset) + public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(string labelId, double* values, int count, int offset) + public static void PlotScatter(byte* labelId, short* xs, short* ys, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(string labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(string labelId, double* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, double* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, double* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, double* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, ImPlotScatterFlags flags) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart, int offset) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, int offset) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, int offset) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - } + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart) + public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale) + public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref double values, int count) + public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotScatter(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - } + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotScatter(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotScatter(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart) + public static void PlotScatter(ReadOnlySpan labelId, short* xs, short* ys, int count) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale) + public static void PlotScatter(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, short* xs, short* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, short* xs, short* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, short* xs, short* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotScatterNative(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[89])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[89])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count, int offset) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotScatterNative(byte* labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[90])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[90])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* xs, int* ys, int count) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* xs, int* ys, int count, int offset) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, int* xs, int* ys, int count, int offset, int stride) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* xs, int* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, int* xs, int* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, int* xs, int* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, int* xs, int* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotScatterNative(byte* labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[91])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[91])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count, int offset) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* xs, uint* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* xs, uint* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* xs, uint* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotScatterNative(byte* labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[92])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[92])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* xs, long* ys, int count) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* xs, long* ys, int count, int offset) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, long* xs, long* ys, int count, int offset, int stride) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* xs, long* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* xs, long* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* xs, long* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, long* xs, long* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotScatterNative(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[93])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[93])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset) + { + PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags) + { + PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count, int offset) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStairsNative(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[94])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[94])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, double xscale) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, double xscale, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart, int offset) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, double xscale, int offset) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, int offset) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, double xscale, int offset, int stride) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, int offset, int stride) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, double xscale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, double xscale, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count, double xscale) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count, ImPlotStairsFlags flags) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart, int offset) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, int offset) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count, int offset) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count, ImPlotStairsFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.009.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.009.cs index 6a592ee76..feb156111 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.009.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.009.cs @@ -22,13 +22,309 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count) + public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); } } } @@ -36,13 +332,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); } } } @@ -50,13 +346,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); } } } @@ -64,13 +360,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -78,13 +374,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -92,13 +388,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -106,13 +402,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); } } } @@ -120,13 +416,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); } } } @@ -134,13 +430,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); } } } @@ -148,13 +444,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, int offset) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); } } } @@ -162,13 +458,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); } } } @@ -176,13 +472,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); } } } @@ -190,13 +486,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); } } } @@ -204,7 +500,77 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -223,9 +589,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, stride); + PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -236,7 +602,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -255,9 +621,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -268,7 +634,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -287,9 +653,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -300,7 +666,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart) + public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -319,9 +685,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -332,7 +698,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, double xscale) + public static void PlotStairs(string labelId, ref float values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -351,9 +717,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -364,7 +730,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count) + public static void PlotStairs(string labelId, ref float values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -383,9 +749,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -396,7 +762,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -415,9 +781,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -428,7 +794,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, ref float values, int count, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -447,9 +813,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -460,7 +826,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -479,9 +845,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -492,7 +858,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, double xscale, int offset) + public static void PlotStairs(string labelId, ref float values, int count, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -511,9 +877,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -524,7 +890,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, int offset) + public static void PlotStairs(string labelId, ref float values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -543,9 +909,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -556,7 +922,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -575,9 +941,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -588,7 +954,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, ref float values, int count, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -607,9 +973,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -620,7 +986,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -639,9 +1005,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -652,7 +1018,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, double xscale, int offset, int stride) + public static void PlotStairs(string labelId, ref float values, int count, double xscale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -671,9 +1037,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -684,7 +1050,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, int offset, int stride) + public static void PlotStairs(string labelId, ref float values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -703,9 +1069,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -716,7 +1082,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -735,9 +1101,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -748,7 +1114,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, ref float values, int count, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -767,9 +1133,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -781,559 +1147,559 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + internal static void PlotStairsNative(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[74])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[95])(labelId, values, count, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[74])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[95])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart) + public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart) { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale) + public static void PlotStairs(byte* labelId, double* values, int count, double xscale) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count) + public static void PlotStairs(byte* labelId, double* values, int count) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, double* values, int count, double xscale, ImPlotStairsFlags flags) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, double* values, int count, ImPlotStairsFlags flags) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart, int offset) { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, int offset) + public static void PlotStairs(byte* labelId, double* values, int count, double xscale, int offset) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, int offset) + public static void PlotStairs(byte* labelId, double* values, int count, int offset) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, double* values, int count, ImPlotStairsFlags flags, int offset) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, int offset, int stride) + public static void PlotStairs(byte* labelId, double* values, int count, double xscale, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, int offset, int stride) + public static void PlotStairs(byte* labelId, double* values, int count, int offset, int stride) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, double* values, int count, ImPlotStairsFlags flags, int offset, int stride) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart) + public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale) + public static void PlotStairs(ref byte labelId, double* values, int count, double xscale) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count) + public static void PlotStairs(ref byte labelId, double* values, int count) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, double* values, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, int offset) + public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, int offset) + public static void PlotStairs(ref byte labelId, double* values, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, double* values, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, int offset, int stride) + public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, int offset, int stride) + public static void PlotStairs(ref byte labelId, double* values, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, double* values, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, int offset) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, int offset) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1352,7 +1718,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1362,7 +1728,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1381,7 +1747,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1391,7 +1757,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1410,7 +1776,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1420,7 +1786,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart) + public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1439,7 +1805,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1449,7 +1815,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, double xscale) + public static void PlotStairs(string labelId, double* values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1468,7 +1834,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1478,7 +1844,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count) + public static void PlotStairs(string labelId, double* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1497,7 +1863,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1507,7 +1873,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, double* values, int count, double xscale, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1526,7 +1892,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1536,7 +1902,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, double* values, int count, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1555,7 +1921,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1565,7 +1931,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1584,7 +1950,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1594,7 +1960,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, double xscale, int offset) + public static void PlotStairs(string labelId, double* values, int count, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1613,7 +1979,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1623,7 +1989,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, int offset) + public static void PlotStairs(string labelId, double* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1642,7 +2008,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1652,7 +2018,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1671,7 +2037,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1681,7 +2047,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, double* values, int count, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1700,7 +2066,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1710,7 +2076,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1729,7 +2095,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1739,7 +2105,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, double xscale, int offset, int stride) + public static void PlotStairs(string labelId, double* values, int count, double xscale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1758,7 +2124,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1768,7 +2134,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, int offset, int stride) + public static void PlotStairs(string labelId, double* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1787,7 +2153,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1797,7 +2163,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1816,7 +2182,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1826,7 +2192,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, double* values, int count, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1845,7 +2211,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1855,211 +2221,211 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, xscale, xstart, flags, offset, stride); + PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, double xscale, double xstart) + public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, double xscale) + public static void PlotStairs(byte* labelId, ref double values, int count, double xscale) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count) + public static void PlotStairs(byte* labelId, ref double values, int count) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, ref double values, int count, ImPlotStairsFlags flags) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart, int offset) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, double xscale, int offset) + public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, int offset) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, int offset) + public static void PlotStairs(byte* labelId, ref double values, int count, int offset) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, ref double values, int count, ImPlotStairsFlags flags, int offset) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, double xscale, int offset, int stride) + public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, int offset, int stride) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, int offset, int stride) + public static void PlotStairs(byte* labelId, ref double values, int count, int offset, int stride) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, ref double values, int count, ImPlotStairsFlags flags, int offset, int stride) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, offset, stride); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); } } } @@ -2067,13 +2433,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); } } } @@ -2081,13 +2447,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); } } } @@ -2095,13 +2461,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, double xscale, double xstart) + public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -2109,13 +2475,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, double xscale) + public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -2123,13 +2489,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count) + public static void PlotStairs(ref byte labelId, ref double values, int count) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -2137,13 +2503,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } } @@ -2151,13 +2517,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, ref double values, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); } } } @@ -2165,13 +2531,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -2179,13 +2545,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, double xscale, int offset) + public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, int offset) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -2193,13 +2559,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, int offset) + public static void PlotStairs(ref byte labelId, ref double values, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -2207,13 +2573,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); } } } @@ -2221,13 +2587,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, ref double values, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); } } } @@ -2235,13 +2601,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } } } @@ -2249,13 +2615,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, double xscale, int offset, int stride) + public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } } @@ -2263,13 +2629,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, int offset, int stride) + public static void PlotStairs(ref byte labelId, ref double values, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } } @@ -2277,13 +2643,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); } } } @@ -2291,13 +2657,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref byte values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, ref double values, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); } } } @@ -2305,13 +2671,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, offset, stride); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); } } } @@ -2319,13 +2685,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); } } } @@ -2333,13 +2699,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); } } } @@ -2347,13 +2713,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -2361,13 +2727,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, double xscale) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -2375,13 +2741,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -2389,13 +2755,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } } @@ -2403,13 +2769,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); } } } @@ -2417,13 +2783,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -2431,13 +2797,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, double xscale, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, int offset) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -2445,13 +2811,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -2459,13 +2825,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); } } } @@ -2473,13 +2839,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); } } } @@ -2487,13 +2853,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } } } @@ -2501,13 +2867,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, double xscale, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } } @@ -2515,13 +2881,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } } @@ -2529,13 +2895,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); } } } @@ -2543,13 +2909,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); } } } @@ -2557,7 +2923,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2576,9 +2942,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, xscale, xstart, flags, offset, stride); + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2589,7 +2955,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2608,9 +2974,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2621,7 +2987,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2640,9 +3006,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2653,7 +3019,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, double xscale, double xstart) + public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2672,9 +3038,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2685,7 +3051,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, double xscale) + public static void PlotStairs(string labelId, ref double values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2704,9 +3070,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2717,7 +3083,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count) + public static void PlotStairs(string labelId, ref double values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2736,9 +3102,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2749,7 +3115,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2768,9 +3134,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2781,7 +3147,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, ref double values, int count, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2800,9 +3166,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2813,7 +3179,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2832,9 +3198,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2845,7 +3211,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, double xscale, int offset) + public static void PlotStairs(string labelId, ref double values, int count, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2864,9 +3230,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2877,7 +3243,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, int offset) + public static void PlotStairs(string labelId, ref double values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2896,9 +3262,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2909,7 +3275,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2928,9 +3294,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2941,7 +3307,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, ref double values, int count, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2960,9 +3326,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2973,7 +3339,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2992,9 +3358,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3005,7 +3371,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, double xscale, int offset, int stride) + public static void PlotStairs(string labelId, ref double values, int count, double xscale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3024,9 +3390,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3037,7 +3403,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, int offset, int stride) + public static void PlotStairs(string labelId, ref double values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3056,9 +3422,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3069,7 +3435,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3088,9 +3454,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3101,7 +3467,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, ref double values, int count, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3120,9 +3486,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3134,559 +3500,559 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + internal static void PlotStairsNative(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[75])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[96])(labelId, values, count, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[75])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[96])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); + PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart) + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, double xstart) { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, double xscale) + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count) + public static void PlotStairs(byte* labelId, sbyte* values, int count) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, sbyte* values, int count, ImPlotStairsFlags flags) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, double xstart, int offset) { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, int offset) + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, int offset) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, int offset) + public static void PlotStairs(byte* labelId, sbyte* values, int count, int offset) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, sbyte* values, int count, ImPlotStairsFlags flags, int offset) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, int offset, int stride) + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, int offset, int stride) + public static void PlotStairs(byte* labelId, sbyte* values, int count, int offset, int stride) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, sbyte* values, int count, ImPlotStairsFlags flags, int offset, int stride) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count) + public static void PlotStairs(ref byte labelId, sbyte* values, int count) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, int offset) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, int offset) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, int offset, int stride) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, int offset, int stride) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, sbyte* values, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, double xscale) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, int offset) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, double xscale, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, int offset) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, double xscale, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* values, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3705,7 +4071,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3715,7 +4081,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3734,7 +4100,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3744,7 +4110,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3763,7 +4129,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3773,7 +4139,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart) + public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3792,7 +4158,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3802,7 +4168,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, double xscale) + public static void PlotStairs(string labelId, sbyte* values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3821,7 +4187,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3831,7 +4197,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count) + public static void PlotStairs(string labelId, sbyte* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3850,7 +4216,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3860,7 +4226,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3879,7 +4245,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3889,7 +4255,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, sbyte* values, int count, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3908,7 +4274,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3918,7 +4284,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3937,7 +4303,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3947,7 +4313,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, double xscale, int offset) + public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3966,7 +4332,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3976,7 +4342,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, int offset) + public static void PlotStairs(string labelId, sbyte* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3995,7 +4361,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4005,7 +4371,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4024,7 +4390,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4034,7 +4400,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, sbyte* values, int count, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4053,7 +4419,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4063,7 +4429,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4082,7 +4448,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4092,7 +4458,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, double xscale, int offset, int stride) + public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4111,7 +4477,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4121,7 +4487,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, int offset, int stride) + public static void PlotStairs(string labelId, sbyte* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4140,7 +4506,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4150,7 +4516,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4169,7 +4535,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4179,7 +4545,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, short* values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, sbyte* values, int count, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4198,7 +4564,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4208,830 +4574,454 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStairsNative(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, xscale, xstart, flags, offset, stride); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[97])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[97])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, double xscale, double xstart) + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, double xscale) + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count) + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, byte* values, int count) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(byte* labelId, byte* values, int count, ImPlotStairsFlags flags) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, double xscale, int offset) + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, int offset) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, int offset) + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, int offset) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, byte* values, int count, int offset) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(byte* labelId, byte* values, int count, ImPlotStairsFlags flags, int offset) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, double xscale, int offset, int stride) + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, int offset, int stride) + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, int offset, int stride) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, byte* values, int count, int offset, int stride) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref short values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { - fixed (short* pvalues = &values) - { - PlotScatterNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, byte* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, double xscale, double xstart) + public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, double xscale) + public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count) + public static void PlotStairs(ref byte labelId, byte* values, int count) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, byte* values, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, double xscale, int offset) + public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, int offset) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, int offset) + public static void PlotStairs(ref byte labelId, byte* values, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, byte* values, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, double xscale, int offset, int stride) + public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, int offset, int stride) + public static void PlotStairs(ref byte labelId, byte* values, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref short values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, byte* values, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, double xscale) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale) { fixed (byte* plabelId = labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count) { fixed (byte* plabelId = labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = labelId) { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref short values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotScatterNative(pStr0, (short*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref short values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotScatterNative(pStr0, (short*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref short values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotScatterNative(pStr0, (short*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref short values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotScatterNative(pStr0, (short*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.010.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.010.cs index aea33cc18..513659690 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.010.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.010.cs @@ -22,295 +22,106 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref short values, int count, double xscale) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotScatterNative(pStr0, (short*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref short values, int count) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotScatterNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref short values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotScatterNative(pStr0, (short*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref short values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, ImPlotStairsFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotScatterNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref short values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotScatterNative(pStr0, (short*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref short values, int count, double xscale, int offset) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotScatterNative(pStr0, (short*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref short values, int count, int offset) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotScatterNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref short values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotScatterNative(pStr0, (short*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref short values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, ImPlotStairsFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotScatterNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref short values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -329,20 +140,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (short*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref short values, int count, double xscale, int offset, int stride) + public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -361,20 +169,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (short*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref short values, int count, int offset, int stride) + public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -393,20 +198,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref short values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -425,20 +227,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (short*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref short values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, byte* values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -457,13 +256,387 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, byte* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, byte* values, int count, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, byte* values, int count, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, byte* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, byte* values, int count, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, byte* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, byte* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, byte* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } @@ -471,559 +644,559 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + internal static void PlotStairsNative(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[76])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[98])(labelId, values, count, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[76])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[98])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); + PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart) + public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart) { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale) + public static void PlotStairs(byte* labelId, short* values, int count, double xscale) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count) + public static void PlotStairs(byte* labelId, short* values, int count) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, short* values, int count, double xscale, ImPlotStairsFlags flags) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, short* values, int count, ImPlotStairsFlags flags) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart, int offset) { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, int offset) + public static void PlotStairs(byte* labelId, short* values, int count, double xscale, int offset) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, int offset) + public static void PlotStairs(byte* labelId, short* values, int count, int offset) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, short* values, int count, ImPlotStairsFlags flags, int offset) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, int offset, int stride) + public static void PlotStairs(byte* labelId, short* values, int count, double xscale, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, int offset, int stride) + public static void PlotStairs(byte* labelId, short* values, int count, int offset, int stride) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, short* values, int count, ImPlotStairsFlags flags, int offset, int stride) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart) + public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale) + public static void PlotStairs(ref byte labelId, short* values, int count, double xscale) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count) + public static void PlotStairs(ref byte labelId, short* values, int count) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, short* values, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, int offset) + public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, int offset) + public static void PlotStairs(ref byte labelId, short* values, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, short* values, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, int offset, int stride) + public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, int offset, int stride) + public static void PlotStairs(ref byte labelId, short* values, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, short* values, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, int offset) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, int offset) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1042,7 +1215,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1052,7 +1225,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1071,7 +1244,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1081,7 +1254,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1100,7 +1273,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1110,7 +1283,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart) + public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1129,7 +1302,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1139,7 +1312,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, double xscale) + public static void PlotStairs(string labelId, short* values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1158,7 +1331,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1168,7 +1341,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count) + public static void PlotStairs(string labelId, short* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1187,7 +1360,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1197,7 +1370,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, short* values, int count, double xscale, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1216,7 +1389,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1226,7 +1399,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, short* values, int count, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1245,7 +1418,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1255,7 +1428,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1274,7 +1447,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1284,7 +1457,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, int offset) + public static void PlotStairs(string labelId, short* values, int count, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1303,7 +1476,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1313,7 +1486,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, int offset) + public static void PlotStairs(string labelId, short* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1332,7 +1505,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1342,7 +1515,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1361,7 +1534,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1371,7 +1544,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, short* values, int count, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1390,7 +1563,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1400,7 +1573,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1419,7 +1592,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1429,7 +1602,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, int offset, int stride) + public static void PlotStairs(string labelId, short* values, int count, double xscale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1448,7 +1621,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1458,7 +1631,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, int offset, int stride) + public static void PlotStairs(string labelId, short* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1477,7 +1650,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1487,7 +1660,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1506,7 +1679,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1516,7 +1689,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, short* values, int count, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1535,1848 +1708,570 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, double xscale, double xstart) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, double xscale) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, ImPlotScatterFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, double xscale, double xstart, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, double xscale, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, double xscale, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotScatterNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + internal static void PlotStairsNative(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[77])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[99])(labelId, values, count, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[77])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[99])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart) + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart) { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, double xscale) + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count) + public static void PlotStairs(byte* labelId, ushort* values, int count) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, ushort* values, int count, ImPlotStairsFlags flags) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, int offset) { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, int offset) + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, int offset) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, int offset) + public static void PlotStairs(byte* labelId, ushort* values, int count, int offset) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, int offset, int stride) + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, int offset, int stride) + public static void PlotStairs(byte* labelId, ushort* values, int count, int offset, int stride) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset, int stride) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart) + public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale) + public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count) + public static void PlotStairs(ref byte labelId, ushort* values, int count) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, ushort* values, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, int offset) + public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, int offset) + public static void PlotStairs(ref byte labelId, ushort* values, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, int offset, int stride) + public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, int offset, int stride) + public static void PlotStairs(ref byte labelId, ushort* values, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3395,7 +2290,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3405,7 +2300,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3424,7 +2319,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3434,7 +2329,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3453,7 +2348,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3463,7 +2358,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart) + public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3482,7 +2377,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3492,7 +2387,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, double xscale) + public static void PlotStairs(string labelId, ushort* values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3511,7 +2406,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3521,7 +2416,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count) + public static void PlotStairs(string labelId, ushort* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3540,7 +2435,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3550,7 +2445,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3569,7 +2464,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3579,7 +2474,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, ushort* values, int count, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3598,7 +2493,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3608,7 +2503,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3627,7 +2522,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3637,7 +2532,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, double xscale, int offset) + public static void PlotStairs(string labelId, ushort* values, int count, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3656,7 +2551,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3666,7 +2561,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, int offset) + public static void PlotStairs(string labelId, ushort* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3685,7 +2580,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3695,7 +2590,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3714,7 +2609,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3724,7 +2619,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3743,7 +2638,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3753,7 +2648,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3772,7 +2667,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3782,7 +2677,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, double xscale, int offset, int stride) + public static void PlotStairs(string labelId, ushort* values, int count, double xscale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3801,7 +2696,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3811,7 +2706,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, int offset, int stride) + public static void PlotStairs(string labelId, ushort* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3830,7 +2725,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3840,7 +2735,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3859,7 +2754,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3869,7 +2764,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3888,7 +2783,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3898,709 +2793,560 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStairsNative(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, xscale, xstart, flags, offset, stride); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[100])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[100])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, double xscale, double xstart) + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } + PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, double xscale) + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count) + public static void PlotStairs(byte* labelId, int* values, int count, double xscale) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, int* values, int count) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, ImPlotStairsFlags flags) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(byte* labelId, int* values, int count, ImPlotStairsFlags flags) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, double xscale, int offset) + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, int offset) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, int offset) + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, int offset) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, int* values, int count, int offset) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(byte* labelId, int* values, int count, ImPlotStairsFlags flags, int offset) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, double xscale, int offset, int stride) + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, int offset, int stride) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, int offset, int stride) + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, int offset, int stride) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, int* values, int count, int offset, int stride) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { - fixed (int* pvalues = &values) - { - PlotScatterNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, int* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, double xscale, double xstart) + public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, double xscale) + public static void PlotStairs(ref byte labelId, int* values, int count, double xscale) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count) + public static void PlotStairs(ref byte labelId, int* values, int count) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, int* values, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, double xscale, int offset) + public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, int offset) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, int offset) + public static void PlotStairs(ref byte labelId, int* values, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, int* values, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, double xscale, int offset, int stride) + public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, int offset, int stride) + public static void PlotStairs(ref byte labelId, int* values, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref int values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, int* values, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, double xscale) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, int offset) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, double xscale, int offset) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, int offset) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, int offset) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, double xscale, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref int values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4619,20 +3365,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4651,20 +3394,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4683,20 +3423,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, double xscale, double xstart) + public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4715,20 +3452,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, double xscale) + public static void PlotStairs(string labelId, int* values, int count, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4747,20 +3481,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count) + public static void PlotStairs(string labelId, int* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4779,20 +3510,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, int* values, int count, double xscale, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4811,20 +3539,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, int* values, int count, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4843,20 +3568,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4875,20 +3597,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, double xscale, int offset) + public static void PlotStairs(string labelId, int* values, int count, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4907,20 +3626,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, int offset) + public static void PlotStairs(string labelId, int* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4939,20 +3655,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4971,20 +3684,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, int* values, int count, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5003,20 +3713,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5035,14 +3742,1287 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, int* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, int* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, int* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStairsNative(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[101])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[101])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, double xscale) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart, int offset) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, int offset) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, int offset) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, int offset, int stride) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, int offset, int stride) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, double xscale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStairsNative(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[102])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[102])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count, double xscale) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count, double xscale, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart, int offset) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.011.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.011.cs index 3f07f1ac6..c625fdfa6 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.011.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.011.cs @@ -22,7 +22,475 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, double xscale, int offset, int stride) + public static void PlotStairs(byte* labelId, long* values, int count, double xscale, int offset) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count, int offset) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count, double xscale, int offset, int stride) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count, int offset, int stride) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,9 +509,2207 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, double xscale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, double xscale, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStairsNative(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[103])(labelId, values, count, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[103])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, int offset) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, int offset) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) + { + PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, int offset, int stride) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, int offset, int stride) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, double xscale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStairsNative(byte* labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[104])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[104])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* xs, float* ys, int count) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* xs, float* ys, int count, int offset) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* xs, float* ys, int count, int offset, int stride) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* xs, float* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* xs, float* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* xs, float* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* xs, float* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotStairsNative(labelId, (float*)pxs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + PlotStairsNative(labelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags) + { + fixed (float* pxs = &xs) + { + PlotStairsNative(labelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count) + { + fixed (float* pxs = &xs) + { + PlotStairsNative(labelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count, int offset) + { + fixed (float* pxs = &xs) + { + PlotStairsNative(labelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotStairsNative(labelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float xs, float* ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotStairsNative(pStr0, (float*)pxs, ys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -54,7 +2720,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, int offset, int stride) + public static void PlotStairs(string labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -73,9 +2739,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotScatterNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -86,7 +2752,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -105,9 +2771,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotScatterNative(pStr0, (int*)pvalues, count, xscale, (double)(0), flags, offset, stride); + PlotStairsNative(pStr0, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -118,7 +2784,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int values, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, ref float xs, float* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -137,9 +2803,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotScatterNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + PlotStairsNative(pStr0, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -147,563 +2813,1191 @@ namespace Dalamud.Bindings.ImPlot } } + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref float xs, float* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotStairsNative(pStr0, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref float xs, float* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotStairsNative(pStr0, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotStairsNative(labelId, xs, (float*)pys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (float* pys = &ys) + { + PlotStairsNative(labelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags) + { + fixed (float* pys = &ys) + { + PlotStairsNative(labelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count) + { + fixed (float* pys = &ys) + { + PlotStairsNative(labelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count, int offset) + { + fixed (float* pys = &ys) + { + PlotStairsNative(labelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotStairsNative(labelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* xs, ref float ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStairsNative(pStr0, xs, (float*)pys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStairsNative(pStr0, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStairsNative(pStr0, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* xs, ref float ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStairsNative(pStr0, xs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* xs, ref float ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStairsNative(pStr0, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, float* xs, ref float ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStairsNative(pStr0, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float xs, ref float ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref float xs, ref float ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref float xs, ref float ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + internal static void PlotStairsNative(byte* labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[78])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[105])(labelId, xs, ys, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[78])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[105])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags) { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart) + public static void PlotStairs(byte* labelId, double* xs, double* ys, int count) { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale) + public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, int offset) { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, uint* values, int count) + public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, int offset, int stride) { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, uint* values, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, uint* values, int count, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, uint* values, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, uint* values, int count, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, uint* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart) + public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale) + public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, uint* values, int count) + public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart) + public static void PlotStairs(ReadOnlySpan labelId, double* xs, double* ys, int count) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale) + public static void PlotStairs(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count) + public static void PlotStairs(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -722,7 +4016,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -732,7 +4026,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -751,7 +4045,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -761,7 +4055,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -780,7 +4074,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -790,7 +4084,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart) + public static void PlotStairs(string labelId, double* xs, double* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -809,7 +4103,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -819,7 +4113,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* values, int count, double xscale) + public static void PlotStairs(string labelId, double* xs, double* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -838,7 +4132,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -848,7 +4142,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* values, int count) + public static void PlotStairs(string labelId, double* xs, double* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -867,7 +4161,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -877,7 +4171,241 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotStairsNative(labelId, (double*)pxs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + PlotStairsNative(labelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags) + { + fixed (double* pxs = &xs) + { + PlotStairsNative(labelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count) + { + fixed (double* pxs = &xs) + { + PlotStairsNative(labelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count, int offset) + { + fixed (double* pxs = &xs) + { + PlotStairsNative(labelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotStairsNative(labelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref double xs, double* ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -896,1059 +4424,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pxs = &xs) { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, uint* values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, uint* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, uint* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, uint* values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, uint* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, uint* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, uint* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, double xscale, double xstart) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, double xscale) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, ImPlotScatterFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, double xscale, double xstart, int offset) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, double xscale, int offset) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, int offset) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, double xscale, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref uint values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotScatterNative(pStr0, (uint*)pvalues, count, xscale, xstart, flags, offset, stride); + PlotStairsNative(pStr0, (double*)pxs, ys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1959,7 +4437,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1978,9 +4456,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotScatterNative(pStr0, (uint*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + PlotStairsNative(pStr0, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1991,7 +4469,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint values, int count, double xscale, double xstart, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2010,9 +4488,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotScatterNative(pStr0, (uint*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + PlotStairsNative(pStr0, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2023,7 +4501,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint values, int count, double xscale, double xstart) + public static void PlotStairs(string labelId, ref double xs, double* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2042,9 +4520,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotScatterNative(pStr0, (uint*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStairsNative(pStr0, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2055,7 +4533,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint values, int count, double xscale) + public static void PlotStairs(string labelId, ref double xs, double* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2074,9 +4552,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotScatterNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStairsNative(pStr0, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2087,7 +4565,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint values, int count) + public static void PlotStairs(string labelId, ref double xs, double* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2106,9 +4584,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotScatterNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStairsNative(pStr0, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2119,7 +4597,241 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint values, int count, double xscale, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotStairsNative(labelId, xs, (double*)pys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (double* pys = &ys) + { + PlotStairsNative(labelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags) + { + fixed (double* pys = &ys) + { + PlotStairsNative(labelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count) + { + fixed (double* pys = &ys) + { + PlotStairsNative(labelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count, int offset) + { + fixed (double* pys = &ys) + { + PlotStairsNative(labelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotStairsNative(labelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* xs, ref double ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2138,9 +4850,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pys = &ys) { - PlotScatterNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotStairsNative(pStr0, xs, (double*)pys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2151,7 +4863,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint values, int count, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2170,9 +4882,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pys = &ys) { - PlotScatterNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotStairsNative(pStr0, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2183,7 +4895,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint values, int count, double xscale, double xstart, int offset) + public static void PlotStairs(string labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2202,9 +4914,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pys = &ys) { - PlotScatterNative(pStr0, (uint*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + PlotStairsNative(pStr0, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2215,7 +4927,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint values, int count, double xscale, int offset) + public static void PlotStairs(string labelId, double* xs, ref double ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2234,9 +4946,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pys = &ys) { - PlotScatterNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + PlotStairsNative(pStr0, xs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2247,7 +4959,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint values, int count, int offset) + public static void PlotStairs(string labelId, double* xs, ref double ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2266,9 +4978,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pys = &ys) { - PlotScatterNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + PlotStairsNative(pStr0, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2279,7 +4991,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint values, int count, double xscale, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, double* xs, ref double ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2298,2727 +5010,14 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + fixed (double* pys = &ys) { - PlotScatterNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + PlotStairsNative(pStr0, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref uint values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotScatterNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref uint values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotScatterNative(pStr0, (uint*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref uint values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotScatterNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref uint values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotScatterNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref uint values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotScatterNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref uint values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotScatterNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[79])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[79])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, double xscale) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, double xscale, double xstart) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, double xscale) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, ImPlotScatterFlags flags) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, double xscale, double xstart, int offset) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, double xscale, int offset) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, int offset) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, double xscale, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotScatterNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotScatterNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[80])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[80])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.012.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.012.cs index fd8020abb..ffb03c49e 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.012.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.012.cs @@ -22,3503 +22,99 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pxs = &xs) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, double xscale, double xstart) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, double xscale) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, ImPlotScatterFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, double xscale, double xstart, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, double xscale, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, double xscale, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotScatterNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[81])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[81])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* xs, float* ys, int count) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* xs, float* ys, int count, int offset) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* xs, float* ys, int count, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotScatterNative(labelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotScatterNative(labelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags) - { - fixed (float* pxs = &xs) - { - PlotScatterNative(labelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count) - { - fixed (float* pxs = &xs) - { - PlotScatterNative(labelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotScatterNative(labelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotScatterNative(labelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotScatterNative(pStr0, (float*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotScatterNative(pStr0, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotScatterNative(pStr0, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotScatterNative(pStr0, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotScatterNative(pStr0, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref float xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotScatterNative(pStr0, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, xs, (float*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count, int offset) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, xs, (float*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, xs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, float* xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); + PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); } } } @@ -3527,15 +123,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); } } } @@ -3544,15 +140,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -3561,15 +157,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count) + public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -3578,15 +174,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count, int offset) + public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -3595,15 +191,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) + public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); } } } @@ -3612,15 +208,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); + PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); } } } @@ -3629,15 +225,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); } } } @@ -3646,15 +242,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -3663,15 +259,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref float xs, ref float ys, int count) + public static void PlotStairs(ReadOnlySpan labelId, ref double xs, ref double ys, int count) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -3680,15 +276,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset) + public static void PlotStairs(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -3697,15 +293,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); } } } @@ -3714,7 +310,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3733,11 +329,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, stride); + PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3749,7 +345,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3768,11 +364,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3784,7 +380,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3803,11 +399,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3819,7 +415,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref float xs, ref float ys, int count) + public static void PlotStairs(string labelId, ref double xs, ref double ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3838,11 +434,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); + PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3854,7 +450,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref float xs, ref float ys, int count, int offset) + public static void PlotStairs(string labelId, ref double xs, ref double ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3873,11 +469,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); + PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3889,7 +485,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref float xs, ref float ys, int count, int offset, int stride) + public static void PlotStairs(string labelId, ref double xs, ref double ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3908,11 +504,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys = &ys) { - PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3925,199 +521,199 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + internal static void PlotStairsNative(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[82])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[106])(labelId, xs, ys, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[82])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[106])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); + PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset) { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags) { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* xs, double* ys, int count) + public static void PlotStairs(byte* labelId, sbyte* xs, sbyte* ys, int count) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, int offset) + public static void PlotStairs(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, int offset, int stride) + public static void PlotStairs(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count) + public static void PlotStairs(ref byte labelId, sbyte* xs, sbyte* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, int offset) + public static void PlotStairs(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) + public static void PlotStairs(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* xs, double* ys, int count) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4136,7 +732,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); + PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4146,7 +742,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4165,7 +761,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(double))); + PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4175,7 +771,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4194,7 +790,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4204,7 +800,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, double* xs, double* ys, int count) + public static void PlotStairs(string labelId, sbyte* xs, sbyte* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4223,7 +819,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4233,7 +829,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, double* xs, double* ys, int count, int offset) + public static void PlotStairs(string labelId, sbyte* xs, sbyte* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4252,7 +848,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4262,7 +858,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, double* xs, double* ys, int count, int offset, int stride) + public static void PlotStairs(string labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4281,7 +877,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4291,241 +887,200 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStairsNative(byte* labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { - fixed (double* pxs = &xs) - { - PlotScatterNative(labelId, (double*)pxs, ys, count, flags, offset, stride); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[107])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[107])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { - fixed (double* pxs = &xs) - { - PlotScatterNative(labelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } + PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) { - fixed (double* pxs = &xs) - { - PlotScatterNative(labelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } + PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count) + public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags) { - fixed (double* pxs = &xs) - { - PlotScatterNative(labelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } + PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, int offset) + public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count) { - fixed (double* pxs = &xs) - { - PlotScatterNative(labelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) + public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, int offset) { - fixed (double* pxs = &xs) - { - PlotScatterNative(labelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count) + public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count, int offset) + public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) + public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* ys, int count) + public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* ys, int count) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset) + public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4544,20 +1099,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (double*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4576,20 +1128,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4608,20 +1157,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double xs, double* ys, int count) + public static void PlotStairs(string labelId, byte* xs, byte* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4640,20 +1186,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double xs, double* ys, int count, int offset) + public static void PlotStairs(string labelId, byte* xs, byte* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4672,20 +1215,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double xs, double* ys, int count, int offset, int stride) + public static void PlotStairs(string labelId, byte* xs, byte* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4704,254 +1244,210 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStairsNative(byte* labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, xs, (double*)pys, count, flags, offset, stride); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[108])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[108])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } + PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags) + public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset) { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } + PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count) + public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags) { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } + PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, int offset) + public static void PlotStairs(byte* labelId, short* xs, short* ys, int count) { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) + public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, int offset) { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, int offset, int stride) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count) + public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count, int offset) + public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) + public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags) + public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* xs, ref double ys, int count) + public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* ys, int count) { fixed (byte* plabelId = labelId) { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset) + public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset, int stride) + public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotStairs(string labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4970,20 +1466,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (double*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotStairs(string labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5002,20 +1495,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags) + public static void PlotStairs(string labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5034,13 +1524,3503 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, short* xs, short* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, short* xs, short* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, short* xs, short* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStairsNative(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[109])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[109])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count, int offset) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStairsNative(byte* labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[110])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[110])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, int* xs, int* ys, int count) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, int* xs, int* ys, int count, int offset) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, int* xs, int* ys, int count, int offset, int stride) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* xs, int* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, int* xs, int* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, int* xs, int* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, int* xs, int* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStairsNative(byte* labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[111])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[111])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count, int offset) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* xs, uint* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* xs, uint* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* xs, uint* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStairsNative(byte* labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[112])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[112])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* xs, long* ys, int count) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* xs, long* ys, int count, int offset) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, long* xs, long* ys, int count, int offset, int stride) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* xs, long* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* xs, long* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* xs, long* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, long* xs, long* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStairsNative(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[113])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[113])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset) + { + PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags) + { + PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count, int offset) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStairsGNative(byte* labelId, ImPlotGetter getter, void* data, int count, ImPlotStairsFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, int, ImPlotStairsFlags, void>)funcTable[114])(labelId, (delegate*)Utils.GetFunctionPointerForDelegate(getter), data, count, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[114])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter), (nint)data, count, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStairsG(byte* labelId, ImPlotGetter getter, void* data, int count, ImPlotStairsFlags flags) + { + PlotStairsGNative(labelId, getter, data, count, flags); + } + + /// + /// To be documented. + /// + public static void PlotStairsG(byte* labelId, ImPlotGetter getter, void* data, int count) + { + PlotStairsGNative(labelId, getter, data, count, (ImPlotStairsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotStairsG(ref byte labelId, ImPlotGetter getter, void* data, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsGNative((byte*)plabelId, getter, data, count, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotStairsG(ref byte labelId, ImPlotGetter getter, void* data, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStairsGNative((byte*)plabelId, getter, data, count, (ImPlotStairsFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotStairsG(ReadOnlySpan labelId, ImPlotGetter getter, void* data, int count, ImPlotStairsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStairsGNative((byte*)plabelId, getter, data, count, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotStairsG(ReadOnlySpan labelId, ImPlotGetter getter, void* data, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStairsGNative((byte*)plabelId, getter, data, count, (ImPlotStairsFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotStairsG(string labelId, ImPlotGetter getter, void* data, int count, ImPlotStairsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsGNative(pStr0, getter, data, count, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStairsG(string labelId, ImPlotGetter getter, void* data, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStairsGNative(pStr0, getter, data, count, (ImPlotStairsFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotShadedNative(byte* labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[115])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[115])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, int offset) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, int offset) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, stride); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.013.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.013.cs index d7a8e96a9..9dba7c8e5 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.013.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.013.cs @@ -22,7 +22,932 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, double* xs, ref double ys, int count) + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, ImPlotShadedFlags flags) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, int offset) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, int offset) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, int offset) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,9 +966,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, xs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -54,7 +979,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, double* xs, ref double ys, int count, int offset) + public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -73,9 +998,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -86,7 +1011,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, double* xs, ref double ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -105,9 +1030,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + fixed (float* pvalues = &values) { - PlotScatterNative(pStr0, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -118,295 +1043,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -425,15 +1062,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (double* pys = &ys) + PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -441,7 +1075,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -460,15 +1094,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (double* pys = &ys) + PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -476,7 +1107,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, ref float values, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -495,15 +1126,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (double* pys = &ys) + PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -511,7 +1139,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double xs, ref double ys, int count) + public static void PlotShaded(string labelId, ref float values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -530,15 +1158,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (double* pys = &ys) + PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -546,7 +1171,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double xs, ref double ys, int count, int offset) + public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -565,15 +1190,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (double* pys = &ys) + PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -581,7 +1203,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref double xs, ref double ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, ref float values, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -600,15 +1222,492 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (double* pys = &ys) + PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float values, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float values, int count, double yref, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float values, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float values, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -617,199 +1716,739 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[83])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[116])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[83])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[116])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count) + public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, int offset) + public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) + public static void PlotShaded(byte* labelId, double* values, int count, double yref) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, double* values, int count) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, double yref, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, double yref, int offset) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, int offset) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, double yref, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count) + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, int offset) + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) + public static void PlotShaded(ref byte labelId, double* values, int count, double yref) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, double* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* xs, byte* ys, int count) + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -828,7 +2467,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -838,7 +2477,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -857,7 +2496,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -867,7 +2506,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -886,7 +2525,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -896,7 +2535,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* xs, byte* ys, int count) + public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -915,7 +2554,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -925,7 +2564,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* xs, byte* ys, int count, int offset) + public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -944,7 +2583,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -954,7 +2593,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* xs, byte* ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, double* values, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -973,7 +2612,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -983,241 +2622,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative(labelId, (byte*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref byte xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative(labelId, (byte*)pxs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref byte xs, byte* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative(labelId, (byte*)pxs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative(labelId, (byte*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative(labelId, (byte*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative(labelId, (byte*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref byte xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, double* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1236,9 +2641,1467 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (byte*)pxs, ys, count, flags, offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, double yref, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, double yref, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, ImPlotShadedFlags flags) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, int offset) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, int offset) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, int offset) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1249,7 +4112,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1268,9 +4131,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pxs, ys, count, flags, offset, (int)(sizeof(sbyte))); + PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1281,7 +4144,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte xs, byte* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1300,9 +4163,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pxs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1313,7 +4176,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte xs, byte* ys, int count) + public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1332,9 +4195,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1345,7 +4208,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte xs, byte* ys, int count, int offset) + public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1364,9 +4227,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1377,7 +4240,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte xs, byte* ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, ref double values, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1396,9 +4259,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, (byte*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1409,241 +4272,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(byte* labelId, byte* xs, ref byte ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotScatterNative(labelId, xs, (byte*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, byte* xs, ref byte ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* pys = &ys) - { - PlotScatterNative(labelId, xs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, byte* xs, ref byte ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* pys = &ys) - { - PlotScatterNative(labelId, xs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* pys = &ys) - { - PlotScatterNative(labelId, xs, (byte*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* pys = &ys) - { - PlotScatterNative(labelId, xs, (byte*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotScatterNative(labelId, xs, (byte*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (byte*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (byte*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, byte* xs, ref byte ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, ref double values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1662,9 +4291,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, xs, (byte*)pys, count, flags, offset, stride); + PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1675,7 +4304,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* xs, ref byte ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1694,9 +4323,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, xs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); + PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1707,7 +4336,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* xs, ref byte ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, ref double values, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1726,9 +4355,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, xs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1739,7 +4368,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* xs, ref byte ys, int count) + public static void PlotShaded(string labelId, ref double values, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1758,9 +4387,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, xs, (byte*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1771,7 +4400,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* xs, ref byte ys, int count, int offset) + public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1790,9 +4419,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, xs, (byte*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1803,7 +4432,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, byte* xs, ref byte ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1822,9 +4451,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + fixed (double* pvalues = &values) { - PlotScatterNative(pStr0, xs, (byte*)pys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1835,295 +4464,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative(labelId, (byte*)pxs, (byte*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative(labelId, (byte*)pxs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative(labelId, (byte*)pxs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative(labelId, (byte*)pxs, (byte*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref byte xs, ref byte ys, int count, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative(labelId, (byte*)pxs, (byte*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative(labelId, (byte*)pxs, (byte*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref byte xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref byte xs, ref byte ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, ref double values, int count, double yref, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2142,15 +4483,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (byte* pys = &ys) + PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (byte*)pxs, (byte*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2158,7 +4496,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte xs, ref byte ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, ref double values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2177,15 +4515,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (byte* pys = &ys) + PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (byte*)pxs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2193,7 +4528,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte xs, ref byte ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2212,15 +4547,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (byte* pys = &ys) + PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (byte*)pxs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2228,7 +4560,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte xs, ref byte ys, int count) + public static void PlotShaded(string labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2247,15 +4579,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (byte* pys = &ys) + PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (byte*)pxs, (byte*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2263,7 +4592,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte xs, ref byte ys, int count, int offset) + public static void PlotShaded(string labelId, ref double values, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2282,15 +4611,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (byte* pys = &ys) + PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (byte*)pxs, (byte*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2298,7 +4624,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ref byte xs, ref byte ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2317,15 +4643,204 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (byte* pys = &ys) + PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (byte*)pxs, (byte*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double values, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -2334,2702 +4849,181 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[84])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[117])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[84])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[117])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(short))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* xs, short* ys, int count) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, double xstart) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, int offset) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, int offset, int stride) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, sbyte* values, int count) { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags) { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count) + public static void PlotShaded(byte* labelId, sbyte* values, int count, ImPlotShadedFlags flags) { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, int offset) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, double xstart, int offset) { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, int offset) { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, int offset) { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(byte* labelId, sbyte* values, int count, int offset) { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* xs, short* ys, int count) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags, int offset) { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset) + public static void PlotShaded(byte* labelId, sbyte* values, int count, ImPlotShadedFlags flags, int offset) { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset, int stride) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, double xstart, int offset, int stride) { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(string labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(string labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotScatter(string labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(byte* labelId, sbyte* values, int count, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, short* xs, short* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, short* xs, short* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, short* xs, short* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref short xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotScatterNative(labelId, (short*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref short xs, short* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - PlotScatterNative(labelId, (short*)pxs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref short xs, short* ys, int count, ImPlotScatterFlags flags) - { - fixed (short* pxs = &xs) - { - PlotScatterNative(labelId, (short*)pxs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref short xs, short* ys, int count) - { - fixed (short* pxs = &xs) - { - PlotScatterNative(labelId, (short*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref short xs, short* ys, int count, int offset) - { - fixed (short* pxs = &xs) - { - PlotScatterNative(labelId, (short*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref short xs, short* ys, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotScatterNative(labelId, (short*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref short xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref short xs, short* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref short xs, short* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref short xs, short* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref short xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref short xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short xs, short* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref short xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotScatterNative(pStr0, (short*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref short xs, short* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotScatterNative(pStr0, (short*)pxs, ys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref short xs, short* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotScatterNative(pStr0, (short*)pxs, ys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref short xs, short* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotScatterNative(pStr0, (short*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref short xs, short* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotScatterNative(pStr0, (short*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref short xs, short* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotScatterNative(pStr0, (short*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, short* xs, ref short ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotScatterNative(labelId, xs, (short*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, short* xs, ref short ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (short* pys = &ys) - { - PlotScatterNative(labelId, xs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, short* xs, ref short ys, int count, ImPlotScatterFlags flags) - { - fixed (short* pys = &ys) - { - PlotScatterNative(labelId, xs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, short* xs, ref short ys, int count) - { - fixed (short* pys = &ys) - { - PlotScatterNative(labelId, xs, (short*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, short* xs, ref short ys, int count, int offset) - { - fixed (short* pys = &ys) - { - PlotScatterNative(labelId, xs, (short*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, short* xs, ref short ys, int count, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotScatterNative(labelId, xs, (short*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, short* xs, ref short ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (short*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, short* xs, ref short ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, short* xs, ref short ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, short* xs, ref short ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, short* xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, short* xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (short*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, short* xs, ref short ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, short* xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, short* xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, short* xs, ref short ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotScatterNative(pStr0, xs, (short*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, short* xs, ref short ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotScatterNative(pStr0, xs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, short* xs, ref short ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotScatterNative(pStr0, xs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, short* xs, ref short ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotScatterNative(pStr0, xs, (short*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, short* xs, ref short ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotScatterNative(pStr0, xs, (short*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, short* xs, ref short ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotScatterNative(pStr0, xs, (short*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref short xs, ref short ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative(labelId, (short*)pxs, (short*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref short xs, ref short ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative(labelId, (short*)pxs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref short xs, ref short ys, int count, ImPlotScatterFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative(labelId, (short*)pxs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref short xs, ref short ys, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative(labelId, (short*)pxs, (short*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative(labelId, (short*)pxs, (short*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative(labelId, (short*)pxs, (short*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref short xs, ref short ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref short xs, ref short ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref short xs, ref short ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref short xs, ref short ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short xs, ref short ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref short xs, ref short ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative(pStr0, (short*)pxs, (short*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref short xs, ref short ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative(pStr0, (short*)pxs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref short xs, ref short ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative(pStr0, (short*)pxs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref short xs, ref short ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative(pStr0, (short*)pxs, (short*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref short xs, ref short ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative(pStr0, (short*)pxs, (short*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotScatterNative(pStr0, (short*)pxs, (short*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[85])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[85])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count, int offset) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative(labelId, (ushort*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative(labelId, (ushort*)pxs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotScatterFlags flags) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative(labelId, (ushort*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort xs, ushort* ys, int count) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative(labelId, (ushort*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort xs, ushort* ys, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative(labelId, (ushort*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative(labelId, (ushort*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotScatterNative(pStr0, (ushort*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotScatterNative(pStr0, (ushort*)pxs, ys, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort xs, ushort* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotScatterNative(pStr0, (ushort*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotScatterNative(pStr0, (ushort*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort xs, ushort* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotScatterNative(pStr0, (ushort*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotScatterNative(pStr0, (ushort*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative(labelId, xs, (ushort*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative(labelId, xs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotScatterFlags flags) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative(labelId, xs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ushort* xs, ref ushort ys, int count) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative(labelId, xs, (ushort*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ushort* xs, ref ushort ys, int count, int offset) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative(labelId, xs, (ushort*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative(labelId, xs, (ushort*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ushort*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ushort* xs, ref ushort ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ushort* xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ushort*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.014.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.014.cs index 0074e2282..a075894b6 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.014.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.014.cs @@ -22,529 +22,559 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int offset) + public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) + public static void PlotShaded(byte* labelId, sbyte* values, int count, ImPlotShadedFlags flags, int offset, int stride) { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(string labelId, ushort* xs, ref ushort ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotScatterNative(pStr0, xs, (ushort*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ushort* xs, ref ushort ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotScatterNative(pStr0, xs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ushort* xs, ref ushort ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotScatterNative(pStr0, xs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ushort* xs, ref ushort ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotScatterNative(pStr0, xs, (ushort*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ushort* xs, ref ushort ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotScatterNative(pStr0, xs, (ushort*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotScatterNative(pStr0, xs, (ushort*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative(labelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative(labelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotScatterFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative(labelId, (ushort*)pxs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative(labelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative(labelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative(labelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, stride); - } - } + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref ushort xs, ref ushort ys, int count) + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref ushort xs, ref ushort ys, int count, int offset) + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, sbyte* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, sbyte* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, stride); - } - } + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, double xscale) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, sbyte* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -563,23 +593,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - PlotScatterNative(pStr0, (ushort*)pxs, (ushort*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -598,23 +622,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - PlotScatterNative(pStr0, (ushort*)pxs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -633,23 +651,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - PlotScatterNative(pStr0, (ushort*)pxs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref ushort xs, ref ushort ys, int count) + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -668,23 +680,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - PlotScatterNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref ushort xs, ref ushort ys, int count, int offset) + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -703,23 +709,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - PlotScatterNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, sbyte* values, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -738,16 +738,532 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, sbyte* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } @@ -755,199 +1271,739 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[86])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[118])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[86])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[118])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* xs, int* ys, int count) + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* xs, int* ys, int count, int offset) + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* xs, int* ys, int count, int offset, int stride) + public static void PlotShaded(byte* labelId, byte* values, int count, double yref) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, byte* values, int count) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, int offset) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, int offset) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, byte* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count) + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count, int offset) + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, byte* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, byte* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* xs, int* ys, int count) + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -966,7 +2022,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -976,7 +2032,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -995,7 +2051,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(int))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1005,7 +2061,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1024,7 +2080,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1034,7 +2090,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* xs, int* ys, int count) + public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1053,7 +2109,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1063,7 +2119,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* xs, int* ys, int count, int offset) + public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1082,7 +2138,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1092,7 +2148,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, int* xs, int* ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, byte* values, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1111,7 +2167,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1121,241 +2177,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotScatterNative(labelId, (int*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref int xs, int* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - PlotScatterNative(labelId, (int*)pxs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref int xs, int* ys, int count, ImPlotScatterFlags flags) - { - fixed (int* pxs = &xs) - { - PlotScatterNative(labelId, (int*)pxs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref int xs, int* ys, int count) - { - fixed (int* pxs = &xs) - { - PlotScatterNative(labelId, (int*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref int xs, int* ys, int count, int offset) - { - fixed (int* pxs = &xs) - { - PlotScatterNative(labelId, (int*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotScatterNative(labelId, (int*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref int xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref int xs, int* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref int xs, int* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref int xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref int xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref int xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref int xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref int xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, byte* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1374,20 +2196,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int xs, int* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1406,20 +2225,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pxs, ys, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int xs, int* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, byte* values, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1438,20 +2254,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pxs, ys, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int xs, int* ys, int count) + public static void PlotShaded(string labelId, byte* values, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1470,20 +2283,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int xs, int* ys, int count, int offset) + public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1502,20 +2312,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int xs, int* ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1534,254 +2341,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (int*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, int* xs, ref int ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotScatterNative(labelId, xs, (int*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, int* xs, ref int ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (int* pys = &ys) - { - PlotScatterNative(labelId, xs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, int* xs, ref int ys, int count, ImPlotScatterFlags flags) - { - fixed (int* pys = &ys) - { - PlotScatterNative(labelId, xs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, int* xs, ref int ys, int count) - { - fixed (int* pys = &ys) - { - PlotScatterNative(labelId, xs, (int*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, int* xs, ref int ys, int count, int offset) - { - fixed (int* pys = &ys) - { - PlotScatterNative(labelId, xs, (int*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotScatterNative(labelId, xs, (int*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, int* xs, ref int ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (int*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, int* xs, ref int ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, int* xs, ref int ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, int* xs, ref int ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, int* xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (int*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, int* xs, ref int ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, int* xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, int* xs, ref int ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, byte* values, int count, double yref, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1800,20 +2370,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (int*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, int* xs, ref int ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, byte* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1832,20 +2399,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, int* xs, ref int ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1864,20 +2428,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, int* xs, ref int ys, int count) + public static void PlotShaded(string labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1896,20 +2457,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (int*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, int* xs, ref int ys, int count, int offset) + public static void PlotShaded(string labelId, byte* values, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1928,20 +2486,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (int*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, int* xs, ref int ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1960,308 +2515,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (int*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref int xs, ref int ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative(labelId, (int*)pxs, (int*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref int xs, ref int ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative(labelId, (int*)pxs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref int xs, ref int ys, int count, ImPlotScatterFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative(labelId, (int*)pxs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref int xs, ref int ys, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative(labelId, (int*)pxs, (int*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref int xs, ref int ys, int count, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative(labelId, (int*)pxs, (int*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative(labelId, (int*)pxs, (int*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref int xs, ref int ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref int xs, ref int ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref int xs, ref int ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref int xs, ref int ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref int xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref int xs, ref int ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref int xs, ref int ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2280,23 +2544,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys = &ys) - { - PlotScatterNative(pStr0, (int*)pxs, (int*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int xs, ref int ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, byte* values, int count, double yref, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2315,23 +2573,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys = &ys) - { - PlotScatterNative(pStr0, (int*)pxs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int xs, ref int ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, byte* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2350,23 +2602,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys = &ys) - { - PlotScatterNative(pStr0, (int*)pxs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int xs, ref int ys, int count) + public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2385,23 +2631,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys = &ys) - { - PlotScatterNative(pStr0, (int*)pxs, (int*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int xs, ref int ys, int count, int offset) + public static void PlotShaded(string labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2420,23 +2660,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys = &ys) - { - PlotScatterNative(pStr0, (int*)pxs, (int*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref int xs, ref int ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, byte* values, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2455,16 +2689,10 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys = &ys) - { - PlotScatterNative(pStr0, (int*)pxs, (int*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } @@ -2472,199 +2700,739 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[87])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[119])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[87])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[119])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count) + public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count, int offset) + public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) + public static void PlotShaded(byte* labelId, short* values, int count, double yref) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, short* values, int count) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, double yref, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, double yref, int offset) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, int offset) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, double yref, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count) + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count, int offset) + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) + public static void PlotShaded(ref byte labelId, short* values, int count, double yref) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, short* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, uint* xs, uint* ys, int count) + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2683,7 +3451,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2693,7 +3461,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2712,7 +3480,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(uint))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2722,7 +3490,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2741,7 +3509,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2751,7 +3519,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* xs, uint* ys, int count) + public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2770,7 +3538,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2780,7 +3548,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* xs, uint* ys, int count, int offset) + public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2799,7 +3567,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2809,7 +3577,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* xs, uint* ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, short* values, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2828,7 +3596,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2838,241 +3606,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref uint xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative(labelId, (uint*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint xs, uint* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative(labelId, (uint*)pxs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint xs, uint* ys, int count, ImPlotScatterFlags flags) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative(labelId, (uint*)pxs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint xs, uint* ys, int count) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative(labelId, (uint*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint xs, uint* ys, int count, int offset) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative(labelId, (uint*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative(labelId, (uint*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint xs, uint* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref uint xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, short* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3091,20 +3625,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (uint*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint xs, uint* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3123,20 +3654,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (uint*)pxs, ys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint xs, uint* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, short* values, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3155,20 +3683,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (uint*)pxs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint xs, uint* ys, int count) + public static void PlotShaded(string labelId, short* values, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3187,20 +3712,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (uint*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint xs, uint* ys, int count, int offset) + public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3219,20 +3741,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (uint*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint xs, uint* ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3251,254 +3770,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (uint*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, uint* xs, ref uint ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (uint* pys = &ys) - { - PlotScatterNative(labelId, xs, (uint*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, uint* xs, ref uint ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (uint* pys = &ys) - { - PlotScatterNative(labelId, xs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, uint* xs, ref uint ys, int count, ImPlotScatterFlags flags) - { - fixed (uint* pys = &ys) - { - PlotScatterNative(labelId, xs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, uint* xs, ref uint ys, int count) - { - fixed (uint* pys = &ys) - { - PlotScatterNative(labelId, xs, (uint*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, uint* xs, ref uint ys, int count, int offset) - { - fixed (uint* pys = &ys) - { - PlotScatterNative(labelId, xs, (uint*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, uint* xs, ref uint ys, int count, int offset, int stride) - { - fixed (uint* pys = &ys) - { - PlotScatterNative(labelId, xs, (uint*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (uint*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* xs, ref uint ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, uint* xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (uint*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* xs, ref uint ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, uint* xs, ref uint ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, short* values, int count, double yref, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3517,20 +3799,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (uint*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* xs, ref uint ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, short* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3549,20 +3828,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* xs, ref uint ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3581,20 +3857,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* xs, ref uint ys, int count) + public static void PlotShaded(string labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3613,20 +3886,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (uint*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* xs, ref uint ys, int count, int offset) + public static void PlotShaded(string labelId, short* values, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3645,20 +3915,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (uint*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, uint* xs, ref uint ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3677,308 +3944,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (uint*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative(labelId, (uint*)pxs, (uint*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative(labelId, (uint*)pxs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotScatterFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative(labelId, (uint*)pxs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint xs, ref uint ys, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative(labelId, (uint*)pxs, (uint*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint xs, ref uint ys, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative(labelId, (uint*)pxs, (uint*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative(labelId, (uint*)pxs, (uint*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint xs, ref uint ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref uint xs, ref uint ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3997,23 +3973,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (uint* pys = &ys) - { - PlotScatterNative(pStr0, (uint*)pxs, (uint*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint xs, ref uint ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, short* values, int count, double yref, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4032,23 +4002,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (uint* pys = &ys) - { - PlotScatterNative(pStr0, (uint*)pxs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint xs, ref uint ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, short* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4067,23 +4031,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (uint* pys = &ys) - { - PlotScatterNative(pStr0, (uint*)pxs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint xs, ref uint ys, int count) + public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4102,23 +4060,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (uint* pys = &ys) - { - PlotScatterNative(pStr0, (uint*)pxs, (uint*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint xs, ref uint ys, int count, int offset) + public static void PlotShaded(string labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4137,23 +4089,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (uint* pys = &ys) - { - PlotScatterNative(pStr0, (uint*)pxs, (uint*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref uint xs, ref uint ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, short* values, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4172,16 +4118,10 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (uint* pys = &ys) - { - PlotScatterNative(pStr0, (uint*)pxs, (uint*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } @@ -4189,199 +4129,739 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[88])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[120])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[88])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[120])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(long))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, long* xs, long* ys, int count) + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, long* xs, long* ys, int count, int offset) + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, long* xs, long* ys, int count, int offset, int stride) + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, ushort* values, int count) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, int offset) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, int offset) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count) + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count, int offset) + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, ushort* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, long* xs, long* ys, int count) + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4400,7 +4880,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4410,7 +4890,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4429,7 +4909,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(long))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4439,7 +4919,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4458,7 +4938,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4468,7 +4948,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, long* xs, long* ys, int count) + public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4487,7 +4967,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4497,7 +4977,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, long* xs, long* ys, int count, int offset) + public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4516,7 +4996,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4526,7 +5006,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, long* xs, long* ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, ushort* values, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4545,481 +5025,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotScatterNative(labelId, (long*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long xs, long* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - PlotScatterNative(labelId, (long*)pxs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long xs, long* ys, int count, ImPlotScatterFlags flags) - { - fixed (long* pxs = &xs) - { - PlotScatterNative(labelId, (long*)pxs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long xs, long* ys, int count) - { - fixed (long* pxs = &xs) - { - PlotScatterNative(labelId, (long*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long xs, long* ys, int count, int offset) - { - fixed (long* pxs = &xs) - { - PlotScatterNative(labelId, (long*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotScatterNative(labelId, (long*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long xs, long* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long xs, long* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotScatterNative(pStr0, (long*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long xs, long* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotScatterNative(pStr0, (long*)pxs, ys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long xs, long* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotScatterNative(pStr0, (long*)pxs, ys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotScatterNative(pStr0, (long*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long xs, long* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotScatterNative(pStr0, (long*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long xs, long* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotScatterNative(pStr0, (long*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* xs, ref long ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotScatterNative(labelId, xs, (long*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* xs, ref long ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (long* pys = &ys) - { - PlotScatterNative(labelId, xs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* xs, ref long ys, int count, ImPlotScatterFlags flags) - { - fixed (long* pys = &ys) - { - PlotScatterNative(labelId, xs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* xs, ref long ys, int count) - { - fixed (long* pys = &ys) - { - PlotScatterNative(labelId, xs, (long*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.015.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.015.cs index 029c39684..e4a95237a 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.015.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.015.cs @@ -22,197 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(byte* labelId, long* xs, ref long ys, int count, int offset) - { - fixed (long* pys = &ys) - { - PlotScatterNative(labelId, xs, (long*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotScatterNative(labelId, xs, (long*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* xs, ref long ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (long*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* xs, ref long ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* xs, ref long ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* xs, ref long ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (long*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* xs, ref long ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, long* xs, ref long ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, ushort* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -231,20 +41,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pys = &ys) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (long*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, long* xs, ref long ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -263,20 +70,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pys = &ys) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, long* xs, ref long ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -295,20 +99,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pys = &ys) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, long* xs, ref long ys, int count) + public static void PlotShaded(string labelId, ushort* values, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -327,20 +128,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pys = &ys) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (long*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, long* xs, ref long ys, int count, int offset) + public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -359,20 +157,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pys = &ys) + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (long*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, long* xs, ref long ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -391,308 +186,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pys = &ys) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (long*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref long xs, ref long ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative(labelId, (long*)pxs, (long*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long xs, ref long ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative(labelId, (long*)pxs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long xs, ref long ys, int count, ImPlotScatterFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative(labelId, (long*)pxs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long xs, ref long ys, int count) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative(labelId, (long*)pxs, (long*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative(labelId, (long*)pxs, (long*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative(labelId, (long*)pxs, (long*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long xs, ref long ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long xs, ref long ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long xs, ref long ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long xs, ref long ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long xs, ref long ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref long xs, ref long ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, ushort* values, int count, double yref, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -711,23 +215,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (long* pys = &ys) - { - PlotScatterNative(pStr0, (long*)pxs, (long*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref long xs, ref long ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, ushort* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -746,23 +244,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (long* pys = &ys) - { - PlotScatterNative(pStr0, (long*)pxs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref long xs, ref long ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -781,23 +273,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (long* pys = &ys) - { - PlotScatterNative(pStr0, (long*)pxs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref long xs, ref long ys, int count) + public static void PlotShaded(string labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -816,23 +302,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (long* pys = &ys) - { - PlotScatterNative(pStr0, (long*)pxs, (long*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref long xs, ref long ys, int count, int offset) + public static void PlotShaded(string labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -851,23 +331,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (long* pys = &ys) - { - PlotScatterNative(pStr0, (long*)pxs, (long*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref long xs, ref long ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -886,16 +360,184 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (long* pys = &ys) + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (long*)pxs, (long*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ushort* values, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ushort* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } @@ -903,199 +545,739 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[89])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[121])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[89])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[121])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count) + public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count, int offset) + public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + public static void PlotShaded(byte* labelId, int* values, int count, double yref) { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, int* values, int count) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, double yref, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, double yref, int offset) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, int offset) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, double yref, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, int* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count) + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + public static void PlotShaded(ref byte labelId, int* values, int count, double yref) { fixed (byte* plabelId = &labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, int* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count) + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref) { fixed (byte* plabelId = labelId) { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1114,7 +1296,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1124,7 +1306,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1143,7 +1325,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1153,7 +1335,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1172,7 +1354,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1182,7 +1364,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count) + public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1201,7 +1383,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1211,7 +1393,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count, int offset) + public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1230,7 +1412,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1240,7 +1422,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, int* values, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1259,7 +1441,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1269,241 +1451,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative(labelId, (ulong*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative(labelId, (ulong*)pxs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotScatterFlags flags) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative(labelId, (ulong*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong xs, ulong* ys, int count) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative(labelId, (ulong*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative(labelId, (ulong*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative(labelId, (ulong*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, int* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1522,20 +1470,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (ulong*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref ulong xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1554,20 +1499,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (ulong*)pxs, ys, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref ulong xs, ulong* ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, int* values, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1586,20 +1528,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (ulong*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref ulong xs, ulong* ys, int count) + public static void PlotShaded(string labelId, int* values, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1618,20 +1557,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (ulong*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref ulong xs, ulong* ys, int count, int offset) + public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1650,20 +1586,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (ulong*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1682,254 +1615,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, (ulong*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative(labelId, xs, (ulong*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative(labelId, xs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotScatterFlags flags) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative(labelId, xs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* xs, ref ulong ys, int count) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative(labelId, xs, (ulong*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative(labelId, xs, (ulong*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative(labelId, xs, (ulong*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ulong*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* xs, ref ulong ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ulong*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ulong* xs, ref ulong ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, int* values, int count, double yref, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1948,20 +1644,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (ulong*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ulong* xs, ref ulong ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, int* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1980,20 +1673,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ulong* xs, ref ulong ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2012,20 +1702,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ulong* xs, ref ulong ys, int count) + public static void PlotShaded(string labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2044,20 +1731,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (ulong*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ulong* xs, ref ulong ys, int count, int offset) + public static void PlotShaded(string labelId, int* values, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2076,20 +1760,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (ulong*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2108,308 +1789,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotScatterNative(pStr0, xs, (ulong*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative(labelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative(labelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotScatterFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative(labelId, (ulong*)pxs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative(labelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative(labelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(byte* labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative(labelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ref byte labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotScatter(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotScatterFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2428,23 +1818,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* pys = &ys) - { - PlotScatterNative(pStr0, (ulong*)pxs, (ulong*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotScatterFlags flags, int offset) + public static void PlotShaded(string labelId, int* values, int count, double yref, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2463,23 +1847,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* pys = &ys) - { - PlotScatterNative(pStr0, (ulong*)pxs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotScatterFlags flags) + public static void PlotShaded(string labelId, int* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2498,23 +1876,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* pys = &ys) - { - PlotScatterNative(pStr0, (ulong*)pxs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref ulong xs, ref ulong ys, int count) + public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2533,23 +1905,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* pys = &ys) - { - PlotScatterNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref ulong xs, ref ulong ys, int count, int offset) + public static void PlotShaded(string labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2568,23 +1934,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* pys = &ys) - { - PlotScatterNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotScatter(string labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, int* values, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2603,16 +1963,10 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* pys = &ys) - { - PlotScatterNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } @@ -2620,559 +1974,739 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[90])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[122])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[90])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[122])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart) + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart) { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, double xscale) + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count) + public static void PlotShaded(byte* labelId, uint* values, int count, double yref) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, uint* values, int count) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, int offset) + public static void PlotShaded(byte* labelId, uint* values, int count, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, int offset) + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, int offset) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, int offset) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, int offset) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotShaded(byte* labelId, uint* values, int count, int offset) { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, int offset, int stride) + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, int offset, int stride) + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, uint* values, int count, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* values, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, int offset, int stride) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* values, int count, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart) + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale) + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count) + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, uint* values, int count) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, int offset) + public static void PlotShaded(ref byte labelId, uint* values, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, int offset) + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotShaded(ref byte labelId, uint* values, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, int offset, int stride) + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, int offset, int stride) + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, uint* values, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* values, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, int offset) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, double xstart, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* values, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3191,7 +2725,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3201,7 +2735,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3220,7 +2754,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3230,7 +2764,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3249,7 +2783,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3259,7 +2793,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart) + public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3278,7 +2812,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3288,7 +2822,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, double xscale) + public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3307,7 +2841,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3317,7 +2851,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count) + public static void PlotShaded(string labelId, uint* values, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3336,7 +2870,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3346,7 +2880,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, uint* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3365,7 +2899,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3375,7 +2909,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3394,7 +2928,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3404,7 +2938,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(string labelId, uint* values, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3423,7 +2957,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3433,7 +2967,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, double xscale, int offset) + public static void PlotShaded(string labelId, uint* values, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3452,7 +2986,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3462,7 +2996,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, int offset) + public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3481,7 +3015,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3491,7 +3025,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3510,7 +3044,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3520,7 +3054,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, uint* values, int count, double yref, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3539,7 +3073,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3549,7 +3083,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotShaded(string labelId, uint* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3568,7 +3102,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3578,7 +3112,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, double xscale, int offset, int stride) + public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3597,7 +3131,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3607,7 +3141,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, int offset, int stride) + public static void PlotShaded(string labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3626,7 +3160,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3636,7 +3170,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, uint* values, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3655,7 +3189,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3665,7 +3199,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* values, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3684,7 +3218,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3694,709 +3228,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count, ImPlotStairsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart, int offset) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, int offset) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count, int offset) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4415,20 +3247,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, uint* values, int count, double yref, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4447,20 +3276,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, uint* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4479,20 +3305,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart) + public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4511,20 +3334,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref float values, int count, double xscale) + public static void PlotShaded(string labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4543,20 +3363,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref float values, int count) + public static void PlotShaded(string labelId, uint* values, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4575,397 +3392,10 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref float values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref float values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref float values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref float values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref float values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref float values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref float values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } @@ -4973,53 +3403,1626 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[91])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[123])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[91])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[123])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart) + public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart) { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, double* values, int count, double xscale) + public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, double yref) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, double yref, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, double yref, int offset) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, int offset) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, double yref, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, double xstart) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, double xstart, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotShadedNative(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[124])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[124])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, int offset) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, int offset) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, int offset, int stride) + { + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.016.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.016.cs index bc4aa8606..3710e13f2 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.016.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.016.cs @@ -22,507 +22,543 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, double* values, int count) + public static void PlotShaded(byte* labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* values, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* values, int count, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart) + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale) + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count) + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, ulong* values, int count) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, int offset) + public static void PlotShaded(ref byte labelId, ulong* values, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count, int offset) + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotShaded(ref byte labelId, ulong* values, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, int offset, int stride) + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count, int offset, int stride) + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* values, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, double xstart) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* values, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -541,7 +577,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -551,7 +587,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -570,7 +606,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -580,7 +616,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -599,7 +635,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -609,7 +645,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart) + public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart) { byte* pStr0 = null; int pStrSize0 = 0; @@ -628,7 +664,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -638,7 +674,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, double xscale) + public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -657,7 +693,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -667,7 +703,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count) + public static void PlotShaded(string labelId, ulong* values, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -686,7 +722,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -696,7 +732,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, ulong* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -715,7 +751,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -725,7 +761,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -744,7 +780,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -754,7 +790,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(string labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -773,7 +809,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -783,7 +819,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, double xscale, int offset) + public static void PlotShaded(string labelId, ulong* values, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -802,7 +838,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -812,7 +848,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, int offset) + public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -831,7 +867,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -841,7 +877,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -860,7 +896,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -870,7 +906,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, ulong* values, int count, double yref, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -889,7 +925,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -899,7 +935,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotShaded(string labelId, ulong* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -918,7 +954,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -928,7 +964,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, double xscale, int offset, int stride) + public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -947,7 +983,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -957,7 +993,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, int offset, int stride) + public static void PlotShaded(string labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -976,7 +1012,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -986,7 +1022,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1005,7 +1041,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1015,7 +1051,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* values, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1034,7 +1070,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1044,709 +1080,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count, ImPlotStairsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart, int offset) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, int offset) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count, int offset) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1765,9 +1099,1372 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* values, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotShadedNative(byte* labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[125])(labelId, xs, ys, count, yref, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[125])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys, int count) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref, int offset) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, int offset) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, double yref) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys, count, yref, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys, count, yref, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref, int offset) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, int offset) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, double yref) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1778,7 +2475,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1797,9 +2494,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pxs = &xs) { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); + PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1810,7 +2507,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1829,9 +2526,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pxs = &xs) { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1842,7 +2539,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart) + public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1861,9 +2558,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pxs = &xs) { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1874,7 +2571,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count, double xscale) + public static void PlotShaded(string labelId, ref float xs, float* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1893,9 +2590,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pxs = &xs) { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1906,7 +2603,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count) + public static void PlotShaded(string labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1925,9 +2622,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pxs = &xs) { - PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1938,7 +2635,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1957,9 +2654,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pxs = &xs) { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1970,7 +2667,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, ref float xs, float* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1989,9 +2686,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pxs = &xs) { - PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2002,7 +2699,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(string labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2021,9 +2718,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pxs = &xs) { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2034,7 +2731,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count, double xscale, int offset) + public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2053,9 +2750,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pxs = &xs) { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2066,7 +2763,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count, int offset) + public static void PlotShaded(string labelId, ref float xs, float* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2085,9 +2782,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pxs = &xs) { - PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2098,7 +2795,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2117,9 +2814,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pxs = &xs) { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); + PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2130,7 +2827,475 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, xs, (float*)pys, count, yref, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, xs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, xs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref, int offset) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, int offset) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, double yref) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2149,9 +3314,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pys = &ys) { - PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + PlotShadedNative(pStr0, xs, (float*)pys, count, yref, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2162,7 +3327,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2181,9 +3346,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pys = &ys) { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, xs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2194,7 +3359,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count, double xscale, int offset, int stride) + public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2213,9 +3378,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pys = &ys) { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, xs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2226,7 +3391,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count, int offset, int stride) + public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2245,9 +3410,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pys = &ys) { - PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2258,7 +3423,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, float* xs, ref float ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2277,9 +3442,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pys = &ys) { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); + PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2290,7 +3455,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref double values, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2309,9 +3474,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (float* pys = &ys) { - PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2319,2711 +3484,1542 @@ namespace Dalamud.Bindings.ImPlot } } + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double yref) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[92])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[126])(labelId, xs, ys, count, yref, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[92])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[126])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart) + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref) { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale) + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* values, int count) + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, int offset) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, int offset) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, int offset) + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* values, int count, int offset) + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, int offset, int stride) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, byte* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, byte* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart) + public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale) + public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* values, int count) + public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, int offset) + public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* values, int count, int offset) + public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, byte* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, double yref) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, double yref, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, int offset) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, double yref, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, byte* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, double xscale, double xstart) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, double xscale) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, ImPlotStairsFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, double xscale, double xstart, int offset) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, double xscale, int offset) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, int offset) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, double xscale, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative(labelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStairsNative(pStr0, (byte*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[93])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[93])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, double xscale) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, short* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, short* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.017.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.017.cs index 2f93edaa4..602ccfd0e 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.017.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.017.cs @@ -22,205 +22,29 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, short* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -239,7 +63,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -249,7 +73,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -268,7 +92,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -278,7 +102,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -297,7 +121,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -307,7 +131,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart) + public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -326,7 +150,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -336,7 +160,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* values, int count, double xscale) + public static void PlotShaded(string labelId, double* xs, double* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -355,7 +179,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -365,7 +189,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* values, int count) + public static void PlotShaded(string labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -384,7 +208,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -394,7 +218,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -413,7 +237,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -423,7 +247,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, double* xs, double* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -442,7 +266,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -452,7 +276,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(string labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -471,7 +295,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -481,7 +305,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* values, int count, double xscale, int offset) + public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -500,7 +324,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -510,7 +334,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* values, int count, int offset) + public static void PlotShaded(string labelId, double* xs, double* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -529,7 +353,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -539,7 +363,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -558,7 +382,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -568,7 +392,475 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* values, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys, count, yref, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys, count, yref, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref, int offset) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, int offset) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, double yref) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -587,885 +879,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pxs = &xs) { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, short* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, short* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, short* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, double xscale, double xstart) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, double xscale) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, ImPlotStairsFlags flags) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, double xscale, double xstart, int offset) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, double xscale, int offset) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, int offset) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, double xscale, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotStairsNative(labelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref short values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStairsNative(pStr0, (short*)pvalues, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1476,7 +892,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1495,9 +911,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, (short*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(short))); + PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1508,7 +924,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1527,9 +943,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, (short*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); + PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1540,7 +956,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count, double xscale, double xstart) + public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1559,9 +975,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, (short*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1572,7 +988,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count, double xscale) + public static void PlotShaded(string labelId, ref double xs, double* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1591,9 +1007,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, (short*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1604,7 +1020,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count) + public static void PlotShaded(string labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1623,9 +1039,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1636,7 +1052,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1655,9 +1071,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, (short*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); + PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1668,7 +1084,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, ref double xs, double* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1687,9 +1103,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); + PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1700,7 +1116,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(string labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1719,9 +1135,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, (short*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1732,7 +1148,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count, double xscale, int offset) + public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1751,9 +1167,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, (short*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1764,7 +1180,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count, int offset) + public static void PlotShaded(string labelId, ref double xs, double* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1783,9 +1199,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1796,7 +1212,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1815,9 +1231,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, (short*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); + PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1828,7 +1244,475 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, xs, (double*)pys, count, yref, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, xs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, xs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref, int offset) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, int offset) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, double yref) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1847,9 +1731,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pys = &ys) { - PlotStairsNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + PlotShadedNative(pStr0, xs, (double*)pys, count, yref, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1860,7 +1744,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1879,9 +1763,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pys = &ys) { - PlotStairsNative(pStr0, (short*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, xs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1892,7 +1776,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count, double xscale, int offset, int stride) + public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1911,9 +1795,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pys = &ys) { - PlotStairsNative(pStr0, (short*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, xs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1924,7 +1808,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count, int offset, int stride) + public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1943,9 +1827,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pys = &ys) { - PlotStairsNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1956,7 +1840,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, double* xs, ref double ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1975,9 +1859,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pys = &ys) { - PlotStairsNative(pStr0, (short*)pvalues, count, xscale, (double)(0), flags, offset, stride); + PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1988,7 +1872,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short values, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2007,9 +1891,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (double* pys = &ys) { - PlotStairsNative(pStr0, (short*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2017,563 +1901,1571 @@ namespace Dalamud.Bindings.ImPlot } } + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* xs, ref double ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* xs, ref double ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double yref) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[94])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[127])(labelId, xs, ys, count, yref, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[94])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[127])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); + PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, double yref) { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* values, int count) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, double yref, int offset) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, int offset) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, double yref, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* values, int count, int offset) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ushort* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, double yref) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* values, int count) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, double yref, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, int offset) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, double yref, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, int offset) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double yref) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double yref, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, int offset) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double yref, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2592,7 +3484,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2602,7 +3494,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2621,7 +3513,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2631,7 +3523,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2650,7 +3542,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2660,7 +3552,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2679,7 +3571,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2689,7 +3581,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* values, int count, double xscale) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2708,7 +3600,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2718,7 +3610,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* values, int count) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2737,7 +3629,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2747,7 +3639,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, double yref, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2766,7 +3658,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2776,7 +3668,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2795,7 +3687,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2805,7 +3697,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2824,7 +3716,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2834,7 +3726,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, int offset) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, double yref, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2853,7 +3745,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2863,7 +3755,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* values, int count, int offset) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2882,7 +3774,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2892,7 +3784,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2911,2022 +3803,390 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ushort* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, double xscale, double xstart) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, double xscale) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, ImPlotStairsFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, double xscale, double xstart, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, double xscale, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, double xscale, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative(labelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStairsNative(pStr0, (ushort*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[95])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[128])(labelId, xs, ys, count, yref, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[95])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[128])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref) { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* values, int count, double xscale) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* values, int count) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref, int offset) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, int offset) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, int offset) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* values, int count, int offset) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, int* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, int* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* values, int count) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, int offset) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* values, int count, int offset) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, int* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double yref) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double yref, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, int offset) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double yref, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, int* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4945,7 +4205,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4955,7 +4215,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4974,7 +4234,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4984,7 +4244,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5003,7 +4263,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -5013,7 +4273,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart) + public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5032,7 +4292,728 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* xs, byte* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotShadedNative(byte* labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[129])(labelId, xs, ys, count, yref, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[129])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys, int count) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref, int offset) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, int offset) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, double yref) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.018.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.018.cs index 7abba4b72..a60c3b1a4 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.018.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.018.cs @@ -22,7 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, int* values, int count, double xscale) + public static void PlotShaded(string labelId, short* xs, short* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,7 +41,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -51,7 +51,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, int* values, int count) + public static void PlotShaded(string labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -70,7 +70,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -80,7 +80,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, int* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -99,7 +99,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -109,7 +109,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, int* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, short* xs, short* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -128,7 +128,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -138,7 +138,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(string labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -157,7 +157,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -167,7 +167,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, int* values, int count, double xscale, int offset) + public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -186,7 +186,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -196,7 +196,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, int* values, int count, int offset) + public static void PlotShaded(string labelId, short* xs, short* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -215,7 +215,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -225,7 +225,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -244,2022 +244,390 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, int* values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, int* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, int* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, int* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, double xscale, double xstart) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, double xscale) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, ImPlotStairsFlags flags) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, double xscale, double xstart, int offset) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, double xscale, int offset) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, int offset) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, double xscale, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotStairsNative(labelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStairsNative(pStr0, (int*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[96])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[130])(labelId, xs, ys, count, yref, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[96])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[130])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref) { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* values, int count) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, int offset) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, int offset) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, int offset) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* values, int count, int offset) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, uint* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, uint* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, uint* values, int count) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, uint* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, int offset) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, uint* values, int count, int offset) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, uint* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, uint* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double yref) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double yref, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double yref, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2278,7 +646,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2288,7 +656,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2307,7 +675,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2317,7 +685,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2336,7 +704,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2346,7 +714,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2365,7 +733,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2375,7 +743,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* values, int count, double xscale) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2394,7 +762,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2404,7 +772,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* values, int count) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2423,7 +791,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2433,7 +801,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2452,7 +820,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2462,7 +830,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2481,7 +849,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2491,7 +859,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2510,7 +878,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2520,7 +888,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* values, int count, double xscale, int offset) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2539,7 +907,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2549,7 +917,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* values, int count, int offset) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2568,7 +936,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2578,7 +946,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2597,2022 +965,390 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, uint* values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, uint* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, uint* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, uint* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, double xscale, double xstart) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, double xscale) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, ImPlotStairsFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, double xscale, double xstart, int offset) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, double xscale, int offset) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, int offset) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, double xscale, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative(labelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStairsNative(pStr0, (uint*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[97])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[131])(labelId, xs, ys, count, yref, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[97])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[131])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart) + public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref) { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, long* values, int count, double xscale) + public static void PlotShaded(byte* labelId, int* xs, int* ys, int count) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, long* values, int count) + public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref, int offset) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, long* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, int offset) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, int offset) + public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, long* values, int count, int offset) + public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, int offset, int stride) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, long* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart) + public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale) + public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, long* values, int count) + public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, long* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, int offset) + public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, long* values, int count, int offset) + public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, long* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, double yref) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, double yref, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, int offset) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, double yref, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4631,7 +1367,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4641,7 +1377,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4660,7 +1396,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4670,7 +1406,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4689,7 +1425,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4699,7 +1435,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart) + public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4718,7 +1454,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4728,7 +1464,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* values, int count, double xscale) + public static void PlotShaded(string labelId, int* xs, int* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4747,7 +1483,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4757,7 +1493,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* values, int count) + public static void PlotShaded(string labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4776,7 +1512,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4786,7 +1522,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4805,7 +1541,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4815,7 +1551,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, int* xs, int* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4834,7 +1570,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4844,7 +1580,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(string labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4863,7 +1599,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4873,7 +1609,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* values, int count, double xscale, int offset) + public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4892,7 +1628,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4902,7 +1638,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* values, int count, int offset) + public static void PlotShaded(string labelId, int* xs, int* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4921,7 +1657,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4931,7 +1667,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4950,7 +1686,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4960,7 +1696,380 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* values, int count, ImPlotStairsFlags flags, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotShadedNative(byte* labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[132])(labelId, xs, ys, count, yref, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[132])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref, int offset) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, int offset) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double yref) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4979,7 +2088,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4989,7 +2098,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5008,7 +2117,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -5018,7 +2127,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* values, int count, double xscale, int offset, int stride) + public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5037,11 +2146,2901 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* xs, uint* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotShadedNative(byte* labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[133])(labelId, xs, ys, count, yref, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[133])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys, int count) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref, int offset) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, int offset) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, double yref) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotShadedNative(byte* labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[134])(labelId, xs, ys, count, yref, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[134])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref, int offset) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, int offset) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double yref) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double yref, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double yref, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotShadedNative(byte* labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[135])(labelId, xs, ys1, ys2, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[135])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, float* ys2, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, float* ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, float* ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count, int offset) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, float* ys2, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, float* ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, float* ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count, int offset) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count, int offset, int stride) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, float* ys2, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, float* ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, float* ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys1 = &ys1) + { + PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys1 = &ys1) + { + PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys1 = &ys1) + { + PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys1 = &ys1) + { + PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys1 = &ys1) + { + PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.019.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.019.cs index 7fec67ede..d219f078e 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.019.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.019.cs @@ -22,7 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* values, int count, int offset, int stride) + public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,798 +41,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys1 = &ys1) { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, long* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, double xscale, double xstart) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, double xscale) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, ImPlotStairsFlags flags) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, double xscale, double xstart, int offset) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, double xscale, int offset) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, int offset) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, double xscale, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotStairsNative(labelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref long values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStairsNative(pStr0, (long*)pvalues, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -843,7 +54,295 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, float* ys2, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, float* ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, float* ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -862,9 +361,453 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pvalues = &values) + fixed (float* pxs = &xs) { - PlotStairsNative(pStr0, (long*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(long))); + fixed (float* pys1 = &ys1) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count, int offset) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count, int offset, int stride) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, ref float ys2, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, ref float ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, ref float ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -875,7 +818,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -894,9 +837,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pvalues = &values) + fixed (float* pys2 = &ys2) { - PlotStairsNative(pStr0, (long*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -907,7 +850,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count, double xscale, double xstart) + public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -926,9 +869,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pvalues = &values) + fixed (float* pys2 = &ys2) { - PlotStairsNative(pStr0, (long*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -939,7 +882,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count, double xscale) + public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -958,9 +901,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pvalues = &values) + fixed (float* pys2 = &ys2) { - PlotStairsNative(pStr0, (long*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -971,7 +914,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count) + public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -990,9 +933,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pvalues = &values) + fixed (float* pys2 = &ys2) { - PlotStairsNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1003,7 +946,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1022,9 +965,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pvalues = &values) + fixed (float* pys2 = &ys2) { - PlotStairsNative(pStr0, (long*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1035,31 +978,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys2 = &ys2) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStairsNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, stride); } } } @@ -1067,31 +992,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys2 = &ys2) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStairsNative(pStr0, (long*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); } } } @@ -1099,31 +1006,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count, double xscale, int offset) + public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys2 = &ys2) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStairsNative(pStr0, (long*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); } } } @@ -1131,31 +1020,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count, int offset) + public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys2 = &ys2) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStairsNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -1163,31 +1034,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys2 = &ys2) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStairsNative(pStr0, (long*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); } } } @@ -1195,31 +1048,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys2 = &ys2) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStairsNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); } } } @@ -1227,31 +1062,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count, double xscale, double xstart, int offset, int stride) + public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pxs = &xs) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStairsNative(pStr0, (long*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, stride); + } } } } @@ -1259,31 +1079,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count, double xscale, int offset, int stride) + public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pxs = &xs) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStairsNative(pStr0, (long*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + } } } } @@ -1291,31 +1096,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count, int offset, int stride) + public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pxs = &xs) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStairsNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + } } } } @@ -1323,31 +1113,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pxs = &xs) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStairsNative(pStr0, (long*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } } } } @@ -1355,7 +1130,143 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref long values, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, ref float ys2, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, ref float ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, ref float ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1374,12 +1285,1258 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pvalues = &values) + fixed (float* pxs = &xs) { - PlotStairsNative(pStr0, (long*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count, int offset) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count, int offset, int stride) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, ref float ys2, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, ref float ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, ref float ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, ref float ys2, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys1 = &ys1) + { + fixed (float* pys2 = &ys2) + { + PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -1388,559 +2545,199 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[98])(labelId, values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[136])(labelId, xs, ys1, ys2, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[98])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[136])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart) + public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count) { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale) + public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, int offset) { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ulong* values, int count) + public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, int offset, int stride) { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* values, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* values, int count, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart) + public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale) + public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ulong* values, int count) + public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, double* ys2, int count) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, double* ys2, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, double* ys2, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1959,7 +2756,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1969,7 +2766,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1988,7 +2785,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1998,7 +2795,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2017,7 +2814,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2027,7 +2824,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart) + public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2046,7 +2843,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2056,7 +2853,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ulong* values, int count, double xscale) + public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2075,7 +2872,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2085,7 +2882,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ulong* values, int count) + public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2104,7 +2901,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2114,7 +2911,241 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count, int offset) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, double* ys2, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, double* ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, double* ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2133,1059 +3164,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pxs = &xs) { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, double xscale, double xstart) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, double xscale) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, ImPlotStairsFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, double xscale, double xstart, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, double xscale, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, double xscale, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative(labelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStairsNative(pStr0, (ulong*)pvalues, count, xscale, xstart, flags, offset, stride); + PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3196,7 +3177,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ulong values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3215,9 +3196,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, (ulong*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3228,7 +3209,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ulong values, int count, double xscale, double xstart, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3247,9 +3228,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, (ulong*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3260,7 +3241,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ulong values, int count, double xscale, double xstart) + public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3279,9 +3260,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, (ulong*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3292,7 +3273,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ulong values, int count, double xscale) + public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3311,9 +3292,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3324,7 +3305,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ulong values, int count) + public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3343,9 +3324,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3356,584 +3337,241 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ulong values, int count, double xscale, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pys1 = &ys1) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStairsNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ulong values, int count, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pys1 = &ys1) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStairsNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ulong values, int count, double xscale, double xstart, int offset) + public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pys1 = &ys1) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStairsNative(pStr0, (ulong*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ulong values, int count, double xscale, int offset) + public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pys1 = &ys1) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStairsNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ulong values, int count, int offset) + public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pys1 = &ys1) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStairsNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ulong values, int count, double xscale, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pys1 = &ys1) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStairsNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ulong values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStairsNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStairsNative(pStr0, (ulong*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStairsNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStairsNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStairsNative(pStr0, (ulong*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStairsNative(pStr0, (ulong*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[99])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[99])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, float* xs, float* ys, int count) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, float* xs, float* ys, int count, int offset) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, float* xs, float* ys, int count, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, offset, stride); + } } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); + } } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + } } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count) + public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count, int offset) + public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) + public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, offset, stride); + } } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); + } } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + } } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* xs, float* ys, int count) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, double* ys2, int count) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, double* ys2, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, double* ys2, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } } } /// /// To be documented. /// - public static void PlotStairs(string labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3952,417 +3590,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys1 = &ys1) { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, float* xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, float* xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, float* xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotStairsNative(labelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotStairsNative(labelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags) - { - fixed (float* pxs = &xs) - { - PlotStairsNative(labelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count) - { - fixed (float* pxs = &xs) - { - PlotStairsNative(labelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotStairsNative(labelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotStairsNative(labelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStairsNative(pStr0, (float*)pxs, ys, count, flags, offset, stride); + PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4373,7 +3603,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4392,9 +3622,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pys1 = &ys1) { - PlotStairsNative(pStr0, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); + PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4405,7 +3635,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4424,9 +3654,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pys1 = &ys1) { - PlotStairsNative(pStr0, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); + PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4437,7 +3667,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref float xs, float* ys, int count) + public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4456,9 +3686,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pys1 = &ys1) { - PlotStairsNative(pStr0, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4469,7 +3699,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref float xs, float* ys, int count, int offset) + public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4488,9 +3718,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pys1 = &ys1) { - PlotStairsNative(pStr0, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4501,7 +3731,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref float xs, float* ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4520,9 +3750,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pys1 = &ys1) { - PlotStairsNative(pStr0, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4533,79 +3763,100 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative(labelId, xs, (float*)pys, count, flags, offset, stride); + fixed (double* pys1 = &ys1) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, stride); + } } } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative(labelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); + } } } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative(labelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + } } } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count) + public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative(labelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } } } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count, int offset) + public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count, int offset) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative(labelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } } } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) + public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count, int offset, int stride) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative(labelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + fixed (double* pys1 = &ys1) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, stride); + } } } } @@ -4613,13 +3864,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); + } } } } @@ -4627,13 +3881,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + } } } } @@ -4641,13 +3898,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count) + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count) { fixed (byte* plabelId = &labelId) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } } } } @@ -4655,13 +3915,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count, int offset) + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } } } } @@ -4669,13 +3932,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } } } } @@ -4683,13 +3949,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, stride); + } } } } @@ -4697,13 +3966,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); + } } } } @@ -4711,13 +3983,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + } } } } @@ -4725,13 +4000,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* xs, ref float ys, int count) + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, double* ys2, int count) { fixed (byte* plabelId = labelId) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } } } } @@ -4739,13 +4017,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, double* ys2, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } } } } @@ -4753,13 +4034,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, double* ys2, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + fixed (double* pys1 = &ys1) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } } } } @@ -4767,7 +4051,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4786,12 +4070,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, xs, (float*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys1 = &ys1) { - Utils.Free(pStr0); + PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4799,7 +4086,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4818,12 +4105,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys1 = &ys1) { - Utils.Free(pStr0); + PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4831,7 +4121,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4850,12 +4140,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys1 = &ys1) { - Utils.Free(pStr0); + PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4863,7 +4156,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* xs, ref float ys, int count) + public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4882,12 +4175,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, xs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys1 = &ys1) { - Utils.Free(pStr0); + PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4895,7 +4191,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* xs, ref float ys, int count, int offset) + public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4914,12 +4210,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys1 = &ys1) { - Utils.Free(pStr0); + PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4927,7 +4226,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, float* xs, ref float ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4946,9 +4245,278 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (double* pxs = &xs) { - PlotStairsNative(pStr0, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + fixed (double* pys1 = &ys1) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count, int offset) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count, int offset, int stride) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, ref double ys2, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, ref double ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, ref double ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4959,13 +4527,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (float* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4973,13 +4559,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (float* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4987,13 +4591,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (float* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -5001,13 +4623,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count) + public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count, int offset) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (float* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -5015,13 +4655,389 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count, int offset) + public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count, int offset, int stride) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (float* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, ref double ys2, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, ref double ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, ref double ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.020.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.020.cs index 7984b245f..90c2c33e0 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.020.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.020.cs @@ -22,225 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -259,11 +41,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys2 = &ys2) { - PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, stride); + PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -275,7 +57,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -294,11 +76,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys2 = &ys2) { - PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); + PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -310,7 +92,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -329,11 +111,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys2 = &ys2) { - PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); + PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -345,7 +127,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref float xs, ref float ys, int count) + public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -364,11 +146,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (float* pys = &ys) + fixed (double* pys2 = &ys2) { - PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -380,7 +162,295 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref float xs, ref float ys, int count, int offset) + public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count, int offset) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count, int offset, int stride) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, ref double ys2, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, ref double ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, ref double ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -399,11 +469,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pys1 = &ys1) { - fixed (float* pys = &ys) + fixed (double* pys2 = &ys2) { - PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); + PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -415,7 +485,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref float xs, ref float ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -434,11 +504,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pys1 = &ys1) { - fixed (float* pys = &ys) + fixed (double* pys2 = &ys2) { - PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -447,203 +517,913 @@ namespace Dalamud.Bindings.ImPlot } } + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, ref double ys2, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys1 = &ys1) + { + fixed (double* pys2 = &ys2) + { + PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[100])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[137])(labelId, xs, ys1, ys2, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[100])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[137])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, double* xs, double* ys, int count) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, int offset) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, int offset, int stride) + public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset, int stride) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, int offset) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) + public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* xs, double* ys, int count) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -662,7 +1442,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -672,7 +1452,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -691,7 +1471,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(double))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -701,7 +1481,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -720,7 +1500,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -730,7 +1510,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* xs, double* ys, int count) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -749,7 +1529,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -759,7 +1539,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* xs, double* ys, int count, int offset) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -778,7 +1558,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -788,7 +1568,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, double* xs, double* ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -807,1560 +1587,210 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotStairsNative(labelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotStairsNative(labelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags) - { - fixed (double* pxs = &xs) - { - PlotStairsNative(labelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count) - { - fixed (double* pxs = &xs) - { - PlotStairsNative(labelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - PlotStairsNative(labelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotStairsNative(labelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStairsNative(pStr0, (double*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStairsNative(pStr0, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStairsNative(pStr0, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref double xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStairsNative(pStr0, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref double xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStairsNative(pStr0, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref double xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStairsNative(pStr0, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, xs, (double*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count, int offset) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, xs, (double*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, double* xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, xs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, double* xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, double* xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref double xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref double xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[101])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[138])(labelId, xs, ys1, ys2, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[101])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[138])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, int offset) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) + public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset, int stride) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, int offset) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) + public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* ys, int count) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, byte* ys2, int count) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2379,7 +1809,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2389,7 +1819,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2408,7 +1838,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2418,7 +1848,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2437,7 +1867,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2447,7 +1877,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, byte* xs, byte* ys, int count) + public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2466,7 +1896,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2476,7 +1906,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, byte* xs, byte* ys, int count, int offset) + public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2495,7 +1925,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2505,7 +1935,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, byte* xs, byte* ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2524,1560 +1954,210 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative(labelId, (byte*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative(labelId, (byte*)pxs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte xs, byte* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative(labelId, (byte*)pxs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative(labelId, (byte*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative(labelId, (byte*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative(labelId, (byte*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStairsNative(pStr0, (byte*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStairsNative(pStr0, (byte*)pxs, ys, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte xs, byte* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStairsNative(pStr0, (byte*)pxs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStairsNative(pStr0, (byte*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte xs, byte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStairsNative(pStr0, (byte*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStairsNative(pStr0, (byte*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, byte* xs, ref byte ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(labelId, xs, (byte*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, byte* xs, ref byte ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(labelId, xs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, byte* xs, ref byte ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(labelId, xs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(labelId, xs, (byte*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(labelId, xs, (byte*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(labelId, xs, (byte*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (byte*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (byte*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* xs, ref byte ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStairsNative(pStr0, xs, (byte*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* xs, ref byte ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStairsNative(pStr0, xs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* xs, ref byte ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStairsNative(pStr0, xs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* xs, ref byte ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStairsNative(pStr0, xs, (byte*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* xs, ref byte ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStairsNative(pStr0, xs, (byte*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStairsNative(pStr0, xs, (byte*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(labelId, (byte*)pxs, (byte*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(labelId, (byte*)pxs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(labelId, (byte*)pxs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(labelId, (byte*)pxs, (byte*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte xs, ref byte ys, int count, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(labelId, (byte*)pxs, (byte*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(labelId, (byte*)pxs, (byte*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte xs, ref byte ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(pStr0, (byte*)pxs, (byte*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte xs, ref byte ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(pStr0, (byte*)pxs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte xs, ref byte ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(pStr0, (byte*)pxs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte xs, ref byte ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(pStr0, (byte*)pxs, (byte*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte xs, ref byte ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(pStr0, (byte*)pxs, (byte*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStairsNative(pStr0, (byte*)pxs, (byte*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + internal static void PlotShadedNative(byte* labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[102])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[139])(labelId, xs, ys1, ys2, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[102])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[139])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(short))); + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, short* xs, short* ys, int count) + public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, int offset) + public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, int offset) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, int offset, int stride) + public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, int offset, int stride) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count) + public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, int offset) + public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) + public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* ys, int count) + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, short* ys2, int count) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, short* ys2, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, short* ys2, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4096,7 +2176,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4106,7 +2186,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4125,7 +2205,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(short))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4135,7 +2215,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4154,7 +2234,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4164,7 +2244,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* xs, short* ys, int count) + public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4183,7 +2263,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4193,7 +2273,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* xs, short* ys, int count, int offset) + public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4212,7 +2292,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4222,7 +2302,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* xs, short* ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4241,7 +2321,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4251,241 +2331,200 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref short xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotShadedNative(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { - fixed (short* pxs = &xs) - { - PlotStairsNative(labelId, (short*)pxs, ys, count, flags, offset, stride); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[140])(labelId, xs, ys1, ys2, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[140])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref short xs, short* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { - fixed (short* pxs = &xs) - { - PlotStairsNative(labelId, (short*)pxs, ys, count, flags, offset, (int)(sizeof(short))); - } + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref short xs, short* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) { - fixed (short* pxs = &xs) - { - PlotStairsNative(labelId, (short*)pxs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref short xs, short* ys, int count) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) { - fixed (short* pxs = &xs) - { - PlotStairsNative(labelId, (short*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref short xs, short* ys, int count, int offset) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count) { - fixed (short* pxs = &xs) - { - PlotStairsNative(labelId, (short*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref short xs, short* ys, int count, int offset, int stride) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset) { - fixed (short* pxs = &xs) - { - PlotStairsNative(labelId, (short*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ref short xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, ys, count, flags, offset, stride); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ref short xs, short* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, ys, count, flags, offset, (int)(sizeof(short))); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ref short xs, short* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ref short xs, short* ys, int count) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ref short xs, short* ys, int count, int offset) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ref short xs, short* ys, int count, int offset, int stride) + public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, ys, count, flags, offset, stride); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, ys, count, flags, offset, (int)(sizeof(short))); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ref short xs, short* ys, int count) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ushort* ys2, int count) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ref short xs, short* ys, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ref short xs, short* ys, int count, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4504,20 +2543,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (short*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short xs, short* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4536,20 +2572,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (short*)pxs, ys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short xs, short* ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4568,20 +2601,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (short*)pxs, ys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short xs, short* ys, int count) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4600,20 +2630,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (short*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short xs, short* ys, int count, int offset) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4632,20 +2659,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (short*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short xs, short* ys, int count, int offset, int stride) + public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4664,254 +2688,210 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (short*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, short* xs, ref short ys, int count, ImPlotStairsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotShadedNative(byte* labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { - fixed (short* pys = &ys) - { - PlotStairsNative(labelId, xs, (short*)pys, count, flags, offset, stride); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[141])(labelId, xs, ys1, ys2, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[141])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, short* xs, ref short ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { - fixed (short* pys = &ys) - { - PlotStairsNative(labelId, xs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, short* xs, ref short ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) { - fixed (short* pys = &ys) - { - PlotStairsNative(labelId, xs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, short* xs, ref short ys, int count) + public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) { - fixed (short* pys = &ys) - { - PlotStairsNative(labelId, xs, (short*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, short* xs, ref short ys, int count, int offset) + public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count) { - fixed (short* pys = &ys) - { - PlotStairsNative(labelId, xs, (short*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, short* xs, ref short ys, int count, int offset, int stride) + public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, int offset) { - fixed (short* pys = &ys) - { - PlotStairsNative(labelId, xs, (short*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, short* xs, ref short ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (short*)pys, count, flags, offset, stride); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, short* xs, ref short ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, short* xs, ref short ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, short* xs, ref short ys, int count) + public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, short* xs, ref short ys, int count, int offset) + public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, short* xs, ref short ys, int count, int offset, int stride) + public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (short*)pys, count, flags, offset, stride); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, short* xs, ref short ys, int count) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, int* ys2, int count) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, short* xs, ref short ys, int count, int offset) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, int* ys2, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, short* xs, ref short ys, int count, int offset, int stride) + public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, int* ys2, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, short* xs, ref short ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4930,20 +2910,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, xs, (short*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, short* xs, ref short ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4962,20 +2939,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, xs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, short* xs, ref short ys, int count, ImPlotStairsFlags flags) + public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4994,20 +2968,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, xs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, short* xs, ref short ys, int count) + public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5026,13 +2997,2041 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, xs, (short*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotShadedNative(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[142])(labelId, xs, ys1, ys2, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[142])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, uint* ys2, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotShadedNative(byte* labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[143])(labelId, xs, ys1, ys2, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[143])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, long* ys2, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, long* ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, long* ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotShadedNative(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[144])(labelId, xs, ys1, ys2, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[144])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset, int stride) + { + PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ulong* ys2, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarsNative(byte* labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[145])(labelId, values, count, barSize, shift, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[145])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, double barSize) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift, int offset) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, double barSize, int offset) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, double barSize, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, int offset, int stride) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, double shift) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count, double barSize, double shift) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count, double barSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count, double barSize, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count, double barSize, double shift, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count, double barSize, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.021.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.021.cs index c5e355fd5..f1912925c 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.021.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.021.cs @@ -22,7 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* xs, ref short ys, int count, int offset) + public static void PlotBars(string labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,9 +41,914 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, xs, (short*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count, double barSize, double shift, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count, double barSize, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, double barSize) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, ImPlotBarsFlags flags) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift, int offset) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, double barSize, int offset) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, int offset) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, double barSize, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, double shift) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -54,7 +959,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, short* xs, ref short ys, int count, int offset, int stride) + public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -73,9 +978,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + fixed (float* pvalues = &values) { - PlotStairsNative(pStr0, xs, (short*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -86,295 +991,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref short xs, ref short ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative(labelId, (short*)pxs, (short*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short xs, ref short ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative(labelId, (short*)pxs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short xs, ref short ys, int count, ImPlotStairsFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative(labelId, (short*)pxs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short xs, ref short ys, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative(labelId, (short*)pxs, (short*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative(labelId, (short*)pxs, (short*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative(labelId, (short*)pxs, (short*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short xs, ref short ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short xs, ref short ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short xs, ref short ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short xs, ref short ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short xs, ref short ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref short xs, ref short ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -393,15 +1010,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (short*)pxs, (short*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -409,7 +1023,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short xs, ref short ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift) { byte* pStr0 = null; int pStrSize0 = 0; @@ -428,15 +1042,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (short*)pxs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -444,7 +1055,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short xs, ref short ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(string labelId, ref float values, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -463,15 +1074,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (short*)pxs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -479,7 +1087,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short xs, ref short ys, int count) + public static void PlotBars(string labelId, ref float values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -498,15 +1106,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (short*)pxs, (short*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -514,7 +1119,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short xs, ref short ys, int count, int offset) + public static void PlotBars(string labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -533,15 +1138,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (short*)pxs, (short*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -549,7 +1151,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref short xs, ref short ys, int count, int offset, int stride) + public static void PlotBars(string labelId, ref float values, int count, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -568,15 +1170,332 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (short*)pxs, (short*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float values, int count, double barSize, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float values, int count, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float values, int count, double barSize, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -585,199 +1504,559 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + internal static void PlotBarsNative(byte* labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[103])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[146])(labelId, values, count, barSize, shift, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[103])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[146])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count) + public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count, int offset) + public static void PlotBars(byte* labelId, double* values, int count, double barSize) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + public static void PlotBars(byte* labelId, double* values, int count) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(byte* labelId, double* values, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, double* values, int count, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift, int offset) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, double* values, int count, double barSize, int offset) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, double* values, int count, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, double* values, int count, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, double* values, int count, double barSize, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, double* values, int count, int offset, int stride) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, double* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count) + public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) + public static void PlotBars(ref byte labelId, double* values, int count, double barSize) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + public static void PlotBars(ref byte labelId, double* values, int count) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, double* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count) + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, double shift) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset) + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, double* values, int count) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -796,7 +2075,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -806,7 +2085,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(string labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -825,7 +2104,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -835,7 +2114,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(string labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -854,7 +2133,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -864,7 +2143,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count) + public static void PlotBars(string labelId, double* values, int count, double barSize, double shift) { byte* pStr0 = null; int pStrSize0 = 0; @@ -883,7 +2162,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -893,7 +2172,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count, int offset) + public static void PlotBars(string labelId, double* values, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -912,7 +2191,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -922,7 +2201,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + public static void PlotBars(string labelId, double* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -941,7 +2220,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -951,241 +2230,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative(labelId, (ushort*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative(labelId, (ushort*)pxs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotStairsFlags flags) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative(labelId, (ushort*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort xs, ushort* ys, int count) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative(labelId, (ushort*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort xs, ushort* ys, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative(labelId, (ushort*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative(labelId, (ushort*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(string labelId, double* values, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1204,9 +2249,1059 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (ushort*)pxs, ys, count, flags, offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, double* values, int count, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, double* values, int count, double barSize, double shift, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, double* values, int count, double barSize, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, double* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, double* values, int count, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, double* values, int count, double barSize, double shift, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, double* values, int count, double barSize, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, double* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, double* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, double barSize) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, ImPlotBarsFlags flags) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift, int offset) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, double barSize, int offset) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, int offset) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, double barSize, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, double shift) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1217,7 +3312,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ushort xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1236,9 +3331,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotStairsNative(pStr0, (ushort*)pxs, ys, count, flags, offset, (int)(sizeof(ushort))); + PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1249,7 +3344,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ushort xs, ushort* ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1268,9 +3363,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotStairsNative(pStr0, (ushort*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1281,7 +3376,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ushort xs, ushort* ys, int count) + public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1300,9 +3395,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotStairsNative(pStr0, (ushort*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1313,7 +3408,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ushort xs, ushort* ys, int count, int offset) + public static void PlotBars(string labelId, ref double values, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1332,9 +3427,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotStairsNative(pStr0, (ushort*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1345,7 +3440,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) + public static void PlotBars(string labelId, ref double values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1364,9 +3459,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotStairsNative(pStr0, (ushort*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1377,241 +3472,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative(labelId, xs, (ushort*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative(labelId, xs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotStairsFlags flags) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative(labelId, xs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ushort* xs, ref ushort ys, int count) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative(labelId, xs, (ushort*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ushort* xs, ref ushort ys, int count, int offset) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative(labelId, xs, (ushort*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative(labelId, xs, (ushort*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ushort*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ushort* xs, ref ushort ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ushort* xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ushort*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ushort* xs, ref ushort ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(string labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1630,9 +3491,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + fixed (double* pvalues = &values) { - PlotStairsNative(pStr0, xs, (ushort*)pys, count, flags, offset, stride); + PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1643,7 +3504,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* xs, ref ushort ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(string labelId, ref double values, int count, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1662,9 +3523,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + fixed (double* pvalues = &values) { - PlotStairsNative(pStr0, xs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); + PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1675,7 +3536,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* xs, ref ushort ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1694,9 +3555,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + fixed (double* pvalues = &values) { - PlotStairsNative(pStr0, xs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1707,7 +3568,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* xs, ref ushort ys, int count) + public static void PlotBars(string labelId, ref double values, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1726,9 +3587,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + fixed (double* pvalues = &values) { - PlotStairsNative(pStr0, xs, (ushort*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1739,7 +3600,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* xs, ref ushort ys, int count, int offset) + public static void PlotBars(string labelId, ref double values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1758,9 +3619,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + fixed (double* pvalues = &values) { - PlotStairsNative(pStr0, xs, (ushort*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); + PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1771,7 +3632,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) + public static void PlotBars(string labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1790,9 +3651,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + fixed (double* pvalues = &values) { - PlotStairsNative(pStr0, xs, (ushort*)pys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1803,295 +3664,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative(labelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative(labelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotStairsFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative(labelId, (ushort*)pxs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative(labelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative(labelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative(labelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(string labelId, ref double values, int count, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2110,15 +3683,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (ushort* pys = &ys) + PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2126,7 +3696,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2145,15 +3715,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (ushort* pys = &ys) + PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2161,7 +3728,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(string labelId, ref double values, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2180,15 +3747,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (ushort* pys = &ys) + PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2196,7 +3760,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ushort xs, ref ushort ys, int count) + public static void PlotBars(string labelId, ref double values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2215,15 +3779,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (ushort* pys = &ys) + PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2231,7 +3792,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ushort xs, ref ushort ys, int count, int offset) + public static void PlotBars(string labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2250,15 +3811,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (ushort* pys = &ys) + PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2266,7 +3824,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) + public static void PlotBars(string labelId, ref double values, int count, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2285,15 +3843,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (ushort* pys = &ys) + PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2302,199 +3857,559 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + internal static void PlotBarsNative(byte* labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[104])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[147])(labelId, values, count, barSize, shift, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[104])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[147])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* xs, int* ys, int count) + public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, double shift) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* xs, int* ys, int count, int offset) + public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* xs, int* ys, int count, int offset, int stride) + public static void PlotBars(byte* labelId, sbyte* values, int count) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* values, int count, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, double shift, int offset) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, int offset) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* values, int count, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* values, int count, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, double shift, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* values, int count, int offset, int stride) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, sbyte* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count) + public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, double shift) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count, int offset) + public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) + public static void PlotBars(ref byte labelId, sbyte* values, int count) { fixed (byte* plabelId = &labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, sbyte* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, sbyte* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, sbyte* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, sbyte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, sbyte* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* xs, int* ys, int count) + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, double barSize, double shift) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset) + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, double barSize) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count) { fixed (byte* plabelId = labelId) { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, sbyte* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2513,7 +4428,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2523,7 +4438,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(string labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2542,7 +4457,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(int))); + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2552,7 +4467,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(string labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2571,7 +4486,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2581,7 +4496,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, int* xs, int* ys, int count) + public static void PlotBars(string labelId, sbyte* values, int count, double barSize, double shift) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2600,7 +4515,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2610,7 +4525,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, int* xs, int* ys, int count, int offset) + public static void PlotBars(string labelId, sbyte* values, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2629,7 +4544,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2639,7 +4554,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, int* xs, int* ys, int count, int offset, int stride) + public static void PlotBars(string labelId, sbyte* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2658,7 +4573,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2668,241 +4583,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref int xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotStairsNative(labelId, (int*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int xs, int* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - PlotStairsNative(labelId, (int*)pxs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int xs, int* ys, int count, ImPlotStairsFlags flags) - { - fixed (int* pxs = &xs) - { - PlotStairsNative(labelId, (int*)pxs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int xs, int* ys, int count) - { - fixed (int* pxs = &xs) - { - PlotStairsNative(labelId, (int*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int xs, int* ys, int count, int offset) - { - fixed (int* pxs = &xs) - { - PlotStairsNative(labelId, (int*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotStairsNative(labelId, (int*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int xs, int* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int xs, int* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(string labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2921,20 +4602,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (int*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref int xs, int* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(string labelId, sbyte* values, int count, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2953,20 +4631,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (int*)pxs, ys, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref int xs, int* ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(string labelId, sbyte* values, int count, double barSize, double shift, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2985,20 +4660,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (int*)pxs, ys, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref int xs, int* ys, int count) + public static void PlotBars(string labelId, sbyte* values, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3017,20 +4689,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (int*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref int xs, int* ys, int count, int offset) + public static void PlotBars(string labelId, sbyte* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3049,20 +4718,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (int*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref int xs, int* ys, int count, int offset, int stride) + public static void PlotBars(string labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3081,254 +4747,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, (int*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, int* xs, ref int ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotStairsNative(labelId, xs, (int*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, int* xs, ref int ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (int* pys = &ys) - { - PlotStairsNative(labelId, xs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, int* xs, ref int ys, int count, ImPlotStairsFlags flags) - { - fixed (int* pys = &ys) - { - PlotStairsNative(labelId, xs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, int* xs, ref int ys, int count) - { - fixed (int* pys = &ys) - { - PlotStairsNative(labelId, xs, (int*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, int* xs, ref int ys, int count, int offset) - { - fixed (int* pys = &ys) - { - PlotStairsNative(labelId, xs, (int*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotStairsNative(labelId, xs, (int*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, int* xs, ref int ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (int*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, int* xs, ref int ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, int* xs, ref int ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, int* xs, ref int ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, int* xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (int*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, int* xs, ref int ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, int* xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, int* xs, ref int ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(string labelId, sbyte* values, int count, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3347,20 +4776,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, xs, (int*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, int* xs, ref int ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(string labelId, sbyte* values, int count, double barSize, double shift, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3379,20 +4805,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, xs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, int* xs, ref int ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(string labelId, sbyte* values, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3411,20 +4834,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, xs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, int* xs, ref int ys, int count) + public static void PlotBars(string labelId, sbyte* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3443,20 +4863,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, xs, (int*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, int* xs, ref int ys, int count, int offset) + public static void PlotBars(string labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3475,20 +4892,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, xs, (int*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, int* xs, ref int ys, int count, int offset, int stride) + public static void PlotBars(string labelId, sbyte* values, int count, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3507,511 +4921,10 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStairsNative(pStr0, xs, (int*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int xs, ref int ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative(labelId, (int*)pxs, (int*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int xs, ref int ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative(labelId, (int*)pxs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int xs, ref int ys, int count, ImPlotStairsFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative(labelId, (int*)pxs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int xs, ref int ys, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative(labelId, (int*)pxs, (int*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int xs, ref int ys, int count, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative(labelId, (int*)pxs, (int*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative(labelId, (int*)pxs, (int*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int xs, ref int ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int xs, ref int ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int xs, ref int ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int xs, ref int ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int xs, ref int ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int xs, ref int ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative(pStr0, (int*)pxs, (int*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int xs, ref int ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative(pStr0, (int*)pxs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int xs, ref int ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative(pStr0, (int*)pxs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int xs, ref int ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative(pStr0, (int*)pxs, (int*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int xs, ref int ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative(pStr0, (int*)pxs, (int*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStairsNative(pStr0, (int*)pxs, (int*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } @@ -4019,1013 +4932,93 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + internal static void PlotBarsNative(byte* labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[105])(labelId, xs, ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[148])(labelId, values, count, barSize, shift, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[105])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[148])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count) + public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count, int offset) + public static void PlotBars(byte* labelId, byte* values, int count, double barSize) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) + public static void PlotBars(byte* labelId, byte* values, int count) { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(byte* labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags) { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(byte* labelId, byte* values, int count, ImPlotBarsFlags flags) { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift, int offset) { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count) + public static void PlotBars(byte* labelId, byte* values, int count, double barSize, int offset) { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, uint* xs, uint* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, uint* xs, uint* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative(labelId, (uint*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint xs, uint* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative(labelId, (uint*)pxs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint xs, uint* ys, int count, ImPlotStairsFlags flags) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative(labelId, (uint*)pxs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint xs, uint* ys, int count) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative(labelId, (uint*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint xs, uint* ys, int count, int offset) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative(labelId, (uint*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative(labelId, (uint*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint xs, uint* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStairsNative(pStr0, (uint*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint xs, uint* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStairsNative(pStr0, (uint*)pxs, ys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint xs, uint* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStairsNative(pStr0, (uint*)pxs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint xs, uint* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStairsNative(pStr0, (uint*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint xs, uint* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStairsNative(pStr0, (uint*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStairsNative(pStr0, (uint*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, uint* xs, ref uint ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(labelId, xs, (uint*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, uint* xs, ref uint ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(labelId, xs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, uint* xs, ref uint ys, int count, ImPlotStairsFlags flags) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(labelId, xs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, uint* xs, ref uint ys, int count) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(labelId, xs, (uint*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, uint* xs, ref uint ys, int count, int offset) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(labelId, xs, (uint*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, uint* xs, ref uint ys, int count, int offset, int stride) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(labelId, xs, (uint*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (uint*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, uint* xs, ref uint ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, uint* xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, uint* xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (uint*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* xs, ref uint ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.022.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.022.cs index 5a49300c6..2078ecf30 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.022.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.022.cs @@ -22,501 +22,467 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int offset, int stride) + public static void PlotBars(byte* labelId, byte* values, int count, int offset) { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* xs, ref uint ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(byte* labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStairsNative(pStr0, xs, (uint*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* xs, ref uint ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(byte* labelId, byte* values, int count, ImPlotBarsFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStairsNative(pStr0, xs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* xs, ref uint ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStairsNative(pStr0, xs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* xs, ref uint ys, int count) + public static void PlotBars(byte* labelId, byte* values, int count, double barSize, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStairsNative(pStr0, xs, (uint*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* xs, ref uint ys, int count, int offset) + public static void PlotBars(byte* labelId, byte* values, int count, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStairsNative(pStr0, xs, (uint*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotStairs(string labelId, uint* xs, ref uint ys, int count, int offset, int stride) + public static void PlotBars(byte* labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStairsNative(pStr0, xs, (uint*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(byte* labelId, byte* values, int count, ImPlotBarsFlags flags, int offset, int stride) { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(labelId, (uint*)pxs, (uint*)pys, count, flags, offset, stride); - } - } + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(labelId, (uint*)pxs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotStairsFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(labelId, (uint*)pxs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint xs, ref uint ys, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(labelId, (uint*)pxs, (uint*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint xs, ref uint ys, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(labelId, (uint*)pxs, (uint*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(labelId, (uint*)pxs, (uint*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, offset, stride); - } - } + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ref uint xs, ref uint ys, int count) + public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift) { fixed (byte* plabelId = &labelId) { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ref uint xs, ref uint ys, int count, int offset) + public static void PlotBars(ref byte labelId, byte* values, int count, double barSize) { fixed (byte* plabelId = &labelId) { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ref byte labelId, ref uint xs, ref uint ys, int count, int offset, int stride) + public static void PlotBars(ref byte labelId, byte* values, int count) { fixed (byte* plabelId = &labelId) { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, offset, stride); - } - } + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count) + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, double shift) { fixed (byte* plabelId = labelId) { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int offset) + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize) { fixed (byte* plabelId = labelId) { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count) { fixed (byte* plabelId = labelId) { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotStairs(string labelId, ref uint xs, ref uint ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -535,410 +501,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(pStr0, (uint*)pxs, (uint*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint xs, ref uint ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(pStr0, (uint*)pxs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint xs, ref uint ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(pStr0, (uint*)pxs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint xs, ref uint ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(pStr0, (uint*)pxs, (uint*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint xs, ref uint ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(pStr0, (uint*)pxs, (uint*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStairsNative(pStr0, (uint*)pxs, (uint*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[106])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[106])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* xs, long* ys, int count) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* xs, long* ys, int count, int offset) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* xs, long* ys, int count, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -948,7 +511,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -967,7 +530,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(long))); + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -977,7 +540,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -996,7 +559,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1006,7 +569,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* xs, long* ys, int count) + public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1025,7 +588,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1035,7 +598,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* xs, long* ys, int count, int offset) + public static void PlotBars(string labelId, byte* values, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1054,7 +617,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1064,7 +627,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, long* xs, long* ys, int count, int offset, int stride) + public static void PlotBars(string labelId, byte* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1083,7 +646,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1093,241 +656,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref long xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotStairsNative(labelId, (long*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long xs, long* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - PlotStairsNative(labelId, (long*)pxs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long xs, long* ys, int count, ImPlotStairsFlags flags) - { - fixed (long* pxs = &xs) - { - PlotStairsNative(labelId, (long*)pxs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long xs, long* ys, int count) - { - fixed (long* pxs = &xs) - { - PlotStairsNative(labelId, (long*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long xs, long* ys, int count, int offset) - { - fixed (long* pxs = &xs) - { - PlotStairsNative(labelId, (long*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotStairsNative(labelId, (long*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long xs, long* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long xs, long* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref long xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(string labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1346,1316 +675,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) - { - PlotStairsNative(pStr0, (long*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref long xs, long* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStairsNative(pStr0, (long*)pxs, ys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref long xs, long* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStairsNative(pStr0, (long*)pxs, ys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref long xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStairsNative(pStr0, (long*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref long xs, long* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStairsNative(pStr0, (long*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref long xs, long* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStairsNative(pStr0, (long*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* xs, ref long ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotStairsNative(labelId, xs, (long*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* xs, ref long ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (long* pys = &ys) - { - PlotStairsNative(labelId, xs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* xs, ref long ys, int count, ImPlotStairsFlags flags) - { - fixed (long* pys = &ys) - { - PlotStairsNative(labelId, xs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* xs, ref long ys, int count) - { - fixed (long* pys = &ys) - { - PlotStairsNative(labelId, xs, (long*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* xs, ref long ys, int count, int offset) - { - fixed (long* pys = &ys) - { - PlotStairsNative(labelId, xs, (long*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotStairsNative(labelId, xs, (long*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* xs, ref long ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (long*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* xs, ref long ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* xs, ref long ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* xs, ref long ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (long*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* xs, ref long ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, long* xs, ref long ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStairsNative(pStr0, xs, (long*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, long* xs, ref long ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStairsNative(pStr0, xs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, long* xs, ref long ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStairsNative(pStr0, xs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, long* xs, ref long ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStairsNative(pStr0, xs, (long*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, long* xs, ref long ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStairsNative(pStr0, xs, (long*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, long* xs, ref long ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStairsNative(pStr0, xs, (long*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long xs, ref long ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative(labelId, (long*)pxs, (long*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long xs, ref long ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative(labelId, (long*)pxs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long xs, ref long ys, int count, ImPlotStairsFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative(labelId, (long*)pxs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long xs, ref long ys, int count) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative(labelId, (long*)pxs, (long*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative(labelId, (long*)pxs, (long*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative(labelId, (long*)pxs, (long*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long xs, ref long ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long xs, ref long ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long xs, ref long ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long xs, ref long ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long xs, ref long ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref long xs, ref long ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative(pStr0, (long*)pxs, (long*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref long xs, ref long ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative(pStr0, (long*)pxs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref long xs, ref long ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative(pStr0, (long*)pxs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref long xs, ref long ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative(pStr0, (long*)pxs, (long*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref long xs, ref long ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative(pStr0, (long*)pxs, (long*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStairsNative(pStr0, (long*)pxs, (long*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[107])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[107])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count, int offset) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2665,7 +685,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset) + public static void PlotBars(string labelId, byte* values, int count, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2684,7 +704,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2694,7 +714,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags) + public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2713,7 +733,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2723,7 +743,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count) + public static void PlotBars(string labelId, byte* values, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2742,7 +762,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2752,7 +772,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count, int offset) + public static void PlotBars(string labelId, byte* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2771,7 +791,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2781,7 +801,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + public static void PlotBars(string labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2800,7 +820,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2810,241 +830,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairs(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative(labelId, (ulong*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative(labelId, (ulong*)pxs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotStairsFlags flags) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative(labelId, (ulong*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong xs, ulong* ys, int count) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative(labelId, (ulong*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative(labelId, (ulong*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative(labelId, (ulong*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) + public static void PlotBars(string labelId, byte* values, int count, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3063,1196 +849,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) - { - PlotStairsNative(pStr0, (ulong*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStairsNative(pStr0, (ulong*)pxs, ys, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong xs, ulong* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStairsNative(pStr0, (ulong*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong xs, ulong* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStairsNative(pStr0, (ulong*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong xs, ulong* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStairsNative(pStr0, (ulong*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStairsNative(pStr0, (ulong*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(labelId, xs, (ulong*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(labelId, xs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotStairsFlags flags) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(labelId, xs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* xs, ref ulong ys, int count) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(labelId, xs, (ulong*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(labelId, xs, (ulong*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(labelId, xs, (ulong*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ulong*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* xs, ref ulong ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ulong*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* xs, ref ulong ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStairsNative(pStr0, xs, (ulong*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* xs, ref ulong ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStairsNative(pStr0, xs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* xs, ref ulong ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStairsNative(pStr0, xs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* xs, ref ulong ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStairsNative(pStr0, xs, (ulong*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* xs, ref ulong ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStairsNative(pStr0, xs, (ulong*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStairsNative(pStr0, xs, (ulong*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(labelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(labelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotStairsFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(labelId, (ulong*)pxs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(labelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(labelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(byte* labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(labelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ref byte labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong xs, ref ulong ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStairs(string labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStairsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsGNative(byte* labelId, ImPlotGetter getter, void* data, int count, ImPlotStairsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl], void*, int, ImPlotStairsFlags, void>)funcTable[108])(labelId, (delegate*)Utils.GetFunctionPointerForDelegate(getter), data, count, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[108])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter), (nint)data, count, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStairsG(byte* labelId, ImPlotGetter getter, void* data, int count, ImPlotStairsFlags flags) - { - PlotStairsGNative(labelId, getter, data, count, flags); - } - - /// - /// To be documented. - /// - public static void PlotStairsG(byte* labelId, ImPlotGetter getter, void* data, int count) - { - PlotStairsGNative(labelId, getter, data, count, (ImPlotStairsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotStairsG(ref byte labelId, ImPlotGetter getter, void* data, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsGNative((byte*)plabelId, getter, data, count, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotStairsG(ref byte labelId, ImPlotGetter getter, void* data, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsGNative((byte*)plabelId, getter, data, count, (ImPlotStairsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotStairsG(ReadOnlySpan labelId, ImPlotGetter getter, void* data, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsGNative((byte*)plabelId, getter, data, count, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotStairsG(ReadOnlySpan labelId, ImPlotGetter getter, void* data, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsGNative((byte*)plabelId, getter, data, count, (ImPlotStairsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotStairsG(string labelId, ImPlotGetter getter, void* data, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsGNative(pStr0, getter, data, count, flags); + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4262,7 +859,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStairsG(string labelId, ImPlotGetter getter, void* data, int count) + public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4281,7 +878,123 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStairsGNative(pStr0, getter, data, count, (ImPlotStairsFlags)(0)); + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, byte* values, int count, double barSize, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, byte* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, byte* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4292,732 +1005,4038 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotBarsNative(byte* labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[109])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[149])(labelId, values, count, barSize, shift, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[109])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[149])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart) + public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale) + public static void PlotBars(byte* labelId, short* values, int count, double barSize) { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref) + public static void PlotBars(byte* labelId, short* values, int count) { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count) + public static void PlotBars(byte* labelId, short* values, int count, double barSize, ImPlotBarsFlags flags) { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + public static void PlotBars(byte* labelId, short* values, int count, ImPlotBarsFlags flags) { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, ImPlotShadedFlags flags) + public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift, int offset) { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, ImPlotShadedFlags flags) + public static void PlotBars(byte* labelId, short* values, int count, double barSize, int offset) { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart, int offset) + public static void PlotBars(byte* labelId, short* values, int count, int offset) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, int offset) + public static void PlotBars(byte* labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset) { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, int offset) + public static void PlotBars(byte* labelId, short* values, int count, ImPlotBarsFlags flags, int offset) { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, int offset) + public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift, int offset, int stride) { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + public static void PlotBars(byte* labelId, short* values, int count, double barSize, int offset, int stride) { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotBars(byte* labelId, short* values, int count, int offset, int stride) { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, ImPlotShadedFlags flags, int offset) + public static void PlotBars(byte* labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart, int offset, int stride) + public static void PlotBars(byte* labelId, short* values, int count, ImPlotBarsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart) + public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale) + public static void PlotBars(ref byte labelId, short* values, int count, double barSize) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref) + public static void PlotBars(ref byte labelId, short* values, int count) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count) + public static void PlotBars(ref byte labelId, short* values, int count, double barSize, ImPlotBarsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + public static void PlotBars(ref byte labelId, short* values, int count, ImPlotBarsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, ImPlotShadedFlags flags) + public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, ImPlotShadedFlags flags) + public static void PlotBars(ref byte labelId, short* values, int count, double barSize, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart, int offset) + public static void PlotBars(ref byte labelId, short* values, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, int offset) + public static void PlotBars(ref byte labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, int offset) + public static void PlotBars(ref byte labelId, short* values, int count, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, int offset) + public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + public static void PlotBars(ref byte labelId, short* values, int count, double barSize, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotBars(ref byte labelId, short* values, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, ImPlotShadedFlags flags, int offset) + public static void PlotBars(ref byte labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart, int offset, int stride) + public static void PlotBars(ref byte labelId, short* values, int count, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, double shift) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, double barSize, double shift) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, double barSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, double barSize, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, double barSize, double shift, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, double barSize, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, double barSize, double shift, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, double barSize, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarsNative(byte* labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[150])(labelId, values, count, barSize, shift, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[150])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, double barSize) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift, int offset) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, int offset) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, int offset, int stride) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, int offset, int stride) + public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, int offset, int stride) + public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* values, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, ushort* values, int count) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(ref byte labelId, ushort* values, int count, ImPlotBarsFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift, int offset) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, double xstart) + public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, int offset) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale) + public static void PlotBars(ref byte labelId, ushort* values, int count, int offset) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref) + public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count) + public static void PlotBars(ref byte labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift, int offset, int stride) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, ImPlotShadedFlags flags) + public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, int offset, int stride) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, ImPlotShadedFlags flags) + public static void PlotBars(ref byte labelId, ushort* values, int count, int offset, int stride) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, double xstart, int offset) + public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, int offset) + public static void PlotBars(ref byte labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset, int stride) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, int offset) + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, int offset) + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, double shift) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, ImPlotShadedFlags flags, int offset) + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, double xstart, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, ImPlotBarsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, double shift, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* values, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, double barSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, double barSize, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, double barSize, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarsNative(byte* labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[151])(labelId, values, count, barSize, shift, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[151])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, double barSize) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift, int offset) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, double barSize, int offset) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, double barSize, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, int offset, int stride) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, int* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, int* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, double shift) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, int* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, double barSize, double shift) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, double barSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, double barSize, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, double barSize, double shift, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, double barSize, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, double barSize, double shift, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, double barSize, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, int* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarsNative(byte* labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[152])(labelId, values, count, barSize, shift, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[152])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, double barSize) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift, int offset) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, double barSize, int offset) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, double barSize, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, int offset, int stride) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, double shift) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, uint* values, int count, double barSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, uint* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, uint* values, int count, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.023.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.023.cs index c27248663..16984fb2c 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.023.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.023.cs @@ -22,7 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(string labelId, uint* values, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,7 +41,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -51,7 +51,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(string labelId, uint* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -70,7 +70,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -80,7 +80,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -99,7 +99,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -109,7 +109,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart) + public static void PlotBars(string labelId, uint* values, int count, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -128,7 +128,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -138,7 +138,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale) + public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -157,7 +157,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -167,7 +167,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref) + public static void PlotBars(string labelId, uint* values, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -186,7 +186,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -196,7 +196,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count) + public static void PlotBars(string labelId, uint* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -215,7 +215,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -225,7 +225,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -244,7 +244,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -254,7 +254,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, uint* values, int count, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -273,7 +273,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -283,7 +283,560 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, ImPlotShadedFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarsNative(byte* labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[153])(labelId, values, count, barSize, shift, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[153])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, double barSize) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift, int offset) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, double barSize, int offset) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, double barSize, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, int offset, int stride) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, double shift) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -302,7 +855,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -312,7 +865,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart, int offset) + public static void PlotBars(string labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -331,7 +884,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -341,7 +894,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, int offset) + public static void PlotBars(string labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -360,7 +913,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -370,7 +923,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, int offset) + public static void PlotBars(string labelId, long* values, int count, double barSize, double shift) { byte* pStr0 = null; int pStrSize0 = 0; @@ -389,7 +942,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -399,7 +952,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, int offset) + public static void PlotBars(string labelId, long* values, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -418,7 +971,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -428,7 +981,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + public static void PlotBars(string labelId, long* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -447,7 +1000,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -457,7 +1010,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotBars(string labelId, long* values, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -476,7 +1029,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -486,7 +1039,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, ImPlotShadedFlags flags, int offset) + public static void PlotBars(string labelId, long* values, int count, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -505,7 +1058,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -515,7 +1068,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart, int offset, int stride) + public static void PlotBars(string labelId, long* values, int count, double barSize, double shift, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -534,7 +1087,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -544,7 +1097,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, int offset, int stride) + public static void PlotBars(string labelId, long* values, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -563,7 +1116,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -573,7 +1126,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, int offset, int stride) + public static void PlotBars(string labelId, long* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -592,7 +1145,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -602,7 +1155,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, int offset, int stride) + public static void PlotBars(string labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -621,7 +1174,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -631,7 +1184,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(string labelId, long* values, int count, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -650,7 +1203,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -660,7 +1213,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(string labelId, long* values, int count, double barSize, double shift, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -679,7 +1232,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -689,7 +1242,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* values, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(string labelId, long* values, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -708,7 +1261,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -718,943 +1271,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, ImPlotShadedFlags flags) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, int offset) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, int offset) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, int offset) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(string labelId, long* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1673,9 +1290,1772 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, flags, offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, long* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarsNative(byte* labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[154])(labelId, values, count, barSize, shift, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[154])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, double barSize) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift, int offset) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, int offset) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, int offset, int stride) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, double shift) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, double shift, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, double shift, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, double barSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, double barSize, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, double barSize, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarsNative(byte* labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[155])(labelId, xs, ys, count, barSize, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[155])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize, int offset, int stride) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* xs, float* ys, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* xs, float* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* xs, float* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (float* pxs = &xs) + { + PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize) + { + fixed (float* pxs = &xs) + { + PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize, int offset) + { + fixed (float* pxs = &xs) + { + PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float xs, float* ys, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float xs, float* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float xs, float* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1686,7 +3066,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1705,9 +3085,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); + PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1718,7 +3098,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1737,9 +3117,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1750,7 +3130,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart) + public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1769,9 +3149,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1782,7 +3162,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale) + public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1801,9 +3181,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1814,7 +3194,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref) + public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1833,9 +3213,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1846,7 +3226,241 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count) + public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotBarsNative(labelId, xs, (float*)pys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (float* pys = &ys) + { + PlotBarsNative(labelId, xs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (float* pys = &ys) + { + PlotBarsNative(labelId, xs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize) + { + fixed (float* pys = &ys) + { + PlotBarsNative(labelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize, int offset) + { + fixed (float* pys = &ys) + { + PlotBarsNative(labelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotBarsNative(labelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* xs, ref float ys, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* xs, ref float ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, float* xs, ref float ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1865,9 +3479,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1878,7 +3492,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1897,9 +3511,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1910,7 +3524,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1929,9 +3543,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1942,7 +3556,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1961,9 +3575,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1974,7 +3588,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart, int offset) + public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1993,9 +3607,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2006,7 +3620,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, int offset) + public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2025,9 +3639,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2038,31 +3652,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, int offset) + public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, stride); } } } @@ -2070,31 +3666,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, int offset) + public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); } } } @@ -2102,31 +3680,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); } } } @@ -2134,31 +3694,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -2166,31 +3708,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, ImPlotShadedFlags flags, int offset) + public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); } } } @@ -2198,31 +3722,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart, int offset, int stride) + public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); } } } @@ -2230,31 +3736,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, int offset, int stride) + public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pxs = &xs) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, stride); + } } } } @@ -2262,31 +3753,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, int offset, int stride) + public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pxs = &xs) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); + } } } } @@ -2294,31 +3770,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, int offset, int stride) + public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pxs = &xs) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + } } } } @@ -2326,31 +3787,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pxs = &xs) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } } } } @@ -2358,31 +3804,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pxs = &xs) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } } } } @@ -2390,7 +3821,126 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float values, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2409,12 +3959,190 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + fixed (float* pys = &ys) + { + PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -2423,739 +4151,199 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotBarsNative(byte* labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[110])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[156])(labelId, xs, ys, count, barSize, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[110])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[156])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart) + public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale) + public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize, int offset) { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref) + public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize, int offset, int stride) { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* values, int count) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart) + public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale) + public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref) + public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(ReadOnlySpan labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(ReadOnlySpan labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, double xstart) + public static void PlotBars(ReadOnlySpan labelId, double* xs, double* ys, int count, double barSize) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale) + public static void PlotBars(ReadOnlySpan labelId, double* xs, double* ys, int count, double barSize, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref) + public static void PlotBars(ReadOnlySpan labelId, double* xs, double* ys, int count, double barSize, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3174,7 +4362,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3184,7 +4372,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3203,7 +4391,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3213,7 +4401,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3232,7 +4420,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3242,7 +4430,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart) + public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3261,7 +4449,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3271,7 +4459,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale) + public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3290,7 +4478,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3300,7 +4488,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* values, int count, double yref) + public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3319,7 +4507,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3329,7 +4517,241 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* values, int count) + public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (double* pxs = &xs) + { + PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize) + { + fixed (double* pxs = &xs) + { + PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize, int offset) + { + fixed (double* pxs = &xs) + { + PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double xs, double* ys, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double xs, double* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double xs, double* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3348,1467 +4770,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pxs = &xs) { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, ImPlotShadedFlags flags) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, int offset) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, int offset) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, int offset) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, flags, offset, stride); + PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4819,7 +4783,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4838,9 +4802,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); + PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4851,7 +4815,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4870,9 +4834,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); + PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4883,7 +4847,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart) + public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4902,9 +4866,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4915,7 +4879,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale) + public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4934,9 +4898,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4947,7 +4911,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref) + public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4966,9 +4930,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4979,63 +4943,79 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count) + public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pys = &ys) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotBarsNative(labelId, xs, (double*)pys, count, barSize, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags) + public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pys = &ys) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + PlotBarsNative(labelId, xs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); } - fixed (double* pvalues = &values) + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + PlotBarsNative(labelId, xs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize) + { + fixed (double* pys = &ys) + { + PlotBarsNative(labelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize, int offset) + { + fixed (double* pys = &ys) + { + PlotBarsNative(labelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotBarsNative(labelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) { - Utils.Free(pStr0); + PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, offset, stride); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.024.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.024.cs index 72faefbd5..920c32de1 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.024.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.024.cs @@ -22,7 +22,161 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, ImPlotShadedFlags flags) + public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* xs, ref double ys, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* xs, ref double ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, double* xs, ref double ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,9 +195,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -54,7 +208,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -73,9 +227,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -86,7 +240,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart, int offset) + public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -105,9 +259,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -118,7 +272,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, int offset) + public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -137,9 +291,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -150,7 +304,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, int offset) + public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -169,9 +323,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -182,7 +336,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, int offset) + public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -201,9 +355,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -214,31 +368,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys = &ys) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, stride); } } } @@ -246,31 +382,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys = &ys) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); } } } @@ -278,31 +396,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, ImPlotShadedFlags flags, int offset) + public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys = &ys) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); } } } @@ -310,31 +410,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart, int offset, int stride) + public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys = &ys) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -342,31 +424,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, int offset, int stride) + public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys = &ys) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -374,31 +438,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, int offset, int stride) + public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pys = &ys) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); } } } @@ -406,31 +452,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, int offset, int stride) + public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pxs = &xs) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, stride); + } } } } @@ -438,31 +469,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pxs = &xs) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); + } } } } @@ -470,31 +486,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pxs = &xs) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); + } } } } @@ -502,7 +503,160 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double values, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -521,12 +675,190 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + fixed (double* pys = &ys) + { + PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -535,739 +867,199 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotBarsNative(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[111])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[157])(labelId, xs, ys, count, barSize, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[111])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[157])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart) + public static void PlotBars(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale) + public static void PlotBars(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset) { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref) + public static void PlotBars(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset, int stride) { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, byte* values, int count) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(ref byte labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(ref byte labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart) + public static void PlotBars(ref byte labelId, sbyte* xs, sbyte* ys, int count, double barSize) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale) + public static void PlotBars(ref byte labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref) + public static void PlotBars(ref byte labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, byte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, double xstart) + public static void PlotBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double barSize) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale) + public static void PlotBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref) + public static void PlotBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(string labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1286,7 +1078,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1296,7 +1088,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(string labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1315,7 +1107,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1325,7 +1117,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1344,7 +1136,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1354,7 +1146,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart) + public static void PlotBars(string labelId, sbyte* xs, sbyte* ys, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1373,7 +1165,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1383,7 +1175,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale) + public static void PlotBars(string labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1402,7 +1194,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1412,7 +1204,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref) + public static void PlotBars(string labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1431,7 +1223,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1441,7 +1233,200 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarsNative(byte* labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[158])(labelId, xs, ys, count, barSize, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[158])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize, int offset, int stride) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1460,7 +1445,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1470,7 +1455,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1489,7 +1474,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1499,7 +1484,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1518,7 +1503,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1528,7 +1513,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1547,7 +1532,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1557,7 +1542,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart, int offset) + public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1576,7 +1561,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1586,7 +1571,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, int offset) + public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1605,7 +1590,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1615,7 +1600,200 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarsNative(byte* labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[159])(labelId, xs, ys, count, barSize, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[159])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize, int offset, int stride) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* xs, short* ys, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* xs, short* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, short* xs, short* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1634,7 +1812,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1644,7 +1822,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, int offset) + public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1663,7 +1841,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1673,7 +1851,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1692,7 +1870,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1702,7 +1880,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1721,7 +1899,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1731,7 +1909,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, ImPlotShadedFlags flags, int offset) + public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1750,7 +1928,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1760,7 +1938,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart, int offset, int stride) + public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1779,7 +1957,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1789,7 +1967,200 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarsNative(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[160])(labelId, xs, ys, count, barSize, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[160])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, int offset, int stride) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1808,7 +2179,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1818,7 +2189,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, int offset, int stride) + public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1837,7 +2208,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1847,7 +2218,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, int offset, int stride) + public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1866,7 +2237,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1876,7 +2247,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1895,7 +2266,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1905,7 +2276,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1924,7 +2295,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1934,7 +2305,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* values, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1953,7 +2324,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1963,943 +2334,200 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarsNative(byte* labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[161])(labelId, xs, ys, count, barSize, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[161])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, double xscale, double xstart) + public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, double xscale) + public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize) { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref) + public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, int offset) { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref byte values, int count) + public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, int offset, int stride) { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte values, int count, ImPlotShadedFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, double xscale, int offset) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, int offset) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte values, int count, int offset) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative(labelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, double xscale, double xstart) + public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, double xscale) + public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, int offset) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref) + public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref byte values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(ReadOnlySpan labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(ReadOnlySpan labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(ReadOnlySpan labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, double xscale, double xstart) + public static void PlotBars(ReadOnlySpan labelId, int* xs, int* ys, int count, double barSize) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, double xscale) + public static void PlotBars(ReadOnlySpan labelId, int* xs, int* ys, int count, double barSize, int offset) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref) + public static void PlotBars(ReadOnlySpan labelId, int* xs, int* ys, int count, double barSize, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2918,20 +2546,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2950,20 +2575,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2982,20 +2604,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, double xscale, double xstart) + public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3014,20 +2633,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, double xscale) + public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3046,20 +2662,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref) + public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3078,20 +2691,210 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarsNative(byte* labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[162])(labelId, xs, ys, count, barSize, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[162])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize, int offset, int stride) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3110,20 +2913,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, double xscale, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3142,20 +2942,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3174,20 +2971,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, ImPlotShadedFlags flags) + public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3206,20 +3000,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, double xscale, double xstart, int offset) + public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3238,20 +3029,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, double xscale, int offset) + public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3270,20 +3058,210 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarsNative(byte* labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[163])(labelId, xs, ys, count, barSize, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[163])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize, int offset, int stride) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* xs, long* ys, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* xs, long* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, long* xs, long* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3302,20 +3280,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, int offset) + public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3334,20 +3309,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3366,20 +3338,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3398,20 +3367,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, ImPlotShadedFlags flags, int offset) + public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3430,20 +3396,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, double xscale, double xstart, int offset, int stride) + public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3462,20 +3425,210 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, double xscale, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarsNative(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[164])(labelId, xs, ys, count, barSize, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[164])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags) + { + PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, int offset) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, int offset, int stride) + { + PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double barSize) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double barSize, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double barSize, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3494,20 +3647,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, int offset, int stride) + public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3526,20 +3676,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, int offset, int stride) + public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3558,20 +3705,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3590,20 +3734,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3622,20 +3763,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte values, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3654,12 +3792,562 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarGroupsNative(byte** labelIds, float* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[165])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[165])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount, double groupSize, double shift) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount, double groupSize) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount, double groupSize, double shift) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount, double groupSize) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + fixed (float* pvalues = &values) + { + PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, groupSize, shift, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount, double groupSize, double shift) + { + fixed (float* pvalues = &values) + { + PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount, double groupSize) + { + fixed (float* pvalues = &values) + { + PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount) + { + fixed (float* pvalues = &values) + { + PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) + { + fixed (float* pvalues = &values) + { + PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) + { + fixed (float* pvalues = &values) + { + PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, groupSize, shift, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount, double groupSize, double shift) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount, double groupSize) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } } @@ -3668,1370 +4356,681 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotBarGroupsNative(byte** labelIds, double* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[112])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[166])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[112])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[166])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount, double groupSize, double shift) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount, double groupSize) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart) + public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale) + public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref) + public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* values, int count) + public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount, double groupSize, double shift) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount, double groupSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart) + public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale) + public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, double yref) + public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count) + public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, groupSize, shift, flags); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount, double groupSize, double shift) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, double yref, ImPlotShadedFlags flags) + public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount, double groupSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, ImPlotShadedFlags flags) + public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart, int offset) + public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, int offset) + public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, double yref, int offset) + public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, groupSize, shift, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, int offset) + public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount, double groupSize, double shift) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount, double groupSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, ImPlotShadedFlags flags, int offset) + public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart, int offset, int stride) + public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarGroupsNative(byte** labelIds, sbyte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[167])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[167])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, sbyte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, sbyte* values, int itemCount, int groupCount, double groupSize, double shift) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, sbyte* values, int itemCount, int groupCount, double groupSize) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, sbyte* values, int itemCount, int groupCount) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, sbyte* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, sbyte* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, sbyte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, double yref, int offset, int stride) + public static void PlotBarGroups(string[] labelIds, sbyte* values, int itemCount, int groupCount, double groupSize, double shift) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + Utils.Free(pStrArray0[i]); } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + Utils.Free(pStrArray0); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.025.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.025.cs index a46a1ab6f..d88d01fd0 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.025.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.025.cs @@ -22,1762 +22,136 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBarGroups(string[] labelIds, sbyte* values, int itemCount, int groupCount, double groupSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* values, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBarGroups(string[] labelIds, sbyte* values, int itemCount, int groupCount) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, double xscale, double xstart) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, double xscale) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, ImPlotShadedFlags flags) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, double xscale, int offset) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, int offset) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, int offset) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, double xscale, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotShadedNative(labelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, xstart, flags, offset, stride); + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) + for (int i = 0; i < labelIds.Length; i++) { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); - } + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBarGroups(string[] labelIds, sbyte* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - fixed (short* pvalues = &values) + if (pStrArray0Size > Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + for (int i = 0; i < labelIds.Length; i++) { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBarGroups(string[] labelIds, sbyte* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + for (int i = 0; i < labelIds.Length; i++) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); } - fixed (short* pvalues = &values) + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStrArray0[i]); } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + if (pStrArray0Size >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotShadedNative(pStr0, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStrArray0); } } @@ -1785,3132 +159,264 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotBarGroupsNative(byte** labelIds, byte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[113])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[168])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[113])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[168])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount, double groupSize, double shift) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount, double groupSize) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart) + public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale) + public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref) + public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* values, int count) + public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount, double groupSize, double shift) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount, double groupSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart) + public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale) + public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref) + public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < labelIds.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, double xscale, double xstart) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, double xscale) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, ImPlotShadedFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, double xscale, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, double xscale, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative(labelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } + Utils.Free(pStrArray0[i]); } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) + if (pStrArray0Size >= Utils.MaxStackallocSize) { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotShadedNative(pStr0, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStrArray0); } } @@ -4918,109 +424,4624 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotBarGroupsNative(byte** labelIds, short* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[114])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[169])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[114])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[169])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount, double groupSize, double shift) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount, double groupSize) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart) + public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale) + public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref) + public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* values, int count) + public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount, double groupSize, double shift) { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, ImPlotShadedFlags flags) + public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount, double groupSize) { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* values, int count, ImPlotShadedFlags flags) + public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount) { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, int offset) + public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, int offset) + public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarGroupsNative(byte** labelIds, ushort* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[170])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[170])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount, double groupSize, double shift) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount, double groupSize) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount, double groupSize, double shift) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount, double groupSize) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarGroupsNative(byte** labelIds, int* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[171])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[171])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount, double groupSize, double shift) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount, double groupSize) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount, double groupSize, double shift) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount, double groupSize) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarGroupsNative(byte** labelIds, uint* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[172])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[172])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount, double groupSize, double shift) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount, double groupSize) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount, double groupSize, double shift) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount, double groupSize) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarGroupsNative(byte** labelIds, long* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[173])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[173])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount, double groupSize, double shift) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount, double groupSize) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount, double groupSize, double shift) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount, double groupSize) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarGroupsNative(byte** labelIds, ulong* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[174])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[174])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount, double groupSize, double shift) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount, double groupSize) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) + { + PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount, double groupSize, double shift) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount, double groupSize) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotErrorBarsNative(byte* labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[175])(labelId, xs, ys, err, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[175])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* err, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count, int offset) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* err, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count, int offset) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* err, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* err, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count, int offset) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count, int offset, int stride) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float err, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float err, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count, int offset) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count, int offset, int stride) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float err, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.026.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.026.cs index 0d148af17..4bcc5c49b 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.026.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.026.cs @@ -22,631 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -665,17 +41,23 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - Utils.Free(pStr0); + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -694,17 +76,23 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - Utils.Free(pStr0); + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -723,896 +111,137 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* perr = &err) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - else + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, stride); + } } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale) + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + } } - else + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + } } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, int* values, int count, double yref) + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } } - else + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, int* values, int count) + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + fixed (float* perr = &err) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, double xscale, double xstart) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, double xscale) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, ImPlotShadedFlags flags) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, double xscale, int offset) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, int offset) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, int offset) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, double xscale, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotShadedNative(labelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, xstart, flags, offset, stride); + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, stride); + } + } } } } @@ -1620,13 +249,19 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + } + } } } } @@ -1634,13 +269,19 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + } + } } } } @@ -1648,13 +289,19 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, double xscale, double xstart) + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } } } } @@ -1662,13 +309,19 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, double xscale) + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } } } } @@ -1676,13 +329,19 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref) + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } } } } @@ -1690,265 +349,19 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref int values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, xstart, flags, offset, stride); + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, stride); + } + } } } } @@ -1956,13 +369,19 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + } + } } } } @@ -1970,13 +389,19 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + } + } } } } @@ -1984,13 +409,19 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, double xscale, double xstart) + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float err, int count) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } } } } @@ -1998,13 +429,19 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, double xscale) + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float err, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } } } } @@ -2012,13 +449,19 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref) + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float err, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + fixed (float* pys = &ys) + { + fixed (float* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } } } } @@ -2026,259 +469,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2297,12 +488,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - Utils.Free(pStr0); + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -2310,7 +507,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2329,12 +526,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - Utils.Free(pStr0); + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -2342,7 +545,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2361,12 +564,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - Utils.Free(pStr0); + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -2374,7 +583,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, double xscale, double xstart) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2393,12 +602,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - Utils.Free(pStr0); + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -2406,7 +621,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, double xscale) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2425,12 +640,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - Utils.Free(pStr0); + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -2438,7 +659,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int values, int count, double yref) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2457,588 +678,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pys = &ys) { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotShadedNative(pStr0, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (float* perr = &err) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -3047,739 +698,199 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotErrorBarsNative(byte* labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[115])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[176])(labelId, xs, ys, err, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[115])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[176])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart) + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale) + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, int offset) { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref) + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, int offset, int stride) { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* values, int count) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart) + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale) + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref) + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, double xstart) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* err, int count) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* err, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* err, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3798,7 +909,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3808,7 +919,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3827,7 +938,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3837,7 +948,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3856,7 +967,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3866,7 +977,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart) + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3885,7 +996,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3895,7 +1006,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale) + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3914,7 +1025,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3924,7 +1035,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* values, int count, double yref) + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3943,7 +1054,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3953,799 +1064,79 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* values, int count) + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* values, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart, int offset) + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, int offset) + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pxs = &xs) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, double xscale, double xstart) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, double xscale) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, ImPlotShadedFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, double xscale, int offset) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, int offset) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, int offset) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, double xscale, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative(labelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, xstart, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, offset, stride); } } } @@ -4753,13 +1144,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, offset, (int)(sizeof(double))); } } } @@ -4767,13 +1158,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -4781,13 +1172,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, double xscale, double xstart) + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -4795,13 +1186,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, double xscale) + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -4809,13 +1200,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref) + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } } @@ -4823,13 +1214,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, offset, stride); } } } @@ -4837,13 +1228,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, double xscale, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, offset, (int)(sizeof(double))); } } } @@ -4851,13 +1242,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -4865,13 +1256,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* err, int count) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -4879,13 +1270,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, double xscale, double xstart, int offset) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* err, int count, int offset) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -4893,13 +1284,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, double xscale, int offset) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* err, int count, int offset, int stride) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } } @@ -4907,13 +1298,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, int offset) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (uint* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4921,13 +1330,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, int offset) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (uint* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4935,13 +1362,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (uint* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4949,13 +1394,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (uint* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4963,13 +1426,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count, int offset) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (uint* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4977,13 +1458,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, double xscale, double xstart, int offset, int stride) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count, int offset, int stride) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (uint* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4991,13 +1490,79 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, double xscale, int offset, int stride) + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count, int offset) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, offset, stride); } } } @@ -5005,13 +1570,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); } } } @@ -5019,15 +1584,3441 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); } } } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* err, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* err, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count, int offset) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count, int offset, int stride) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double err, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double err, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count, int offset) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count, int offset, int stride) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double err, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double err, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* perr = &err) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotErrorBarsNative(byte* labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[177])(labelId, xs, ys, err, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[177])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* err, int count) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* err, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* err, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotErrorBarsNative(byte* labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[178])(labelId, xs, ys, err, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[178])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* err, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.027.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.027.cs index ca43b6098..c96bb69cd 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.027.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.027.cs @@ -22,385 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -419,20 +41,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -451,20 +70,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -483,20 +99,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, double xscale, double xstart) + public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -515,653 +128,10 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotShadedNative(pStr0, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } @@ -1169,739 +139,199 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotErrorBarsNative(byte* labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[116])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[179])(labelId, xs, ys, err, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[116])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[179])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart) + public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale) + public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count, int offset) { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref) + public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count, int offset, int stride) { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* values, int count) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart) + public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale) + public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref) + public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, double xstart) + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* err, int count) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale) + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* err, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref) + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* err, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1920,7 +350,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1930,7 +360,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1949,7 +379,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1959,7 +389,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1978,7 +408,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1988,7 +418,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart) + public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2007,7 +437,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2017,7 +447,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale) + public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2036,7 +466,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2046,7 +476,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* values, int count, double yref) + public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2065,2958 +495,4528 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, double xscale, double xstart) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, double xscale) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, ImPlotShadedFlags flags) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, double xscale, int offset) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, int offset) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, int offset) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, double xscale, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotShadedNative(labelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotShadedNative(pStr0, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotErrorBarsNative(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[117])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[180])(labelId, xs, ys, err, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[117])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[180])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart) + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count) { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale) + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset) { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref) + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset, int stride) { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* values, int count) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart) + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale) + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref) + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, double xstart) + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* err, int count) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale) + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref) + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count) + public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { - fixed (byte* plabelId = labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) { - fixed (byte* plabelId = labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) { - fixed (byte* plabelId = labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count) { - fixed (byte* plabelId = labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset) + public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset) { - fixed (byte* plabelId = labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, int offset) + public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset, int stride) { - fixed (byte* plabelId = labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotErrorBarsNative(byte* labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { - fixed (byte* plabelId = labelId) + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[181])(labelId, xs, ys, err, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[181])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, int offset) + public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, int offset) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, int offset, int stride) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* err, int count) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* err, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotErrorBarsNative(byte* labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[182])(labelId, xs, ys, err, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[182])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* err, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotErrorBarsNative(byte* labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[183])(labelId, xs, ys, err, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[183])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* err, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotErrorBarsNative(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[184])(labelId, xs, ys, err, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[184])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* err, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotErrorBarsNative(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[185])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[185])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, float* pos, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, float* pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, float* pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, float* pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, float* pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, float* pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.028.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.028.cs index 1f1b22268..f07595c3b 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.028.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.028.cs @@ -22,4129 +22,58 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, double xscale, double xstart) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, double xscale) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, ImPlotShadedFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, double xscale, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, double xscale, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative(labelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotShadedNative(pStr0, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[118])(labelId, xs, ys, count, yref, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[118])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, float* xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, float* xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, float* xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref, int offset) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count) { fixed (float* pys = &ys) { - PlotShadedNative(labelId, xs, (float*)pys, count, yref, flags, offset, stride); + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset) { fixed (float* pys = &ys) { - PlotShadedNative(labelId, xs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) { fixed (float* pys = &ys) { - PlotShadedNative(labelId, xs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref, int offset) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, int offset) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { fixed (float* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, offset, stride); + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); + } } } } @@ -4152,13 +81,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { fixed (float* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + } } } } @@ -4166,13 +98,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = &labelId) { fixed (float* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } } } } @@ -4180,13 +115,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref) + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count) { fixed (byte* plabelId = &labelId) { fixed (float* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } } } } @@ -4194,13 +132,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count) + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset) { fixed (byte* plabelId = &labelId) { fixed (float* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } } } } @@ -4208,13 +149,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { fixed (float* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } } } } @@ -4222,97 +166,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { fixed (float* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, offset, stride); + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); + } } } } @@ -4320,13 +183,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { fixed (float* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + } } } } @@ -4334,13 +200,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = labelId) { fixed (float* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } } } } @@ -4348,13 +217,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, double yref) + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, float* pos, int count) { fixed (byte* plabelId = labelId) { fixed (float* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } } } } @@ -4362,13 +234,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count) + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset) { fixed (byte* plabelId = labelId) { fixed (float* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } } } } @@ -4376,13 +251,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { fixed (float* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } } } } @@ -4390,91 +268,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4495,10 +289,13 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pneg = &neg) { - Utils.Free(pStr0); + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4506,7 +303,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4527,10 +324,13 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pneg = &neg) { - Utils.Free(pStr0); + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4538,7 +338,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4559,10 +359,13 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pneg = &neg) { - Utils.Free(pStr0); + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4570,7 +373,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref) + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4591,10 +394,13 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pneg = &neg) { - Utils.Free(pStr0); + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4602,7 +408,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys, int count) + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4623,10 +429,13 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pneg = &neg) { - Utils.Free(pStr0); + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4634,7 +443,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4655,7 +464,846 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, float* pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, ref float pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4666,7 +1314,953 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref, int offset) + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, ref float pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, ref float pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4687,10 +2281,13 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* ppos = &pos) { - Utils.Free(pStr0); + PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4698,7 +2295,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, int offset) + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4719,10 +2316,13 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* ppos = &pos) { - Utils.Free(pStr0); + PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4730,7 +2330,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4751,10 +2351,13 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* ppos = &pos) { - Utils.Free(pStr0); + PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4762,7 +2365,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref, int offset, int stride) + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4783,10 +2386,13 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* ppos = &pos) { - Utils.Free(pStr0); + PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4794,7 +2400,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, int offset, int stride) + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4815,10 +2421,13 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* ppos = &pos) { - Utils.Free(pStr0); + PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4826,7 +2435,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4847,10 +2456,393 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), flags, offset, stride); + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, ref float pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -4858,13 +2850,37 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } fixed (float* pxs = &xs) { fixed (float* pys = &ys) { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, flags, offset, stride); + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -4872,13 +2888,37 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } fixed (float* pxs = &xs) { fixed (float* pys = &ys) { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -4886,13 +2926,37 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count) { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } fixed (float* pxs = &xs) { fixed (float* pys = &ys) { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -4900,13 +2964,37 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset) { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } fixed (float* pxs = &xs) { fixed (float* pys = &ys) { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -4914,13 +3002,37 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } fixed (float* pxs = &xs) { fixed (float* pys = &ys) { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -4928,13 +3040,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { - fixed (float* pxs = &xs) + fixed (float* pneg = &neg) { - fixed (float* pys = &ys) + fixed (float* ppos = &pos) { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); } } } @@ -4942,13 +3054,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref, int offset) + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) { - fixed (float* pxs = &xs) + fixed (float* pneg = &neg) { - fixed (float* pys = &ys) + fixed (float* ppos = &pos) { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); } } } @@ -4956,13 +3068,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, int offset) + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) { - fixed (float* pxs = &xs) + fixed (float* pneg = &neg) { - fixed (float* pys = &ys) + fixed (float* ppos = &pos) { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); } } } @@ -4970,13 +3082,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count) { - fixed (float* pxs = &xs) + fixed (float* pneg = &neg) { - fixed (float* pys = &ys) + fixed (float* ppos = &pos) { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); + PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -4984,13 +3096,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref, int offset, int stride) + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset) { - fixed (float* pxs = &xs) + fixed (float* pneg = &neg) { - fixed (float* pys = &ys) + fixed (float* ppos = &pos) { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); } } } @@ -4998,13 +3110,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) + public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) { - fixed (float* pxs = &xs) + fixed (float* pneg = &neg) { - fixed (float* pys = &ys) + fixed (float* ppos = &pos) { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } } @@ -5012,13 +3124,1903 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, ref float pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, ref float pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, ref float pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (float* pxs = &xs) { fixed (float* pys = &ys) { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.029.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.029.cs index 3c4e9177b..d646397fc 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.029.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.029.cs @@ -22,211 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset) { fixed (byte* plabelId = labelId) { @@ -234,7 +30,13 @@ namespace Dalamud.Bindings.ImPlot { fixed (float* pys = &ys) { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, offset, stride); + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + } + } } } } @@ -243,7 +45,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { @@ -251,7 +53,13 @@ namespace Dalamud.Bindings.ImPlot { fixed (float* pys = &ys) { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); + fixed (float* pneg = &neg) + { + fixed (float* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } } } } @@ -260,177 +68,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -453,10 +91,16 @@ namespace Dalamud.Bindings.ImPlot { fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pneg = &neg) { - Utils.Free(pStr0); + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -465,7 +109,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -488,10 +132,16 @@ namespace Dalamud.Bindings.ImPlot { fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pneg = &neg) { - Utils.Free(pStr0); + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -500,7 +150,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -523,10 +173,16 @@ namespace Dalamud.Bindings.ImPlot { fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pneg = &neg) { - Utils.Free(pStr0); + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -535,7 +191,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -558,10 +214,16 @@ namespace Dalamud.Bindings.ImPlot { fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pneg = &neg) { - Utils.Free(pStr0); + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -570,7 +232,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -593,10 +255,16 @@ namespace Dalamud.Bindings.ImPlot { fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pneg = &neg) { - Utils.Free(pStr0); + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -605,7 +273,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -628,220 +296,16 @@ namespace Dalamud.Bindings.ImPlot { fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pneg = &neg) { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (float* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } } @@ -851,379 +315,199 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotErrorBarsNative(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[119])(labelId, xs, ys, count, yref, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[186])(labelId, xs, ys, neg, pos, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[119])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[186])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(double))); + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref) + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count) { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count) + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset, int stride) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref) + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count) + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, double yref) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, double* pos, int count) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1242,7 +526,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1252,7 +536,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1271,7 +555,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1281,7 +565,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1300,7 +584,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1310,7 +594,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref) + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1329,7 +613,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1339,7 +623,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys, int count) + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1358,7 +642,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1368,7 +652,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1387,7 +671,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1397,319 +681,79 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (double* pxs = &xs) { - PlotShadedNative(labelId, (double*)pxs, ys, count, yref, flags, offset, stride); + PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (double* pxs = &xs) { - PlotShadedNative(labelId, (double*)pxs, ys, count, yref, flags, offset, (int)(sizeof(double))); + PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) { fixed (double* pxs = &xs) { - PlotShadedNative(labelId, (double*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref) + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count) { fixed (double* pxs = &xs) { - PlotShadedNative(labelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count) + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset) { fixed (double* pxs = &xs) { - PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset, int stride) { fixed (double* pxs = &xs) { - PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref, int offset) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, offset, stride); } } } @@ -1717,13 +761,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, offset, (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); } } } @@ -1731,13 +775,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = &labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -1745,13 +789,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref) + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count) { fixed (byte* plabelId = &labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -1759,13 +803,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count) + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset) { fixed (byte* plabelId = &labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -1773,13 +817,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } } @@ -1787,97 +831,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, offset, stride); } } } @@ -1885,13 +845,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, offset, (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); } } } @@ -1899,13 +859,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -1913,13 +873,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, double yref) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, double* pos, int count) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -1927,13 +887,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -1941,13 +901,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } } @@ -1955,91 +915,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2060,7 +936,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, flags, offset, stride); + PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2071,7 +947,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2092,7 +968,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, flags, offset, (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2103,7 +979,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2124,7 +1000,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2135,7 +1011,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2156,7 +1032,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2167,7 +1043,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys, int count) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2188,7 +1064,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2199,7 +1075,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2220,7 +1096,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2231,337 +1107,79 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (double* pys = &ys) { - PlotShadedNative(labelId, xs, (double*)pys, count, yref, flags, offset, stride); + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (double* pys = &ys) { - PlotShadedNative(labelId, xs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) { fixed (double* pys = &ys) { - PlotShadedNative(labelId, xs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref) + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count) { fixed (double* pys = &ys) { - PlotShadedNative(labelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count) + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset) { fixed (double* pys = &ys) { - PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) { fixed (double* pys = &ys) { - PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref, int offset) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, int offset) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, offset, stride); } } } @@ -2569,13 +1187,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); } } } @@ -2583,13 +1201,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = &labelId) { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -2597,13 +1215,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref) + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count) { fixed (byte* plabelId = &labelId) { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -2611,13 +1229,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count) + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset) { fixed (byte* plabelId = &labelId) { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -2625,13 +1243,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } } @@ -2639,97 +1257,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, offset, stride); } } } @@ -2737,13 +1271,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); } } } @@ -2751,13 +1285,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = labelId) { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -2765,13 +1299,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, double yref) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, double* pos, int count) { fixed (byte* plabelId = labelId) { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -2779,13 +1313,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset) { fixed (byte* plabelId = labelId) { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -2793,13 +1327,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } } @@ -2807,91 +1341,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2912,7 +1362,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pys = &ys) { - PlotShadedNative(pStr0, xs, (double*)pys, count, yref, flags, offset, stride); + PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2923,7 +1373,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2944,7 +1394,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pys = &ys) { - PlotShadedNative(pStr0, xs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2955,7 +1405,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2976,7 +1426,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pys = &ys) { - PlotShadedNative(pStr0, xs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2987,7 +1437,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref) + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3008,7 +1458,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pys = &ys) { - PlotShadedNative(pStr0, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3019,7 +1469,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, ref double ys, int count) + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3040,7 +1490,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pys = &ys) { - PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3051,7 +1501,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3072,7 +1522,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pys = &ys) { - PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3083,205 +1533,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (double* pxs = &xs) { fixed (double* pys = &ys) { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, flags, offset, stride); + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, stride); } } } @@ -3289,13 +1547,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (double* pxs = &xs) { fixed (double* pys = &ys) { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); } } } @@ -3303,13 +1561,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) { fixed (double* pxs = &xs) { fixed (double* pys = &ys) { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -3317,13 +1575,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref) + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count) { fixed (double* pxs = &xs) { fixed (double* pys = &ys) { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -3331,13 +1589,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count) + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset) { fixed (double* pxs = &xs) { fixed (double* pys = &ys) { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -3345,13 +1603,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) { fixed (double* pxs = &xs) { fixed (double* pys = &ys) { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } } @@ -3359,91 +1617,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { @@ -3451,7 +1625,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, stride); } } } @@ -3460,7 +1634,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { @@ -3468,7 +1642,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); } } } @@ -3477,7 +1651,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = &labelId) { @@ -3485,7 +1659,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -3494,7 +1668,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref) + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count) { fixed (byte* plabelId = &labelId) { @@ -3502,7 +1676,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -3511,7 +1685,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count) + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset) { fixed (byte* plabelId = &labelId) { @@ -3519,7 +1693,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -3528,7 +1702,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { @@ -3536,7 +1710,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } } @@ -3545,109 +1719,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { @@ -3655,7 +1727,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, stride); } } } @@ -3664,7 +1736,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { @@ -3672,7 +1744,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); } } } @@ -3681,7 +1753,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = labelId) { @@ -3689,7 +1761,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -3698,7 +1770,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double yref) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, double* pos, int count) { fixed (byte* plabelId = labelId) { @@ -3706,7 +1778,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -3715,7 +1787,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset) { fixed (byte* plabelId = labelId) { @@ -3723,7 +1795,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -3732,7 +1804,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { @@ -3740,7 +1812,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } } @@ -3749,109 +1821,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3874,7 +1844,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, flags, offset, stride); + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3886,7 +1856,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3909,7 +1879,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3921,7 +1891,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3944,7 +1914,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3956,7 +1926,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref) + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3979,7 +1949,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3991,7 +1961,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count) + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4014,7 +1984,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4026,7 +1996,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4049,7 +2019,7 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4061,7 +2031,1771 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref, int offset) + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, double* pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, double* pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, double* pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, double* pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4084,10 +3818,13 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pneg = &neg) { - Utils.Free(pStr0); + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4096,7 +3833,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, int offset) + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4119,10 +3856,13 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pneg = &neg) { - Utils.Free(pStr0); + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4131,7 +3871,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4154,10 +3894,13 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pneg = &neg) { - Utils.Free(pStr0); + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4166,7 +3909,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref, int offset, int stride) + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4189,10 +3932,13 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pneg = &neg) { - Utils.Free(pStr0); + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4201,7 +3947,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, int offset, int stride) + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4224,10 +3970,13 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pneg = &neg) { - Utils.Free(pStr0); + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4236,7 +3985,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4259,7 +4008,759 @@ namespace Dalamud.Bindings.ImPlot { fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); + fixed (double* pneg = &neg) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, ref double pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, ref double pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4271,380 +4772,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[120])(labelId, xs, ys, count, yref, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[120])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4663,17 +4791,23 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pxs = &xs) { - Utils.Free(pStr0); + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4692,17 +4826,23 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pxs = &xs) { - Utils.Free(pStr0); + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4721,17 +4861,23 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pxs = &xs) { - Utils.Free(pStr0); + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4750,17 +4896,23 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pxs = &xs) { - Utils.Free(pStr0); + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count) + public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4779,246 +4931,100 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pxs = &xs) { - Utils.Free(pStr0); + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pys = &ys) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* ppos = &pos) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref, int offset) + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pys = &ys) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* ppos = &pos) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, int offset) + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pys = &ys) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* ppos = &pos) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pys = &ys) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* ppos = &pos) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref, int offset, int stride) + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pys = &ys) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* ppos = &pos) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, int offset, int stride) + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pys = &ys) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* ppos = &pos) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys, count, yref, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.030.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.030.cs index 9f7601553..60c618d88 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.030.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.030.cs @@ -22,1854 +22,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys, int count, double yref) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys, int count, double yref, int offset) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys, int count, double yref, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, yref, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, yref, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotShadedNative(pStr0, (byte*)pxs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotShadedNative(pStr0, (byte*)pxs, ys, count, yref, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotShadedNative(pStr0, (byte*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotShadedNative(pStr0, (byte*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotShadedNative(pStr0, (byte*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotShadedNative(pStr0, (byte*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotShadedNative(pStr0, (byte*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotShadedNative(pStr0, (byte*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotShadedNative(pStr0, (byte*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotShadedNative(pStr0, (byte*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotShadedNative(pStr0, (byte*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotShadedNative(pStr0, (byte*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, xs, (byte*)pys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, xs, (byte*)pys, count, yref, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, xs, (byte*)pys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys, int count, double yref) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, xs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, xs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, xs, (byte*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys, int count, double yref, int offset) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, xs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, xs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, xs, (byte*)pys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys, int count, double yref, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, xs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, xs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, xs, (byte*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, yref, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, yref, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotShadedNative(pStr0, xs, (byte*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotShadedNative(pStr0, xs, (byte*)pys, count, yref, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotShadedNative(pStr0, xs, (byte*)pys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotShadedNative(pStr0, xs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotShadedNative(pStr0, xs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotShadedNative(pStr0, xs, (byte*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotShadedNative(pStr0, xs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotShadedNative(pStr0, xs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotShadedNative(pStr0, xs, (byte*)pys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotShadedNative(pStr0, xs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotShadedNative(pStr0, xs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotShadedNative(pStr0, xs, (byte*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys, count, yref, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys, int count, double yref) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys, int count, double yref, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys, int count, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys, int count, double yref, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, yref, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); } } } @@ -1878,15 +39,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, yref, flags, offset, (int)(sizeof(sbyte))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); } } } @@ -1895,15 +56,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -1912,15 +73,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys, int count, double yref) + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -1929,15 +90,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys, int count) + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -1946,15 +107,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } } @@ -1963,117 +124,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, yref, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); } } } @@ -2082,15 +141,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, yref, flags, offset, (int)(sizeof(sbyte))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); } } } @@ -2099,15 +158,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -2116,15 +175,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double yref) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, ref double pos, int count) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -2133,15 +192,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -2150,15 +209,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } } @@ -2167,109 +226,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2288,11 +245,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys, count, yref, flags, offset, stride); + PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2304,7 +261,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2323,11 +280,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys, count, yref, flags, offset, (int)(sizeof(sbyte))); + PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2339,7 +296,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2358,11 +315,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); + PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2374,7 +331,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys, int count, double yref) + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2393,11 +350,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2409,7 +366,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys, int count) + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2428,11 +385,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2444,7 +401,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2463,11 +420,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pys = &ys) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2479,7 +436,349 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys, int count, double yref, int offset) + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, ref double pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2498,11 +797,527 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (byte* pys = &ys) + fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, ref double pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2514,7 +1329,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys, int count, int offset) + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2533,11 +1348,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pneg = &neg) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2549,7 +1364,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2568,11 +1383,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pneg = &neg) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); + PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2584,7 +1399,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys, int count, double yref, int offset, int stride) + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2603,11 +1418,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pneg = &neg) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2619,7 +1434,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys, int count, int offset, int stride) + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2638,11 +1453,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pneg = &neg) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2654,7 +1469,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2673,11 +1488,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (double* pneg = &neg) { - fixed (byte* pys = &ys) + fixed (double* ppos = &pos) { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys, count, (double)(0), flags, offset, stride); + PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2686,383 +1501,1985 @@ namespace Dalamud.Bindings.ImPlot } } + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, ref double pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, ref double pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + fixed (double* pneg = &neg) + { + fixed (double* ppos = &pos) + { + PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + } + /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotErrorBarsNative(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[121])(labelId, xs, ys, count, yref, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[187])(labelId, xs, ys, neg, pos, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[121])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[187])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(short))); + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(short))); + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref) + public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count) { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count) + public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset, int stride) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(short))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(short))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref) + public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count) + public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(short))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(short))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, double yref) + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count) + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3081,7 +3498,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3091,7 +3508,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3110,7 +3527,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(short))); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3120,7 +3537,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3139,7 +3556,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(short))); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3149,7 +3566,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref) + public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3168,7 +3585,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3178,7 +3595,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys, int count) + public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3197,7 +3614,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3207,7 +3624,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3226,7 +3643,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3236,7 +3653,200 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotErrorBarsNative(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[188])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[188])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3255,7 +3865,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3265,7 +3875,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys, int count, int offset) + public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3284,7 +3894,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3294,7 +3904,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3313,7 +3923,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3323,7 +3933,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref, int offset, int stride) + public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3342,7 +3952,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3352,7 +3962,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys, int count, int offset, int stride) + public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3371,7 +3981,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3381,7 +3991,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3400,7 +4010,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3410,475 +4020,200 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotErrorBarsNative(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys, count, yref, flags, offset, stride); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[189])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[189])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys, count, yref, flags, offset, (int)(sizeof(short))); - } + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys, int count, double yref) + public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys, int count) + public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count) { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset) { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys, int count, double yref, int offset) + public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset, int stride) { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys, int count, int offset) - { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys, int count, double yref, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, yref, flags, offset, stride); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, yref, flags, offset, (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys, int count, double yref) + public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys, int count) + public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, yref, flags, offset, stride); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, yref, flags, offset, (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys, int count, double yref) + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* pos, int count) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys, int count) + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3897,20 +4232,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3929,20 +4261,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, ys, count, yref, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, short* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3961,20 +4290,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, short* ys, int count, double yref) + public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3993,20 +4319,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, short* ys, int count) + public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4025,20 +4348,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, short* ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4057,680 +4377,210 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, short* ys, int count, double yref, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotErrorBarsNative(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotShadedNative(pStr0, (short*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[190])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[190])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, short* ys, int count, int offset) + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotShadedNative(pStr0, (short*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, short* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotShadedNative(pStr0, (short*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, short* ys, int count, double yref, int offset, int stride) + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotShadedNative(pStr0, (short*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, short* ys, int count, int offset, int stride) + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotShadedNative(pStr0, (short*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, short* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotShadedNative(pStr0, (short*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset, int stride) { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, xs, (short*)pys, count, yref, flags, offset, stride); - } + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, xs, (short*)pys, count, yref, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, xs, (short*)pys, count, yref, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys, int count, double yref) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, xs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys, int count) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, xs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys, int count, ImPlotShadedFlags flags) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, xs, (short*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys, int count, double yref, int offset) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, xs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys, int count, int offset) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, xs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, xs, (short*)pys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys, int count, double yref, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, xs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys, int count, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, xs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, xs, (short*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, yref, flags, offset, stride); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, yref, flags, offset, (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, yref, flags, (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys, int count, double yref) + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys, int count) + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, yref, flags, offset, stride); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, yref, flags, offset, (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, yref, flags, (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys, int count, double yref) + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys, int count) + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, ref short ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4749,20 +4599,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (short*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, ref short ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4781,20 +4628,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (short*)pys, count, yref, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, ref short ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4813,20 +4657,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (short*)pys, count, yref, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, ref short ys, int count, double yref) + public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4845,20 +4686,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, ref short ys, int count) + public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4877,20 +4715,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, ref short ys, int count, ImPlotShadedFlags flags) + public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4909,20 +4744,210 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (short*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, ref short ys, int count, double yref, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotErrorBarsNative(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[191])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[191])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, int* pos, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4941,20 +4966,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, ref short ys, int count, int offset) + public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4973,20 +4995,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, ref short ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5005,45 +5024,10 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (short*)pys, count, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, ref short ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotShadedNative(pStr0, xs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.031.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.031.cs index cb1d3bd4c..3218a2cc0 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.031.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.031.cs @@ -22,7 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, ref short ys, int count, int offset, int stride) + public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,9 +41,3562 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotErrorBarsNative(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[192])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[192])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotErrorBarsNative(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[193])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[193])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, long* pos, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotErrorBarsNative(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[194])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[194])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset, int stride) + { + PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStemsNative(byte* labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[195])(labelId, values, count, reference, scale, start, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[195])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, double start) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, double start, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, double scale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, double scale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, double scale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, ImPlotStemsFlags flags) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start, int offset) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, int offset) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, int offset) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, int offset) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, double start) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, double start, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -54,7 +3607,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, ref short ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -73,9 +3626,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, (short*)pys, count, (double)(0), flags, offset, stride); + PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -86,583 +3639,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys, count, yref, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys, count, yref, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys, int count, double yref) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys, int count, ImPlotShadedFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys, int count, double yref, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys, int count, double yref, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, yref, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, yref, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, yref, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, yref, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, ref short ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -681,15 +3658,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -697,7 +3671,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, ref short ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start) { byte* pStr0 = null; int pStrSize0 = 0; @@ -716,15 +3690,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys, count, yref, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -732,7 +3703,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, ref short ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, ref float values, int count, double reference, double scale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -751,15 +3722,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys, count, yref, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -767,7 +3735,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, ref short ys, int count, double yref) + public static void PlotStems(string labelId, ref float values, int count, double reference) { byte* pStr0 = null; int pStrSize0 = 0; @@ -786,15 +3754,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -802,7 +3767,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, ref short ys, int count) + public static void PlotStems(string labelId, ref float values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -821,15 +3786,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -837,7 +3799,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, ref short ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -856,15 +3818,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -872,7 +3831,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, ref short ys, int count, double yref, int offset) + public static void PlotStems(string labelId, ref float values, int count, double reference, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -891,15 +3850,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -907,7 +3863,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, ref short ys, int count, int offset) + public static void PlotStems(string labelId, ref float values, int count, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -926,15 +3882,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -942,7 +3895,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, ref short ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -961,15 +3914,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys, count, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -977,7 +3927,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, ref short ys, int count, double yref, int offset, int stride) + public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -996,15 +3946,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -1012,7 +3959,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, ref short ys, int count, int offset, int stride) + public static void PlotStems(string labelId, ref float values, int count, double reference, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1031,15 +3978,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -1047,7 +3991,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, ref short ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, ref float values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1066,15 +4010,332 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (short* pys = &ys) + PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float values, int count, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float values, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1083,3967 +4344,688 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotStemsNative(byte* labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[122])(labelId, xs, ys, count, yref, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[196])(labelId, values, count, reference, scale, start, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[122])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[196])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); + PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref) + public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start) { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count) + public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, double* values, int count, double reference) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, int offset) + public static void PlotStems(byte* labelId, double* values, int count) { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, int offset) + public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, double* values, int count, double reference, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, int offset, int stride) + public static void PlotStems(byte* labelId, double* values, int count, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start, int offset) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, int offset) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, double* values, int count, double reference, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* values, int count, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* values, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* values, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* values, int count, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref) + public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count) + public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, double* values, int count, double reference) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref, int offset) + public static void PlotStems(ref byte labelId, double* values, int count) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) + public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, double* values, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref, int offset, int stride) + public static void PlotStems(ref byte labelId, double* values, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotShadedNative(labelId, (ushort*)pxs, ys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotShadedNative(labelId, (ushort*)pxs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (ushort* pxs = &xs) - { - PlotShadedNative(labelId, (ushort*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys, int count, double yref) - { - fixed (ushort* pxs = &xs) - { - PlotShadedNative(labelId, (ushort*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys, int count) - { - fixed (ushort* pxs = &xs) - { - PlotShadedNative(labelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotShadedFlags flags) - { - fixed (ushort* pxs = &xs) - { - PlotShadedNative(labelId, (ushort*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys, int count, double yref, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotShadedNative(labelId, (ushort*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotShadedNative(labelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotShadedNative(labelId, (ushort*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys, int count, double yref, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotShadedNative(labelId, (ushort*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotShadedNative(labelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotShadedNative(labelId, (ushort*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, double* values, int count, double reference, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, yref, flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, double* values, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys, int count, double yref) + public static void PlotStems(ref byte labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys, int count) + public static void PlotStems(ref byte labelId, double* values, int count, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys, int count, double yref, int offset) + public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys, int count, int offset) + public static void PlotStems(ref byte labelId, double* values, int count, double reference, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, double* values, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys, int count, double yref, int offset, int stride) + public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) + public static void PlotStems(ref byte labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, double* values, int count, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, yref, flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double yref) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, double start) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double yref, int offset) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int offset) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double yref, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, double start, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotShadedNative(pStr0, (ushort*)pxs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotShadedNative(pStr0, (ushort*)pxs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotShadedNative(pStr0, (ushort*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotShadedNative(pStr0, (ushort*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotShadedNative(pStr0, (ushort*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotShadedNative(pStr0, (ushort*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotShadedNative(pStr0, (ushort*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotShadedNative(pStr0, (ushort*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotShadedNative(pStr0, (ushort*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotShadedNative(pStr0, (ushort*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotShadedNative(pStr0, (ushort*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotShadedNative(pStr0, (ushort*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, xs, (ushort*)pys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, xs, (ushort*)pys, count, yref, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, xs, (ushort*)pys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys, int count, double yref) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, xs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys, int count) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, xs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotShadedFlags flags) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, xs, (ushort*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys, int count, double yref, int offset) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, xs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys, int count, int offset) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, xs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, xs, (ushort*)pys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys, int count, double yref, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, xs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, xs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, xs, (ushort*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, yref, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, yref, flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, yref, flags, offset, (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double yref) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, double start, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double yref, int offset) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int offset) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ushort*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ushort*)pys, count, yref, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ushort*)pys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ushort*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ushort*)pys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ushort*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys, count, yref, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys, int count, double yref) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotShadedFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys, int count, double yref, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys, int count, double yref, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, yref, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, yref, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys, count, yref, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[123])(labelId, xs, ys, count, yref, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[123])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, int* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.032.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.032.cs index bfddc68e2..a1f541b64 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.032.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.032.cs @@ -22,7 +22,51 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref, int offset) + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, double* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,7 +85,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -51,7 +95,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, int* ys, int count, int offset) + public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -70,7 +114,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -80,7 +124,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -99,7 +143,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -109,7 +153,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref, int offset, int stride) + public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start) { byte* pStr0 = null; int pStrSize0 = 0; @@ -128,7 +172,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -138,7 +182,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, int* ys, int count, int offset, int stride) + public static void PlotStems(string labelId, double* values, int count, double reference, double scale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -157,7 +201,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -167,7 +211,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, double* values, int count, double reference) { byte* pStr0 = null; int pStrSize0 = 0; @@ -186,7 +230,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -196,475 +240,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys, count, yref, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys, int count, double yref) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys, int count) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys, int count, ImPlotShadedFlags flags) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys, int count, double yref, int offset) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys, int count, int offset) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys, int count, double yref, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, yref, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, yref, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, double* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -683,9 +259,1467 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (int*)pxs, ys, count, yref, flags, offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, double reference, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, double reference, double scale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, double reference, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, double reference, double scale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, ImPlotStemsFlags flags) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start, int offset) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, int offset) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, int offset) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, int offset) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (double* pvalues = &values) + { + PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, double start) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, double start, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -696,7 +1730,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -715,9 +1749,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (int*)pxs, ys, count, yref, flags, offset, (int)(sizeof(int))); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -728,7 +1762,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, int* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -747,9 +1781,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (int*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(int))); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -760,7 +1794,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, int* ys, int count, double yref) + public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start) { byte* pStr0 = null; int pStrSize0 = 0; @@ -779,9 +1813,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (int*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -792,7 +1826,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, int* ys, int count) + public static void PlotStems(string labelId, ref double values, int count, double reference, double scale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -811,9 +1845,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (int*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -824,7 +1858,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, int* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, ref double values, int count, double reference) { byte* pStr0 = null; int pStrSize0 = 0; @@ -843,9 +1877,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (int*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -856,7 +1890,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, int* ys, int count, double yref, int offset) + public static void PlotStems(string labelId, ref double values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -875,9 +1909,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (int*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -888,7 +1922,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, int* ys, int count, int offset) + public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -907,9 +1941,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (int*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -920,7 +1954,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, int* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, ref double values, int count, double reference, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -939,9 +1973,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (int*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -952,7 +1986,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, int* ys, int count, double yref, int offset, int stride) + public static void PlotStems(string labelId, ref double values, int count, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -971,9 +2005,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (int*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -984,7 +2018,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, int* ys, int count, int offset, int stride) + public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1003,9 +2037,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (int*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1016,7 +2050,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, int* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1035,9 +2069,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (int*)pxs, ys, count, (double)(0), flags, offset, stride); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1048,475 +2082,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, xs, (int*)pys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, xs, (int*)pys, count, yref, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, xs, (int*)pys, count, yref, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys, int count, double yref) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, xs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys, int count) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, xs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys, int count, ImPlotShadedFlags flags) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, xs, (int*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys, int count, double yref, int offset) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, xs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys, int count, int offset) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, xs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, xs, (int*)pys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys, int count, double yref, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, xs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, xs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, xs, (int*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, yref, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, yref, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, yref, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, yref, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, ref int ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, ref double values, int count, double reference, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1535,9 +2101,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, xs, (int*)pys, count, yref, flags, offset, stride); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1548,7 +2114,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, ref double values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1567,9 +2133,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, xs, (int*)pys, count, yref, flags, offset, (int)(sizeof(int))); + PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1580,7 +2146,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1599,9 +2165,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, xs, (int*)pys, count, yref, flags, (int)(0), (int)(sizeof(int))); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1612,7 +2178,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys, int count, double yref) + public static void PlotStems(string labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1631,9 +2197,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, xs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1644,7 +2210,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys, int count) + public static void PlotStems(string labelId, ref double values, int count, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1663,9 +2229,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, xs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1676,7 +2242,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1695,9 +2261,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, xs, (int*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1708,7 +2274,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys, int count, double yref, int offset) + public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1727,9 +2293,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, xs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1740,7 +2306,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys, int count, int offset) + public static void PlotStems(string labelId, ref double values, int count, double reference, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1759,9 +2325,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, xs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1772,7 +2338,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, ref double values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1791,9 +2357,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, xs, (int*)pys, count, (double)(0), flags, offset, (int)(sizeof(int))); + PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1804,7 +2370,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys, int count, double yref, int offset, int stride) + public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1823,9 +2389,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, xs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1836,7 +2402,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys, int count, int offset, int stride) + public static void PlotStems(string labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1855,9 +2421,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, xs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1868,7 +2434,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, ref double values, int count, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1887,9 +2453,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, xs, (int*)pys, count, (double)(0), flags, offset, stride); + PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1897,1379 +2463,743 @@ namespace Dalamud.Bindings.ImPlot } } - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys, count, yref, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys, count, yref, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys, int count, double yref) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys, int count, ImPlotShadedFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys, int count, double yref, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys, int count, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys, int count, double yref, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, yref, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, yref, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, yref, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, yref, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, ref int ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, ref int ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys, count, yref, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, ref int ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys, count, yref, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, ref int ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, ref int ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, ref int ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, ref int ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, ref int ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, ref int ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys, count, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, ref int ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, ref int ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotStemsNative(byte* labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[124])(labelId, xs, ys, count, yref, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[197])(labelId, values, count, reference, scale, start, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[124])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[197])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(uint))); + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(uint))); + PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref) + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, double start) { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count) + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref, int offset) + public static void PlotStems(byte* labelId, sbyte* values, int count) { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, int offset) + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref, int offset, int stride) + public static void PlotStems(byte* labelId, sbyte* values, int count, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, double start, int offset) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, int offset) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, double start, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(uint))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(uint))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref) + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, double start) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count) + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref, int offset) + public static void PlotStems(ref byte labelId, sbyte* values, int count) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, int offset) + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref, int offset, int stride) + public static void PlotStems(ref byte labelId, sbyte* values, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, double start, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(uint))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(uint))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double yref) + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, double scale, double start) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count) + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, double scale) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double yref, int offset) + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset) + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double yref, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, double scale, double start, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, double scale, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3288,7 +3218,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3298,7 +3228,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3317,7 +3247,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(uint))); + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3327,7 +3257,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3346,7 +3276,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(uint))); + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3356,7 +3286,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref) + public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, double start) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3375,7 +3305,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3385,7 +3315,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count) + public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3404,7 +3334,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3414,7 +3344,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, sbyte* values, int count, double reference) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3433,7 +3363,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3443,7 +3373,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref, int offset) + public static void PlotStems(string labelId, sbyte* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3462,7 +3392,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3472,7 +3402,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, int offset) + public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3491,7 +3421,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3501,7 +3431,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3520,7 +3450,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3530,7 +3460,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref, int offset, int stride) + public static void PlotStems(string labelId, sbyte* values, int count, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3549,7 +3479,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3559,7 +3489,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, int offset, int stride) + public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, double start, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3578,7 +3508,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3588,7 +3518,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3607,7 +3537,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3617,475 +3547,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys, count, yref, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys, int count, double yref) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys, int count) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys, int count, ImPlotShadedFlags flags) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys, int count, double yref, int offset) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys, int count, int offset) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys, int count, double yref, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, yref, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, yref, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, sbyte* values, int count, double reference, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4104,20 +3566,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pxs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, sbyte* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4136,20 +3595,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pxs, ys, count, yref, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4168,20 +3624,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys, int count, double yref) + public static void PlotStems(string labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4200,20 +3653,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys, int count) + public static void PlotStems(string labelId, sbyte* values, int count, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4232,20 +3682,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, double start, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4264,20 +3711,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys, int count, double yref, int offset) + public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4296,20 +3740,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys, int count, int offset) + public static void PlotStems(string labelId, sbyte* values, int count, double reference, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4328,20 +3769,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, sbyte* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4360,20 +3798,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys, int count, double yref, int offset, int stride) + public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4392,20 +3827,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys, int count, int offset, int stride) + public static void PlotStems(string labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4424,20 +3856,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, sbyte* values, int count, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4456,488 +3885,750 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStemsNative(byte* labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, xs, (uint*)pys, count, yref, flags, offset, stride); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[198])(labelId, values, count, reference, scale, start, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[198])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, xs, (uint*)pys, count, yref, flags, offset, (int)(sizeof(uint))); - } + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, xs, (uint*)pys, count, yref, flags, (int)(0), (int)(sizeof(uint))); - } + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys, int count, double yref) + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, xs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } + PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys, int count) + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start) { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, xs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale) { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, xs, (uint*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys, int count, double yref, int offset) + public static void PlotStems(byte* labelId, byte* values, int count, double reference) { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, xs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys, int count, int offset) + public static void PlotStems(byte* labelId, byte* values, int count) { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, xs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags) { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, xs, (uint*)pys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys, int count, double yref, int offset, int stride) + public static void PlotStems(byte* labelId, byte* values, int count, double reference, ImPlotStemsFlags flags) { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, xs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys, int count, int offset, int stride) + public static void PlotStems(byte* labelId, byte* values, int count, ImPlotStemsFlags flags) { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, xs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, int offset) { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, xs, (uint*)pys, count, (double)(0), flags, offset, stride); - } + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, double reference, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, yref, flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, yref, flags, offset, (int)(sizeof(uint))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, yref, flags, (int)(0), (int)(sizeof(uint))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys, int count, double yref) + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start) { fixed (byte* plabelId = &labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys, int count) + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale) { fixed (byte* plabelId = &labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, byte* values, int count, double reference) { fixed (byte* plabelId = &labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys, int count, double yref, int offset) + public static void PlotStems(ref byte labelId, byte* values, int count) { fixed (byte* plabelId = &labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys, int count, int offset) + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys, int count, double yref, int offset, int stride) + public static void PlotStems(ref byte labelId, byte* values, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys, int count, int offset, int stride) + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start, int offset) { fixed (byte* plabelId = &labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, int offset) { fixed (byte* plabelId = &labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, yref, flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, yref, flags, offset, (int)(sizeof(uint))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, yref, flags, (int)(0), (int)(sizeof(uint))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double yref) + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, double start) { fixed (byte* plabelId = labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys, int count) + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale) { fixed (byte* plabelId = labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference) { fixed (byte* plabelId = labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double yref, int offset) + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count) { fixed (byte* plabelId = labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int offset) + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double yref, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, double start, int offset) { fixed (byte* plabelId = labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, int offset) { fixed (byte* plabelId = labelId) { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4956,20 +4647,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (uint*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4988,20 +4676,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (uint*)pys, count, yref, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5020,13 +4705,329 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (uint*)pys, count, yref, flags, (int)(0), (int)(sizeof(uint))); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, byte* values, int count, double reference, double scale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, byte* values, int count, double reference) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, byte* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, byte* values, int count, double reference, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, byte* values, int count, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, byte* values, int count, double reference, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, byte* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.033.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.033.cs index c41173ceb..a20535ba4 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.033.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.033.cs @@ -22,7 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys, int count, double yref) + public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,20 +41,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys, int count) + public static void PlotStems(string labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -73,20 +70,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, byte* values, int count, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -105,20 +99,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (uint*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys, int count, double yref, int offset) + public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -137,20 +128,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys, int count, int offset) + public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -169,20 +157,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, byte* values, int count, double reference, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -201,20 +186,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (uint*)pys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys, int count, double yref, int offset, int stride) + public static void PlotStems(string labelId, byte* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -233,20 +215,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys, int count, int offset, int stride) + public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -265,20 +244,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -297,596 +273,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (uint*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys, count, yref, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys, count, yref, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys, int count, double yref) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotShadedFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys, int count, double yref, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys, int count, double yref, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, yref, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, yref, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, yref, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, yref, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, byte* values, int count, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -905,401 +302,10 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (uint* pys = &ys) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys, count, yref, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys, count, yref, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } @@ -1307,379 +313,739 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotStemsNative(byte* labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[125])(labelId, xs, ys, count, yref, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[199])(labelId, values, count, reference, scale, start, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[125])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[199])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(long))); + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(long))); + PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref) + public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start) { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count) + public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, short* values, int count, double reference) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref, int offset) + public static void PlotStems(byte* labelId, short* values, int count) { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, int offset) + public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, short* values, int count, double reference, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref, int offset, int stride) + public static void PlotStems(byte* labelId, short* values, int count, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, int offset, int stride) + public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start, int offset) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, int offset) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, short* values, int count, double reference, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* values, int count, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* values, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* values, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* values, int count, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(long))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(long))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref) + public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count) + public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, short* values, int count, double reference) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref, int offset) + public static void PlotStems(ref byte labelId, short* values, int count) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, int offset) + public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, short* values, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref, int offset, int stride) + public static void PlotStems(ref byte labelId, short* values, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) + public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, short* values, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(long))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(long))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, double yref) + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, double start) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count) + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, double yref, int offset) + public static void PlotStems(ReadOnlySpan labelId, short* values, int count) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset) + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, double yref, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, double start, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1698,7 +1064,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1708,7 +1074,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1727,7 +1093,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(long))); + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1737,7 +1103,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1756,7 +1122,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(long))); + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1766,7 +1132,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref) + public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1785,7 +1151,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1795,7 +1161,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys, int count) + public static void PlotStems(string labelId, short* values, int count, double reference, double scale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1814,7 +1180,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1824,7 +1190,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, short* values, int count, double reference) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1843,7 +1209,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1853,7 +1219,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref, int offset) + public static void PlotStems(string labelId, short* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1872,7 +1238,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1882,7 +1248,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys, int count, int offset) + public static void PlotStems(string labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1901,7 +1267,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1911,7 +1277,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, short* values, int count, double reference, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1930,7 +1296,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1940,7 +1306,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref, int offset, int stride) + public static void PlotStems(string labelId, short* values, int count, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1959,7 +1325,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1969,7 +1335,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys, int count, int offset, int stride) + public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1988,7 +1354,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1998,7 +1364,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, short* values, int count, double reference, double scale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2017,7 +1383,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2027,475 +1393,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys, count, yref, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys, int count, double yref) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys, int count) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys, int count, ImPlotShadedFlags flags) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys, int count, double yref, int offset) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys, int count, int offset) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys, int count, double yref, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, yref, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, yref, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, short* values, int count, double reference, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2514,20 +1412,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (long*)pxs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, short* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2546,20 +1441,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (long*)pxs, ys, count, yref, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, long* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2578,20 +1470,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (long*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, long* ys, int count, double yref) + public static void PlotStems(string labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2610,20 +1499,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (long*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, long* ys, int count) + public static void PlotStems(string labelId, short* values, int count, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2642,20 +1528,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (long*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, long* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2674,20 +1557,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (long*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, long* ys, int count, double yref, int offset) + public static void PlotStems(string labelId, short* values, int count, double reference, double scale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2706,20 +1586,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (long*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, long* ys, int count, int offset) + public static void PlotStems(string labelId, short* values, int count, double reference, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2738,20 +1615,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (long*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, long* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, short* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2770,20 +1644,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (long*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, long* ys, int count, double yref, int offset, int stride) + public static void PlotStems(string labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2802,20 +1673,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (long*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, long* ys, int count, int offset, int stride) + public static void PlotStems(string labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2834,20 +1702,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (long*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, long* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, short* values, int count, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2866,1861 +1731,10 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (long*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, xs, (long*)pys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, xs, (long*)pys, count, yref, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, xs, (long*)pys, count, yref, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys, int count, double yref) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, xs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys, int count) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, xs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys, int count, ImPlotShadedFlags flags) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, xs, (long*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys, int count, double yref, int offset) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, xs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys, int count, int offset) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, xs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, xs, (long*)pys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys, int count, double yref, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, xs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, xs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, xs, (long*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, yref, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, yref, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, yref, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, yref, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, xs, (long*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, xs, (long*)pys, count, yref, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, xs, (long*)pys, count, yref, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, xs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, xs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, xs, (long*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, xs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, xs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, xs, (long*)pys, count, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, xs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, xs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, xs, (long*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys, count, yref, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys, count, yref, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys, int count, double yref) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys, int count) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys, int count, ImPlotShadedFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys, int count, double yref, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys, int count, double yref, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, yref, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, yref, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, yref, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, yref, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys, count, yref, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys, count, yref, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys, count, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } @@ -4728,295 +1742,3282 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotStemsNative(byte* labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[126])(labelId, xs, ys, count, yref, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[200])(labelId, values, count, reference, scale, start, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[126])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[200])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ulong))); + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); + PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref) + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start) { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count) + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, ushort* values, int count, double reference) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref, int offset) + public static void PlotStems(byte* labelId, ushort* values, int count) { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, int offset) + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref, int offset, int stride) + public static void PlotStems(byte* labelId, ushort* values, int count, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start, int offset) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, int offset) { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* values, int count, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* values, int count, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ulong))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref) + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count) + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref, int offset) + public static void PlotStems(ref byte labelId, ushort* values, int count) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref, int offset, int stride) + public static void PlotStems(ref byte labelId, ushort* values, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ulong))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double yref) + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, double start) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count) + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, double start, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStemsNative(byte* labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[201])(labelId, values, count, reference, scale, start, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[201])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, double start) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, double start, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, double scale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, double scale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, double scale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStemsNative(byte* labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[202])(labelId, values, count, reference, scale, start, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[202])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, double reference) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.034.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.034.cs index 38702f3d0..26478d957 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.034.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.034.cs @@ -22,84 +22,315 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, uint* values, int count, int offset, int stride) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double yref, int offset) + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset) + public static void PlotStems(ref byte labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, uint* values, int count, ImPlotStemsFlags flags, int offset, int stride) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double yref, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(uint))); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, double start) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, double start, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -118,7 +349,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -128,7 +359,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -147,7 +378,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(ulong))); + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -157,7 +388,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -176,7 +407,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -186,7 +417,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref) + public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start) { byte* pStr0 = null; int pStrSize0 = 0; @@ -205,7 +436,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -215,7 +446,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count) + public static void PlotStems(string labelId, uint* values, int count, double reference, double scale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -234,7 +465,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -244,7 +475,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, uint* values, int count, double reference) { byte* pStr0 = null; int pStrSize0 = 0; @@ -263,7 +494,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -273,7 +504,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref, int offset) + public static void PlotStems(string labelId, uint* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -292,7 +523,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -302,7 +533,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, int offset) + public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -321,7 +552,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -331,7 +562,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, uint* values, int count, double reference, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -350,7 +581,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -360,7 +591,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref, int offset, int stride) + public static void PlotStems(string labelId, uint* values, int count, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -379,7 +610,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -389,7 +620,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -408,7 +639,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -418,7 +649,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -437,7 +668,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -447,475 +678,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys, count, yref, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys, int count, double yref) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys, int count) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotShadedFlags flags) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys, int count, double yref, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys, int count, double yref, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, yref, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, yref, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, uint* values, int count, double reference, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -934,20 +697,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (ulong*)pxs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, uint* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -966,20 +726,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (ulong*)pxs, ys, count, yref, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -998,20 +755,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (ulong*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys, int count, double yref) + public static void PlotStems(string labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1030,20 +784,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (ulong*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys, int count) + public static void PlotStems(string labelId, uint* values, int count, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1062,20 +813,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (ulong*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1094,20 +842,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (ulong*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys, int count, double yref, int offset) + public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1126,20 +871,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (ulong*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys, int count, int offset) + public static void PlotStems(string labelId, uint* values, int count, double reference, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1158,20 +900,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (ulong*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, uint* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1190,20 +929,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (ulong*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys, int count, double yref, int offset, int stride) + public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1222,20 +958,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (ulong*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) + public static void PlotStems(string labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1254,20 +987,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (ulong*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, uint* values, int count, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1286,1861 +1016,10 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (ulong*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, xs, (ulong*)pys, count, yref, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, xs, (ulong*)pys, count, yref, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, xs, (ulong*)pys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys, int count, double yref) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, xs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys, int count) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, xs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotShadedFlags flags) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, xs, (ulong*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys, int count, double yref, int offset) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, xs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, xs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, xs, (ulong*)pys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys, int count, double yref, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, xs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, xs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, xs, (ulong*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, yref, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, yref, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ulong*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ulong*)pys, count, yref, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ulong*)pys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ulong*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ulong*)pys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, xs, (ulong*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys, count, yref, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys, count, yref, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys, int count, double yref) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotShadedFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys, int count, double yref, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys, int count, double yref, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, yref, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, yref, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys, count, yref, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } @@ -3148,199 +1027,739 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotStemsNative(byte* labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[127])(labelId, xs, ys1, ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[203])(labelId, values, count, reference, scale, start, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[127])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[203])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count) + public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count, int offset) + public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count, int offset, int stride) + public static void PlotStems(byte* labelId, long* values, int count, double reference) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, long* values, int count) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, double reference, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, double reference, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(long))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(long))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count) + public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count, int offset) + public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count, int offset, int stride) + public static void PlotStems(ref byte labelId, long* values, int count, double reference) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, long* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(long))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(long))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, float* ys2, int count) + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, double start) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, float* ys2, int count, int offset) + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, float* ys2, int count, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, long* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, double start, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3359,7 +1778,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3369,7 +1788,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3388,7 +1807,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3398,7 +1817,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3417,7 +1836,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3427,7 +1846,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count) + public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3446,7 +1865,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3456,7 +1875,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count, int offset) + public static void PlotStems(string labelId, long* values, int count, double reference, double scale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3475,7 +1894,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3485,7 +1904,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, long* values, int count, double reference) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3504,7 +1923,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3514,241 +1933,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, float* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, float* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, float* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, long* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3767,20 +1952,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3799,20 +1981,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, long* values, int count, double reference, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3831,20 +2010,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count) + public static void PlotStems(string labelId, long* values, int count, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3863,20 +2039,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count, int offset) + public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3895,20 +2068,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, long* values, int count, double reference, double scale, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3927,254 +2097,1098 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* values, int count, double reference, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pys1 = &ys1) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, flags, offset, stride); + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, long* values, int count, int offset) { - fixed (float* pys1 = &ys1) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) { - fixed (float* pys1 = &ys1) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count) + public static void PlotStems(string labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset) { - fixed (float* pys1 = &ys1) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count, int offset) + public static void PlotStems(string labelId, long* values, int count, ImPlotStemsFlags flags, int offset) { - fixed (float* pys1 = &ys1) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start, int offset, int stride) { - fixed (float* pys1 = &ys1) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, long* values, int count, double reference, double scale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* values, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStemsNative(byte* labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[204])(labelId, values, count, reference, scale, start, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[204])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count) + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start) { fixed (byte* plabelId = &labelId) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count, int offset) + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale) { fixed (byte* plabelId = &labelId) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count, int offset, int stride) + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference) { fixed (byte* plabelId = &labelId) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, ulong* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, float* ys2, int count) + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, double start) { fixed (byte* plabelId = labelId) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, float* ys2, int count, int offset) + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale) { fixed (byte* plabelId = labelId) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, float* ys2, int count, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference) { fixed (byte* plabelId = labelId) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, double start, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, double start, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4193,20 +3207,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys1 = &ys1) + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4225,20 +3236,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys1 = &ys1) + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4257,20 +3265,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys1 = &ys1) + PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count) + public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4289,20 +3294,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys1 = &ys1) + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count, int offset) + public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4321,20 +3323,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys1 = &ys1) + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, ulong* values, int count, double reference) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4353,113 +3352,1398 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys1 = &ys1) + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, double reference, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStemsNative(byte* labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[205])(labelId, xs, ys, count, reference, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[205])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, float* ys, int count) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, float* ys, int count, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, float* ys, int count, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, float* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, double reference) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, float* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, float* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, float* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, stride); - } + PlotStemsNative(labelId, (float*)pxs, ys, count, reference, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); - } + PlotStemsNative(labelId, (float*)pxs, ys, count, reference, flags, offset, (int)(sizeof(float))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } + PlotStemsNative(labelId, (float*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count) + public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } + PlotStemsNative(labelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count, int offset) + public static void PlotStems(byte* labelId, ref float xs, float* ys, int count) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } + PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count, int offset, int stride) + public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference, int offset) + { + fixed (float* pxs = &xs) + { + PlotStemsNative(labelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, int offset) + { + fixed (float* pxs = &xs) + { + PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotStemsNative(labelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, offset, stride); } } } @@ -4467,16 +4751,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); - } + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, offset, (int)(sizeof(float))); } } } @@ -4484,16 +4765,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); } } } @@ -4501,16 +4779,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count) + public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference) { fixed (byte* plabelId = &labelId) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -4518,16 +4793,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count, int offset) + public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count) { fixed (byte* plabelId = &labelId) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -4535,16 +4807,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count, int offset, int stride) + public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); } } } @@ -4552,16 +4821,97 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, offset, stride); } } } @@ -4569,16 +4919,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); - } + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, offset, (int)(sizeof(float))); } } } @@ -4586,16 +4933,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); } } } @@ -4603,16 +4947,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, float* ys2, int count) + public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, double reference) { fixed (byte* plabelId = labelId) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -4620,16 +4961,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, float* ys2, int count, int offset) + public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count) { fixed (byte* plabelId = labelId) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -4637,16 +4975,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, float* ys2, int count, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { fixed (float* pxs = &xs) { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); } } } @@ -4654,373 +4989,41 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count, int offset) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count, int offset, int stride) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, double reference, int offset) { fixed (byte* plabelId = labelId) { - fixed (float* pys2 = &ys2) + fixed (float* pxs = &xs) { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, offset, stride); + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.035.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.035.cs index 318d574b5..dcd840414 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.035.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.035.cs @@ -22,13 +22,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, double reference, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (float* pys2 = &ys2) + fixed (float* pxs = &xs) { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); } } } @@ -36,13 +36,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (float* pys2 = &ys2) + fixed (float* pxs = &xs) { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); } } } @@ -50,13 +50,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, ref float ys2, int count) + public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (float* pys2 = &ys2) + fixed (float* pxs = &xs) { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); } } } @@ -64,35 +64,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, ref float ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, float* ys1, ref float ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -111,9 +83,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys2 = &ys2) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, flags, offset, stride); + PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -124,7 +96,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -143,9 +115,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys2 = &ys2) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -156,7 +128,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -175,9 +147,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys2 = &ys2) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -188,7 +160,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count) + public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference) { byte* pStr0 = null; int pStrSize0 = 0; @@ -207,9 +179,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys2 = &ys2) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -220,7 +192,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count, int offset) + public static void PlotStems(string labelId, ref float xs, float* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -239,9 +211,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys2 = &ys2) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -252,7 +224,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -271,9 +243,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys2 = &ys2) + fixed (float* pxs = &xs) { - PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -284,295 +256,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, ref float ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, ref float ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, float* ys1, ref float ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -593,9 +277,1629 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pxs = &xs) { - fixed (float* pys2 = &ys2) + PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, flags, offset, stride); + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float xs, float* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float xs, float* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, xs, (float*)pys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, xs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, xs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, ref float ys, int count) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference, int offset) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, int offset) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, double reference) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStemsNative(pStr0, xs, (float*)pys, count, reference, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStemsNative(pStr0, xs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStemsNative(pStr0, xs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStemsNative(pStr0, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, ref float ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStemsNative(pStr0, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, ref float ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStemsNative(pStr0, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, ref float ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double reference) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -607,7 +1911,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -628,9 +1932,9 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pxs = &xs) { - fixed (float* pys2 = &ys2) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -642,7 +1946,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -663,9 +1967,9 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pxs = &xs) { - fixed (float* pys2 = &ys2) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -677,7 +1981,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count) + public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference) { byte* pStr0 = null; int pStrSize0 = 0; @@ -698,9 +2002,9 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pxs = &xs) { - fixed (float* pys2 = &ys2) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -712,7 +2016,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count, int offset) + public static void PlotStems(string labelId, ref float xs, ref float ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -733,9 +2037,9 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pxs = &xs) { - fixed (float* pys2 = &ys2) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -747,7 +2051,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -768,9 +2072,9 @@ namespace Dalamud.Bindings.ImPlot } fixed (float* pxs = &xs) { - fixed (float* pys2 = &ys2) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -782,295 +2086,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count, int offset) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count, int offset, int stride) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, ref float ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, ref float ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, float* xs, ref float ys1, ref float ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1089,11 +2105,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys1 = &ys1) + fixed (float* pxs = &xs) { - fixed (float* pys2 = &ys2) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, flags, offset, stride); + PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1105,7 +2121,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, ref float xs, ref float ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1124,11 +2140,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys1 = &ys1) + fixed (float* pxs = &xs) { - fixed (float* pys2 = &ys2) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); + PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1140,7 +2156,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1159,11 +2175,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys1 = &ys1) + fixed (float* pxs = &xs) { - fixed (float* pys2 = &ys2) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); + PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1175,7 +2191,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count) + public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1194,11 +2210,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys1 = &ys1) + fixed (float* pxs = &xs) { - fixed (float* pys2 = &ys2) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); + PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1210,7 +2226,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count, int offset) + public static void PlotStems(string labelId, ref float xs, ref float ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1229,11 +2245,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys1 = &ys1) + fixed (float* pxs = &xs) { - fixed (float* pys2 = &ys2) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); + PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1245,7 +2261,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1264,11 +2280,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys1 = &ys1) + fixed (float* pxs = &xs) { - fixed (float* pys2 = &ys2) + fixed (float* pys = &ys) { - PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1277,773 +2293,383 @@ namespace Dalamud.Bindings.ImPlot } } - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, ref float ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotStemsNative(byte* labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[128])(labelId, xs, ys1, ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[206])(labelId, xs, ys, count, reference, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[128])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[206])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count) + public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, int offset) + public static void PlotStems(byte* labelId, double* xs, double* ys, int count) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, int offset, int stride) + public static void PlotStems(byte* labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* xs, double* ys, int count, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* xs, double* ys, int count, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count) + public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count, int offset) + public static void PlotStems(ref byte labelId, double* xs, double* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count, int offset, int stride) + public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, double* ys2, int count) + public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, double reference) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, double* ys2, int count, int offset) + public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, double* ys2, int count, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2062,7 +2688,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2072,7 +2698,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2091,7 +2717,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2101,7 +2727,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2120,7 +2746,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2130,7 +2756,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count) + public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2149,7 +2775,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2159,7 +2785,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count, int offset) + public static void PlotStems(string labelId, double* xs, double* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2178,7 +2804,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2188,7 +2814,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2207,7 +2833,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2217,79 +2843,319 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference, int offset) { - fixed (double* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, double* xs, double* ys, int count, int offset) { - fixed (double* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset) { - fixed (double* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count) + public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference, int offset, int stride) { - fixed (double* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count, int offset) + public static void PlotStems(string labelId, double* xs, double* ys, int count, int offset, int stride) { - fixed (double* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) { - fixed (double* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotStemsNative(labelId, (double*)pxs, ys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + PlotStemsNative(labelId, (double*)pxs, ys, count, reference, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (double* pxs = &xs) + { + PlotStemsNative(labelId, (double*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference) + { + fixed (double* pxs = &xs) + { + PlotStemsNative(labelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double xs, double* ys, int count) + { + fixed (double* pxs = &xs) + { + PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags) + { + fixed (double* pxs = &xs) + { + PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference, int offset) + { + fixed (double* pxs = &xs) + { + PlotStemsNative(labelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, int offset) + { + fixed (double* pxs = &xs) + { + PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotStemsNative(labelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, offset, stride); } } } @@ -2297,13 +3163,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, offset, (int)(sizeof(double))); } } } @@ -2311,13 +3177,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); } } } @@ -2325,13 +3191,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count) + public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference) { fixed (byte* plabelId = &labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -2339,13 +3205,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count, int offset) + public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count) { fixed (byte* plabelId = &labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -2353,13 +3219,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count, int offset, int stride) + public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } } @@ -2367,13 +3233,97 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, offset, stride); } } } @@ -2381,13 +3331,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, offset, (int)(sizeof(double))); } } } @@ -2395,13 +3345,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); } } } @@ -2409,13 +3359,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, double* ys2, int count) + public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, double reference) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -2423,13 +3373,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, double* ys2, int count, int offset) + public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -2437,13 +3387,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, double* ys2, int count, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } } @@ -2451,7 +3401,91 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2472,7 +3506,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2483,7 +3517,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2504,7 +3538,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); + PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2515,7 +3549,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2536,7 +3570,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2547,7 +3581,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count) + public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2568,7 +3602,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2579,7 +3613,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count, int offset) + public static void PlotStems(string labelId, ref double xs, double* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2600,7 +3634,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2611,7 +3645,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2632,7 +3666,7 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2643,241 +3677,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count, int offset) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count, int offset, int stride) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, double* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, double* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, double* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2896,9 +3696,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, flags, offset, stride); + PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2909,7 +3709,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, ref double xs, double* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2928,9 +3728,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); + PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2941,7 +3741,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2960,9 +3760,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); + PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2973,7 +3773,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count) + public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2992,9 +3792,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3005,7 +3805,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count, int offset) + public static void PlotStems(string labelId, ref double xs, double* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3024,9 +3824,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3037,7 +3837,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3056,9 +3856,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3069,100 +3869,145 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, stride); - } + PlotStemsNative(labelId, xs, (double*)pys, count, reference, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); - } + PlotStemsNative(labelId, xs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } + PlotStemsNative(labelId, xs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count) + public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } + PlotStemsNative(labelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count, int offset) + public static void PlotStems(byte* labelId, double* xs, ref double ys, int count) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } + PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count, int offset, int stride) + public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference, int offset) + { + fixed (double* pys = &ys) + { + PlotStemsNative(labelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, int offset) + { + fixed (double* pys = &ys) + { + PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (double* pys = &ys) + { + PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotStemsNative(labelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, offset, stride); } } } @@ -3170,16 +4015,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); - } + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); } } } @@ -3187,16 +4029,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); } } } @@ -3204,16 +4043,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count) + public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -3221,16 +4057,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count, int offset) + public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -3238,16 +4071,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count, int offset, int stride) + public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } } @@ -3255,16 +4085,97 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, offset, stride); } } } @@ -3272,16 +4183,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); - } + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); } } } @@ -3289,16 +4197,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); } } } @@ -3306,16 +4211,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, double* ys2, int count) + public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, double reference) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -3323,16 +4225,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, double* ys2, int count, int offset) + public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -3340,16 +4239,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, double* ys2, int count, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } } @@ -3357,7 +4253,91 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3376,453 +4356,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count, int offset) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count, int offset, int stride) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, ref double ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, ref double ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, double* ys1, ref double ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, flags, offset, stride); + PlotStemsNative(pStr0, xs, (double*)pys, count, reference, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3833,7 +4369,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3852,9 +4388,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + PlotStemsNative(pStr0, xs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3865,7 +4401,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3884,9 +4420,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + PlotStemsNative(pStr0, xs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3897,7 +4433,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count) + public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3916,9 +4452,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStemsNative(pStr0, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3929,7 +4465,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count, int offset) + public static void PlotStems(string labelId, double* xs, ref double ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3948,9 +4484,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3961,7 +4497,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3980,9 +4516,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3993,295 +4529,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, ref double ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, ref double ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, double* ys1, ref double ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4300,15 +4548,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) + PlotStemsNative(pStr0, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -4316,7 +4561,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, double* xs, ref double ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4335,15 +4580,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) + PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -4351,7 +4593,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4370,15 +4612,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) + PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -4386,7 +4625,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count) + public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4405,15 +4644,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) + PlotStemsNative(pStr0, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -4421,7 +4657,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count, int offset) + public static void PlotStems(string labelId, double* xs, ref double ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4440,15 +4676,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) + PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -4456,7 +4689,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4475,15 +4708,26 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } + fixed (double* pys = &ys) + { + PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { fixed (double* pxs = &xs) { - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, flags, offset, stride); } } } @@ -4491,13 +4735,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) { - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, stride); + PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); } } } @@ -4505,13 +4749,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) { - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); } } } @@ -4519,13 +4763,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference) { - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -4533,13 +4777,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count) + public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count) { - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -4547,13 +4791,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count, int offset) + public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags) { - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } } @@ -4561,13 +4805,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count, int offset, int stride) + public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference, int offset) { - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -4575,15 +4819,85 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, stride); + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, offset, stride); } } } @@ -4592,15 +4906,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); } } } @@ -4609,15 +4923,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); } } } @@ -4626,15 +4940,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count) + public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference) { fixed (byte* plabelId = &labelId) { - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -4643,15 +4957,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count, int offset) + public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -4660,15 +4974,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count, int offset, int stride) + public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } } @@ -4677,15 +4991,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference, int offset) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, stride); + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); } } } @@ -4694,327 +5008,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, int offset) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (double* pys1 = &ys1) + fixed (double* pxs = &xs) { - fixed (double* pys2 = &ys2) + fixed (double* pys = &ys) { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, ref double ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, ref double ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, double* xs, ref double ys1, ref double ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.036.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.036.cs index 2d461c67d..1baf25fb0 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.036.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.036.cs @@ -22,86 +22,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { fixed (double* pxs = &xs) { - fixed (double* pys1 = &ys1) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); } } } @@ -110,18 +39,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference, int offset, int stride) { fixed (byte* plabelId = &labelId) { fixed (double* pxs = &xs) { - fixed (double* pys1 = &ys1) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); } } } @@ -130,18 +56,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { fixed (double* pxs = &xs) { - fixed (double* pys1 = &ys1) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); } } } @@ -150,18 +73,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count) + public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { fixed (double* pxs = &xs) { - fixed (double* pys1 = &ys1) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); } } } @@ -170,58 +90,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - fixed (double* pys1 = &ys1) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, stride); - } + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, offset, stride); } } } @@ -230,18 +107,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - fixed (double* pys1 = &ys1) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); } } } @@ -250,18 +124,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - fixed (double* pys1 = &ys1) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); } } } @@ -270,18 +141,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, ref double ys2, int count) + public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double reference) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - fixed (double* pys1 = &ys1) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -290,18 +158,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset) + public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - fixed (double* pys1 = &ys1) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -310,18 +175,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { fixed (double* pxs = &xs) { - fixed (double* pys1 = &ys1) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); } } } @@ -330,7 +192,109 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -351,15 +315,12 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - fixed (double* pys1 = &ys1) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) + PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -368,7 +329,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -389,15 +350,12 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - fixed (double* pys1 = &ys1) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) + PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -406,7 +364,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -427,15 +385,12 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - fixed (double* pys1 = &ys1) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) + PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -444,7 +399,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count) + public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference) { byte* pStr0 = null; int pStrSize0 = 0; @@ -465,15 +420,12 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - fixed (double* pys1 = &ys1) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) + PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -482,7 +434,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset) + public static void PlotStems(string labelId, ref double xs, ref double ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -503,15 +455,12 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - fixed (double* pys1 = &ys1) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) + PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -520,7 +469,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -541,15 +490,222 @@ namespace Dalamud.Bindings.ImPlot } fixed (double* pxs = &xs) { - fixed (double* pys1 = &ys1) + fixed (double* pys = &ys) { - fixed (double* pys2 = &ys2) + PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref double xs, ref double ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref double xs, ref double ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -559,199 +715,379 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotStemsNative(byte* labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[129])(labelId, xs, ys1, ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[207])(labelId, xs, ys, count, reference, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[129])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[207])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); + PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count) + public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, double reference) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset) + public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset, int stride) + public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, double reference, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count) + public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, double reference) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset) + public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset, int stride) + public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, byte* ys2, int count) + public static void PlotStems(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double reference) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset) + public static void PlotStems(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -770,7 +1106,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -780,7 +1116,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -799,7 +1135,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -809,7 +1145,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -828,7 +1164,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); + PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -838,7 +1174,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count) + public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, double reference) { byte* pStr0 = null; int pStrSize0 = 0; @@ -857,7 +1193,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -867,7 +1203,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset) + public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -886,7 +1222,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -896,7 +1232,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -915,7 +1251,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -925,241 +1261,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys1, byte* ys2, int count) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys1, byte* ys2, int count, int offset) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys1, byte* ys2, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative(labelId, (byte*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys1, byte* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys1, byte* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys1, byte* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys1, byte* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys1, byte* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys1, byte* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, double reference, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1178,20 +1280,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pxs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1210,20 +1309,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1242,20 +1338,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys1, byte* ys2, int count) + public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, double reference, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1274,20 +1367,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys1, byte* ys2, int count, int offset) + public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1306,20 +1396,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys1, byte* ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1338,2929 +1425,10 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (byte*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (byte*)pys1, ys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (byte*)pys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (byte*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys1, byte* ys2, int count) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys1, byte* ys2, int count, int offset) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys1, byte* ys2, int count, int offset, int stride) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys1, byte* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys1, byte* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys1, byte* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys1, byte* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys1, byte* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys1, byte* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (byte*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (byte*)pys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (byte*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys1, byte* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys1, byte* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys1, byte* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys1, byte* ys2, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys1, byte* ys2, int count, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys1, byte* ys2, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, ys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys1, byte* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys1, byte* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys1, byte* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, ys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys1, byte* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys1, byte* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys1, byte* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys1, byte* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys1, byte* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys1, byte* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys1, byte* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (byte*)pys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (byte*)pys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (byte*)pys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, ref byte ys2, int count) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, ref byte ys2, int count, int offset) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, ref byte ys2, int count, int offset, int stride) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (byte*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (byte*)pys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (byte*)pys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, ref byte ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, ref byte ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, ref byte ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (byte*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (byte*)pys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (byte*)pys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, ref byte ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, ref byte ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, byte* ys1, ref byte ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (byte*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (byte*)pys2, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (byte*)pys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, byte* ys1, ref byte ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, byte* ys1, ref byte ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, byte* ys1, ref byte ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, (byte*)pxs, ys1, (byte*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, (byte*)pxs, ys1, (byte*)pys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, (byte*)pxs, ys1, (byte*)pys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys1, ref byte ys2, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, (byte*)pxs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys1, ref byte ys2, int count, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, (byte*)pxs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, byte* ys1, ref byte ys2, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, (byte*)pxs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, (byte*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, (byte*)pys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, (byte*)pys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys1, ref byte ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys1, ref byte ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, byte* ys1, ref byte ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, (byte*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, (byte*)pys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, (byte*)pys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys1, ref byte ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys1, ref byte ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, byte* ys1, ref byte ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, (byte*)pxs, ys1, (byte*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, (byte*)pxs, ys1, (byte*)pys2, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys1, ref byte ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, (byte*)pxs, ys1, (byte*)pys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys1, ref byte ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, (byte*)pxs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys1, ref byte ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, (byte*)pxs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, byte* ys1, ref byte ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, (byte*)pxs, ys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (byte*)pys1, (byte*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (byte*)pys1, (byte*)pys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (byte*)pys1, (byte*)pys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys1, ref byte ys2, int count) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys1, ref byte ys2, int count, int offset) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, byte* xs, ref byte ys1, ref byte ys2, int count, int offset, int stride) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, (byte*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, (byte*)pys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, (byte*)pys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys1, ref byte ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys1, ref byte ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, byte* xs, ref byte ys1, ref byte ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, (byte*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, (byte*)pys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, (byte*)pys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys1, ref byte ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys1, ref byte ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, byte* xs, ref byte ys1, ref byte ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (byte*)pys1, (byte*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (byte*)pys1, (byte*)pys2, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (byte*)pys1, (byte*)pys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys1, ref byte ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys1, ref byte ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, byte* xs, ref byte ys1, ref byte ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys1, ref byte ys2, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(labelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys1, ref byte ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys1, ref byte ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys1, ref byte ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref byte xs, ref byte ys1, ref byte ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys1 = &ys1) - { - fixed (byte* pys2 = &ys2) - { - PlotShadedNative(pStr0, (byte*)pxs, (byte*)pys1, (byte*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } @@ -4268,199 +1436,379 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotStemsNative(byte* labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[130])(labelId, xs, ys1, ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[208])(labelId, xs, ys, count, reference, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[130])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[208])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); + PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count) + public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, int offset) + public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, int offset, int stride) + public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(byte))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count) + public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, int offset) + public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, int offset, int stride) + public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, short* ys2, int count) + public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double reference) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, short* ys2, int count, int offset) + public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, short* ys2, int count, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(byte))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4479,7 +1827,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4489,7 +1837,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4508,7 +1856,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4518,7 +1866,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4537,7 +1885,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); + PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4547,7 +1895,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count) + public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4566,7 +1914,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4576,7 +1924,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count, int offset) + public static void PlotStems(string labelId, byte* xs, byte* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4595,7 +1943,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4605,7 +1953,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count, int offset, int stride) + public static void PlotStems(string labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4624,7 +1972,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(byte))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4634,241 +1982,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) - { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys1, short* ys2, int count) - { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys1, short* ys2, int count, int offset) - { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys1, short* ys2, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotShadedNative(labelId, (short*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys1, short* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys1, short* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys1, short* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys1, short* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys1, short* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys1, short* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4887,20 +2001,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotStems(string labelId, byte* xs, byte* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4919,20 +2030,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) + public static void PlotStems(string labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4951,20 +2059,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, short* ys1, short* ys2, int count) + public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4983,20 +2088,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, short* ys1, short* ys2, int count, int offset) + public static void PlotStems(string labelId, byte* xs, byte* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5015,13 +2117,2923 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStemsNative(byte* labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[209])(labelId, xs, ys, count, reference, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[209])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* xs, short* ys, int count) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* xs, short* ys, int count, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* xs, short* ys, int count, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* xs, short* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, double reference) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, short* xs, short* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, short* xs, short* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, short* xs, short* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStemsNative(byte* labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[210])(labelId, xs, ys, count, reference, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[210])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double reference) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStemsNative(byte* labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[211])(labelId, xs, ys, count, reference, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[211])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* xs, int* ys, int count) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* xs, int* ys, int count, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* xs, int* ys, int count, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* xs, int* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, double reference) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* xs, int* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* xs, int* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* xs, int* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStemsNative(byte* labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[212])(labelId, xs, ys, count, reference, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[212])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double reference) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, uint* xs, uint* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, uint* xs, uint* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.037.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.037.cs index 6c6490a98..3f7f934b2 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.037.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.037.cs @@ -22,7 +22,380 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref short xs, short* ys1, short* ys2, int count, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStemsNative(byte* labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[213])(labelId, xs, ys, count, reference, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[213])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* xs, long* ys, int count) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* xs, long* ys, int count, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* xs, long* ys, int count, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* xs, long* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, double reference) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,9 +414,1679 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (short*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* xs, long* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* xs, long* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* xs, long* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotStemsNative(byte* labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[214])(labelId, xs, ys, count, reference, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[214])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference, int offset) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double reference) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double reference, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double reference, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotInfLinesNative(byte* labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[215])(labelId, values, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[215])((nint)labelId, (nint)values, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + PlotInfLinesNative(labelId, values, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset) + { + PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, float* values, int count, ImPlotInfLinesFlags flags) + { + PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, float* values, int count) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, float* values, int count, int offset) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, float* values, int count, int offset, int stride) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, float* values, int count, ImPlotInfLinesFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, float* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, float* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, float* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, float* values, int count, ImPlotInfLinesFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, float* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, float* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, float* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, float* values, int count, ImPlotInfLinesFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, float* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, float* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, float* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative(labelId, (float*)pvalues, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative(labelId, (float*)pvalues, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ref float values, int count, ImPlotInfLinesFlags flags) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative(labelId, (float*)pvalues, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ref float values, int count) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative(labelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ref float values, int count, int offset) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative(labelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ref float values, int count, int offset, int stride) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative(labelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ref float values, int count, ImPlotInfLinesFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ref float values, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ref float values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ref float values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ref float values, int count, ImPlotInfLinesFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ref float values, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ref float values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ref float values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotInfLinesNative(pStr0, (float*)pvalues, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -54,241 +2097,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (short*)pys1, ys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (short*)pys1, ys2, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (short*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys1, short* ys2, int count) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys1, short* ys2, int count, int offset) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys1, short* ys2, int count, int offset, int stride) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, ys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys1, short* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys1, short* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys1, short* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, ys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys1, short* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys1, short* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys1, short* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(string labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -307,9 +2116,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys1 = &ys1) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, (short*)pys1, ys2, count, flags, offset, stride); + PlotInfLinesNative(pStr0, (float*)pvalues, count, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -320,7 +2129,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(string labelId, ref float values, int count, ImPlotInfLinesFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -339,9 +2148,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys1 = &ys1) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, (short*)pys1, ys2, count, flags, offset, (int)(sizeof(short))); + PlotInfLinesNative(pStr0, (float*)pvalues, count, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -352,7 +2161,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(string labelId, ref float values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -371,9 +2180,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys1 = &ys1) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, (short*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); + PlotInfLinesNative(pStr0, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -384,7 +2193,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, ref short ys1, short* ys2, int count) + public static void PlotInfLines(string labelId, ref float values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -403,9 +2212,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys1 = &ys1) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); + PlotInfLinesNative(pStr0, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -416,7 +2225,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, short* xs, ref short ys1, short* ys2, int count, int offset) + public static void PlotInfLines(string labelId, ref float values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -435,9 +2244,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys1 = &ys1) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); + PlotInfLinesNative(pStr0, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -445,2725 +2254,203 @@ namespace Dalamud.Bindings.ImPlot } } - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, ref short ys1, short* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys1, ys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys1, short* ys2, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys1, short* ys2, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys1, short* ys2, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, ys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, ys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys1, short* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys1, short* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys1, short* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, ys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, ys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys1, short* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys1, short* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys1, short* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys1, ys2, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, ref short ys1, short* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, ref short ys1, short* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, ref short ys1, short* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, ref short ys1, short* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (short*)pys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (short*)pys2, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (short*)pys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, short* ys1, ref short ys2, int count) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, short* ys1, ref short ys2, int count, int offset) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, short* ys1, ref short ys2, int count, int offset, int stride) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (short*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (short*)pys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (short*)pys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, ref short ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, ref short ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, ref short ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (short*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (short*)pys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (short*)pys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, ref short ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, ref short ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, short* ys1, ref short ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (short*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (short*)pys2, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (short*)pys2, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, short* ys1, ref short ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, short* ys1, ref short ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, short* ys1, ref short ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, (short*)pxs, ys1, (short*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, (short*)pxs, ys1, (short*)pys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, (short*)pxs, ys1, (short*)pys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys1, ref short ys2, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, (short*)pxs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys1, ref short ys2, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, (short*)pxs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, short* ys1, ref short ys2, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, (short*)pxs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, (short*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, (short*)pys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, (short*)pys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys1, ref short ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys1, ref short ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, short* ys1, ref short ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, (short*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, (short*)pys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, (short*)pys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys1, ref short ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys1, ref short ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, short* ys1, ref short ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, (short*)pxs, ys1, (short*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, (short*)pxs, ys1, (short*)pys2, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, short* ys1, ref short ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, (short*)pxs, ys1, (short*)pys2, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, short* ys1, ref short ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, (short*)pxs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, short* ys1, ref short ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, (short*)pxs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, short* ys1, ref short ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, (short*)pxs, ys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (short*)pys1, (short*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (short*)pys1, (short*)pys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (short*)pys1, (short*)pys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys1, ref short ys2, int count) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys1, ref short ys2, int count, int offset) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, short* xs, ref short ys1, ref short ys2, int count, int offset, int stride) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, (short*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, (short*)pys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, (short*)pys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys1, ref short ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys1, ref short ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, short* xs, ref short ys1, ref short ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, (short*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, (short*)pys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, (short*)pys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys1, ref short ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys1, ref short ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, short* xs, ref short ys1, ref short ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (short*)pys1, (short*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (short*)pys1, (short*)pys2, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (short*)pys1, (short*)pys2, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, ref short ys1, ref short ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, ref short ys1, ref short ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, short* xs, ref short ys1, ref short ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys1, (short*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys1, (short*)pys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys1, (short*)pys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys1, ref short ys2, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys1, ref short ys2, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref short xs, ref short ys1, ref short ys2, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(labelId, (short*)pxs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, (short*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, (short*)pys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, (short*)pys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys1, ref short ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys1, ref short ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref short xs, ref short ys1, ref short ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, (short*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, (short*)pys2, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, (short*)pys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys1, ref short ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys1, ref short ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref short xs, ref short ys1, ref short ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (short*)pxs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys1, (short*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys1, (short*)pys2, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, ref short ys1, ref short ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys1, (short*)pys2, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, ref short ys1, ref short ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, ref short ys1, ref short ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref short xs, ref short ys1, ref short ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys1 = &ys1) - { - fixed (short* pys2 = &ys2) - { - PlotShadedNative(pStr0, (short*)pxs, (short*)pys1, (short*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotInfLinesNative(byte* labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[131])(labelId, xs, ys1, ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[216])(labelId, values, count, flags, offset, stride); #else - ((delegate* unmanaged[Cdecl])funcTable[131])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[216])((nint)labelId, (nint)values, count, flags, offset, stride); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(byte* labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); + PlotInfLinesNative(labelId, values, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(byte* labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); + PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(byte* labelId, double* values, int count, ImPlotInfLinesFlags flags) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count) + public static void PlotInfLines(byte* labelId, double* values, int count) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset) + public static void PlotInfLines(byte* labelId, double* values, int count, int offset) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset, int stride) + public static void PlotInfLines(byte* labelId, double* values, int count, int offset, int stride) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(ref byte labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(ref byte labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(ref byte labelId, double* values, int count, ImPlotInfLinesFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count) + public static void PlotInfLines(ref byte labelId, double* values, int count) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset) + public static void PlotInfLines(ref byte labelId, double* values, int count, int offset) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset, int stride) + public static void PlotInfLines(ref byte labelId, double* values, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(ReadOnlySpan labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(ReadOnlySpan labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(ReadOnlySpan labelId, double* values, int count, ImPlotInfLinesFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ushort* ys2, int count) + public static void PlotInfLines(ReadOnlySpan labelId, double* values, int count) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset) + public static void PlotInfLines(ReadOnlySpan labelId, double* values, int count, int offset) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset, int stride) + public static void PlotInfLines(ReadOnlySpan labelId, double* values, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(string labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3182,7 +2469,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); + PlotInfLinesNative(pStr0, values, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3192,7 +2479,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(string labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3211,7 +2498,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); + PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3221,7 +2508,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(string labelId, double* values, int count, ImPlotInfLinesFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3240,7 +2527,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3250,7 +2537,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count) + public static void PlotInfLines(string labelId, double* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3269,7 +2556,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3279,7 +2566,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset) + public static void PlotInfLines(string labelId, double* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3298,7 +2585,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3308,7 +2595,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset, int stride) + public static void PlotInfLines(string labelId, double* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3327,7 +2614,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3337,79 +2624,79 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(byte* labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(labelId, (ushort*)pxs, ys1, ys2, count, flags, offset, stride); + PlotInfLinesNative(labelId, (double*)pvalues, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(byte* labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(labelId, (ushort*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); + PlotInfLinesNative(labelId, (double*)pvalues, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(byte* labelId, ref double values, int count, ImPlotInfLinesFlags flags) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(labelId, (ushort*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotInfLinesNative(labelId, (double*)pvalues, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count) + public static void PlotInfLines(byte* labelId, ref double values, int count) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(labelId, (ushort*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotInfLinesNative(labelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, int offset) + public static void PlotInfLines(byte* labelId, ref double values, int count, int offset) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(labelId, (ushort*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + PlotInfLinesNative(labelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, int offset, int stride) + public static void PlotInfLines(byte* labelId, ref double values, int count, int offset, int stride) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(labelId, (ushort*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotInfLinesNative(labelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(ref byte labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, ys2, count, flags, offset, stride); + PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, offset, stride); } } } @@ -3417,13 +2704,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(ref byte labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); + PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, offset, (int)(sizeof(double))); } } } @@ -3431,13 +2718,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(ref byte labelId, ref double values, int count, ImPlotInfLinesFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -3445,13 +2732,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count) + public static void PlotInfLines(ref byte labelId, ref double values, int count) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -3459,13 +2746,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, int offset) + public static void PlotInfLines(ref byte labelId, ref double values, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); } } } @@ -3473,13 +2760,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, int offset, int stride) + public static void PlotInfLines(ref byte labelId, ref double values, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); } } } @@ -3487,13 +2774,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(ReadOnlySpan labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, ys2, count, flags, offset, stride); + PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, offset, stride); } } } @@ -3501,13 +2788,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(ReadOnlySpan labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); + PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, offset, (int)(sizeof(double))); } } } @@ -3515,13 +2802,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(ReadOnlySpan labelId, ref double values, int count, ImPlotInfLinesFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, (int)(0), (int)(sizeof(double))); } } } @@ -3529,13 +2816,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count) + public static void PlotInfLines(ReadOnlySpan labelId, ref double values, int count) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); } } } @@ -3543,13 +2830,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, int offset) + public static void PlotInfLines(ReadOnlySpan labelId, ref double values, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); } } } @@ -3557,13 +2844,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, int offset, int stride) + public static void PlotInfLines(ReadOnlySpan labelId, ref double values, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); } } } @@ -3571,7 +2858,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(string labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3590,9 +2877,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (ushort*)pxs, ys1, ys2, count, flags, offset, stride); + PlotInfLinesNative(pStr0, (double*)pvalues, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3603,7 +2890,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(string labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3622,9 +2909,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (ushort*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); + PlotInfLinesNative(pStr0, (double*)pvalues, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3635,7 +2922,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(string labelId, ref double values, int count, ImPlotInfLinesFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3654,9 +2941,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (ushort*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotInfLinesNative(pStr0, (double*)pvalues, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3667,7 +2954,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count) + public static void PlotInfLines(string labelId, ref double values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3686,9 +2973,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (ushort*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotInfLinesNative(pStr0, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3699,7 +2986,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, int offset) + public static void PlotInfLines(string labelId, ref double values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3718,9 +3005,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (ushort*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + PlotInfLinesNative(pStr0, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3731,7 +3018,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys1, ushort* ys2, int count, int offset, int stride) + public static void PlotInfLines(string labelId, ref double values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3750,9 +3037,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (double* pvalues = &values) { - PlotShadedNative(pStr0, (ushort*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotInfLinesNative(pStr0, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3763,241 +3050,200 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotInfLinesNative(byte* labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (ushort*)pys1, ys2, count, flags, offset, stride); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[217])(labelId, values, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[217])((nint)labelId, (nint)values, count, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(byte* labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (ushort*)pys1, ys2, count, flags, offset, (int)(sizeof(ushort))); - } + PlotInfLinesNative(labelId, values, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(byte* labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (ushort*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } + PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count) + public static void PlotInfLines(byte* labelId, sbyte* values, int count, ImPlotInfLinesFlags flags) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, int offset) + public static void PlotInfLines(byte* labelId, sbyte* values, int count) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, int offset, int stride) + public static void PlotInfLines(byte* labelId, sbyte* values, int count, int offset) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(byte* labelId, sbyte* values, int count, int offset, int stride) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, ys2, count, flags, offset, stride); - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(ref byte labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, ys2, count, flags, offset, (int)(sizeof(ushort))); - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(ref byte labelId, sbyte* values, int count, ImPlotInfLinesFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count) + public static void PlotInfLines(ref byte labelId, sbyte* values, int count) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, int offset) + public static void PlotInfLines(ref byte labelId, sbyte* values, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, int offset, int stride) + public static void PlotInfLines(ref byte labelId, sbyte* values, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(ReadOnlySpan labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, ys2, count, flags, offset, stride); - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(ReadOnlySpan labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, ys2, count, flags, offset, (int)(sizeof(ushort))); - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(ReadOnlySpan labelId, sbyte* values, int count, ImPlotInfLinesFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count) + public static void PlotInfLines(ReadOnlySpan labelId, sbyte* values, int count) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, int offset) + public static void PlotInfLines(ReadOnlySpan labelId, sbyte* values, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, int offset, int stride) + public static void PlotInfLines(ReadOnlySpan labelId, sbyte* values, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(string labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4016,20 +3262,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys1 = &ys1) + PlotInfLinesNative(pStr0, values, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (ushort*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(string labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4048,20 +3291,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys1 = &ys1) + PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (ushort*)pys1, ys2, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(string labelId, sbyte* values, int count, ImPlotInfLinesFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4080,20 +3320,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys1 = &ys1) + PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (ushort*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count) + public static void PlotInfLines(string labelId, sbyte* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4112,20 +3349,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys1 = &ys1) + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, int offset) + public static void PlotInfLines(string labelId, sbyte* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4144,20 +3378,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys1 = &ys1) + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys1, ushort* ys2, int count, int offset, int stride) + public static void PlotInfLines(string labelId, sbyte* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4176,308 +3407,210 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys1 = &ys1) + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotInfLinesNative(byte* labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys1, ys2, count, flags, offset, stride); - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[218])(labelId, values, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[218])((nint)labelId, (nint)values, count, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(byte* labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys1, ys2, count, flags, offset, (int)(sizeof(ushort))); - } - } + PlotInfLinesNative(labelId, values, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(byte* labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } + PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count) + public static void PlotInfLines(byte* labelId, byte* values, int count, ImPlotInfLinesFlags flags) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } + PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, int offset) + public static void PlotInfLines(byte* labelId, byte* values, int count) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, int offset, int stride) + public static void PlotInfLines(byte* labelId, byte* values, int count, int offset) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(byte* labelId, byte* values, int count, int offset, int stride) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, ys2, count, flags, offset, stride); - } - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(ref byte labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, ys2, count, flags, offset, (int)(sizeof(ushort))); - } - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(ref byte labelId, byte* values, int count, ImPlotInfLinesFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count) + public static void PlotInfLines(ref byte labelId, byte* values, int count) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, int offset) + public static void PlotInfLines(ref byte labelId, byte* values, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, int offset, int stride) + public static void PlotInfLines(ref byte labelId, byte* values, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(ReadOnlySpan labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, ys2, count, flags, offset, stride); - } - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(ReadOnlySpan labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, ys2, count, flags, offset, (int)(sizeof(ushort))); - } - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(ReadOnlySpan labelId, byte* values, int count, ImPlotInfLinesFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count) + public static void PlotInfLines(ReadOnlySpan labelId, byte* values, int count) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, int offset) + public static void PlotInfLines(ReadOnlySpan labelId, byte* values, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, int offset, int stride) + public static void PlotInfLines(ReadOnlySpan labelId, byte* values, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(string labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4496,23 +3629,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotInfLinesNative(pStr0, values, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(string labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4531,23 +3658,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys1, ys2, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(string labelId, byte* values, int count, ImPlotInfLinesFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4566,23 +3687,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count) + public static void PlotInfLines(string labelId, byte* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4601,23 +3716,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, int offset) + public static void PlotInfLines(string labelId, byte* values, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4636,23 +3745,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys1, ushort* ys2, int count, int offset, int stride) + public static void PlotInfLines(string labelId, byte* values, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4671,257 +3774,210 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys1 = &ys1) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotInfLinesNative(byte* labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (ushort*)pys2, count, flags, offset, stride); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[219])(labelId, values, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[219])((nint)labelId, (nint)values, count, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(byte* labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (ushort*)pys2, count, flags, offset, (int)(sizeof(ushort))); - } + PlotInfLinesNative(labelId, values, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(byte* labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (ushort*)pys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } + PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count) + public static void PlotInfLines(byte* labelId, short* values, int count, ImPlotInfLinesFlags flags) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, int offset) + public static void PlotInfLines(byte* labelId, short* values, int count) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, int offset, int stride) + public static void PlotInfLines(byte* labelId, short* values, int count, int offset) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(byte* labelId, short* values, int count, int offset, int stride) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ushort*)pys2, count, flags, offset, stride); - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(ref byte labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ushort*)pys2, count, flags, offset, (int)(sizeof(ushort))); - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(ref byte labelId, short* values, int count, ImPlotInfLinesFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ushort*)pys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count) + public static void PlotInfLines(ref byte labelId, short* values, int count) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, int offset) + public static void PlotInfLines(ref byte labelId, short* values, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, int offset, int stride) + public static void PlotInfLines(ref byte labelId, short* values, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(ReadOnlySpan labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ushort*)pys2, count, flags, offset, stride); - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(ReadOnlySpan labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ushort*)pys2, count, flags, offset, (int)(sizeof(ushort))); - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(ReadOnlySpan labelId, short* values, int count, ImPlotInfLinesFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ushort*)pys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count) + public static void PlotInfLines(ReadOnlySpan labelId, short* values, int count) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, int offset) + public static void PlotInfLines(ReadOnlySpan labelId, short* values, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, int offset, int stride) + public static void PlotInfLines(ReadOnlySpan labelId, short* values, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotInfLines(string labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4940,20 +3996,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys2 = &ys2) + PlotInfLinesNative(pStr0, values, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, ys1, (ushort*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotInfLines(string labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4972,20 +4025,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys2 = &ys2) + PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, ys1, (ushort*)pys2, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags) + public static void PlotInfLines(string labelId, short* values, int count, ImPlotInfLinesFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5004,20 +4054,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys2 = &ys2) + PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, ys1, (ushort*)pys2, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count) + public static void PlotInfLines(string labelId, short* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5036,13 +4083,940 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys2 = &ys2) + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, short* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, short* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotInfLinesNative(byte* labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[220])(labelId, values, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[220])((nint)labelId, (nint)values, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + PlotInfLinesNative(labelId, values, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset) + { + PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ushort* values, int count, ImPlotInfLinesFlags flags) + { + PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ushort* values, int count) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ushort* values, int count, int offset) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ushort* values, int count, int offset, int stride) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ushort* values, int count, ImPlotInfLinesFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ushort* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ushort* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ushort* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ushort* values, int count, ImPlotInfLinesFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ushort* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ushort* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ushort* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, ushort* values, int count, ImPlotInfLinesFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, ushort* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, ushort* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, ushort* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotInfLinesNative(byte* labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[221])(labelId, values, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[221])((nint)labelId, (nint)values, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + PlotInfLinesNative(labelId, values, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset) + { + PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, int* values, int count, ImPlotInfLinesFlags flags) + { + PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, int* values, int count) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, int* values, int count, int offset) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, int* values, int count, int offset, int stride) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, int* values, int count, ImPlotInfLinesFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, int* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, int* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, int* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, int* values, int count, ImPlotInfLinesFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, int* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, int* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, int* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, int* values, int count, ImPlotInfLinesFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, int* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, int* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, int* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotInfLinesNative(byte* labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[222])(labelId, values, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[222])((nint)labelId, (nint)values, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + PlotInfLinesNative(labelId, values, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset) + { + PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, uint* values, int count, ImPlotInfLinesFlags flags) + { + PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, uint* values, int count) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, uint* values, int count, int offset) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, uint* values, int count, int offset, int stride) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, uint* values, int count, ImPlotInfLinesFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, uint* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, uint* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, uint* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.038.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.038.cs index b815ca065..476739bd3 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.038.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.038.cs @@ -22,7 +22,62 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, int offset) + public static void PlotInfLines(ReadOnlySpan labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, uint* values, int count, ImPlotInfLinesFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, uint* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, uint* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, uint* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,9 +96,2186 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys2 = &ys2) + PlotInfLinesNative(pStr0, values, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, uint* values, int count, ImPlotInfLinesFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, uint* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, uint* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, uint* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotInfLinesNative(byte* labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[223])(labelId, values, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[223])((nint)labelId, (nint)values, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + PlotInfLinesNative(labelId, values, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset) + { + PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, long* values, int count, ImPlotInfLinesFlags flags) + { + PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, long* values, int count) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, long* values, int count, int offset) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, long* values, int count, int offset, int stride) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, long* values, int count, ImPlotInfLinesFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, long* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, long* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, long* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, long* values, int count, ImPlotInfLinesFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, long* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, long* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, long* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, long* values, int count, ImPlotInfLinesFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, long* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, long* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, long* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotInfLinesNative(byte* labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[224])(labelId, values, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[224])((nint)labelId, (nint)values, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + PlotInfLinesNative(labelId, values, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset) + { + PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ulong* values, int count, ImPlotInfLinesFlags flags) + { + PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ulong* values, int count) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ulong* values, int count, int offset) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(byte* labelId, ulong* values, int count, int offset, int stride) + { + PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ulong* values, int count, ImPlotInfLinesFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ulong* values, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ulong* values, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ref byte labelId, ulong* values, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ulong* values, int count, ImPlotInfLinesFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ulong* values, int count) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ulong* values, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(ReadOnlySpan labelId, ulong* values, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, ulong* values, int count, ImPlotInfLinesFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, ulong* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, ulong* values, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotInfLines(string labelId, ulong* values, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotPieChartNative(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[225])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[225])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, double angle0) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (float* pvalues = &values) + { + PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, labelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, double angle0) + { + fixed (float* pvalues = &values) + { + PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt) + { + fixed (float* pvalues = &values) + { + PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius) + { + fixed (float* pvalues = &values) + { + PlotPieChart(labelIds, (float*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, double angle0) + { + fixed (float* pvalues = &values) + { + PlotPieChart(labelIds, (float*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + fixed (float* pvalues = &values) + { + PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + fixed (float* pvalues = &values) + { + PlotPieChart(labelIds, (float*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + fixed (float* pvalues = &values) + { + PlotPieChart(labelIds, (float*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, labelFmt, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + PlotPieChart(pStrArray0, (float*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + PlotPieChart(pStrArray0, (float*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + PlotPieChart(pStrArray0, (float*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + PlotPieChart(pStrArray0, (float*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, string labelFmt, double angle0) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, string labelFmt, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, string labelFmt) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ref byte labelFmt) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, pStr0, angle0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -54,28 +2286,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ref ushort ys2, int count, int offset, int stride) + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, double angle0) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -86,322 +2318,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, string labelFmt) { - fixed (ushort* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (ushort* pys2 = &ys2) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotShadedNative(labelId, (ushort*)pxs, ys1, (ushort*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, (ushort*)pxs, ys1, (ushort*)pys2, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, (ushort*)pxs, ys1, (ushort*)pys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, (ushort*)pxs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, (ushort*)pxs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, (ushort*)pxs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, (ushort*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, (ushort*)pys2, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, (ushort*)pys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, (ushort*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, (ushort*)pys2, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, (ushort*)pys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ushort*)pxs, ys1, (ushort*)pys2, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -409,34 +2350,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ushort*)pxs, ys1, (ushort*)pys2, count, flags, offset, (int)(sizeof(ushort))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -444,34 +2382,57 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + for (int i = 0; i < labelIds.Length; i++) { - fixed (ushort* pys2 = &ys2) + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotShadedNative(pStr0, (ushort*)pxs, ys1, (ushort*)pys2, count, flags, (int)(0), (int)(sizeof(ushort))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, pStr0, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -479,34 +2440,57 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count) + public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, double angle0) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + for (int i = 0; i < labelIds.Length; i++) { - fixed (ushort* pys2 = &ys2) + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotShadedNative(pStr0, (ushort*)pxs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -514,34 +2498,57 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, int offset) + public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + for (int i = 0; i < labelIds.Length; i++) { - fixed (ushort* pys2 = &ys2) + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotShadedNative(pStr0, (ushort*)pxs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -549,1102 +2556,57 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ushort xs, ushort* ys1, ref ushort ys2, int count, int offset, int stride) + public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + for (int i = 0; i < labelIds.Length; i++) { - fixed (ushort* pys2 = &ys2) + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotShadedNative(pStr0, (ushort*)pxs, ys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (ushort*)pys1, (ushort*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (ushort*)pys1, (ushort*)pys2, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (ushort*)pys1, (ushort*)pys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, int offset) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, int offset, int stride) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) + else { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, (ushort*)pys2, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys1 = &ys1) + PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, (ushort*)pys2, count, flags, offset, (int)(sizeof(ushort))); - } + Utils.Free(pStrArray0[i]); } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys1 = &ys1) + if (pStrArray0Size >= Utils.MaxStackallocSize) { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, (ushort*)pys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } + Utils.Free(pStrArray0); } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, (ushort*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, (ushort*)pys2, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, (ushort*)pys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (ushort*)pys1, (ushort*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (ushort*)pys1, (ushort*)pys2, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (ushort*)pys1, (ushort*)pys2, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ushort* xs, ref ushort ys1, ref ushort ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(labelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ushort xs, ref ushort ys1, ref ushort ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys1 = &ys1) - { - fixed (ushort* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ushort*)pxs, (ushort*)pys1, (ushort*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1653,205 +2615,833 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotPieChartNative(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[132])(labelId, xs, ys1, ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[226])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[132])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[226])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count) + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, int offset) + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, double angle0) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, int offset, int stride) + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = &labelId) + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count) + public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, int offset) + public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, double angle0) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, int offset, int stride) + public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = labelId) + fixed (double* pvalues = &values) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); + PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, labelFmt, angle0, flags); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, int* ys2, int count) + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, double angle0) { - fixed (byte* plabelId = labelId) + fixed (double* pvalues = &values) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, int* ys2, int count, int offset) + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt) { - fixed (byte* plabelId = labelId) + fixed (double* pvalues = &values) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, int* ys2, int count, int offset, int stride) + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius) { - fixed (byte* plabelId = labelId) + fixed (double* pvalues = &values) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotPieChart(labelIds, (double*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, double angle0) + { + fixed (double* pvalues = &values) + { + PlotPieChart(labelIds, (double*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + fixed (double* pvalues = &values) + { + PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + fixed (double* pvalues = &values) + { + PlotPieChart(labelIds, (double*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + fixed (double* pvalues = &values) + { + PlotPieChart(labelIds, (double*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, labelFmt, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + PlotPieChart(pStrArray0, (double*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + PlotPieChart(pStrArray0, (double*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + PlotPieChart(pStrArray0, (double*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + PlotPieChart(pStrArray0, (double*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1861,10 +3451,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1874,13 +3464,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, string labelFmt, double angle0) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1890,10 +3480,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1903,13 +3493,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1919,10 +3509,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1932,13 +3522,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count) + public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1948,10 +3538,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1961,13 +3551,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count, int offset) + public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1977,10 +3585,18 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1990,13 +3606,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count, int offset, int stride) + public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, string labelFmt, double angle0) { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -2006,10 +3640,18 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2019,247 +3661,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, string labelFmt) { - fixed (int* pxs = &xs) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative(labelId, (int*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys1, int* ys2, int count) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys1, int* ys2, int count, int offset) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys1, int* ys2, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotShadedNative(labelId, (int*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) + if (pStrArray0Size > Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, ys2, count, flags, offset, stride); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) + for (int i = 0; i < labelIds.Length; i++) { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); - } + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys1, int* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys1, int* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys1, int* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys1, int* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys1, int* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys1, int* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -2269,12 +3695,216 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) { - PlotShadedNative(pStr0, (int*)pxs, ys1, ys2, count, flags, offset, stride); + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ref byte labelFmt) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, pStr0, angle0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2285,28 +3915,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, double angle0) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotShadedNative(pStr0, (int*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); + PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2317,28 +3947,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotShadedNative(pStr0, (int*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); + PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2349,28 +3979,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, int* ys1, int* ys2, int count) + public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotShadedNative(pStr0, (int*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); + PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2381,28 +4011,54 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, int* ys1, int* ys2, int count, int offset) + public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + for (int i = 0; i < labelIds.Length; i++) { - PlotShadedNative(pStr0, (int*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, pStr0, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2413,28 +4069,54 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, int* ys1, int* ys2, int count, int offset, int stride) + public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, double angle0) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + for (int i = 0; i < labelIds.Length; i++) { - PlotShadedNative(pStr0, (int*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2445,262 +4127,54 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, string labelFmt) { - fixed (int* pys1 = &ys1) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative(labelId, xs, (int*)pys1, ys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (int*)pys1, ys2, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (int*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys1, int* ys2, int count) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys1, int* ys2, int count, int offset) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys1, int* ys2, int count, int offset, int stride) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys1 = &ys1) + if (pStrArray0Size > Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, ys2, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys1, int* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys1, int* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys1, int* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, ys2, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys1, int* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys1, int* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys1, int* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (int* pys1 = &ys1) + for (int i = 0; i < labelIds.Length; i++) { - PlotShadedNative(pStr0, xs, (int*)pys1, ys2, count, flags, offset, stride); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2711,28 +4185,54 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArray0Size > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (int* pys1 = &ys1) + for (int i = 0; i < labelIds.Length; i++) { - PlotShadedNative(pStr0, xs, (int*)pys1, ys2, count, flags, offset, (int)(sizeof(int))); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2743,13 +4243,450 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotPieChartNative(byte** labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[227])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[227])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, double angle0) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -2759,29 +4696,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys1 = &ys1) + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (int*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys1, int* ys2, int count) + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, double angle0) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -2791,29 +4725,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys1 = &ys1) + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys1, int* ys2, int count, int offset) + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -2823,29 +4754,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys1 = &ys1) + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys1, int* ys2, int count, int offset, int stride) + public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -2855,317 +4783,44 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys1 = &ys1) + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) { - fixed (int* pxs = &xs) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - fixed (int* pys1 = &ys1) + if (pStrArray0Size > Utils.MaxStackallocSize) { - PlotShadedNative(labelId, (int*)pxs, (int*)pys1, ys2, count, flags, offset, stride); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (int* pxs = &xs) + for (int i = 0; i < labelIds.Length; i++) { - fixed (int* pys1 = &ys1) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys1, ys2, count, flags, offset, (int)(sizeof(int))); - } + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys1, int* ys2, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys1, int* ys2, int count, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys1, int* ys2, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, ys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, ys2, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys1, int* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys1, int* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys1, int* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, ys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, ys2, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys1, int* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys1, int* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys1, int* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3175,32 +4830,52 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) { - fixed (int* pys1 = &ys1) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, double angle0) { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3210,32 +4885,52 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) { - fixed (int* pys1 = &ys1) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys1, ys2, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, ref int ys1, int* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt) { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3245,32 +4940,52 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) { - fixed (int* pys1 = &ys1) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, ref int ys1, int* ys2, int count) + public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3280,1754 +4995,35 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) { - fixed (int* pys1 = &ys1) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStrArray0[i]); } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, ref int ys1, int* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, ref int ys1, int* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (int*)pys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (int*)pys2, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (int*)pys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys1, ref int ys2, int count) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys1, ref int ys2, int count, int offset) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, int* ys1, ref int ys2, int count, int offset, int stride) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (int*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (int*)pys2, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (int*)pys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, ref int ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, ref int ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, ref int ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (int*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (int*)pys2, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (int*)pys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, ref int ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, ref int ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, int* ys1, ref int ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (int*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (int*)pys2, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (int*)pys2, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, int* ys1, ref int ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, int* ys1, ref int ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, int* ys1, ref int ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, (int*)pxs, ys1, (int*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, (int*)pxs, ys1, (int*)pys2, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, (int*)pxs, ys1, (int*)pys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys1, ref int ys2, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, (int*)pxs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys1, ref int ys2, int count, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, (int*)pxs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, int* ys1, ref int ys2, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, (int*)pxs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, (int*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, (int*)pys2, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, (int*)pys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys1, ref int ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys1, ref int ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, int* ys1, ref int ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, (int*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, (int*)pys2, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, (int*)pys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys1, ref int ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys1, ref int ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, int* ys1, ref int ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, (int*)pxs, ys1, (int*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, (int*)pxs, ys1, (int*)pys2, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, int* ys1, ref int ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, (int*)pxs, ys1, (int*)pys2, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, int* ys1, ref int ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, (int*)pxs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, int* ys1, ref int ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, (int*)pxs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref int xs, int* ys1, ref int ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, (int*)pxs, ys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (int*)pys1, (int*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (int*)pys1, (int*)pys2, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (int*)pys1, (int*)pys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys1, ref int ys2, int count) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys1, ref int ys2, int count, int offset) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, int* xs, ref int ys1, ref int ys2, int count, int offset, int stride) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, (int*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, (int*)pys2, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, (int*)pys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys1, ref int ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys1, ref int ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, int* xs, ref int ys1, ref int ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, (int*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, (int*)pys2, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, (int*)pys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys1, ref int ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys1, ref int ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, int* xs, ref int ys1, ref int ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (int*)pys1, (int*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (int*)pys1, (int*)pys2, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + if (pStrArray0Size >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + Utils.Free(pStrArray0); } - fixed (int* pys1 = &ys1) + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (int*)pys1, (int*)pys2, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, int* xs, ref int ys1, ref int ys2, int count) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotPieChartNative(byte** labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, ref int ys1, ref int ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, int* xs, ref int ys1, ref int ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys1, (int*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys1, (int*)pys2, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys1, (int*)pys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys1, ref int ys2, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys1, ref int ys2, int count, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref int xs, ref int ys1, ref int ys2, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(labelId, (int*)pxs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, (int*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, (int*)pys2, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, (int*)pys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys1, ref int ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys1, ref int ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref int xs, ref int ys1, ref int ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, (int*)pys2, count, flags, offset, stride); - } - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[228])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[228])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); + #endif } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.039.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.039.cs index fc0e589e9..863edf631 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.039.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.039.cs @@ -22,113 +22,437 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = labelId) + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, double angle0) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - fixed (int* pxs = &xs) + if (pStrArray0Size > Utils.MaxStackallocSize) { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, (int*)pys2, count, flags, offset, (int)(sizeof(int))); - } - } + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) { - fixed (byte* plabelId = labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - fixed (int* pxs = &xs) + if (pStrArray0Size > Utils.MaxStackallocSize) { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, (int*)pys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys1, ref int ys2, int count) + public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt) { - fixed (byte* plabelId = labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - fixed (int* pxs = &xs) + if (pStrArray0Size > Utils.MaxStackallocSize) { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys1, ref int ys2, int count, int offset) + public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius) { - fixed (byte* plabelId = labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - fixed (int* pxs = &xs) + if (pStrArray0Size > Utils.MaxStackallocSize) { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ref int xs, ref int ys1, ref int ys2, int count, int offset, int stride) + public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, double angle0) { - fixed (byte* plabelId = labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - fixed (int* pxs = &xs) + if (pStrArray0Size > Utils.MaxStackallocSize) { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (int*)pxs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -138,35 +462,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys1, (int*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, double angle0) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -176,35 +491,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys1, (int*)pys2, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, ref int ys1, ref int ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -214,35 +520,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys1, (int*)pys2, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, ref int ys1, ref int ys2, int count) + public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -252,35 +549,44 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, ref int ys1, ref int ys2, int count, int offset) + public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -290,35 +596,52 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) { - fixed (int* pys1 = &ys1) - { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref int xs, ref int ys1, ref int ys2, int count, int offset, int stride) + public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, double angle0) { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -328,22 +651,131 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) { - fixed (int* pys1 = &ys1) + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, string labelFmt) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) { - fixed (int* pys2 = &ys2) - { - PlotShadedNative(pStr0, (int*)pxs, (int*)pys1, (int*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } @@ -351,205 +783,449 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotPieChartNative(byte** labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[133])(labelId, xs, ys1, ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[229])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[133])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[229])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(uint))); + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count) + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset) + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, double angle0) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset, int stride) + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = &labelId) + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(uint))); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count) + public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset) + public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, double angle0) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset, int stride) + public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(uint))); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = &labelFmt) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, uint* ys2, int count) + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = &labelFmt) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset) + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ref byte labelFmt) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = &labelFmt) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset, int stride) + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = &labelFmt) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -559,10 +1235,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -572,13 +1248,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, string labelFmt, double angle0) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -588,10 +1264,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(uint))); + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -601,13 +1277,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -617,10 +1293,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -630,13 +1306,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count) + public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -646,10 +1322,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -659,13 +1335,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset) + public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -675,10 +1369,18 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -688,13 +1390,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset, int stride) + public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, string labelFmt, double angle0) { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -704,10 +1424,18 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -717,247 +1445,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, string labelFmt) { - fixed (uint* pxs = &xs) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative(labelId, (uint*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys1, uint* ys2, int count) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys1, uint* ys2, int count, int offset) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys1, uint* ys2, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative(labelId, (uint*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) + if (pStrArray0Size > Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, ys2, count, flags, offset, stride); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) + for (int i = 0; i < labelIds.Length; i++) { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(uint))); - } + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys1, uint* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys1, uint* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys1, uint* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys1, uint* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys1, uint* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys1, uint* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -967,29 +1479,52 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) { - PlotShadedNative(pStr0, (uint*)pxs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -999,3060 +1534,21 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) { - PlotShadedNative(pStr0, (uint*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStrArray0[i]); } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + if (pStrArray0Size >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + Utils.Free(pStrArray0); } - fixed (uint* pxs = &xs) + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (uint*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys1, uint* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotShadedNative(pStr0, (uint*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys1, uint* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotShadedNative(pStr0, (uint*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys1, uint* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotShadedNative(pStr0, (uint*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (uint*)pys1, ys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (uint*)pys1, ys2, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (uint*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys1, uint* ys2, int count) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys1, uint* ys2, int count, int offset) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys1, uint* ys2, int count, int offset, int stride) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, ys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys1, uint* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys1, uint* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys1, uint* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, ys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys1, uint* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys1, uint* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys1, uint* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (uint*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (uint*)pys1, ys2, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (uint*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys1, uint* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys1, uint* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys1, uint* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys1, ys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys1, uint* ys2, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys1, uint* ys2, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys1, uint* ys2, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, ys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, ys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys1, uint* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys1, uint* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys1, uint* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, ys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, ys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys1, uint* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys1, uint* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys1, uint* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys1, ys2, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys1, uint* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys1, uint* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys1, uint* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys1, uint* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (uint*)pys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (uint*)pys2, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (uint*)pys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, ref uint ys2, int count) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, ref uint ys2, int count, int offset) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, ref uint ys2, int count, int offset, int stride) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (uint*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (uint*)pys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (uint*)pys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, ref uint ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, ref uint ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, ref uint ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (uint*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (uint*)pys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (uint*)pys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, ref uint ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, ref uint ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, uint* ys1, ref uint ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (uint*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (uint*)pys2, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (uint*)pys2, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, uint* ys1, ref uint ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, uint* ys1, ref uint ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, uint* ys1, ref uint ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, (uint*)pxs, ys1, (uint*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, (uint*)pxs, ys1, (uint*)pys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, (uint*)pxs, ys1, (uint*)pys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys1, ref uint ys2, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, (uint*)pxs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys1, ref uint ys2, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, (uint*)pxs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, uint* ys1, ref uint ys2, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, (uint*)pxs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, (uint*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, (uint*)pys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, (uint*)pys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys1, ref uint ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys1, ref uint ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, uint* ys1, ref uint ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, (uint*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, (uint*)pys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, (uint*)pys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys1, ref uint ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys1, ref uint ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, uint* ys1, ref uint ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, (uint*)pxs, ys1, (uint*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, (uint*)pxs, ys1, (uint*)pys2, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys1, ref uint ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, (uint*)pxs, ys1, (uint*)pys2, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys1, ref uint ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, (uint*)pxs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys1, ref uint ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, (uint*)pxs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, uint* ys1, ref uint ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, (uint*)pxs, ys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (uint*)pys1, (uint*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (uint*)pys1, (uint*)pys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (uint*)pys1, (uint*)pys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys1, ref uint ys2, int count) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys1, ref uint ys2, int count, int offset) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, uint* xs, ref uint ys1, ref uint ys2, int count, int offset, int stride) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, (uint*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, (uint*)pys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, (uint*)pys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys1, ref uint ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys1, ref uint ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, uint* xs, ref uint ys1, ref uint ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, (uint*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, (uint*)pys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, (uint*)pys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys1, ref uint ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys1, ref uint ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, uint* xs, ref uint ys1, ref uint ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (uint*)pys1, (uint*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (uint*)pys1, (uint*)pys2, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (uint*)pys1, (uint*)pys2, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys1, ref uint ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys1, ref uint ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, uint* xs, ref uint ys1, ref uint ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys1, ref uint ys2, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(labelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys1, ref uint ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys1, ref uint ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys1, ref uint ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref uint xs, ref uint ys1, ref uint ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys1 = &ys1) - { - fixed (uint* pys2 = &ys2) - { - PlotShadedNative(pStr0, (uint*)pxs, (uint*)pys1, (uint*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } @@ -4060,205 +1556,449 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotPieChartNative(byte** labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[134])(labelId, xs, ys1, ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[230])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[134])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[230])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(long))); + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count) + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count, int offset) + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, double angle0) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count, int offset, int stride) + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = &labelId) + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(long))); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count) + public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count, int offset) + public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, double angle0) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count, int offset, int stride) + public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(long))); + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = &labelFmt) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, long* ys2, int count) + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = &labelFmt) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, long* ys2, int count, int offset) + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ref byte labelFmt) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = &labelFmt) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, long* ys2, int count, int offset, int stride) + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = &labelFmt) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4268,10 +2008,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4281,13 +2021,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, double angle0) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4297,10 +2037,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(long))); + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4310,13 +2050,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4326,10 +2066,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4339,13 +2079,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count) + public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4355,10 +2095,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4368,13 +2108,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count, int offset) + public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4384,10 +2142,18 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4397,13 +2163,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count, int offset, int stride) + public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, double angle0) { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4413,10 +2197,18 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4426,247 +2218,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt) { - fixed (long* pxs = &xs) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - PlotShadedNative(labelId, (long*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys1, long* ys2, int count) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys1, long* ys2, int count, int offset) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys1, long* ys2, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotShadedNative(labelId, (long*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) + if (pStrArray0Size > Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, ys2, count, flags, offset, stride); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) + for (int i = 0; i < labelIds.Length; i++) { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(long))); - } + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys1, long* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys1, long* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys1, long* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys1, long* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys1, long* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys1, long* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4676,29 +2252,52 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) { - PlotShadedNative(pStr0, (long*)pxs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4708,29 +2307,471 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) { - PlotShadedNative(pStr0, (long*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotPieChartNative(byte** labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[231])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[231])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, double angle0) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4740,29 +2781,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (long*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, long* ys1, long* ys2, int count) + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, string labelFmt, double angle0) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4772,29 +2810,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (long*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, long* ys1, long* ys2, int count, int offset) + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4804,29 +2839,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (long*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, long* ys1, long* ys2, int count, int offset, int stride) + public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4836,194 +2868,2161 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (long*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (long*)pys1, ys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (long*)pys1, ys2, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (long*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys1, long* ys2, int count) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys1, long* ys2, int count, int offset) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys1, long* ys2, int count, int offset, int stride) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys1 = &ys1) + else { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, ys2, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, string labelFmt, double angle0) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - fixed (long* pys1 = &ys1) + if (pStrArray0Size > Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, ys2, count, flags, offset, (int)(sizeof(long))); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, string labelFmt) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - fixed (long* pys1 = &ys1) + if (pStrArray0Size > Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys1, long* ys2, int count) + public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - fixed (long* pys1 = &ys1) + if (pStrArray0Size > Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys1, long* ys2, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotPieChartNative(byte** labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = &labelId) + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[232])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[232])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, double angle0) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - fixed (long* pys1 = &ys1) + if (pStrArray0Size > Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys1, long* ys2, int count, int offset, int stride) + public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) { - fixed (byte* plabelId = &labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - fixed (long* pys1 = &ys1) + if (pStrArray0Size > Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt) { - fixed (byte* plabelId = labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - fixed (long* pys1 = &ys1) + if (pStrArray0Size > Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, ys2, count, flags, offset, stride); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius) { - fixed (byte* plabelId = labelId) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - fixed (long* pys1 = &ys1) + if (pStrArray0Size > Utils.MaxStackallocSize) { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, ys2, count, flags, offset, (int)(sizeof(long))); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, double angle0) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, string labelFmt) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotPieChartNative(byte** labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[233])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[233])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, double angle0) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, string labelFmt, double angle0) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, string labelFmt, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, string labelFmt) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotPieChartNative(byte** labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[234])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[234])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, double angle0) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, double angle0) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) + { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } + PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); + for (int i = 0; i < labelIds.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.040.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.040.cs index a1d6a5bb3..c1e7c9548 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.040.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.040.cs @@ -22,69 +22,68 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (long* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); - } + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys1, long* ys2, int count) + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = labelFmt) { - fixed (long* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys1, long* ys2, int count, int offset) + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = labelFmt) { - fixed (long* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys1, long* ys2, int count, int offset, int stride) + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = labelFmt) { - fixed (long* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -94,29 +93,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pys1 = &ys1) + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (long*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, double angle0) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -126,29 +122,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pys1 = &ys1) + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (long*)pys1, ys2, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags) + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -158,29 +151,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pys1 = &ys1) + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (long*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, ref long ys1, long* ys2, int count) + public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -190,29 +180,44 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pys1 = &ys1) + PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, xs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, ref long ys1, long* ys2, int count, int offset) + public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -222,29 +227,52 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pys1 = &ys1) + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); + for (int i = 0; i < labelIds.Length; i++) { - PlotShadedNative(pStr0, xs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, long* xs, ref long ys1, long* ys2, int count, int offset, int stride) + public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, double angle0) { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -254,317 +282,52 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pys1 = &ys1) + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) { - PlotShadedNative(pStr0, xs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt) { - fixed (long* pxs = &xs) + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) { - fixed (long* pys1 = &ys1) + if (pStrArray0Size > Utils.MaxStackallocSize) { - PlotShadedNative(labelId, (long*)pxs, (long*)pys1, ys2, count, flags, offset, stride); + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; } } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (long* pxs = &xs) + for (int i = 0; i < labelIds.Length; i++) { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys1, ys2, count, flags, offset, (int)(sizeof(long))); - } + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys1, long* ys2, int count) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys1, long* ys2, int count, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys1, long* ys2, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, ys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, ys2, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys1, long* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys1, long* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys1, long* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, ys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, ys2, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys1, long* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys1, long* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys1, long* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -574,32 +337,52 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); + for (int i = 0; i < labelIds.Length; i++) { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStrArray0[i]); + } + if (pStrArray0Size >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ref long xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) { + byte** pStrArray0 = null; + int pStrArray0Size = Utils.GetByteCountArray(labelIds); + if (labelIds != null) + { + if (pStrArray0Size > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); + } + else + { + byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; + pStrArray0 = (byte**)pStrArray0Stack; + } + } + for (int i = 0; i < labelIds.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); + } byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -609,2151 +392,21 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); + for (int i = 0; i < labelIds.Length; i++) { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys1, ys2, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStrArray0[i]); } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys1, long* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + if (pStrArray0Size >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + Utils.Free(pStrArray0); } - fixed (long* pxs = &xs) + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys1, long* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys1, long* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys1, long* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (long*)pys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (long*)pys2, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (long*)pys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, long* ys1, ref long ys2, int count) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, long* ys1, ref long ys2, int count, int offset) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, long* ys1, ref long ys2, int count, int offset, int stride) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (long*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (long*)pys2, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (long*)pys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, ref long ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, ref long ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, ref long ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (long*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (long*)pys2, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (long*)pys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, ref long ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, ref long ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, long* ys1, ref long ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (long*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (long*)pys2, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (long*)pys2, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, long* ys1, ref long ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, long* ys1, ref long ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, long* ys1, ref long ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, (long*)pxs, ys1, (long*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, (long*)pxs, ys1, (long*)pys2, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, (long*)pxs, ys1, (long*)pys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys1, ref long ys2, int count) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, (long*)pxs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys1, ref long ys2, int count, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, (long*)pxs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, long* ys1, ref long ys2, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, (long*)pxs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, (long*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, (long*)pys2, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, (long*)pys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys1, ref long ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys1, ref long ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, long* ys1, ref long ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, (long*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, (long*)pys2, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, (long*)pys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys1, ref long ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys1, ref long ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, long* ys1, ref long ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, (long*)pxs, ys1, (long*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, (long*)pxs, ys1, (long*)pys2, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, long* ys1, ref long ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, (long*)pxs, ys1, (long*)pys2, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, long* ys1, ref long ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, (long*)pxs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, long* ys1, ref long ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, (long*)pxs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, long* ys1, ref long ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, (long*)pxs, ys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (long*)pys1, (long*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (long*)pys1, (long*)pys2, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (long*)pys1, (long*)pys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys1, ref long ys2, int count) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys1, ref long ys2, int count, int offset) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, long* xs, ref long ys1, ref long ys2, int count, int offset, int stride) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, (long*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, (long*)pys2, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, (long*)pys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys1, ref long ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys1, ref long ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, long* xs, ref long ys1, ref long ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, (long*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, (long*)pys2, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, (long*)pys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys1, ref long ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys1, ref long ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, long* xs, ref long ys1, ref long ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (long*)pys1, (long*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (long*)pys1, (long*)pys2, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (long*)pys1, (long*)pys2, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys1, ref long ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys1, ref long ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, long* xs, ref long ys1, ref long ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys1, (long*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys1, (long*)pys2, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys1, (long*)pys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys1, ref long ys2, int count) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys1, ref long ys2, int count, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref long xs, ref long ys1, ref long ys2, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(labelId, (long*)pxs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, (long*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, (long*)pys2, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, (long*)pys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys1, ref long ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys1, ref long ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref long xs, ref long ys1, ref long ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, (long*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, (long*)pys2, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, (long*)pys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys1, ref long ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys1, ref long ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref long xs, ref long ys1, ref long ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (long*)pxs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys1, (long*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys1, (long*)pys2, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys1, ref long ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys1, (long*)pys2, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys1, ref long ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys1, ref long ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref long xs, ref long ys1, ref long ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys1 = &ys1) - { - fixed (long* pys2 = &ys2) - { - PlotShadedNative(pStr0, (long*)pxs, (long*)pys1, (long*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } @@ -2761,199 +414,1099 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + internal static void PlotHeatmapNative(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[135])(labelId, xs, ys1, ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[235])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[135])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[235])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); #endif } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ulong))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags) + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count) + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset) + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset, int stride) + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin) { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ulong))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = &labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ulong))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ulong* ys2, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = labelId) { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2972,7 +1525,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2982,7 +1535,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3001,7 +1554,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3011,7 +1564,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3030,7 +1583,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3040,7 +1593,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3059,7 +1612,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3069,7 +1622,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3088,7 +1641,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3098,7 +1651,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3117,7 +1670,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3127,241 +1680,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative(labelId, (ulong*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3380,9 +1699,2283 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (ulong*)pxs, ys1, ys2, count, flags, offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3393,7 +3986,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3412,9 +4005,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, (ulong*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3425,7 +4018,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3444,9 +4037,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, (ulong*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3457,7 +4050,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3476,9 +4069,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, (ulong*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3489,7 +4082,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3508,9 +4101,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, (ulong*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3521,7 +4114,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys1, ulong* ys2, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3540,9 +4133,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, (ulong*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3553,241 +4146,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (ulong*)pys1, ys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (ulong*)pys1, ys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (ulong*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, int offset) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, int offset, int stride) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, ys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, ys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3806,9 +4165,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys1 = &ys1) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, (ulong*)pys1, ys2, count, flags, offset, stride); + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3819,7 +4178,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3838,9 +4197,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys1 = &ys1) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, (ulong*)pys1, ys2, count, flags, offset, (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3851,7 +4210,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3870,9 +4229,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys1 = &ys1) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, (ulong*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3883,7 +4242,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3902,9 +4261,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys1 = &ys1) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3915,7 +4274,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3934,9 +4293,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys1 = &ys1) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3947,7 +4306,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys1, ulong* ys2, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3966,9 +4325,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys1 = &ys1) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3979,295 +4338,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys1, ys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, ys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, ys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, ys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, ys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4286,453 +4357,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys1, ys2, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys1, ulong* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (ulong*)pys2, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (ulong*)pys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (ulong*)pys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, int offset) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, int offset, int stride) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ulong*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ulong*)pys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ulong*)pys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ulong*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ulong*)pys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ulong*)pys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (ulong*)pys2, count, flags, offset, stride); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4743,7 +4370,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4762,9 +4389,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys2 = &ys2) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, ys1, (ulong*)pys2, count, flags, offset, (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4775,7 +4402,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4794,9 +4421,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys2 = &ys2) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, ys1, (ulong*)pys2, count, flags, (int)(0), (int)(sizeof(ulong))); + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4807,7 +4434,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4826,9 +4453,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys2 = &ys2) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4839,7 +4466,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4858,9 +4485,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys2 = &ys2) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4871,7 +4498,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ref ulong ys2, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4890,9 +4517,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys2 = &ys2) + fixed (float* pvalues = &values) { - PlotShadedNative(pStr0, xs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4903,13 +4530,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (ulong* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ulong* pys2 = &ys2) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(labelId, (ulong*)pxs, ys1, (ulong*)pys2, count, flags, offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4917,13 +4562,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - fixed (ulong* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ulong* pys2 = &ys2) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(labelId, (ulong*)pxs, ys1, (ulong*)pys2, count, flags, offset, (int)(sizeof(ulong))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4931,13 +4594,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) { - fixed (ulong* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ulong* pys2 = &ys2) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(labelId, (ulong*)pxs, ys1, (ulong*)pys2, count, flags, (int)(0), (int)(sizeof(ulong))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4945,13 +4626,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) { - fixed (ulong* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ulong* pys2 = &ys2) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(labelId, (ulong*)pxs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4959,13 +4658,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) { - fixed (ulong* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ulong* pys2 = &ys2) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(labelId, (ulong*)pxs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4973,13 +4690,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(byte* labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ImPlotHeatmapFlags flags) { - fixed (ulong* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ulong* pys2 = &ys2) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(labelId, (ulong*)pxs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4987,16 +4722,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ulong* pxs = &xs) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, (ulong*)pys2, count, flags, offset, stride); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -5004,16 +4754,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ulong* pxs = &xs) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, (ulong*)pys2, count, flags, offset, (int)(sizeof(ulong))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -5021,16 +4786,255 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ulong* pxs = &xs) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, (ulong*)pys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.041.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.041.cs index 8e7552a6b..ee2962286 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.041.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.041.cs @@ -22,160 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, (ulong*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, (ulong*)pys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, (ulong*)pys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -194,15 +41,2650 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (ulong* pys2 = &ys2) + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotShadedNative(pStr0, (ulong*)pxs, ys1, (ulong*)pys2, count, flags, offset, stride); + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -210,34 +2692,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ulong*)pxs, ys1, (ulong*)pys2, count, flags, offset, (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -245,34 +2724,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, ImPlotShadedFlags flags) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ulong*)pxs, ys1, (ulong*)pys2, count, flags, (int)(0), (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -280,34 +2756,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ulong*)pxs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -315,34 +2788,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, int offset) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ulong*)pxs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -350,357 +2820,63 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ref ulong xs, ulong* ys1, ref ulong ys2, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ulong*)pxs, ys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (ulong*)pys1, (ulong*)pys2, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (ulong*)pys1, (ulong*)pys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (ulong*)pys1, (ulong*)pys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, int offset) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, int offset, int stride) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) + else { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, (ulong*)pys2, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, (ulong*)pys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, (ulong*)pys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, (ulong*)pys2, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, (ulong*)pys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, (ulong*)pys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + Utils.Free(pStr0); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (ulong* pys1 = &ys1) + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) { - fixed (ulong* pys2 = &ys2) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotShadedNative(pStr0, xs, (ulong*)pys1, (ulong*)pys2, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -708,34 +2884,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (ulong*)pys1, (ulong*)pys2, count, flags, offset, (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -743,34 +2916,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (ulong*)pys1, (ulong*)pys2, count, flags, (int)(0), (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -778,34 +2948,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -813,34 +2980,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, int offset) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -848,2410 +3012,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotShaded(string labelId, ulong* xs, ref ulong ys1, ref ulong ys2, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) + else { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(byte* labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(labelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ref byte labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(ReadOnlySpan labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotShaded(string labelId, ref ulong xs, ref ulong ys1, ref ulong ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys1 = &ys1) - { - fixed (ulong* pys2 = &ys2) - { - PlotShadedNative(pStr0, (ulong*)pxs, (ulong*)pys1, (ulong*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[136])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[136])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, double barSize) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, ImPlotBarsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift, int offset) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, int offset) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, int offset) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref float values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3262,28 +3044,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3294,28 +3076,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3326,28 +3108,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3358,28 +3140,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count, double barSize) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3390,28 +3172,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3422,28 +3204,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3454,28 +3236,280 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) { - PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3486,28 +3520,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3518,28 +3552,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count, double barSize, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3550,28 +3584,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3582,28 +3616,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3614,28 +3648,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3646,28 +3680,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3678,28 +3712,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3710,28 +3744,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3742,28 +3776,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3774,28 +3808,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3806,560 +3840,231 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[137])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[137])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(double))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, double shift) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4378,17 +4083,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4407,17 +4115,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4436,17 +4147,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count, double barSize, double shift) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4465,17 +4179,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count, double barSize) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4494,17 +4211,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4523,17 +4243,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4552,17 +4275,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4581,17 +4307,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4610,17 +4339,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4639,17 +4371,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count, int offset) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4668,17 +4403,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4697,17 +4435,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4726,17 +4467,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4755,17 +4499,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4784,17 +4531,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4813,17 +4563,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4842,17 +4595,20 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4871,153 +4627,397 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - fixed (double* pvalues = &values) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (double* pvalues = &values) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(double))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { - fixed (double* pvalues = &values) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) { - fixed (double* pvalues = &values) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref double values, int count, double barSize) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) { - fixed (double* pvalues = &values) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref double values, int count) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt) { - fixed (double* pvalues = &values) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { - fixed (double* pvalues = &values) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref double values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { - fixed (double* pvalues = &values) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (double* pvalues = &values) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (double* pvalues = &values) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref double values, int count, int offset) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - fixed (double* pvalues = &values) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { - fixed (double* pvalues = &values) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (double* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.042.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.042.cs index 07d0d3038..8c17ac67b 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.042.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.042.cs @@ -22,566 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double values, int count, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -600,9 +41,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -613,7 +54,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -632,9 +73,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(double))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -645,7 +86,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -664,9 +105,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -677,7 +118,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -696,9 +137,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -709,7 +150,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count, double barSize) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -728,9 +169,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -741,7 +182,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count) + public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -760,9 +201,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -773,28 +214,532 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (double* pvalues = &values) + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -805,28 +750,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -837,28 +782,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -869,28 +814,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count, double barSize, int offset) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -901,28 +846,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count, int offset) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -933,28 +878,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -965,28 +910,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -997,28 +942,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1029,28 +974,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1061,28 +1006,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1093,28 +1038,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), flags, offset, stride); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1125,28 +1070,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1157,1805 +1102,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[138])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[138])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, double barSize, double shift) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, double barSize) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, ImPlotBarsFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, double barSize, double shift, int offset) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, double barSize, int offset) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, int offset) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, double barSize, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative(labelId, (byte*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref byte values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotBarsNative(pStr0, (byte*)pvalues, count, barSize, shift, flags, offset, stride); + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2966,28 +1134,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotBarsNative(pStr0, (byte*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(sbyte))); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2998,28 +1166,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotBarsNative(pStr0, (byte*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(sbyte))); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3030,28 +1198,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count, double barSize, double shift) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotBarsNative(pStr0, (byte*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3062,28 +1230,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count, double barSize) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotBarsNative(pStr0, (byte*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3094,28 +1262,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count) + public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotBarsNative(pStr0, (byte*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3126,7 +1294,619 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3145,9 +1925,30 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (byte*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3158,7 +1959,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3177,9 +1978,30 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (byte*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3190,7 +2012,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3209,9 +2031,30 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (byte*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3222,7 +2065,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3241,9 +2084,30 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (byte*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3254,7 +2118,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3273,9 +2137,30 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (byte*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3286,7 +2171,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3305,9 +2190,30 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (byte*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(sbyte))); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3318,7 +2224,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3337,9 +2243,30 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (byte*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(sbyte))); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3350,7 +2277,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3369,9 +2296,30 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (byte*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3382,7 +2330,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3401,9 +2349,30 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (byte*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3414,7 +2383,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3433,9 +2402,30 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (byte*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3446,7 +2436,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3465,9 +2455,30 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (byte*)pvalues, count, barSize, (double)(0), flags, offset, stride); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3478,7 +2489,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref byte values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3497,9 +2508,30 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (byte*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3510,560 +2542,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[139])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[139])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4082,17 +2561,41 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4111,17 +2614,41 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4140,17 +2667,41 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, short* values, int count, double barSize, double shift) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4169,17 +2720,41 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, short* values, int count, double barSize) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4198,17 +2773,41 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, short* values, int count) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4227,17 +2826,1913 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, short* values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4256,17 +4751,23 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, short* values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4285,17 +4786,23 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, short* values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4314,17 +4821,23 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, short* values, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4343,17 +4856,23 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, short* values, int count, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4372,17 +4891,23 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4401,17 +4926,23 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, short* values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4430,17 +4961,23 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, short* values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4459,17 +4996,23 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotBars(string labelId, short* values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4488,546 +5031,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, short* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, short* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, double barSize, double shift) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, double barSize) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, ImPlotBarsFlags flags) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, double barSize, double shift, int offset) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, double barSize, int offset) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, int offset) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, double barSize, double shift, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, double barSize, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotBarsNative(labelId, (short*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.043.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.043.cs index c998a1123..7a7e406ed 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.043.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.043.cs @@ -22,259 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (short*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref short values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -293,12 +41,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -306,7 +57,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -325,12 +76,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -338,7 +92,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -357,12 +111,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -370,7 +127,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count, double barSize, double shift) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -389,12 +146,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -402,7 +162,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count, double barSize) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -421,12 +181,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -434,7 +197,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -453,12 +216,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -466,7 +232,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -485,12 +251,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -498,7 +267,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -517,12 +286,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -530,7 +302,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -549,12 +321,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -562,7 +337,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -581,12 +356,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -594,7 +372,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -613,12 +391,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -626,7 +407,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -645,12 +426,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -658,7 +442,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -677,12 +461,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -690,7 +477,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -709,12 +496,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -722,7 +512,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -741,12 +531,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -754,7 +547,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -773,12 +566,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -786,7 +582,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -805,12 +601,15 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -818,7 +617,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref short values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -837,12 +636,330 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pvalues = &values) + fixed (float* pvalues = &values) { - PlotBarsNative(pStr0, (short*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -851,559 +968,1099 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + internal static void PlotHeatmapNative(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[140])(labelId, values, count, barSize, shift, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[236])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[140])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[236])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); #endif } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax) { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin) { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols) { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt) { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt) { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, int offset) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, int offset) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ImPlotPoint boundsMin) { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, int offset, int stride) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, double shift) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, byte* labelFmt) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1422,7 +2079,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1432,7 +2089,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1451,7 +2108,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1461,7 +2118,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1480,7 +2137,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1490,7 +2147,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1509,7 +2166,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1519,7 +2176,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, double barSize) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1538,7 +2195,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1548,7 +2205,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1567,7 +2224,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1577,7 +2234,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1596,7 +2253,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1606,7 +2263,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1625,7 +2282,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1635,7 +2292,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1654,7 +2311,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1664,7 +2321,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1683,7 +2340,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1693,7 +2350,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, int offset) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1712,7 +2369,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1722,7 +2379,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1741,7 +2398,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1751,7 +2408,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1770,7 +2427,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1780,7 +2437,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1799,7 +2456,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1809,7 +2466,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1828,7 +2485,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1838,7 +2495,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1857,7 +2514,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1867,7 +2524,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1886,7 +2543,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1896,7 +2553,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1915,7 +2572,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1925,709 +2582,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref ushort values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count, double barSize, double shift) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count, double barSize) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count, ImPlotBarsFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count, double barSize, double shift, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count, double barSize, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count, double barSize, double shift, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count, double barSize, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative(labelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref ushort values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2646,9 +2601,1935 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, barSize, shift, flags, offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2659,7 +4540,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2678,9 +4559,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2691,7 +4572,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2710,9 +4591,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2723,7 +4604,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort values, int count, double barSize, double shift) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2742,9 +4623,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2755,7 +4636,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort values, int count, double barSize) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2774,9 +4655,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2787,7 +4668,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort values, int count) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2806,9 +4687,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2819,7 +4700,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2838,9 +4719,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2851,7 +4732,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2870,9 +4751,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2883,7 +4764,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2902,9 +4783,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2915,7 +4796,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort values, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2934,9 +4815,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2947,7 +4828,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort values, int count, int offset) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2966,9 +4847,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2979,7 +4860,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2998,9 +4879,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3011,7 +4892,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3030,9 +4911,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3043,7 +4924,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3062,9 +4943,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3075,7 +4956,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3094,9 +4975,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3107,7 +4988,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort values, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3126,9 +5007,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3139,7 +5020,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3158,1882 +5039,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (ushort*)pvalues, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref ushort values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotBarsNative(pStr0, (ushort*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[141])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[141])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, double barSize, double shift) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, double barSize) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, ImPlotBarsFlags flags) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, double barSize, double shift, int offset) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, double barSize, int offset) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, int offset) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, double barSize, double shift, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, double barSize, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotBarsNative(labelId, (int*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (int*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref int values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotBarsNative(pStr0, (int*)pvalues, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref int values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotBarsNative(pStr0, (int*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(int))); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.044.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.044.cs index 80c66412e..a9bae8d48 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.044.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.044.cs @@ -22,7 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref int values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,9 +41,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (int*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(int))); + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -54,7 +54,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref int values, int count, double barSize, double shift) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -73,9 +73,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (int*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -86,7 +86,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref int values, int count, double barSize) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -105,9 +105,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (int*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -118,7 +118,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref int values, int count) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -137,9 +137,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (int*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -150,7 +150,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref int values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -169,9 +169,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (int*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -182,7 +182,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref int values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -201,9 +201,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (int*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(int))); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -214,7 +214,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref int values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -233,9 +233,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (int*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -246,7 +246,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref int values, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -265,9 +265,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (int*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -278,7 +278,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref int values, int count, int offset) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -297,9 +297,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (int*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -310,7 +310,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref int values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -329,9 +329,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (int*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(int))); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -342,7 +342,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref int values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -361,9 +361,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (int*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(int))); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -374,7 +374,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref int values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -393,9 +393,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (int*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -406,7 +406,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref int values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -425,9 +425,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (int*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -438,7 +438,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref int values, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -457,9 +457,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (int*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -470,7 +470,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref int values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -489,9 +489,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (int*)pvalues, count, barSize, (double)(0), flags, offset, stride); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -502,7 +502,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref int values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -521,9 +521,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pvalues = &values) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (int*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -534,560 +534,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[142])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[142])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1106,7 +553,499 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); + fixed (double* pvalues = &values) + { + PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1116,13 +1055,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1132,10 +1071,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(uint))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1145,13 +1084,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1161,10 +1100,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1174,13 +1113,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1190,10 +1129,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1203,13 +1142,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count, double barSize) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1219,10 +1158,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1232,13 +1171,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1248,10 +1187,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1261,13 +1200,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1277,10 +1216,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1290,13 +1229,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1306,10 +1245,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1319,13 +1258,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1335,10 +1274,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1348,13 +1287,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count, double barSize, int offset) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1364,10 +1303,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1377,13 +1316,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count, int offset) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1393,10 +1332,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1406,13 +1345,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1422,10 +1361,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(uint))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1435,13 +1374,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1451,10 +1390,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(uint))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1464,13 +1403,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1480,10 +1419,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1493,13 +1432,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1509,10 +1448,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1522,13 +1461,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count, int offset, int stride) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1538,10 +1477,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1551,13 +1490,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1567,10 +1506,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1580,13 +1519,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, uint* values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1596,10 +1535,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1609,211 +1548,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref uint values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count, double barSize, double shift) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count, double barSize) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count, ImPlotBarsFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count, double barSize, double shift, int offset) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count, double barSize, int offset) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count, int offset) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count, double barSize, double shift, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count, double barSize, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotBarsNative(labelId, (uint*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref uint values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, shift, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -1821,13 +1562,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -1835,13 +1576,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -1849,13 +1590,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count, double barSize, double shift) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -1863,13 +1604,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count, double barSize) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -1877,13 +1618,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -1891,13 +1632,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -1905,13 +1646,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -1919,13 +1660,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -1933,13 +1674,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count, double barSize, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -1947,13 +1688,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -1961,13 +1702,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -1975,13 +1716,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -1989,13 +1730,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -2003,13 +1744,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -2017,13 +1758,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -2031,13 +1772,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, (double)(0), flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -2045,13 +1786,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref uint values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -2059,13 +1800,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, shift, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -2073,13 +1814,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -2087,13 +1828,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -2101,13 +1842,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, double barSize, double shift) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -2115,13 +1856,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, double barSize) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -2129,13 +1870,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -2143,13 +1884,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -2157,13 +1898,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -2171,13 +1912,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -2185,13 +1926,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, double barSize, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -2199,13 +1940,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -2213,13 +1954,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -2227,13 +1968,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -2241,13 +1982,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -2255,13 +1996,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -2269,13 +2010,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -2283,13 +2024,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, barSize, (double)(0), flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -2297,13 +2038,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref uint values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (uint* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -2311,7 +2052,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2330,9 +2071,1161 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pvalues = &values) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotBarsNative(pStr0, (uint*)pvalues, count, barSize, shift, flags, offset, stride); + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2343,28 +3236,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2375,28 +3268,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2407,28 +3300,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, double barSize, double shift) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2439,28 +3332,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, double barSize) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2471,28 +3364,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2503,28 +3396,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2535,28 +3428,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2567,28 +3460,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2599,28 +3492,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, double barSize, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2631,28 +3524,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2663,28 +3556,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2695,28 +3588,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(uint))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2727,28 +3620,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2759,28 +3652,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2791,28 +3684,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2823,28 +3716,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, barSize, (double)(0), flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2855,28 +3748,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref uint values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotBarsNative(pStr0, (uint*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2887,1286 +3780,251 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[143])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[143])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(long))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(long))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, double shift) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(long))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(long))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(long))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(long))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, long* values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, double barSize, double shift) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, double barSize) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, ImPlotBarsFlags flags) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, double barSize, double shift, int offset) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, double barSize, int offset) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, int offset) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, double barSize, double shift, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, double barSize, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotBarsNative(labelId, (long*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, shift, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -4174,518 +4032,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref long values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (long* pvalues = &values) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, shift, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (long*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref long values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotBarsNative(pStr0, (long*)pvalues, count, barSize, shift, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4696,28 +4064,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotBarsNative(pStr0, (long*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(long))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4728,28 +4096,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotBarsNative(pStr0, (long*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(long))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4760,28 +4128,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count, double barSize, double shift) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotBarsNative(pStr0, (long*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4792,28 +4160,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count, double barSize) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotBarsNative(pStr0, (long*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4824,28 +4192,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotBarsNative(pStr0, (long*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4856,28 +4224,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotBarsNative(pStr0, (long*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(long))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4888,28 +4256,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotBarsNative(pStr0, (long*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(long))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4920,28 +4288,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotBarsNative(pStr0, (long*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4952,28 +4320,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count, double barSize, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotBarsNative(pStr0, (long*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4984,28 +4352,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotBarsNative(pStr0, (long*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -5016,7 +4384,231 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5035,9 +4627,393 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative(pStr0, (long*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(long))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.045.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.045.cs index 4f951291c..434049058 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.045.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.045.cs @@ -22,7 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,9 +41,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative(pStr0, (long*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(long))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -54,7 +54,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -73,9 +73,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative(pStr0, (long*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -86,7 +86,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -105,9 +105,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative(pStr0, (long*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -118,7 +118,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -137,9 +137,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative(pStr0, (long*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -150,7 +150,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -169,9 +169,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pvalues = &values) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative(pStr0, (long*)pvalues, count, barSize, (double)(0), flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -182,7 +182,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref long values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -201,9 +201,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (long*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -214,560 +214,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[144])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[144])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -786,1233 +233,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = labelFmt) { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, double barSize, double shift) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, double barSize) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, ImPlotBarsFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, double barSize, double shift, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, double barSize, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, double barSize, double shift, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, double barSize, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative(labelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref ulong values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotBarsNative(pStr0, (ulong*)pvalues, count, barSize, shift, flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2023,7 +246,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2042,9 +265,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (ulong*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2055,7 +278,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count, double barSize, double shift, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2074,9 +297,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (ulong*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2087,7 +310,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count, double barSize, double shift) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2106,9 +329,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (ulong*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2119,7 +342,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count, double barSize) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2138,9 +361,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (ulong*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2151,7 +374,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2170,9 +393,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (ulong*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2183,7 +406,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2202,9 +425,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (ulong*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2215,7 +438,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2234,9 +457,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (ulong*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2247,7 +470,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count, double barSize, double shift, int offset) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2266,9 +489,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (ulong*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2279,7 +502,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2298,9 +521,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (ulong*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2311,7 +534,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count, int offset) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2330,9 +553,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (ulong*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2343,7 +566,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2362,9 +585,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (ulong*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2375,7 +598,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2394,9 +617,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (ulong*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2407,7 +630,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count, double barSize, double shift, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2426,9 +649,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (ulong*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2439,7 +662,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2458,9 +681,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (ulong*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2471,7 +694,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2490,9 +713,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (ulong*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2503,7 +726,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2522,9 +745,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pvalues = &values) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(pStr0, (ulong*)pvalues, count, barSize, (double)(0), flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2535,478 +758,27 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong values, int count, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotBarsNative(pStr0, (ulong*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[145])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[145])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* xs, float* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* xs, float* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, float* xs, float* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (float* pxs = &xs) - { - PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize, int offset) - { - fixed (float* pxs = &xs) - { - PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, offset, stride); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -3014,13 +786,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { - fixed (byte* plabelId = &labelId) + fixed (double* pvalues = &values) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(float))); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3028,13 +800,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { - fixed (byte* plabelId = &labelId) + fixed (double* pvalues = &values) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3042,13 +814,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt) { - fixed (byte* plabelId = &labelId) + fixed (double* pvalues = &values) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3056,13 +828,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize, int offset) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt) { - fixed (byte* plabelId = &labelId) + fixed (double* pvalues = &values) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3070,13 +842,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) { - fixed (byte* plabelId = &labelId) + fixed (double* pvalues = &values) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3084,13 +856,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) { - fixed (byte* plabelId = labelId) + fixed (double* pvalues = &values) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, offset, stride); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3098,13 +870,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (byte* plabelId = labelId) + fixed (double* pvalues = &values) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(float))); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -3112,13 +884,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (byte* plabelId = labelId) + fixed (double* pvalues = &values) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -3126,13 +898,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref float xs, float* ys, int count, double barSize) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = labelId) + fixed (double* pvalues = &values) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -3140,13 +912,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref float xs, float* ys, int count, double barSize, int offset) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = labelId) + fixed (double* pvalues = &values) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -3154,13 +926,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref float xs, float* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = labelId) + fixed (double* pvalues = &values) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -3168,31 +940,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* plabelFmt = &labelFmt) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -3200,31 +954,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -3232,31 +968,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -3264,31 +982,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -3296,31 +996,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize, int offset) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -3328,181 +1010,27 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = labelFmt) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, xs, (float*)pys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, xs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, xs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (float* pys = &ys) + fixed (double* pvalues = &values) { - PlotBarsNative(labelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize, int offset) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -3510,13 +1038,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { - fixed (byte* plabelId = labelId) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, offset, stride); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3524,13 +1052,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) { - fixed (byte* plabelId = labelId) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3538,13 +1066,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) { - fixed (byte* plabelId = labelId) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3552,13 +1080,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, float* xs, ref float ys, int count, double barSize) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt) { - fixed (byte* plabelId = labelId) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3566,13 +1094,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, float* xs, ref float ys, int count, double barSize, int offset) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { - fixed (byte* plabelId = labelId) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3580,77 +1108,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, float* xs, ref float ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3658,31 +1122,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* plabelFmt = labelFmt) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -3690,31 +1136,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (double* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = labelFmt) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -3722,31 +1150,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize, int offset) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -3754,31 +1164,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) + fixed (double* pvalues = &values) { - PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = labelFmt) { - Utils.Free(pStr0); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -3786,13 +1178,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, stride); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -3800,13 +1192,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -3814,13 +1206,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -3828,13 +1220,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -3842,13 +1234,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, int offset) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -3856,13 +1248,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -3870,15 +1262,591 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = &labelId) + fixed (double* pvalues = &values) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (float* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -3887,15 +1855,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -3904,15 +1872,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3921,15 +1889,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3938,15 +1906,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize, int offset) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3955,15 +1923,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3972,15 +1940,219 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -3989,15 +2161,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -4006,15 +2178,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -4023,15 +2195,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double barSize) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -4040,15 +2212,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double barSize, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -4057,15 +2229,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -4074,7 +2246,211 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4093,11 +2469,1271 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (float* pys = &ys) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, flags, offset, stride); + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4109,30 +3745,30 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pvalues = &values) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4144,30 +3780,30 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pvalues = &values) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4179,30 +3815,30 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pvalues = &values) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4214,30 +3850,30 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize, int offset) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pvalues = &values) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4249,30 +3885,30 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pvalues = &values) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4284,446 +3920,244 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[146])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[146])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(double))); + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize, int offset) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* xs, double* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* xs, double* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* xs, double* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pvalues = &values) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (double* pxs = &xs) - { - PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize) - { - fixed (double* pxs = &xs) - { - PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize, int offset) - { - fixed (double* pxs = &xs) - { - PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, offset, stride); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4731,13 +4165,34 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(double))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4745,13 +4200,34 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4759,13 +4235,34 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4773,13 +4270,34 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize, int offset) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4787,13 +4305,34 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -4801,13 +4340,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, offset, stride); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } } } } @@ -4815,13 +4357,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(double))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } } } } @@ -4829,13 +4374,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } } } } @@ -4843,13 +4391,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref double xs, double* ys, int count, double barSize) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } } } } @@ -4857,13 +4408,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref double xs, double* ys, int count, double barSize, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } } } } @@ -4871,13 +4425,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, ref double xs, double* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } } } } @@ -4885,31 +4442,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pvalues = &values) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } } } } @@ -4917,31 +4459,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pvalues = &values) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } } } } @@ -4949,31 +4476,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pvalues = &values) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } } } } @@ -4981,31 +4493,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pvalues = &values) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } } } } @@ -5013,31 +4510,520 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pvalues = &values) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) { - PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.046.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.046.cs index ba7fcfe3a..10c81bfd9 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.046.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.046.cs @@ -22,776 +22,30 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, xs, (double*)pys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, xs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, xs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize, int offset) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pys = &ys) + fixed (double* pvalues = &values) { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* xs, ref double ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* xs, ref double ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, double* xs, ref double ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -803,30 +57,30 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pvalues = &values) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -838,30 +92,30 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pvalues = &values) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -873,30 +127,30 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pvalues = &values) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -908,30 +162,30 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (double* pvalues = &values) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -943,7 +197,77 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -962,11 +286,1236 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (double* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -979,199 +1528,1099 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + internal static void PlotHeatmapNative(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[147])(labelId, xs, ys, count, barSize, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[237])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[147])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[237])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); #endif } /// /// To be documented. /// - public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize) + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize, int offset) + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax) { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin) { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize) + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize, int offset) + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double barSize) + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double barSize, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1190,7 +2639,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1200,7 +2649,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1219,7 +2668,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1229,7 +2678,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1248,7 +2697,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1258,7 +2707,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1277,7 +2726,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1287,7 +2736,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1306,7 +2755,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1316,7 +2765,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1335,7 +2784,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1345,241 +2794,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref byte xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative(labelId, (byte*)pxs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative(labelId, (byte*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative(labelId, (byte*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte xs, byte* ys, int count, double barSize) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative(labelId, (byte*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte xs, byte* ys, int count, double barSize, int offset) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative(labelId, (byte*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte xs, byte* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative(labelId, (byte*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte xs, byte* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte xs, byte* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte xs, byte* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref byte xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1598,1316 +2813,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) - { - PlotBarsNative(pStr0, (byte*)pxs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref byte xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotBarsNative(pStr0, (byte*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref byte xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotBarsNative(pStr0, (byte*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref byte xs, byte* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotBarsNative(pStr0, (byte*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref byte xs, byte* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotBarsNative(pStr0, (byte*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref byte xs, byte* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotBarsNative(pStr0, (byte*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(labelId, xs, (byte*)pys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(labelId, xs, (byte*)pys, count, barSize, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(labelId, xs, (byte*)pys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* xs, ref byte ys, int count, double barSize) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(labelId, xs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* xs, ref byte ys, int count, double barSize, int offset) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(labelId, xs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, byte* xs, ref byte ys, int count, double barSize, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(labelId, xs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (byte*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (byte*)pys, count, barSize, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (byte*)pys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* xs, ref byte ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* xs, ref byte ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, byte* xs, ref byte ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (byte*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (byte*)pys, count, barSize, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (byte*)pys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotBarsNative(pStr0, xs, (byte*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotBarsNative(pStr0, xs, (byte*)pys, count, barSize, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotBarsNative(pStr0, xs, (byte*)pys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* xs, ref byte ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotBarsNative(pStr0, xs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* xs, ref byte ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotBarsNative(pStr0, xs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, byte* xs, ref byte ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotBarsNative(pStr0, xs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(labelId, (byte*)pxs, (byte*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(labelId, (byte*)pxs, (byte*)pys, count, barSize, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(labelId, (byte*)pxs, (byte*)pys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte xs, ref byte ys, int count, double barSize) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(labelId, (byte*)pxs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte xs, ref byte ys, int count, double barSize, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(labelId, (byte*)pxs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref byte xs, ref byte ys, int count, double barSize, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(labelId, (byte*)pxs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, barSize, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte xs, ref byte ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte xs, ref byte ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref byte xs, ref byte ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, barSize, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref byte xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(pStr0, (byte*)pxs, (byte*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref byte xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(pStr0, (byte*)pxs, (byte*)pys, count, barSize, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref byte xs, ref byte ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(pStr0, (byte*)pxs, (byte*)pys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref byte xs, ref byte ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(pStr0, (byte*)pxs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref byte xs, ref byte ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(pStr0, (byte*)pxs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref byte xs, ref byte ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotBarsNative(pStr0, (byte*)pxs, (byte*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[148])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[148])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* xs, short* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* xs, short* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* xs, short* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2917,7 +2823,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2936,7 +2842,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(short))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2946,7 +2852,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2965,7 +2871,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(short))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2975,7 +2881,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2994,7 +2900,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3004,7 +2910,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3023,7 +2929,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3033,7 +2939,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3052,7 +2958,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3062,241 +2968,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref short xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotBarsNative(labelId, (short*)pxs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - PlotBarsNative(labelId, (short*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short xs, short* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (short* pxs = &xs) - { - PlotBarsNative(labelId, (short*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short xs, short* ys, int count, double barSize) - { - fixed (short* pxs = &xs) - { - PlotBarsNative(labelId, (short*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short xs, short* ys, int count, double barSize, int offset) - { - fixed (short* pxs = &xs) - { - PlotBarsNative(labelId, (short*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short xs, short* ys, int count, double barSize, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotBarsNative(labelId, (short*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short xs, short* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short xs, short* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short xs, short* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short xs, short* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short xs, short* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short xs, short* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short xs, short* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short xs, short* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref short xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3315,1316 +2987,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) - { - PlotBarsNative(pStr0, (short*)pxs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref short xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotBarsNative(pStr0, (short*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref short xs, short* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotBarsNative(pStr0, (short*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref short xs, short* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotBarsNative(pStr0, (short*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref short xs, short* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotBarsNative(pStr0, (short*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref short xs, short* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotBarsNative(pStr0, (short*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotBarsNative(labelId, xs, (short*)pys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (short* pys = &ys) - { - PlotBarsNative(labelId, xs, (short*)pys, count, barSize, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (short* pys = &ys) - { - PlotBarsNative(labelId, xs, (short*)pys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* xs, ref short ys, int count, double barSize) - { - fixed (short* pys = &ys) - { - PlotBarsNative(labelId, xs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* xs, ref short ys, int count, double barSize, int offset) - { - fixed (short* pys = &ys) - { - PlotBarsNative(labelId, xs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, short* xs, ref short ys, int count, double barSize, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotBarsNative(labelId, xs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (short*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (short*)pys, count, barSize, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (short*)pys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* xs, ref short ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* xs, ref short ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, short* xs, ref short ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (short*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (short*)pys, count, barSize, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (short*)pys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* xs, ref short ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* xs, ref short ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, short* xs, ref short ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, short* xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotBarsNative(pStr0, xs, (short*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, short* xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotBarsNative(pStr0, xs, (short*)pys, count, barSize, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, short* xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotBarsNative(pStr0, xs, (short*)pys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, short* xs, ref short ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotBarsNative(pStr0, xs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, short* xs, ref short ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotBarsNative(pStr0, xs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, short* xs, ref short ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotBarsNative(pStr0, xs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative(labelId, (short*)pxs, (short*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative(labelId, (short*)pxs, (short*)pys, count, barSize, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative(labelId, (short*)pxs, (short*)pys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short xs, ref short ys, int count, double barSize) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative(labelId, (short*)pxs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short xs, ref short ys, int count, double barSize, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative(labelId, (short*)pxs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref short xs, ref short ys, int count, double barSize, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative(labelId, (short*)pxs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, barSize, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short xs, ref short ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short xs, ref short ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref short xs, ref short ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, barSize, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref short xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative(pStr0, (short*)pxs, (short*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref short xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative(pStr0, (short*)pxs, (short*)pys, count, barSize, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref short xs, ref short ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative(pStr0, (short*)pxs, (short*)pys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref short xs, ref short ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative(pStr0, (short*)pxs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref short xs, ref short ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative(pStr0, (short*)pxs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref short xs, ref short ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotBarsNative(pStr0, (short*)pxs, (short*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[149])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[149])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4634,7 +2997,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4653,7 +3016,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4663,7 +3026,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4682,7 +3045,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4692,7 +3055,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4711,7 +3074,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4721,7 +3084,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4740,7 +3103,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4750,7 +3113,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4769,7 +3132,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4779,241 +3142,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref ushort xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative(labelId, (ushort*)pxs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative(labelId, (ushort*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative(labelId, (ushort*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort xs, ushort* ys, int count, double barSize) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative(labelId, (ushort*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort xs, ushort* ys, int count, double barSize, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative(labelId, (ushort*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort xs, ushort* ys, int count, double barSize, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative(labelId, (ushort*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort xs, ushort* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort xs, ushort* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort xs, ushort* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref ushort xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5032,12 +3161,1868 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ushort*)pxs, ys, count, barSize, flags, offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.047.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.047.cs index ffe5f9c40..74a2b2e73 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.047.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.047.cs @@ -22,7 +22,63 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,20 +97,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotBarsNative(pStr0, (ushort*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -73,20 +147,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotBarsNative(pStr0, (ushort*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort xs, ushort* ys, int count, double barSize) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -105,20 +197,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotBarsNative(pStr0, (ushort*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort xs, ushort* ys, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -137,20 +247,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotBarsNative(pStr0, (ushort*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort xs, ushort* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -169,254 +297,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotBarsNative(pStr0, (ushort*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ushort* xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative(labelId, xs, (ushort*)pys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ushort* xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative(labelId, xs, (ushort*)pys, count, barSize, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ushort* xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative(labelId, xs, (ushort*)pys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ushort* xs, ref ushort ys, int count, double barSize) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative(labelId, xs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ushort* xs, ref ushort ys, int count, double barSize, int offset) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative(labelId, xs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ushort* xs, ref ushort ys, int count, double barSize, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative(labelId, xs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ushort* xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) + else { - PlotBarsNative((byte*)plabelId, xs, (ushort*)pys, count, barSize, flags, offset, stride); + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ushort* xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ushort*)pys, count, barSize, flags, offset, (int)(sizeof(ushort))); - } + Utils.Free(pStr1); } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ushort* xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ushort*)pys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ushort* xs, ref ushort ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ushort* xs, ref ushort ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ushort* xs, ref ushort ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ushort*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ushort*)pys, count, barSize, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ushort*)pys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ushort* xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -435,20 +347,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotBarsNative(pStr0, xs, (ushort*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -467,20 +397,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotBarsNative(pStr0, xs, (ushort*)pys, count, barSize, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -499,20 +447,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotBarsNative(pStr0, xs, (ushort*)pys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* xs, ref ushort ys, int count, double barSize) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -531,20 +497,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotBarsNative(pStr0, xs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* xs, ref ushort ys, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -563,20 +547,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotBarsNative(pStr0, xs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ushort* xs, ref ushort ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -595,308 +597,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotBarsNative(pStr0, xs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref ushort xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative(labelId, (ushort*)pxs, (ushort*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative(labelId, (ushort*)pxs, (ushort*)pys, count, barSize, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative(labelId, (ushort*)pxs, (ushort*)pys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort xs, ref ushort ys, int count, double barSize) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative(labelId, (ushort*)pxs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort xs, ref ushort ys, int count, double barSize, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative(labelId, (ushort*)pxs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ushort xs, ref ushort ys, int count, double barSize, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative(labelId, (ushort*)pxs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, barSize, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort xs, ref ushort ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort xs, ref ushort ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ushort xs, ref ushort ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, barSize, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref ushort xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -915,15 +647,614 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - fixed (ushort* pys = &ys) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, barSize, flags, offset, stride); + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -931,7 +1262,1379 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, string labelFmt) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -950,15 +2653,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, barSize, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -966,7 +2666,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort xs, ref ushort ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -985,15 +2685,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -1001,7 +2698,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort xs, ref ushort ys, int count, double barSize) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1020,15 +2717,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -1036,7 +2730,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort xs, ref ushort ys, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1055,15 +2749,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -1071,7 +2762,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ushort xs, ref ushort ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1090,15 +2781,1004 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ref byte labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1107,199 +3787,1099 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + internal static void PlotHeatmapNative(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[150])(labelId, xs, ys, count, barSize, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[238])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[150])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[238])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); #endif } /// /// To be documented. /// - public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(int))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize) + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, int offset) + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax) { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin) { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(int))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize) + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, int offset) + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = &labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(int))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, int* xs, int* ys, int count, double barSize) + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, int* xs, int* ys, int count, double barSize, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(ReadOnlySpan labelId, int* xs, int* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = labelId) { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1318,7 +4898,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1328,7 +4908,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1347,7 +4927,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(int))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1357,7 +4937,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1376,7 +4956,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1386,7 +4966,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1405,7 +4985,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1415,7 +4995,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1434,3596 +5014,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotBarsNative(labelId, (int*)pxs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - PlotBarsNative(labelId, (int*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (int* pxs = &xs) - { - PlotBarsNative(labelId, (int*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int xs, int* ys, int count, double barSize) - { - fixed (int* pxs = &xs) - { - PlotBarsNative(labelId, (int*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int xs, int* ys, int count, double barSize, int offset) - { - fixed (int* pxs = &xs) - { - PlotBarsNative(labelId, (int*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int xs, int* ys, int count, double barSize, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotBarsNative(labelId, (int*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int xs, int* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int xs, int* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int xs, int* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int xs, int* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int xs, int* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int xs, int* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref int xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotBarsNative(pStr0, (int*)pxs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref int xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotBarsNative(pStr0, (int*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref int xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotBarsNative(pStr0, (int*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref int xs, int* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotBarsNative(pStr0, (int*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref int xs, int* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotBarsNative(pStr0, (int*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref int xs, int* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotBarsNative(pStr0, (int*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotBarsNative(labelId, xs, (int*)pys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (int* pys = &ys) - { - PlotBarsNative(labelId, xs, (int*)pys, count, barSize, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (int* pys = &ys) - { - PlotBarsNative(labelId, xs, (int*)pys, count, barSize, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* xs, ref int ys, int count, double barSize) - { - fixed (int* pys = &ys) - { - PlotBarsNative(labelId, xs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* xs, ref int ys, int count, double barSize, int offset) - { - fixed (int* pys = &ys) - { - PlotBarsNative(labelId, xs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, int* xs, ref int ys, int count, double barSize, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotBarsNative(labelId, xs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (int*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (int*)pys, count, barSize, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (int*)pys, count, barSize, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* xs, ref int ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* xs, ref int ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, int* xs, ref int ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (int*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (int*)pys, count, barSize, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (int*)pys, count, barSize, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* xs, ref int ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* xs, ref int ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, int* xs, ref int ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotBarsNative(pStr0, xs, (int*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotBarsNative(pStr0, xs, (int*)pys, count, barSize, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotBarsNative(pStr0, xs, (int*)pys, count, barSize, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* xs, ref int ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotBarsNative(pStr0, xs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* xs, ref int ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotBarsNative(pStr0, xs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, int* xs, ref int ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotBarsNative(pStr0, xs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative(labelId, (int*)pxs, (int*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative(labelId, (int*)pxs, (int*)pys, count, barSize, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative(labelId, (int*)pxs, (int*)pys, count, barSize, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int xs, ref int ys, int count, double barSize) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative(labelId, (int*)pxs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int xs, ref int ys, int count, double barSize, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative(labelId, (int*)pxs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref int xs, ref int ys, int count, double barSize, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative(labelId, (int*)pxs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, barSize, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, barSize, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int xs, ref int ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int xs, ref int ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref int xs, ref int ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, barSize, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, barSize, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref int xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative(pStr0, (int*)pxs, (int*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref int xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative(pStr0, (int*)pxs, (int*)pys, count, barSize, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref int xs, ref int ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative(pStr0, (int*)pxs, (int*)pys, count, barSize, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref int xs, ref int ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative(pStr0, (int*)pxs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref int xs, ref int ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative(pStr0, (int*)pxs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref int xs, ref int ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotBarsNative(pStr0, (int*)pxs, (int*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[151])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[151])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative(labelId, (uint*)pxs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative(labelId, (uint*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative(labelId, (uint*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint xs, uint* ys, int count, double barSize) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative(labelId, (uint*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint xs, uint* ys, int count, double barSize, int offset) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative(labelId, (uint*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint xs, uint* ys, int count, double barSize, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative(labelId, (uint*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref uint xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref uint xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref uint xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref uint xs, uint* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref uint xs, uint* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref uint xs, uint* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref uint xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotBarsNative(pStr0, (uint*)pxs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref uint xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotBarsNative(pStr0, (uint*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref uint xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotBarsNative(pStr0, (uint*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref uint xs, uint* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotBarsNative(pStr0, (uint*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref uint xs, uint* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotBarsNative(pStr0, (uint*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref uint xs, uint* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotBarsNative(pStr0, (uint*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(labelId, xs, (uint*)pys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(labelId, xs, (uint*)pys, count, barSize, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(labelId, xs, (uint*)pys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* xs, ref uint ys, int count, double barSize) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(labelId, xs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* xs, ref uint ys, int count, double barSize, int offset) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(labelId, xs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, uint* xs, ref uint ys, int count, double barSize, int offset, int stride) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(labelId, xs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (uint*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (uint*)pys, count, barSize, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (uint*)pys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* xs, ref uint ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* xs, ref uint ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, uint* xs, ref uint ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (uint*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (uint*)pys, count, barSize, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (uint*)pys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, uint* xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotBarsNative(pStr0, xs, (uint*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, uint* xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotBarsNative(pStr0, xs, (uint*)pys, count, barSize, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, uint* xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotBarsNative(pStr0, xs, (uint*)pys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, uint* xs, ref uint ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotBarsNative(pStr0, xs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, uint* xs, ref uint ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotBarsNative(pStr0, xs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, uint* xs, ref uint ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotBarsNative(pStr0, xs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(labelId, (uint*)pxs, (uint*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(labelId, (uint*)pxs, (uint*)pys, count, barSize, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(labelId, (uint*)pxs, (uint*)pys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint xs, ref uint ys, int count, double barSize) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(labelId, (uint*)pxs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint xs, ref uint ys, int count, double barSize, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(labelId, (uint*)pxs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref uint xs, ref uint ys, int count, double barSize, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(labelId, (uint*)pxs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref uint xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref uint xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, barSize, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref uint xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref uint xs, ref uint ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref uint xs, ref uint ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref uint xs, ref uint ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, barSize, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref uint xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(pStr0, (uint*)pxs, (uint*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref uint xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(pStr0, (uint*)pxs, (uint*)pys, count, barSize, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref uint xs, ref uint ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(pStr0, (uint*)pxs, (uint*)pys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref uint xs, ref uint ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(pStr0, (uint*)pxs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref uint xs, ref uint ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(pStr0, (uint*)pxs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref uint xs, ref uint ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotBarsNative(pStr0, (uint*)pxs, (uint*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[152])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[152])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, long* xs, long* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, long* xs, long* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, long* xs, long* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotBarsNative(labelId, (long*)pxs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - PlotBarsNative(labelId, (long*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long xs, long* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (long* pxs = &xs) - { - PlotBarsNative(labelId, (long*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long xs, long* ys, int count, double barSize) - { - fixed (long* pxs = &xs) - { - PlotBarsNative(labelId, (long*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long xs, long* ys, int count, double barSize, int offset) - { - fixed (long* pxs = &xs) - { - PlotBarsNative(labelId, (long*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long xs, long* ys, int count, double barSize, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotBarsNative(labelId, (long*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long xs, long* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long xs, long* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.048.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.048.cs index 56f42fbbc..e0627f308 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.048.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.048.cs @@ -22,119 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(ref byte labelId, ref long xs, long* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long xs, long* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long xs, long* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long xs, long* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long xs, long* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long xs, long* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref long xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -153,1316 +41,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) - { - PlotBarsNative(pStr0, (long*)pxs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref long xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotBarsNative(pStr0, (long*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref long xs, long* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotBarsNative(pStr0, (long*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref long xs, long* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotBarsNative(pStr0, (long*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref long xs, long* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotBarsNative(pStr0, (long*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref long xs, long* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotBarsNative(pStr0, (long*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotBarsNative(labelId, xs, (long*)pys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (long* pys = &ys) - { - PlotBarsNative(labelId, xs, (long*)pys, count, barSize, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (long* pys = &ys) - { - PlotBarsNative(labelId, xs, (long*)pys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* xs, ref long ys, int count, double barSize) - { - fixed (long* pys = &ys) - { - PlotBarsNative(labelId, xs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* xs, ref long ys, int count, double barSize, int offset) - { - fixed (long* pys = &ys) - { - PlotBarsNative(labelId, xs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, long* xs, ref long ys, int count, double barSize, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotBarsNative(labelId, xs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (long*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (long*)pys, count, barSize, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (long*)pys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* xs, ref long ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* xs, ref long ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, long* xs, ref long ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, long* xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (long*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, long* xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (long*)pys, count, barSize, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, long* xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (long*)pys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, long* xs, ref long ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, long* xs, ref long ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, long* xs, ref long ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotBarsNative(pStr0, xs, (long*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotBarsNative(pStr0, xs, (long*)pys, count, barSize, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotBarsNative(pStr0, xs, (long*)pys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* xs, ref long ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotBarsNative(pStr0, xs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* xs, ref long ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotBarsNative(pStr0, xs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, long* xs, ref long ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotBarsNative(pStr0, xs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative(labelId, (long*)pxs, (long*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative(labelId, (long*)pxs, (long*)pys, count, barSize, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative(labelId, (long*)pxs, (long*)pys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long xs, ref long ys, int count, double barSize) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative(labelId, (long*)pxs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long xs, ref long ys, int count, double barSize, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative(labelId, (long*)pxs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref long xs, ref long ys, int count, double barSize, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative(labelId, (long*)pxs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, barSize, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long xs, ref long ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long xs, ref long ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref long xs, ref long ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, barSize, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref long xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative(pStr0, (long*)pxs, (long*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref long xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative(pStr0, (long*)pxs, (long*)pys, count, barSize, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref long xs, ref long ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative(pStr0, (long*)pxs, (long*)pys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref long xs, ref long ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative(pStr0, (long*)pxs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref long xs, ref long ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative(pStr0, (long*)pxs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref long xs, ref long ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotBarsNative(pStr0, (long*)pxs, (long*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[153])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[153])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1472,7 +51,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1491,7 +70,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(ulong))); + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1501,7 +80,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1520,7 +99,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1530,7 +109,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1549,7 +128,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1559,7 +138,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1578,7 +157,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1588,7 +167,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1607,7 +186,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1617,241 +196,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref ulong xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative(labelId, (ulong*)pxs, ys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative(labelId, (ulong*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative(labelId, (ulong*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong xs, ulong* ys, int count, double barSize) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative(labelId, (ulong*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong xs, ulong* ys, int count, double barSize, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative(labelId, (ulong*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong xs, ulong* ys, int count, double barSize, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative(labelId, (ulong*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong xs, ulong* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong xs, ulong* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong xs, ulong* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref ulong xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1870,20 +215,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ulong*)pxs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1902,20 +244,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ulong*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1934,20 +273,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ulong*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong xs, ulong* ys, int count, double barSize) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1966,20 +302,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ulong*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong xs, ulong* ys, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1998,20 +331,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ulong*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong xs, ulong* ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2030,254 +360,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ulong*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ulong* xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative(labelId, xs, (ulong*)pys, count, barSize, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative(labelId, xs, (ulong*)pys, count, barSize, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative(labelId, xs, (ulong*)pys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* xs, ref ulong ys, int count, double barSize) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative(labelId, xs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* xs, ref ulong ys, int count, double barSize, int offset) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative(labelId, xs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ulong* xs, ref ulong ys, int count, double barSize, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative(labelId, xs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ulong*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ulong*)pys, count, barSize, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ulong*)pys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* xs, ref ulong ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* xs, ref ulong ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ulong* xs, ref ulong ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ulong*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ulong*)pys, count, barSize, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ulong*)pys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ulong* xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2296,20 +389,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, xs, (ulong*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ulong* xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2328,20 +418,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, xs, (ulong*)pys, count, barSize, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ulong* xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2360,20 +447,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, xs, (ulong*)pys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ulong* xs, ref ulong ys, int count, double barSize) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2392,20 +476,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, xs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ulong* xs, ref ulong ys, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2424,20 +505,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, xs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(string labelId, ulong* xs, ref ulong ys, int count, double barSize, int offset, int stride) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2456,308 +534,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, xs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotBars(byte* labelId, ref ulong xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative(labelId, (ulong*)pxs, (ulong*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative(labelId, (ulong*)pxs, (ulong*)pys, count, barSize, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative(labelId, (ulong*)pxs, (ulong*)pys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong xs, ref ulong ys, int count, double barSize) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative(labelId, (ulong*)pxs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong xs, ref ulong ys, int count, double barSize, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative(labelId, (ulong*)pxs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(byte* labelId, ref ulong xs, ref ulong ys, int count, double barSize, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative(labelId, (ulong*)pxs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, barSize, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong xs, ref ulong ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong xs, ref ulong ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ref byte labelId, ref ulong xs, ref ulong ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, barSize, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref ulong xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2776,15 +563,2963 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* pys = &ys) + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, barSize, flags, offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -2792,7 +3527,1379 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2811,15 +4918,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ulong* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, barSize, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2827,7 +4931,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong xs, ref ulong ys, int count, double barSize, ImPlotBarsFlags flags) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2846,15 +4950,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ulong* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2862,7 +4963,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong xs, ref ulong ys, int count, double barSize) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2881,15 +4982,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ulong* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -2897,7 +4995,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBars(string labelId, ref ulong xs, ref ulong ys, int count, double barSize, int offset) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2916,2114 +5014,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ulong* pys = &ys) - { - PlotBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotBars(string labelId, ref ulong xs, ref ulong ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, float* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[154])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[154])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, groupSize, shift, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount, double groupSize, double shift) - { - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount, double groupSize) - { - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount) - { - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, double* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[155])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[155])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, groupSize, shift, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount, double groupSize, double shift) - { - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount, double groupSize) - { - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount) - { - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, byte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[156])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[156])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref byte values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (byte*)pvalues, itemCount, groupCount, groupSize, shift, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref byte values, int itemCount, int groupCount, double groupSize, double shift) - { - fixed (byte* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (byte*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref byte values, int itemCount, int groupCount, double groupSize) - { - fixed (byte* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (byte*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref byte values, int itemCount, int groupCount) - { - fixed (byte* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (byte*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref byte values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (byte*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref byte values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (byte*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref byte values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (byte*)pvalues, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref byte values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (byte*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref byte values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (byte*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref byte values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (byte*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref byte values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (byte*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref byte values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (byte*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, short* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[157])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[157])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref short values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - fixed (short* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (short*)pvalues, itemCount, groupCount, groupSize, shift, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref short values, int itemCount, int groupCount, double groupSize, double shift) - { - fixed (short* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (short*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref short values, int itemCount, int groupCount, double groupSize) - { - fixed (short* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (short*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref short values, int itemCount, int groupCount) - { - fixed (short* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (short*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref short values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - fixed (short* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (short*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref short values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - fixed (short* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (short*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref short values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (short*)pvalues, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref short values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (short*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); + Utils.Free(pStr0); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.049.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.049.cs index cca24be74..040d74de2 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.049.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.049.cs @@ -22,3113 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotBarGroups(string[] labelIds, ref short values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (short*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref short values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (short*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref short values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (short*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref short values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (short*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, ushort* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[158])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[158])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref ushort values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (ushort*)pvalues, itemCount, groupCount, groupSize, shift, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref ushort values, int itemCount, int groupCount, double groupSize, double shift) - { - fixed (ushort* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (ushort*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref ushort values, int itemCount, int groupCount, double groupSize) - { - fixed (ushort* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (ushort*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref ushort values, int itemCount, int groupCount) - { - fixed (ushort* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (ushort*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref ushort values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (ushort*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref ushort values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (ushort*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref ushort values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (ushort*)pvalues, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref ushort values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (ushort*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref ushort values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (ushort*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref ushort values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (ushort*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref ushort values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (ushort*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref ushort values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (ushort*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, int* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[159])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[159])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref int values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - fixed (int* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (int*)pvalues, itemCount, groupCount, groupSize, shift, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref int values, int itemCount, int groupCount, double groupSize, double shift) - { - fixed (int* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (int*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref int values, int itemCount, int groupCount, double groupSize) - { - fixed (int* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (int*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref int values, int itemCount, int groupCount) - { - fixed (int* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (int*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref int values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - fixed (int* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (int*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref int values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - fixed (int* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (int*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref int values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (int*)pvalues, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref int values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (int*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref int values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (int*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref int values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (int*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref int values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (int*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref int values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (int*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, uint* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[160])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[160])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref uint values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (uint*)pvalues, itemCount, groupCount, groupSize, shift, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref uint values, int itemCount, int groupCount, double groupSize, double shift) - { - fixed (uint* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (uint*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref uint values, int itemCount, int groupCount, double groupSize) - { - fixed (uint* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (uint*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref uint values, int itemCount, int groupCount) - { - fixed (uint* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (uint*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref uint values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (uint*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref uint values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (uint*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref uint values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (uint*)pvalues, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref uint values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (uint*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref uint values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (uint*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref uint values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (uint*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref uint values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (uint*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref uint values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (uint*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, long* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[161])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[161])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref long values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - fixed (long* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (long*)pvalues, itemCount, groupCount, groupSize, shift, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref long values, int itemCount, int groupCount, double groupSize, double shift) - { - fixed (long* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (long*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref long values, int itemCount, int groupCount, double groupSize) - { - fixed (long* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (long*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref long values, int itemCount, int groupCount) - { - fixed (long* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (long*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref long values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - fixed (long* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (long*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref long values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - fixed (long* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (long*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref long values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (long*)pvalues, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref long values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (long*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref long values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (long*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref long values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (long*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref long values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (long*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref long values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (long*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, ulong* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[162])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[162])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref ulong values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (ulong*)pvalues, itemCount, groupCount, groupSize, shift, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref ulong values, int itemCount, int groupCount, double groupSize, double shift) - { - fixed (ulong* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (ulong*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref ulong values, int itemCount, int groupCount, double groupSize) - { - fixed (ulong* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (ulong*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref ulong values, int itemCount, int groupCount) - { - fixed (ulong* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (ulong*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref ulong values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (ulong*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(byte** labelIds, ref ulong values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (ulong*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref ulong values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (ulong*)pvalues, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref ulong values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (ulong*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref ulong values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (ulong*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref ulong values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (ulong*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref ulong values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (ulong*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotBarGroups(string[] labelIds, ref ulong values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (ulong*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[163])(labelId, xs, ys, err, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[163])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* err, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3147,7 +41,2124 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotHeatmapNative(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[239])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[239])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3157,7 +2168,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3176,7 +2187,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(float))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3186,7 +2197,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3205,7 +2216,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3215,7 +2226,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3234,7 +2245,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3244,7 +2255,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count, int offset) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3263,7 +2274,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3273,7 +2284,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3292,7 +2303,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3302,241 +2313,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3555,20 +2332,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3587,20 +2361,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3619,20 +2390,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3651,20 +2419,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count, int offset) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3683,20 +2448,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3715,92 +2477,1637 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, flags, offset, stride); + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) { - fixed (float* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (float* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (float* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count, int offset) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (float* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (float* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -3808,13 +4115,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -3822,13 +4129,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3836,13 +4143,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3850,13 +4157,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3864,13 +4171,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3878,13 +4185,181 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -3892,13 +4367,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -3906,13 +4381,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3920,13 +4395,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* err, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) { fixed (byte* plabelId = labelId) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3934,13 +4409,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* err, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) { fixed (byte* plabelId = labelId) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3948,13 +4423,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* err, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt) { fixed (byte* plabelId = labelId) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3962,7 +4437,175 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3981,20 +4624,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4013,20 +4674,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4045,20 +4724,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4077,20 +4774,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count, int offset) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4109,20 +4824,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4141,308 +4874,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4461,23 +4924,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - fixed (float* pys = &ys) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4496,23 +4974,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - fixed (float* pys = &ys) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4531,515 +5024,31 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - fixed (float* pys = &ys) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStr1 = Utils.Alloc(pStrSize1 + 1); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - fixed (float* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr1); } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count, int offset) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count, int offset, int stride) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.050.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.050.cs index 88ec89709..4a42303ca 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.050.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.050.cs @@ -22,7 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,9 +41,711 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* perr = &err) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -54,322 +756,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -377,34 +788,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -412,34 +820,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -447,34 +852,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -482,34 +884,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -517,357 +916,63 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count, int offset) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) + else { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + Utils.Free(pStr0); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) { - fixed (float* perr = &err) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -875,34 +980,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -910,34 +1012,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -945,34 +1044,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -980,34 +1076,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1015,68 +1108,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) + else { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } + Utils.Free(pStr0); } } } @@ -1084,87 +1140,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (float* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, stride); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1172,19 +1172,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (float* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1192,19 +1204,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (float* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1212,19 +1236,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (float* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1232,19 +1268,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (float* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1252,39 +1300,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, stride); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -1292,19 +1314,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -1312,19 +1328,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -1332,19 +1342,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float err, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -1352,19 +1356,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float err, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -1372,19 +1370,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float err, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -1392,7 +1384,751 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1411,18 +2147,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1430,7 +2160,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1449,18 +2179,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1468,7 +2192,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1487,18 +2211,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1506,7 +2224,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1525,18 +2243,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1544,7 +2256,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count, int offset) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1563,18 +2275,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1582,7 +2288,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1601,18 +2307,972 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1621,199 +3281,1099 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + internal static void PlotHeatmapNative(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[164])(labelId, xs, ys, err, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[240])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[164])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[240])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(double))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count) + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, int offset) + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax) { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin) { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(double))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count) + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(double))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* err, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* err, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* err, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1832,7 +4392,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1842,7 +4402,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1861,7 +4421,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(double))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1871,7 +4431,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1890,7 +4450,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1900,7 +4460,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1919,7 +4479,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1929,7 +4489,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1948,7 +4508,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1958,7 +4518,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1977,7 +4537,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1987,241 +4547,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count, int offset) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2240,20 +4566,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2272,20 +4595,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2304,20 +4624,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2336,20 +4653,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2368,20 +4682,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2400,254 +4711,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count, int offset) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2666,20 +4740,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2698,20 +4769,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2730,20 +4798,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2762,20 +4827,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2794,20 +4856,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2826,308 +4885,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3146,23 +4914,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3181,23 +4943,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3216,23 +4972,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3251,23 +5001,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3286,1755 +5030,10 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count, int offset) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count, int offset, int stride) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count, int offset) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } + Utils.Free(pStr0); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.051.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.051.cs index 8a9e92630..00f9ff4ad 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.051.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.051.cs @@ -22,67 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -101,428 +41,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[165])(labelId, xs, ys, err, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[165])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* err, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -532,7 +51,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -551,7 +70,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(sbyte))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -561,7 +80,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -580,7 +99,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -590,7 +109,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -609,7 +128,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -619,7 +138,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -638,7 +157,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -648,7 +167,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -667,7 +186,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -677,241 +196,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, err, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* err, int count) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* err, int count, int offset) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* err, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, err, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, err, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -930,3308 +215,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, err, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, err, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* err, int count) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* err, int count, int offset) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* err, int count, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, err, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, err, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, err, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, err, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* err, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* err, int count, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* err, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, err, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, err, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, err, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (byte*)perr, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (byte*)perr, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (byte*)perr, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte err, int count) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte err, int count, int offset) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte err, int count, int offset, int stride) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)perr, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)perr, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)perr, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)perr, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)perr, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)perr, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)perr, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)perr, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte err, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte err, int count, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte err, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)perr, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)perr, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)perr, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)perr, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)perr, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)perr, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)perr, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)perr, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte err, int count) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte err, int count, int offset) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte err, int count, int offset, int stride) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)perr, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)perr, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)perr, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)perr, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)perr, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)perr, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte err, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte err, int count, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte err, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)perr, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)perr, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* perr = &err) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[166])(labelId, xs, ys, err, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[166])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* err, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4241,7 +225,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4260,7 +244,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(short))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4270,7 +254,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4289,7 +273,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(short))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4299,7 +283,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4318,7 +302,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4328,7 +312,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4347,7 +331,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4357,7 +341,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4376,7 +360,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4386,241 +370,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, err, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* err, int count) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* err, int count, int offset) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* err, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, err, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, err, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4639,12 +389,941 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, err, count, flags, offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -4652,7 +1331,497 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4671,20 +1840,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, err, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4703,20 +1890,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* err, int count) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4735,20 +1940,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* err, int count, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4767,20 +1990,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4799,9 +2040,961 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4812,79 +3005,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, err, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, err, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* err, int count) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* err, int count, int offset) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* err, int count, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, err, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4892,13 +3037,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, err, count, flags, offset, (int)(sizeof(short))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4906,13 +3069,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, err, count, flags, (int)(0), (int)(sizeof(short))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4920,13 +3101,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* err, int count) + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4934,13 +3133,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4948,13 +3165,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* err, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4962,13 +3197,365 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, err, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -4976,13 +3563,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, err, count, flags, offset, (int)(sizeof(short))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -4990,13 +3577,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, err, count, flags, (int)(0), (int)(sizeof(short))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -5004,13 +3591,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* err, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -5018,13 +3605,1443 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* err, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.052.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.052.cs index 0cdad0641..0d9962ced 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.052.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.052.cs @@ -22,21 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -55,9 +41,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative(pStr0, xs, (short*)pys, err, count, flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -68,7 +54,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -87,9 +73,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative(pStr0, xs, (short*)pys, err, count, flags, offset, (int)(sizeof(short))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -100,7 +86,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -119,9 +105,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative(pStr0, xs, (short*)pys, err, count, flags, (int)(0), (int)(sizeof(short))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -132,7 +118,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* err, int count) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -151,9 +137,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative(pStr0, xs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -164,7 +150,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* err, int count, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -183,9 +169,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative(pStr0, xs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -196,7 +182,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -215,9 +201,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative(pStr0, xs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -228,295 +214,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, err, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, err, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* err, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* err, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* err, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, err, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, err, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, err, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, err, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -535,453 +233,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, err, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, err, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)perr, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)perr, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)perr, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short err, int count) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short err, int count, int offset) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short err, int count, int offset, int stride) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)perr, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)perr, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)perr, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)perr, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (short*)perr, count, flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -992,7 +246,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1011,9 +265,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* perr = &err) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative(pStr0, xs, ys, (short*)perr, count, flags, offset, (int)(sizeof(short))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1024,7 +278,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1043,9 +297,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* perr = &err) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative(pStr0, xs, ys, (short*)perr, count, flags, (int)(0), (int)(sizeof(short))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1056,7 +310,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short err, int count) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1075,9 +329,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* perr = &err) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative(pStr0, xs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1088,7 +342,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short err, int count, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1107,9 +361,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* perr = &err) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative(pStr0, xs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1120,7 +374,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1139,9 +393,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* perr = &err) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative(pStr0, xs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1152,295 +406,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)perr, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)perr, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short err, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short err, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short err, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)perr, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)perr, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)perr, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)perr, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1459,15 +425,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (short* perr = &err) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -1475,7 +438,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1494,15 +457,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (short* perr = &err) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)perr, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -1510,7 +470,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1529,1188 +489,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)perr, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)perr, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)perr, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short err, int count) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short err, int count, int offset) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short err, int count, int offset, int stride) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)perr, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)perr, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)perr, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)perr, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)perr, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)perr, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)perr, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)perr, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short err, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short err, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short err, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)perr, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)perr, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)perr, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)perr, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)perr, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)perr, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* perr = &err) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -2719,199 +503,1099 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + internal static void PlotHeatmapNative(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[167])(labelId, xs, ys, err, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[241])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[167])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[241])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count) + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset) + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax) { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset, int stride) + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin) { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* err, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2930,7 +1614,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2940,7 +1624,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2959,7 +1643,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2969,7 +1653,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2988,7 +1672,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2998,7 +1682,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3017,7 +1701,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3027,7 +1711,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3046,7 +1730,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3056,7 +1740,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3075,7 +1759,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3085,241 +1769,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, err, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* err, int count) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* err, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* err, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, err, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, err, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3338,20 +1788,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3370,20 +1817,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, err, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3402,20 +1846,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* err, int count) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3434,20 +1875,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* err, int count, int offset) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3466,20 +1904,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3498,92 +1933,1637 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ushort* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, err, count, flags, offset, stride); + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) { - fixed (ushort* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, err, count, flags, offset, (int)(sizeof(ushort))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (ushort* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, err, count, flags, (int)(0), (int)(sizeof(ushort))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* err, int count) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (ushort* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* err, int count, int offset) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (ushort* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (ushort* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, err, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -3591,13 +3571,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, err, count, flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -3605,13 +3585,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, err, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3619,13 +3599,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* err, int count) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3633,13 +3613,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3647,13 +3627,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* err, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3661,13 +3641,181 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, err, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -3675,13 +3823,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, err, count, flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -3689,13 +3837,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, err, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3703,13 +3851,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* err, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3717,13 +3865,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* err, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3731,13 +3879,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* err, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -3745,394 +3893,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, err, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, err, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, err, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, err, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* err, int count) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* err, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* err, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, err, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, err, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, err, count, flags, offset, stride); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -4140,16 +3907,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, err, count, flags, offset, (int)(sizeof(ushort))); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -4157,16 +3921,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, err, count, flags, (int)(0), (int)(sizeof(ushort))); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -4174,16 +3935,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* err, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -4191,16 +3949,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* err, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -4208,16 +3963,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* err, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -4225,373 +3977,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, err, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, err, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)perr, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)perr, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)perr, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort err, int count) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort err, int count, int offset) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort err, int count, int offset, int stride) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)perr, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)perr, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* perr = &err) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)perr, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -4599,13 +3991,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* perr = &err) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)perr, count, flags, offset, (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -4613,13 +4005,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* perr = &err) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)perr, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -4627,13 +4019,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort err, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* perr = &err) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -4641,13 +4033,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort err, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* perr = &err) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -4655,13 +4047,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort err, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* perr = &err) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -4669,7 +4061,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4688,20 +4080,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* perr = &err) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4720,20 +4130,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* perr = &err) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)perr, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4752,20 +4180,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* perr = &err) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)perr, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort err, int count) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4784,20 +4230,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* perr = &err) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort err, int count, int offset) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4816,20 +4280,38 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* perr = &err) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4848,113 +4330,644 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* perr = &err) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* perr = &err) + else { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)perr, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ushort* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - fixed (ushort* perr = &err) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)perr, count, flags, offset, (int)(sizeof(ushort))); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags) - { - fixed (ushort* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)perr, count, flags, (int)(0), (int)(sizeof(ushort))); - } + Utils.Free(pStr1); } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort err, int count) - { - fixed (ushort* pxs = &xs) + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort err, int count, int offset) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) { - fixed (ushort* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ushort* perr = &err) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (ushort* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (ushort* perr = &err) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)perr, count, flags, offset, stride); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -4962,16 +4975,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)perr, count, flags, offset, (int)(sizeof(ushort))); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -4979,16 +4989,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)perr, count, flags, (int)(0), (int)(sizeof(ushort))); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -4996,16 +5003,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort err, int count) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -5013,16 +5017,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.053.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.053.cs index ef63d7e45..427b133db 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.053.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.053.cs @@ -22,16 +22,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort err, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -39,16 +36,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)perr, count, flags, offset, stride); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -56,16 +50,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)perr, count, flags, offset, (int)(sizeof(ushort))); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -73,16 +64,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)perr, count, flags, (int)(0), (int)(sizeof(ushort))); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -90,16 +78,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort err, int count) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -107,16 +92,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -124,16 +106,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort err, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = labelFmt) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } @@ -141,34 +120,115 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = labelFmt) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) { - fixed (ushort* perr = &err) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)perr, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -176,34 +236,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)perr, count, flags, offset, (int)(sizeof(ushort))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -211,34 +268,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)perr, count, flags, (int)(0), (int)(sizeof(ushort))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -246,34 +300,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort err, int count) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -281,34 +332,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -316,357 +364,63 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort err, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)perr, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)perr, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort err, int count) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort err, int count, int offset) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort err, int count, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) + else { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)perr, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)perr, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)perr, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)perr, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)perr, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + Utils.Free(pStr0); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) { - fixed (ushort* perr = &err) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)perr, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -674,34 +428,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)perr, count, flags, offset, (int)(sizeof(ushort))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -709,34 +460,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)perr, count, flags, (int)(0), (int)(sizeof(ushort))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -744,34 +492,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort err, int count) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -779,34 +524,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -814,68 +556,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort err, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) + else { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, flags, offset, (int)(sizeof(ushort))); - } + Utils.Free(pStr0); } } } @@ -883,87 +588,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort err, int count) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (ushort* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, flags, offset, stride); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -971,19 +620,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (ushort* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, flags, offset, (int)(sizeof(ushort))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -991,19 +652,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (ushort* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, flags, (int)(0), (int)(sizeof(ushort))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1011,19 +684,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort err, int count) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (ushort* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1031,19 +716,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (ushort* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1051,19 +748,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (ushort* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1071,19 +780,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, flags, offset, stride); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -1091,19 +794,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, flags, offset, (int)(sizeof(ushort))); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -1111,19 +808,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -1131,19 +822,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort err, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -1151,19 +836,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -1171,19 +850,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) - { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -1191,7 +864,751 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1210,18 +1627,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1229,7 +1640,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1248,18 +1659,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1267,7 +1672,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1286,18 +1691,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1305,7 +1704,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort err, int count) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1324,18 +1723,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1343,7 +1736,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, int offset) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1362,18 +1755,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1381,7 +1768,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1400,18 +1787,972 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ushort* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* perr = &err) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1420,199 +2761,1099 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + internal static void PlotHeatmapNative(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[168])(labelId, xs, ys, err, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[242])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[168])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[242])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(int))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count, int offset) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax) { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count, int offset, int stride) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin) { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(int))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count) + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(int))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* err, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* err, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* err, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1631,7 +3872,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1641,7 +3882,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1660,7 +3901,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(int))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1670,7 +3911,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1689,7 +3930,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1699,7 +3940,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1718,7 +3959,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1728,7 +3969,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count, int offset) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1747,7 +3988,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1757,7 +3998,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1776,7 +4017,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1786,241 +4027,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, err, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* err, int count) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* err, int count, int offset) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* err, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, err, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, err, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2039,20 +4046,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2071,20 +4075,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, err, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2103,20 +4104,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* err, int count) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2135,20 +4133,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* err, int count, int offset) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2167,20 +4162,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2199,254 +4191,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, err, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, err, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* err, int count) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* err, int count, int offset) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* err, int count, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, err, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, err, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, err, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, err, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2465,20 +4220,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (int*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2497,20 +4249,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (int*)pys, err, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2529,20 +4278,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (int*)pys, err, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* err, int count) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2561,20 +4307,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* err, int count, int offset) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2593,20 +4336,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2625,308 +4365,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, err, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, err, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* err, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* err, int count, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* err, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, err, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, err, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, err, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, err, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2945,23 +4394,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2980,23 +4423,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, err, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3015,23 +4452,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, err, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* err, int count) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3050,23 +4481,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* err, int count, int offset) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3085,23 +4510,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3120,257 +4539,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)perr, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)perr, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)perr, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int err, int count) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int err, int count, int offset) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int err, int count, int offset, int stride) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)perr, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)perr, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)perr, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)perr, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3389,20 +4568,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* perr = &err) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (int*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3421,20 +4597,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* perr = &err) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (int*)perr, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3453,20 +4626,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* perr = &err) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (int*)perr, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int err, int count) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3485,20 +4655,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* perr = &err) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int err, int count, int offset) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3517,20 +4684,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* perr = &err) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3549,308 +4713,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* perr = &err) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)perr, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)perr, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int err, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int err, int count, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int err, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)perr, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)perr, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)perr, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)perr, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3869,23 +4742,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3904,23 +4771,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)perr, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3939,23 +4800,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)perr, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int err, int count) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3974,23 +4829,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int err, int count, int offset) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4009,23 +4858,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4044,1008 +4887,142 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - fixed (int* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)perr, count, flags, offset, stride); - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (int* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)perr, count, flags, offset, (int)(sizeof(int))); - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { - fixed (int* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)perr, count, flags, (int)(0), (int)(sizeof(int))); - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int err, int count) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { - fixed (int* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int err, int count, int offset) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt) { - fixed (int* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int err, int count, int offset, int stride) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt) { - fixed (int* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)perr, count, flags, offset, stride); - } - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)perr, count, flags, offset, (int)(sizeof(int))); - } - } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)perr, count, flags, (int)(0), (int)(sizeof(int))); - } - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int err, int count) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int err, int count, int offset) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int err, int count, int offset, int stride) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)perr, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)perr, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)perr, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)perr, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)perr, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)perr, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int err, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int err, int count, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int err, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)perr, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)perr, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)perr, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)perr, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)perr, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)perr, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.054.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.054.cs index 212a44578..3f3b85227 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.054.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.054.cs @@ -22,13 +22,277 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int err, int count, int offset) + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -38,21 +302,519 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* pys = &ys) + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* perr = &err) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -60,7 +822,497 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int err, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -79,18 +1331,3688 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - fixed (int* pys = &ys) + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) { - fixed (int* perr = &err) + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, string labelFmt) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -99,4928 +5021,13 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + internal static void PlotHeatmapNative(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[169])(labelId, xs, ys, err, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[243])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[169])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[243])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); #endif } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* err, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, err, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* err, int count) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* err, int count, int offset) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* err, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, err, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, err, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, err, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, err, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, err, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* err, int count) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* err, int count, int offset) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* err, int count, int offset, int stride) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, err, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, err, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, err, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, err, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, err, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, err, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, err, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, err, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* err, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* err, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* err, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, err, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, err, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, err, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, err, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, err, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, err, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)perr, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)perr, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)perr, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint err, int count) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint err, int count, int offset) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint err, int count, int offset, int stride) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)perr, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)perr, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)perr, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)perr, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)perr, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)perr, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)perr, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)perr, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint err, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint err, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint err, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)perr, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)perr, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)perr, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)perr, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)perr, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)perr, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)perr, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)perr, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint err, int count) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint err, int count, int offset) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint err, int count, int offset, int stride) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)perr, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)perr, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)perr, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)perr, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)perr, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)perr, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint err, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint err, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint err, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)perr, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)perr, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* perr = &err) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[170])(labelId, xs, ys, err, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[170])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* err, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, err, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* err, int count) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* err, int count, int offset) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* err, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, err, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, err, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, err, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, err, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, err, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* err, int count) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* err, int count, int offset) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* err, int count, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, err, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, err, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, err, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, err, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, err, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, err, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.055.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.055.cs index ec32f359e..f5aff30cd 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.055.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.055.cs @@ -22,295 +22,1087 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, err, count, flags, offset, stride); - } - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, err, count, flags, offset, (int)(sizeof(long))); - } - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, err, count, flags, (int)(0), (int)(sizeof(long))); - } - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* err, int count) + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* err, int count, int offset) + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* err, int count, int offset, int stride) + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, err, count, flags, offset, stride); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, err, count, flags, offset, (int)(sizeof(long))); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, err, count, flags, (int)(0), (int)(sizeof(long))); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* err, int count) + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = &labelId) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = &labelId) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* err, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = &labelId) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, err, count, flags, offset, stride); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, err, count, flags, offset, (int)(sizeof(long))); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, err, count, flags, (int)(0), (int)(sizeof(long))); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* err, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = labelId) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* err, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = labelId) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* err, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = labelId) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -329,2402 +1121,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, err, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, err, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (long*)perr, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (long*)perr, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (long*)perr, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long err, int count) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long err, int count, int offset) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long err, int count, int offset, int stride) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)perr, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)perr, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)perr, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)perr, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)perr, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)perr, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)perr, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)perr, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long err, int count) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long err, int count, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long err, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)perr, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)perr, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)perr, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)perr, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)perr, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)perr, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)perr, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)perr, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long err, int count) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long err, int count, int offset) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long err, int count, int offset, int stride) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)perr, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)perr, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)perr, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)perr, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)perr, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)perr, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)perr, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)perr, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long err, int count) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long err, int count, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long err, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)perr, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)perr, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)perr, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)perr, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)perr, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)perr, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* perr = &err) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[171])(labelId, xs, ys, err, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[171])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* err, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2734,7 +1131,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2753,7 +1150,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2763,7 +1160,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2782,7 +1179,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2792,7 +1189,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2811,7 +1208,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2821,7 +1218,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2840,7 +1237,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2850,7 +1247,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2869,7 +1266,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2879,241 +1276,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, err, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* err, int count) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* err, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* err, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, err, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, err, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3132,20 +1295,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3164,20 +1324,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, err, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3196,20 +1353,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* err, int count) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3228,20 +1382,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* err, int count, int offset) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3260,20 +1411,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3292,254 +1440,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, err, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, err, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* err, int count) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* err, int count, int offset) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* err, int count, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, err, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, err, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3558,20 +1469,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3590,20 +1498,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, err, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3622,20 +1527,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* err, int count) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3654,20 +1556,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* err, int count, int offset) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3686,20 +1585,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3718,308 +1614,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, err, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, err, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* err, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* err, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* err, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, err, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, err, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4038,453 +1643,3105 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* pys = &ys) + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, err, count, flags, offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, err, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)perr, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)perr, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)perr, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong err, int count) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong err, int count, int offset) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong err, int count, int offset, int stride) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)perr, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)perr, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)perr, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)perr, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)perr, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4495,482 +4752,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)perr, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)perr, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)perr, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)perr, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong err, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong err, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong err, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - fixed (ulong* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)perr, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)perr, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)perr, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)perr, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)perr, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4978,34 +4784,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)perr, count, flags, offset, (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -5013,34 +4816,223 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)perr, count, flags, (int)(0), (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.056.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.056.cs index 023834741..dc2139595 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.056.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.056.cs @@ -22,34 +22,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong err, int count) + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -57,34 +54,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -92,357 +86,63 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong err, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)perr, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)perr, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)perr, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong err, int count) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong err, int count, int offset) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong err, int count, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) + else { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)perr, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)perr, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)perr, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)perr, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)perr, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)perr, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + Utils.Free(pStr0); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) { - fixed (ulong* perr = &err) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)perr, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -450,34 +150,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)perr, count, flags, offset, (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -485,34 +182,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)perr, count, flags, (int)(0), (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -520,34 +214,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong err, int count) + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -555,34 +246,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong err, int count, int offset) + public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -590,68 +278,283 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong err, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) { - fixed (ulong* perr = &err) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) + else { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, flags, offset, (int)(sizeof(ulong))); - } + Utils.Free(pStr0); } } } @@ -659,207 +562,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong err, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (ulong* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (ulong* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, flags, offset, stride); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -867,19 +594,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (ulong* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (ulong* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, flags, offset, (int)(sizeof(ulong))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -887,19 +626,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { fixed (byte* plabelId = labelId) { - fixed (ulong* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (ulong* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, flags, (int)(0), (int)(sizeof(ulong))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -907,19 +658,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong err, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, string labelFmt) { fixed (byte* plabelId = labelId) { - fixed (ulong* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (ulong* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -927,19 +690,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, string labelFmt) { fixed (byte* plabelId = labelId) { - fixed (ulong* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (ulong* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -947,19 +722,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (ulong* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (ulong* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -967,7 +754,359 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -986,18 +1125,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ulong* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1005,7 +1138,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1024,18 +1157,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ulong* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1043,7 +1170,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1062,18 +1189,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ulong* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1081,7 +1202,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong err, int count) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1100,18 +1221,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ulong* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1119,7 +1234,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, int offset) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1138,18 +1253,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ulong* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1157,7 +1266,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong err, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1176,18 +1285,972 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (ulong* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ulong* perr = &err) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1196,199 +2259,1099 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + internal static void PlotHeatmapNative(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[172])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[244])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[172])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[244])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, float* pos, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, byte* labelFmt) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1407,7 +3370,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1417,7 +3380,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1436,7 +3399,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1446,7 +3409,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1465,7 +3428,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1475,7 +3438,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1494,7 +3457,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1504,7 +3467,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1523,7 +3486,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1533,7 +3496,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1552,7 +3515,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1562,241 +3525,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, float* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1815,20 +3544,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1847,20 +3573,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1879,20 +3602,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1911,20 +3631,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1943,20 +3660,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1975,254 +3689,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, float* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2241,20 +3718,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2273,20 +3747,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2305,20 +3776,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2337,20 +3805,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2369,20 +3834,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2401,308 +3863,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, float* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2721,23 +3892,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2756,23 +3921,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2791,23 +3950,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2826,23 +3979,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2861,23 +4008,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2896,257 +4037,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, float* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3165,20 +4066,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pneg = &neg) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3197,20 +4095,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pneg = &neg) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3229,20 +4124,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pneg = &neg) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3261,20 +4153,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pneg = &neg) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3293,20 +4182,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pneg = &neg) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3325,308 +4211,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pneg = &neg) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, float* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3645,23 +4240,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3680,23 +4269,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3715,23 +4298,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3750,23 +4327,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3785,23 +4356,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3820,317 +4385,419 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt) { - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); - } - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); - } - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, float* pos, int count) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4140,32 +4807,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4175,32 +4836,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4210,32 +4865,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4245,32 +4894,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4280,32 +4923,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4315,374 +4952,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, float* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4692,35 +4981,26 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (labelFmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4730,296 +5010,13 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } + Utils.Free(pStr0); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.057.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.057.cs index 83191e3a4..58af123f9 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.057.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.057.cs @@ -22,13 +22,303 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset) + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (float* ppos = &pos) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -36,13 +326,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = &labelId) { - fixed (float* ppos = &pos) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -50,13 +340,237 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (float* ppos = &pos) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -64,13 +578,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (float* ppos = &pos) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -78,13 +592,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (float* ppos = &pos) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -92,13 +606,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, ref float pos, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) { fixed (byte* plabelId = labelId) { - fixed (float* ppos = &pos) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -106,13 +620,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) { fixed (byte* plabelId = labelId) { - fixed (float* ppos = &pos) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -120,13 +634,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt) { fixed (byte* plabelId = labelId) { - fixed (float* ppos = &pos) + fixed (byte* plabelFmt = labelFmt) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -134,7 +648,175 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -153,9 +835,1161 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* ppos = &pos) + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, flags, offset, stride); + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelFmt != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -166,28 +2000,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -198,28 +2032,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -230,28 +2064,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -262,28 +2096,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -294,28 +2128,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -326,322 +2160,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = &labelId) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, ref float pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -649,34 +2192,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -684,34 +2224,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -719,34 +2256,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -754,34 +2288,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -789,357 +2320,63 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) + else { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, ref float pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + Utils.Free(pStr0); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = &labelId) { - fixed (float* ppos = &pos) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1147,34 +2384,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1182,34 +2416,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1217,34 +2448,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1252,34 +2480,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -1287,414 +2512,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) + public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) + else { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, ref float pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -1702,392 +2544,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (float* pneg = &neg) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); } } } @@ -2095,16 +2558,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (float* pneg = &neg) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); } } } @@ -2112,16 +2572,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (float* pneg = &neg) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -2129,16 +2586,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, ref float pos, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - fixed (float* pneg = &neg) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -2146,16 +2600,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - fixed (float* pneg = &neg) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -2163,16 +2614,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ref byte labelFmt) { fixed (byte* plabelId = labelId) { - fixed (float* pneg = &neg) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } } } @@ -2180,34 +2628,199 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* plabelFmt = &labelFmt) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pneg = &neg) + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) + { + fixed (byte* plabelId = labelId) { - fixed (float* ppos = &pos) + fixed (byte* plabelFmt = &labelFmt) { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (byte* plabelFmt = &labelFmt) + { + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -2215,34 +2828,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -2250,34 +2860,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -2285,34 +2892,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -2320,34 +2924,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -2355,68 +2956,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, string labelFmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) + else { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } + Utils.Free(pStr0); } } } @@ -2424,207 +2988,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (float* pneg = &neg) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -2632,19 +3020,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (float* pneg = &neg) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -2652,19 +3052,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (float* pneg = &neg) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -2672,19 +3084,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, ref float pos, int count) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (float* pneg = &neg) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -2692,19 +3116,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (float* pneg = &neg) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -2712,19 +3148,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) { fixed (byte* plabelId = labelId) { - fixed (float* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) { - fixed (float* pneg = &neg) + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -2732,7 +3180,199 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelFmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelFmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2751,18 +3391,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -2770,7 +3404,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2789,18 +3423,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -2808,7 +3436,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2827,18 +3455,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -2846,7 +3468,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2865,18 +3487,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -2884,7 +3500,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2903,18 +3519,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -2922,7 +3532,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2941,18 +3551,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -2960,349 +3564,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, ref float pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3321,18 +3583,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -3340,7 +3596,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3359,18 +3615,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -3378,7 +3628,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3397,18 +3647,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -3416,7 +3660,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3435,18 +3679,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -3454,7 +3692,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3473,18 +3711,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -3492,7 +3724,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3511,18 +3743,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pys = &ys) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pneg = &neg) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } @@ -3530,403 +3756,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3945,21 +3775,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } } @@ -3967,7 +3788,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3986,21 +3807,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } } @@ -4008,7 +3820,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4027,21 +3839,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } } @@ -4049,7 +3852,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4068,21 +3871,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } } @@ -4090,7 +3884,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4109,21 +3903,12 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } } @@ -4131,7 +3916,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4150,21 +3935,588 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pxs = &xs) + fixed (byte* plabelFmt = &labelFmt) { - fixed (float* pys = &ys) + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* plabelFmt = labelFmt) + { + PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4173,858 +4525,504 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + internal static double PlotHistogramNative(byte* labelId, float* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[173])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + return ((delegate* unmanaged[Cdecl])funcTable[245])(labelId, values, count, bins, barScale, range, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[173])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + return (double)((delegate* unmanaged[Cdecl])funcTable[245])((nint)labelId, (nint)values, count, bins, barScale, range, flags); #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(byte* labelId, float* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(byte* labelId, float* values, int count, int bins, double barScale, ImPlotRange range) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(byte* labelId, float* values, int count, int bins, double barScale) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count) + public static double PlotHistogram(byte* labelId, float* values, int count, int bins) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset) + public static double PlotHistogram(byte* labelId, float* values, int count) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset, int stride) + public static double PlotHistogram(byte* labelId, float* values, int count, double barScale) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(byte* labelId, float* values, int count, int bins, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, float* values, int count, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, float* values, int count, double barScale, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, float* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, float* values, int count, int bins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, float* values, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, float* values, int count, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, float* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, float* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, float* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, double barScale, ImPlotRange range) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, double barScale) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count) + public static double PlotHistogram(ref byte labelId, float* values, int count, int bins) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset) + public static double PlotHistogram(ref byte labelId, float* values, int count) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset, int stride) + public static double PlotHistogram(ref byte labelId, float* values, int count, double barScale) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, double* pos, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, ImPlotRange range) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, offset, stride); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ref byte labelId, float* values, int count, ImPlotRange range) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ref byte labelId, float* values, int count, double barScale, ImPlotRange range) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count) + public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset) + public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset, int stride) + public static double PlotHistogram(ref byte labelId, float* values, int count, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ref byte labelId, float* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, float* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, float* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, offset, stride); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, int bins, double barScale, ImPlotRange range) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, int bins, double barScale) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, double* pos, int count) + public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, int bins) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, double barScale) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, int bins, ImPlotRange range) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, ImPlotRange range) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, double barScale, ImPlotRange range) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count) + public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, int bins, ImPlotHistogramFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, ImPlotHistogramFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, double barScale, ImPlotHistogramFlags flags) { - fixed (double* pys = &ys) + fixed (byte* plabelId = labelId) { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.058.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.058.cs index 9929c2ae1..c0e3fa542 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.058.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.058.cs @@ -22,175 +22,43 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, offset, stride); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, double* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(string labelId, float* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -209,20 +77,1173 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, flags, offset, stride); + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, float* values, int count, int bins, double barScale, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, float* values, int count, int bins, double barScale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, float* values, int count, int bins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, float* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, float* values, int count, double barScale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, float* values, int count, int bins, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, float* values, int count, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, float* values, int count, double barScale, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, float* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, float* values, int count, int bins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, float* values, int count, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, float* values, int count, double barScale, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, float* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, float* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, float* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, double barScale, ImPlotRange range) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, double barScale) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref float values, int count, int bins) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref float values, int count) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref float values, int count, double barScale) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, ImPlotRange range) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref float values, int count, ImPlotRange range) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref float values, int count, double barScale, ImPlotRange range) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref float values, int count, ImPlotHistogramFlags flags) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref float values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref float values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref float values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, double barScale) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref float values, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref float values, int count, double barScale) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref float values, int count, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref float values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref float values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref float values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref float values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref float values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, int bins, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, int bins, double barScale) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, int bins) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, double barScale) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ref float values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pvalues = &values) + { + double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, barScale, range, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, ref float values, int count, int bins, double barScale, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -241,20 +1262,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + fixed (float* pvalues = &values) { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); + double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, ref float values, int count, int bins, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -273,20 +1295,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + fixed (float* pvalues = &values) { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); + double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count) + public static double PlotHistogram(string labelId, ref float values, int count, int bins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -305,20 +1328,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + fixed (float* pvalues = &values) { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset) + public static double PlotHistogram(string labelId, ref float values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -337,20 +1361,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + fixed (float* pvalues = &values) { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, ref float values, int count, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -369,308 +1394,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pys = &ys) + fixed (float* pvalues = &values) { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, double* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(string labelId, ref float values, int count, int bins, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -689,464 +1427,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, double* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, flags, offset, stride); + double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, ref float values, int count, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1165,20 +1460,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pneg = &neg) + fixed (float* pvalues = &values) { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); + double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, ref float values, int count, double barScale, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1197,20 +1493,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pneg = &neg) + fixed (float* pvalues = &values) { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); + double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count) + public static double PlotHistogram(string labelId, ref float values, int count, int bins, double barScale, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1229,20 +1526,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pneg = &neg) + fixed (float* pvalues = &values) { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset) + public static double PlotHistogram(string labelId, ref float values, int count, int bins, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1261,20 +1559,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pneg = &neg) + fixed (float* pvalues = &values) { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, ref float values, int count, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1293,308 +1592,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pneg = &neg) + fixed (float* pvalues = &values) { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, double* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(string labelId, ref float values, int count, double barScale, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1613,1532 +1625,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, double* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, double* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, ref double pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, flags, offset, stride); + double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, ref float values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3157,20 +1658,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* ppos = &pos) + fixed (float* pvalues = &values) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, (double)(1.0), range, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, ref float values, int count, ImPlotRange range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3189,20 +1691,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* ppos = &pos) + fixed (float* pvalues = &values) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count) + public static double PlotHistogram(string labelId, ref float values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3221,20 +1724,562 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* ppos = &pos) + fixed (float* pvalues = &values) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PlotHistogramNative(byte* labelId, double* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[246])(labelId, values, count, bins, barScale, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[246])((nint)labelId, (nint)values, count, bins, barScale, range, flags); + #endif + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, double* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, double* values, int count, int bins, double barScale, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, double* values, int count, int bins, double barScale) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, double* values, int count, int bins) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, double* values, int count) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, double* values, int count, double barScale) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, double* values, int count, int bins, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, double* values, int count, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, double* values, int count, double barScale, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, double* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, double* values, int count, int bins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, double* values, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, double* values, int count, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, double* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, double* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, double* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, double barScale) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, double* values, int count, int bins) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, double* values, int count) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, double* values, int count, double barScale) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, double* values, int count, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, double* values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, double* values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, double* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, double* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, double* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, int bins, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, int bins, double barScale) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, int bins) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, double barScale) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, double* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3253,20 +2298,1173 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* ppos = &pos) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, double* values, int count, int bins, double barScale, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, double* values, int count, int bins, double barScale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, double* values, int count, int bins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, double* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, double* values, int count, double barScale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, double* values, int count, int bins, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, double* values, int count, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, double* values, int count, double barScale, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, double* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, double* values, int count, int bins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, double* values, int count, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, double* values, int count, double barScale, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, double* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, double* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, double* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, double barScale, ImPlotRange range) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, double barScale) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref double values, int count, int bins) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref double values, int count) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref double values, int count, double barScale) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, ImPlotRange range) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref double values, int count, ImPlotRange range) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref double values, int count, double barScale, ImPlotRange range) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref double values, int count, ImPlotHistogramFlags flags) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref double values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref double values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ref double values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, double barScale) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref double values, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref double values, int count, double barScale) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref double values, int count, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref double values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref double values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref double values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref double values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ref double values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, int bins, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, int bins, double barScale) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, int bins) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, double barScale) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ref double values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, barScale, range, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, ref double values, int count, int bins, double barScale, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3285,308 +3483,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* ppos = &pos) + fixed (double* pvalues = &values) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, ref double pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(string labelId, ref double values, int count, int bins, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3605,23 +3516,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (double* ppos = &pos) + double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, ref double values, int count, int bins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3640,23 +3549,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (double* ppos = &pos) + double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, ref double values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3675,23 +3582,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (double* ppos = &pos) + double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count) + public static double PlotHistogram(string labelId, ref double values, int count, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3710,23 +3615,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (double* ppos = &pos) + double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset) + public static double PlotHistogram(string labelId, ref double values, int count, int bins, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3745,23 +3648,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (double* ppos = &pos) + double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, ref double values, int count, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3780,863 +3681,826 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (double* ppos = &pos) + double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(string labelId, ref double values, int count, double barScale, ImPlotRange range) { - fixed (double* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (double* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, ref double values, int count, int bins, double barScale, ImPlotHistogramFlags flags) { - fixed (double* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (double* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, ref double values, int count, int bins, ImPlotHistogramFlags flags) { - fixed (double* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (double* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count) + public static double PlotHistogram(string labelId, ref double values, int count, ImPlotHistogramFlags flags) { - fixed (double* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (double* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset) + public static double PlotHistogram(string labelId, ref double values, int count, double barScale, ImPlotHistogramFlags flags) { - fixed (double* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (double* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, ref double values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) { - fixed (double* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (double* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(string labelId, ref double values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ref double values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pvalues = &values) + { + double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PlotHistogramNative(byte* labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[247])(labelId, values, count, bins, barScale, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[247])((nint)labelId, (nint)values, count, bins, barScale, range, flags); + #endif + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, sbyte* values, int count, int bins, double barScale) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, sbyte* values, int count, int bins) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, sbyte* values, int count) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, sbyte* values, int count, double barScale) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, sbyte* values, int count, int bins, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, sbyte* values, int count, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, sbyte* values, int count, double barScale, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, sbyte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, sbyte* values, int count, int bins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, sbyte* values, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, sbyte* values, int count, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, sbyte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, sbyte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, sbyte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ref byte labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ref byte labelId, sbyte* values, int count, int bins, double barScale) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count) + public static double PlotHistogram(ref byte labelId, sbyte* values, int count, int bins) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset) + public static double PlotHistogram(ref byte labelId, sbyte* values, int count) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) + public static double PlotHistogram(ref byte labelId, sbyte* values, int count, double barScale) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ref byte labelId, sbyte* values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, sbyte* values, int count, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, sbyte* values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, sbyte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, sbyte* values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, sbyte* values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, sbyte* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, sbyte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, sbyte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, sbyte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range) { fixed (byte* plabelId = labelId) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* values, int count, int bins, double barScale) { fixed (byte* plabelId = labelId) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, ref double pos, int count) + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* values, int count, int bins) { fixed (byte* plabelId = labelId) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* values, int count) { fixed (byte* plabelId = labelId) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* values, int count, double barScale) { fixed (byte* plabelId = labelId) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* values, int count, int bins, ImPlotRange range) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* values, int count, ImPlotRange range) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* values, int count, double barScale, ImPlotRange range) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, ref double pos, int count) + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* values, int count, int bins, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* values, int count, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, sbyte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4655,26 +4519,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4693,26 +4549,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, sbyte* values, int count, int bins, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4731,26 +4579,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count) + public static double PlotHistogram(string labelId, sbyte* values, int count, int bins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4769,26 +4609,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset) + public static double PlotHistogram(string labelId, sbyte* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4807,26 +4639,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, sbyte* values, int count, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4845,189 +4669,361 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(string labelId, sbyte* values, int count, int bins, ImPlotRange range) { - fixed (double* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (double* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, sbyte* values, int count, ImPlotRange range) { - fixed (double* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (double* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, sbyte* values, int count, double barScale, ImPlotRange range) { - fixed (double* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (double* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count) + public static double PlotHistogram(string labelId, sbyte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) { - fixed (double* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (double* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset) + public static double PlotHistogram(string labelId, sbyte* values, int count, int bins, ImPlotHistogramFlags flags) { - fixed (double* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (double* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, sbyte* values, int count, ImPlotHistogramFlags flags) { - fixed (double* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (double* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(string labelId, sbyte* values, int count, double barScale, ImPlotHistogramFlags flags) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (double* pneg = &neg) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, sbyte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (double* pneg = &neg) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, sbyte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (double* pneg = &neg) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count) + public static double PlotHistogram(string labelId, sbyte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (double* pneg = &neg) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PlotHistogramNative(byte* labelId, byte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[248])(labelId, values, count, bins, barScale, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[248])((nint)labelId, (nint)values, count, bins, barScale, range, flags); + #endif + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, double barScale, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, double barScale) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, byte* values, int count, int bins) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.059.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.059.cs index 0d1bb0af4..68c25b06b 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.059.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.059.cs @@ -22,1872 +22,499 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) + public static double PlotHistogram(byte* labelId, byte* values, int count) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, byte* values, int count, double barScale) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, byte* values, int count, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, byte* values, int count, double barScale, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, byte* values, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, byte* values, int count, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, byte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, byte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, ref double pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, double barScale, ImPlotRange range) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, double barScale) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count) + public static double PlotHistogram(ref byte labelId, byte* values, int count) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset) + public static double PlotHistogram(ref byte labelId, byte* values, int count, double barScale) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) + public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, ImPlotRange range) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, ref double pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ref byte labelId, byte* values, int count, ImPlotRange range) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ref byte labelId, byte* values, int count, double barScale, ImPlotRange range) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count) + public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset) + public static double PlotHistogram(ref byte labelId, byte* values, int count, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) + public static double PlotHistogram(ref byte labelId, byte* values, int count, double barScale, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, ref double pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ref byte labelId, byte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ref byte labelId, byte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, int bins, double barScale, ImPlotRange range) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, int bins, double barScale) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count) + public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, int bins) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, double barScale) { fixed (byte* plabelId = labelId) { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, byte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1906,29 +533,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, byte* values, int count, int bins, double barScale, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1947,29 +563,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, byte* values, int count, int bins, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1988,29 +593,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count) + public static double PlotHistogram(string labelId, byte* values, int count, int bins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2029,29 +623,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset) + public static double PlotHistogram(string labelId, byte* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2070,29 +653,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, byte* values, int count, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2111,222 +683,859 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (double* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + Utils.Free(pStr0); } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, byte* values, int count, int bins, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, byte* values, int count, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, byte* values, int count, double barScale, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, byte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, byte* values, int count, int bins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, byte* values, int count, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, byte* values, int count, double barScale, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, byte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, byte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, byte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + internal static double PlotHistogramNative(byte* labelId, short* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[174])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + return ((delegate* unmanaged[Cdecl])funcTable[249])(labelId, values, count, bins, barScale, range, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[174])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + return (double)((delegate* unmanaged[Cdecl])funcTable[249])((nint)labelId, (nint)values, count, bins, barScale, range, flags); #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(byte* labelId, short* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(byte* labelId, short* values, int count, int bins, double barScale, ImPlotRange range) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(byte* labelId, short* values, int count, int bins, double barScale) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count) + public static double PlotHistogram(byte* labelId, short* values, int count, int bins) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset) + public static double PlotHistogram(byte* labelId, short* values, int count) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(byte* labelId, short* values, int count, double barScale) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(byte* labelId, short* values, int count, int bins, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, short* values, int count, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, short* values, int count, double barScale, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, short* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, short* values, int count, int bins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, short* values, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, short* values, int count, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, short* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, short* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, short* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, double barScale, ImPlotRange range) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, double barScale) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count) + public static double PlotHistogram(ref byte labelId, short* values, int count, int bins) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset) + public static double PlotHistogram(ref byte labelId, short* values, int count) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(ref byte labelId, short* values, int count, double barScale) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, short* values, int count, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, short* values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, short* values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, short* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, short* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, short* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, int bins, double barScale, ImPlotRange range) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, int bins, double barScale) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count) + public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, int bins) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, double barScale) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, short* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2345,17 +1554,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, short* values, int count, int bins, double barScale, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2374,17 +1584,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, short* values, int count, int bins, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2403,17 +1614,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count) + public static double PlotHistogram(string labelId, short* values, int count, int bins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2432,17 +1644,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset) + public static double PlotHistogram(string labelId, short* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2461,17 +1674,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, short* values, int count, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2490,251 +1704,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, int offset) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(string labelId, short* values, int count, int bins, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2753,20 +1734,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, short* values, int count, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2785,20 +1764,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, short* values, int count, double barScale, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2817,20 +1794,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count) + public static double PlotHistogram(string labelId, short* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2849,20 +1824,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, int offset) + public static double PlotHistogram(string labelId, short* values, int count, int bins, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2881,20 +1854,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, short* values, int count, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2913,254 +1884,679 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, short* values, int count, double barScale, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* pys = &ys) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (byte*)pys, neg, pos, count, flags, offset, stride); + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, short* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) { - fixed (byte* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, (byte*)pys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, short* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) { - fixed (byte* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, (byte*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count) + public static double PlotHistogram(string labelId, short* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { - fixed (byte* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PlotHistogramNative(byte* labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[250])(labelId, values, count, bins, barScale, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[250])((nint)labelId, (nint)values, count, bins, barScale, range, flags); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, double barScale) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ushort* values, int count) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ushort* values, int count, double barScale) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ushort* values, int count, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ushort* values, int count, double barScale, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ushort* values, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ushort* values, int count, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ushort* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ushort* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, pos, count, flags, offset, stride); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range) { fixed (byte* plabelId = &labelId) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, double barScale) { fixed (byte* plabelId = &labelId) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count) + public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins) { fixed (byte* plabelId = &labelId) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, int offset) + public static double PlotHistogram(ref byte labelId, ushort* values, int count) { fixed (byte* plabelId = &labelId) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(ref byte labelId, ushort* values, int count, double barScale) { fixed (byte* plabelId = &labelId) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ushort* values, int count, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ushort* values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ushort* values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ushort* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ushort* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ushort* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, pos, count, flags, offset, stride); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range) { fixed (byte* plabelId = labelId) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, int bins, double barScale) { fixed (byte* plabelId = labelId) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count) + public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, int bins) { fixed (byte* plabelId = labelId) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count) { fixed (byte* plabelId = labelId) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, double barScale) { fixed (byte* plabelId = labelId) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3179,20 +2575,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3211,20 +2605,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, ushort* values, int count, int bins, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3243,20 +2635,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count) + public static double PlotHistogram(string labelId, ushort* values, int count, int bins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3275,20 +2665,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, int offset) + public static double PlotHistogram(string labelId, ushort* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3307,20 +2695,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, ushort* values, int count, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3339,308 +2725,859 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ushort* values, int count, int bins, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) + else { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, neg, pos, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, ushort* values, int count, ImPlotRange range) { - fixed (byte* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (byte* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count) + public static double PlotHistogram(string labelId, ushort* values, int count, double barScale, ImPlotRange range) { - fixed (byte* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (byte* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, int offset) + public static double PlotHistogram(string labelId, ushort* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) { - fixed (byte* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (byte* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, ushort* values, int count, int bins, ImPlotHistogramFlags flags) { - fixed (byte* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (byte* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(string labelId, ushort* values, int count, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ushort* values, int count, double barScale, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ushort* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ushort* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ushort* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PlotHistogramNative(byte* labelId, int* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[251])(labelId, values, count, bins, barScale, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[251])((nint)labelId, (nint)values, count, bins, barScale, range, flags); + #endif + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, int* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, int* values, int count, int bins, double barScale, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, int* values, int count, int bins, double barScale) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, int* values, int count, int bins) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, int* values, int count) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, int* values, int count, double barScale) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, int* values, int count, int bins, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, int* values, int count, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, int* values, int count, double barScale, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, int* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, int* values, int count, int bins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, int* values, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, int* values, int count, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, int* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, int* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, int* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, pos, count, flags, offset, stride); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, double barScale, ImPlotRange range) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, double barScale) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count) + public static double PlotHistogram(ref byte labelId, int* values, int count, int bins) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, int offset) + public static double PlotHistogram(ref byte labelId, int* values, int count) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(ref byte labelId, int* values, int count, double barScale) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, int* values, int count, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, int* values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, int* values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, int* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, int* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, int* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, pos, count, flags, offset, stride); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, int bins, double barScale, ImPlotRange range) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, int bins, double barScale) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count) + public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, int bins) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, double barScale) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, int* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3659,23 +3596,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, int* values, int count, int bins, double barScale, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3694,23 +3626,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, int* values, int count, int bins, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3729,23 +3656,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count) + public static double PlotHistogram(string labelId, int* values, int count, int bins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3764,23 +3686,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, int offset) + public static double PlotHistogram(string labelId, int* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3799,23 +3716,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, int* values, int count, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3834,257 +3746,859 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, int* values, int count, int bins, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* pneg = &neg) + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, ys, (byte*)pneg, pos, count, flags, offset, stride); + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, int* values, int count, ImPlotRange range) { - fixed (byte* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, ys, (byte*)pneg, pos, count, flags, offset, (int)(sizeof(sbyte))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, int* values, int count, double barScale, ImPlotRange range) { - fixed (byte* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, ys, (byte*)pneg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count) + public static double PlotHistogram(string labelId, int* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) { - fixed (byte* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, int offset) + public static double PlotHistogram(string labelId, int* values, int count, int bins, ImPlotHistogramFlags flags) { - fixed (byte* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, int* values, int count, ImPlotHistogramFlags flags) { - fixed (byte* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - PlotErrorBarsNative(labelId, xs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(string labelId, int* values, int count, double barScale, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, int* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, int* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, int* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PlotHistogramNative(byte* labelId, uint* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[252])(labelId, values, count, bins, barScale, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[252])((nint)labelId, (nint)values, count, bins, barScale, range, flags); + #endif + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, double barScale, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, double barScale) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, uint* values, int count, int bins) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, uint* values, int count) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, uint* values, int count, double barScale) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, uint* values, int count, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, uint* values, int count, double barScale, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, uint* values, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, uint* values, int count, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, uint* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, uint* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, pos, count, flags, offset, stride); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, double barScale, ImPlotRange range) { fixed (byte* plabelId = &labelId) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, double barScale) { fixed (byte* plabelId = &labelId) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count) + public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins) { fixed (byte* plabelId = &labelId) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, int offset) + public static double PlotHistogram(ref byte labelId, uint* values, int count) { fixed (byte* plabelId = &labelId) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(ref byte labelId, uint* values, int count, double barScale) { fixed (byte* plabelId = &labelId) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, uint* values, int count, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, uint* values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, uint* values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, uint* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, uint* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, uint* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, pos, count, flags, offset, stride); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, int bins, double barScale, ImPlotRange range) { fixed (byte* plabelId = labelId) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, int bins, double barScale) { fixed (byte* plabelId = labelId) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count) + public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, int bins) { fixed (byte* plabelId = labelId) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count) { fixed (byte* plabelId = labelId) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, double barScale) { fixed (byte* plabelId = labelId) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, uint* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4103,20 +4617,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pneg = &neg) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, uint* values, int count, int bins, double barScale, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4135,20 +4647,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pneg = &neg) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)pneg, pos, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, uint* values, int count, int bins, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4167,20 +4677,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pneg = &neg) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)pneg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count) + public static double PlotHistogram(string labelId, uint* values, int count, int bins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4199,20 +4707,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pneg = &neg) + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, int offset) + public static double PlotHistogram(string labelId, uint* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4231,20 +4737,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pneg = &neg) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, uint* values, int count, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4263,308 +4767,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pneg = &neg) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)pneg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)pneg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(string labelId, uint* values, int count, int bins, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4583,23 +4797,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, uint* values, int count, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4618,23 +4827,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)pneg, pos, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, uint* values, int count, double barScale, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4653,23 +4857,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)pneg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count) + public static double PlotHistogram(string labelId, uint* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4688,23 +4887,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, int offset) + public static double PlotHistogram(string labelId, uint* values, int count, int bins, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4723,23 +4917,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, uint* values, int count, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4758,271 +4947,102 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(string labelId, uint* values, int count, double barScale, ImPlotHistogramFlags flags) { - fixed (byte* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (byte* pneg = &neg) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)pneg, pos, count, flags, offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, uint* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) { - fixed (byte* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (byte* pneg = &neg) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)pneg, pos, count, flags, offset, (int)(sizeof(sbyte))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, uint* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) { - fixed (byte* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (byte* pneg = &neg) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)pneg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count) - { - fixed (byte* pys = &ys) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, int offset) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, int offset, int stride) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } + Utils.Free(pStr0); } + return ret; } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.060.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.060.cs index cfd5fb63b..e3e180a0a 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.060.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.060.cs @@ -22,41 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(string labelId, uint* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -75,540 +41,559 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PlotHistogramNative(byte* labelId, long* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)pneg, pos, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[253])(labelId, values, count, bins, barScale, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[253])((nint)labelId, (nint)values, count, bins, barScale, range, flags); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(byte* labelId, long* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)pneg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count) + public static double PlotHistogram(byte* labelId, long* values, int count, int bins, double barScale, ImPlotRange range) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, int offset) + public static double PlotHistogram(byte* labelId, long* values, int count, int bins, double barScale) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(byte* labelId, long* values, int count, int bins) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(byte* labelId, long* values, int count) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, flags, offset, stride); - } - } - } + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(byte* labelId, long* values, int count, double barScale) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(byte* labelId, long* values, int count, int bins, ImPlotRange range) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count) + public static double PlotHistogram(byte* labelId, long* values, int count, ImPlotRange range) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, int offset) + public static double PlotHistogram(byte* labelId, long* values, int count, double barScale, ImPlotRange range) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(byte* labelId, long* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(byte* labelId, long* values, int count, int bins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, long* values, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, long* values, int count, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, long* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, long* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, long* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, flags, offset, stride); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, double barScale, ImPlotRange range) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, double barScale) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count) + public static double PlotHistogram(ref byte labelId, long* values, int count, int bins) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, int offset) + public static double PlotHistogram(ref byte labelId, long* values, int count) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(ref byte labelId, long* values, int count, double barScale) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, long* values, int count, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, long* values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, long* values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, long* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, long* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, long* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, flags, offset, stride); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, int bins, double barScale, ImPlotRange range) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, int bins, double barScale) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count) + public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, int bins) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, int offset) + public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, double barScale) { fixed (byte* plabelId = labelId) { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, long* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -627,26 +612,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram(string labelId, long* values, int count, int bins, double barScale, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -665,26 +642,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram(string labelId, long* values, int count, int bins, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -703,26 +672,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count) + public static double PlotHistogram(string labelId, long* values, int count, int bins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -741,26 +702,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, int offset) + public static double PlotHistogram(string labelId, long* values, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -779,26 +732,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte neg, byte* pos, int count, int offset, int stride) + public static double PlotHistogram(string labelId, long* values, int count, double barScale) { byte* pStr0 = null; int pStrSize0 = 0; @@ -817,260 +762,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (byte*)ppos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, int offset) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (byte*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (byte*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram(string labelId, long* values, int count, int bins, ImPlotRange range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1089,20 +792,2615 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* ppos = &pos) + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (byte*)ppos, count, flags, offset, stride); + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, long* values, int count, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, long* values, int count, double barScale, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, long* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, long* values, int count, int bins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, long* values, int count, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, long* values, int count, double barScale, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, long* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, long* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, long* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PlotHistogramNative(byte* labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[254])(labelId, values, count, bins, barScale, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[254])((nint)labelId, (nint)values, count, bins, barScale, range, flags); + #endif + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, double barScale) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ulong* values, int count) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ulong* values, int count, double barScale) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ulong* values, int count, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ulong* values, int count, double barScale, ImPlotRange range) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ulong* values, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ulong* values, int count, double barScale, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ulong* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(byte* labelId, ulong* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, double barScale) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ulong* values, int count) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ulong* values, int count, double barScale) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ulong* values, int count, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ulong* values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ulong* values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ulong* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ulong* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ref byte labelId, ulong* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, int bins, double barScale) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, int bins) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, double barScale) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, int bins, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, double barScale, ImPlotRange range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, int bins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, double barScale, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ulong* values, int count, int bins, double barScale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ulong* values, int count, int bins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ulong* values, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ulong* values, int count, double barScale) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ulong* values, int count, int bins, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ulong* values, int count, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ulong* values, int count, double barScale, ImPlotRange range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ulong* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ulong* values, int count, int bins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ulong* values, int count, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ulong* values, int count, double barScale, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ulong* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ulong* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram(string labelId, ulong* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PlotHistogram2DNative(byte* labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[255])(labelId, xs, ys, count, xBins, yBins, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[255])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); + #endif + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, int yBins) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, int xBins) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, int yBins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, int yBins) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, ImPlotRect range) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, ImPlotHistogramFlags flags) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, int xBins) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, yBins, range, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1121,20 +3419,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* ppos = &pos) + fixed (float* pxs = &xs) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, int yBins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1153,20 +3452,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* ppos = &pos) + fixed (float* pxs = &xs) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count) + public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1185,20 +3485,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* ppos = &pos) + fixed (float* pxs = &xs) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, int offset) + public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1217,20 +3518,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* ppos = &pos) + fixed (float* pxs = &xs) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, ref byte pos, int count, int offset, int stride) + public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1249,308 +3551,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* ppos = &pos) + fixed (float* pxs = &xs) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, neg, (byte*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, neg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, neg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, (byte*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, (byte*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1569,23 +3584,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (byte* ppos = &pos) + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, neg, (byte*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1604,23 +3617,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (byte* ppos = &pos) + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, neg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1639,23 +3650,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (byte* ppos = &pos) + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, neg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count) + public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1674,23 +3683,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (byte* ppos = &pos) + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, int offset) + public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1709,23 +3716,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (byte* ppos = &pos) + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, byte* neg, ref byte pos, int count, int offset, int stride) + public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1744,116 +3749,172 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (byte* ppos = &pos) + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, neg, (byte*)ppos, count, flags, offset, stride); - } + double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, yBins, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, neg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } + double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, int yBins) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, neg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } + double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count) + public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, int offset) + public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } + double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, ImPlotRect range) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, ImPlotHistogramFlags flags) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, (byte*)ppos, count, flags, offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, range, flags); + return ret; } } } @@ -1861,16 +3922,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1878,16 +3937,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, int yBins) { fixed (byte* plabelId = &labelId) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1895,16 +3952,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count) + public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins) { fixed (byte* plabelId = &labelId) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1912,16 +3967,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, int offset) + public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1929,16 +3982,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1946,16 +3997,104 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, (byte*)ppos, count, flags, offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, range, flags); + return ret; } } } @@ -1963,16 +4102,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) { fixed (byte* plabelId = labelId) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1980,16 +4117,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, int xBins, int yBins) { fixed (byte* plabelId = labelId) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1997,16 +4132,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count) + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, int xBins) { fixed (byte* plabelId = labelId) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -2014,16 +4147,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, int offset) + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count) { fixed (byte* plabelId = labelId) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -2031,16 +4162,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, int offset, int stride) + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range) { fixed (byte* plabelId = labelId) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -2048,7 +4177,97 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2067,23 +4286,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) + double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, yBins, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, neg, (byte*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2102,23 +4319,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) + double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, neg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, int yBins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2137,23 +4352,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) + double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, neg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count) + public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2172,23 +4385,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) + double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, int offset) + public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2207,23 +4418,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) + double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, byte* neg, ref byte pos, int count, int offset, int stride) + public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2242,117 +4451,226 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) + double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, ImPlotRect range) { - fixed (byte* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (byte* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, flags, offset, stride); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) { - fixed (byte* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (byte* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) { - fixed (byte* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (byte* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count) + public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, ImPlotHistogramFlags flags) { - fixed (byte* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (byte* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, int offset) + public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) { - fixed (byte* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (byte* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, int offset, int stride) + public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) { - fixed (byte* pxs = &xs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (byte* pys = &ys) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, flags); + return ret; } } } @@ -2360,18 +4678,181 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, int yBins) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, ImPlotRect range) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, ImPlotHistogramFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, flags, offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, flags); + return ret; } } } @@ -2380,18 +4861,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -2400,18 +4879,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, int yBins) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -2420,18 +4897,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count) + public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -2440,18 +4915,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, int offset) + public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -2460,18 +4933,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - fixed (byte* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -2480,447 +4951,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, byte* neg, ref byte pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, neg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (byte*)pneg, (byte*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (byte*)pneg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (byte*)pneg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, int offset) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - fixed (byte* pneg = &neg) + fixed (float* pxs = &xs) { - fixed (byte* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, (byte*)ppos, count, flags, offset, stride); + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -2929,15 +4969,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (byte* pneg = &neg) + fixed (float* pxs = &xs) { - fixed (byte* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; } } } @@ -2946,15 +4987,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (byte* pneg = &neg) + fixed (float* pxs = &xs) { - fixed (byte* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; } } } @@ -2963,2061 +5005,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count) + public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (byte* pneg = &neg) + fixed (float* pxs = &xs) { - fixed (byte* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, (byte*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)pneg, (byte*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)pneg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)pneg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, ref byte neg, ref byte pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, byte* ys, ref byte neg, ref byte pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, ys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, int offset) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, byte* xs, ref byte ys, ref byte neg, ref byte pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(labelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) - { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.061.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.061.cs index 8eb7bca29..cc33cdc3e 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.061.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.061.cs @@ -22,39 +22,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, int offset) + public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabelId = &labelId) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pxs = &xs) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - fixed (byte* pneg = &neg) + fixed (float* pys = &ys) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; } } } @@ -63,7 +40,241 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref byte xs, ref byte ys, ref byte neg, ref byte pos, int count, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int xBins) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -82,21 +293,412 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (byte* pys = &ys) + fixed (float* pys = &ys) { - fixed (byte* pneg = &neg) + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, yBins, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (byte*)pxs, (byte*)pys, (byte*)pneg, (byte*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, int yBins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + fixed (float* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } } @@ -105,199 +707,415 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + internal static double PlotHistogram2DNative(byte* labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[175])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + return ((delegate* unmanaged[Cdecl])funcTable[256])(labelId, xs, ys, count, xBins, yBins, range, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[175])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + return (double)((delegate* unmanaged[Cdecl])funcTable[256])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, int yBins) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count) + public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset) + public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, int yBins) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count) + public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset) + public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, int xBins, int yBins) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* pos, int count) + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, int xBins) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset) + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset, int stride) + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -316,17 +1134,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -345,17 +1164,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, int yBins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -374,17 +1194,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count) + public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -403,17 +1224,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset) + public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -432,17 +1254,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset, int stride) + public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -461,251 +1284,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* neg, short* pos, int count) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* neg, short* pos, int count, int offset) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* neg, short* pos, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* neg, short* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* neg, short* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* neg, short* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* neg, short* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* neg, short* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* neg, short* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -724,20 +1314,705 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, neg, pos, count, flags, offset, stride); + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, int yBins) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, ImPlotRect range) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, ImPlotHistogramFlags flags) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, int xBins) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, yBins, range, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -756,20 +2031,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, int yBins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -788,20 +2064,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* neg, short* pos, int count) + public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -820,20 +2097,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* neg, short* pos, int count, int offset) + public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -852,20 +2130,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* neg, short* pos, int count, int offset, int stride) + public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -884,254 +2163,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, neg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* neg, short* pos, int count) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* neg, short* pos, int count, int offset) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* neg, short* pos, int count, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* neg, short* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* neg, short* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* neg, short* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* neg, short* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* neg, short* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* neg, short* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1150,20 +2196,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + fixed (double* pxs = &xs) { - PlotErrorBarsNative(pStr0, xs, (short*)pys, neg, pos, count, flags, offset, stride); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1182,20 +2229,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + fixed (double* pxs = &xs) { - PlotErrorBarsNative(pStr0, xs, (short*)pys, neg, pos, count, flags, offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1214,20 +2262,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + fixed (double* pxs = &xs) { - PlotErrorBarsNative(pStr0, xs, (short*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* neg, short* pos, int count) + public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1246,20 +2295,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + fixed (double* pxs = &xs) { - PlotErrorBarsNative(pStr0, xs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* neg, short* pos, int count, int offset) + public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1278,20 +2328,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + fixed (double* pxs = &xs) { - PlotErrorBarsNative(pStr0, xs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* neg, short* pos, int count, int offset, int stride) + public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1310,113 +2361,172 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + fixed (double* pxs = &xs) { - PlotErrorBarsNative(pStr0, xs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, neg, pos, count, flags, offset, stride); - } + double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, yBins, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, neg, pos, count, flags, offset, (int)(sizeof(short))); - } + double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, int yBins) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } + double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* neg, short* pos, int count) + public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } + double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* neg, short* pos, int count, int offset) + public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } + double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* neg, short* pos, int count, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, ImPlotRect range) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, ImPlotHistogramFlags flags) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, pos, count, flags, offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, range, flags); + return ret; } } } @@ -1424,16 +2534,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, pos, count, flags, offset, (int)(sizeof(short))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1441,16 +2549,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, int yBins) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1458,16 +2564,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* neg, short* pos, int count) + public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1475,16 +2579,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* neg, short* pos, int count, int offset) + public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1492,16 +2594,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* neg, short* pos, int count, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1509,16 +2609,104 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, pos, count, flags, offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, range, flags); + return ret; } } } @@ -1526,16 +2714,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, pos, count, flags, offset, (int)(sizeof(short))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1543,16 +2729,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, int xBins, int yBins) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1560,16 +2744,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* neg, short* pos, int count) + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, int xBins) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1577,16 +2759,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* neg, short* pos, int count, int offset) + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1594,16 +2774,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* neg, short* pos, int count, int offset, int stride) + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -1611,7 +2789,97 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1630,464 +2898,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, neg, pos, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* neg, short* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* neg, short* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* neg, short* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)pneg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)pneg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)pneg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short neg, short* pos, int count) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short neg, short* pos, int count, int offset) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short neg, short* pos, int count, int offset, int stride) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short neg, short* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short neg, short* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short neg, short* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short neg, short* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short neg, short* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short neg, short* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (short*)pneg, pos, count, flags, offset, stride); + double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, yBins, range, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2106,20 +2931,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pneg = &neg) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, ys, (short*)pneg, pos, count, flags, offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, int yBins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2138,20 +2964,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pneg = &neg) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, ys, (short*)pneg, pos, count, flags, (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short neg, short* pos, int count) + public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2170,20 +2997,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pneg = &neg) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short neg, short* pos, int count, int offset) + public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2202,20 +3030,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pneg = &neg) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short neg, short* pos, int count, int offset, int stride) + public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2234,308 +3063,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pneg = &neg) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)pneg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)pneg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short neg, short* pos, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short neg, short* pos, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short neg, short* pos, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short neg, short* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short neg, short* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short neg, short* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short neg, short* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short neg, short* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short neg, short* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2554,1532 +3096,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (double* pys = &ys) { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)pneg, pos, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)pneg, pos, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short neg, short* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short neg, short* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short neg, short* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)pneg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)pneg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short neg, short* pos, int count) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short neg, short* pos, int count, int offset) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short neg, short* pos, int count, int offset, int stride) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short neg, short* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short neg, short* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short neg, short* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short neg, short* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short neg, short* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short neg, short* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)pneg, pos, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)pneg, pos, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short neg, short* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short neg, short* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short neg, short* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short neg, short* pos, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short neg, short* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short neg, short* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)pneg, pos, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)pneg, pos, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short neg, short* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short neg, short* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (short*)ppos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, ref short pos, int count) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, ref short pos, int count, int offset) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, ref short pos, int count, int offset, int stride) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (short*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, ref short pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, ref short pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, ref short pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (short*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, ref short pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, ref short pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, short* neg, ref short pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (short*)ppos, count, flags, offset, stride); + double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4098,20 +3129,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4130,20 +3162,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, ref short pos, int count) + public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4162,20 +3195,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, ref short pos, int count, int offset) + public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4194,20 +3228,21 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, ref short pos, int count, int offset, int stride) + public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4226,26 +3261,28 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(labelId, (short*)pxs, ys, neg, (short*)ppos, count, flags, offset, stride); + double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, flags); + return ret; } } } @@ -4253,13 +3290,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(labelId, (short*)pxs, ys, neg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -4267,13 +3305,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, int yBins) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(labelId, (short*)pxs, ys, neg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -4281,13 +3320,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* neg, ref short pos, int count) + public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(labelId, (short*)pxs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -4295,13 +3335,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* neg, ref short pos, int count, int offset) + public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(labelId, (short*)pxs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -4309,13 +3350,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, short* neg, ref short pos, int count, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(labelId, (short*)pxs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -4323,15 +3365,106 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, ImPlotRect range) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, ImPlotHistogramFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, (short*)ppos, count, flags, offset, stride); + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, flags); + return ret; } } } @@ -4340,15 +3473,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -4357,15 +3491,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, int yBins) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -4374,15 +3509,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* neg, ref short pos, int count) + public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -4391,15 +3527,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* neg, ref short pos, int count, int offset) + public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -4408,15 +3545,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, short* neg, ref short pos, int count, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -4425,15 +3563,124 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, (short*)ppos, count, flags, offset, stride); + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, flags); + return ret; } } } @@ -4442,15 +3689,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -4459,15 +3707,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int xBins, int yBins) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -4476,15 +3725,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* neg, ref short pos, int count) + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int xBins) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -4493,15 +3743,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* neg, ref short pos, int count, int offset) + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -4510,15 +3761,16 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, short* neg, ref short pos, int count, int offset, int stride) + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range) { fixed (byte* plabelId = labelId) { - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } } @@ -4527,7 +3779,115 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4546,15 +3906,16 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, neg, (short*)ppos, count, flags, offset, stride); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, yBins, range, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } } @@ -4562,7 +3923,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4581,15 +3942,16 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, neg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } } @@ -4597,7 +3959,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, int yBins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4616,15 +3978,16 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, neg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } } @@ -4632,7 +3995,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* neg, ref short pos, int count) + public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4651,15 +4014,16 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } } @@ -4667,7 +4031,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* neg, ref short pos, int count, int offset) + public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4686,15 +4050,16 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } } @@ -4702,7 +4067,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, short* neg, ref short pos, int count, int offset, int stride) + public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4721,15 +4086,16 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pxs = &xs) + fixed (double* pxs = &xs) { - fixed (short* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } } @@ -4737,13 +4103,35 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, ImPlotRect range) { - fixed (short* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (short* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (short*)pys, neg, (short*)ppos, count, flags, offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } } @@ -4751,13 +4139,35 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) { - fixed (short* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (short* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (short*)pys, neg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } } @@ -4765,13 +4175,35 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) { - fixed (short* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (short* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (short*)pys, neg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } } @@ -4779,13 +4211,35 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* neg, ref short pos, int count) + public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, ImPlotHistogramFlags flags) { - fixed (short* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (short* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } } @@ -4793,13 +4247,35 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* neg, ref short pos, int count, int offset) + public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) { - fixed (short* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (short* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } } @@ -4807,13 +4283,35 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, short* neg, ref short pos, int count, int offset, int stride) + public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) { - fixed (short* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) { - fixed (short* ppos = &pos) + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(labelId, xs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } } @@ -4821,205 +4319,710 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PlotHistogram2DNative(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[257])(labelId, xs, ys, count, xBins, yBins, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[257])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); + #endif + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, (short*)ppos, count, flags, offset, stride); - } - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* neg, ref short pos, int count) + public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, int xBins) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* neg, ref short pos, int count, int offset) + public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, short* neg, ref short pos, int count, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotRect range) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, (short*)ppos, count, flags, offset, stride); - } - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotHistogramFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* neg, ref short pos, int count) + public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotHistogramFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* neg, ref short pos, int count, int offset) + public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, short* neg, ref short pos, int count, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; } } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int xBins) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, int xBins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.062.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.062.cs index ac30e79af..de631b144 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.062.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.062.cs @@ -22,7 +22,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,23 +41,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, neg, (short*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -76,3206 +71,427 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (short* pys = &ys) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, neg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, neg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* neg, ref short pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* neg, ref short pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, short* neg, ref short pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* neg, ref short pos, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* neg, ref short pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* neg, ref short pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, neg, (short*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, neg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, neg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* neg, ref short pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, short* neg, ref short pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, neg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)pneg, (short*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)pneg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)pneg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short neg, ref short pos, int count) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short neg, ref short pos, int count, int offset) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, ref short neg, ref short pos, int count, int offset, int stride) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, (short*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short neg, ref short pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short neg, ref short pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, ref short neg, ref short pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, (short*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short neg, ref short pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short neg, ref short pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, short* ys, ref short neg, ref short pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (short*)pneg, (short*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (short*)pneg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (short*)pneg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short neg, ref short pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short neg, ref short pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, short* ys, ref short neg, ref short pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short neg, ref short pos, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short neg, ref short pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short neg, ref short pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short neg, ref short pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, short* ys, ref short neg, ref short pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, ys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short neg, ref short pos, int count) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, int offset) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, int offset, int stride) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short neg, ref short pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short neg, ref short pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short neg, ref short pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, short* xs, ref short ys, ref short neg, ref short pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(labelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref short xs, ref short ys, ref short neg, ref short pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - fixed (short* pneg = &neg) - { - fixed (short* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (short*)pxs, (short*)pys, (short*)pneg, (short*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + internal static double PlotHistogram2DNative(byte* labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[176])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + return ((delegate* unmanaged[Cdecl])funcTable[258])(labelId, xs, ys, count, xBins, yBins, range, flags); #else - ((delegate* unmanaged[Cdecl])funcTable[176])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + return (double)((delegate* unmanaged[Cdecl])funcTable[258])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, int yBins) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count) + public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) + public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, int yBins) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count) + public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) + public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int xBins, int yBins) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count) + public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int xBins) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) + public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset, int stride) + public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3294,17 +510,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3323,17 +540,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, int yBins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3352,17 +570,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count) + public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3381,17 +600,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) + public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3410,17 +630,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset, int stride) + public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3439,251 +660,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3702,20 +690,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3734,20 +720,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3766,20 +750,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count) + public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3798,20 +780,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) + public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3830,20 +810,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset, int stride) + public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3862,254 +840,427 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PlotHistogram2DNative(byte* labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, neg, pos, count, flags, offset, stride); - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[259])(labelId, xs, ys, count, xBins, yBins, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[259])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count) + public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, int yBins) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, int offset) + public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, pos, count, flags, offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, int yBins) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count) + public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, int offset) + public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, pos, count, flags, offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, int xBins, int yBins) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count) + public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, int xBins) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, int offset) + public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, int offset, int stride) + public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4128,20 +1279,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4160,20 +1309,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, int yBins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4192,20 +1339,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count) + public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4224,20 +1369,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, int offset) + public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4256,20 +1399,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* neg, ushort* pos, int count, int offset, int stride) + public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4288,308 +1429,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, ImPlotRect range) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4608,23 +1459,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4643,23 +1489,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4678,23 +1519,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count) + public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4713,23 +1549,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, int offset) + public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4748,23 +1579,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* neg, ushort* pos, int count, int offset, int stride) + public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4783,250 +1609,3424 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PlotHistogram2DNative(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)pneg, pos, count, flags, offset, stride); - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[260])(labelId, xs, ys, count, xBins, yBins, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[260])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)pneg, pos, count, flags, offset, (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count) + public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, int offset) + public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, pos, count, flags, offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, pos, count, flags, offset, (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count) + public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, int offset) + public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotRect range) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, pos, count, flags, offset, stride); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, pos, count, flags, offset, (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotHistogramFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count) + public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotHistogramFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, int offset) + public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, int offset, int stride) + public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pneg = &neg) + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int xBins) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PlotHistogram2DNative(byte* labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[261])(labelId, xs, ys, count, xBins, yBins, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[261])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); + #endif + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, int yBins) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, int xBins) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, int yBins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PlotHistogram2DNative(byte* labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[262])(labelId, xs, ys, count, xBins, yBins, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[262])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); + #endif + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, int yBins) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int xBins) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, int yBins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PlotHistogram2DNative(byte* labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[263])(labelId, xs, ys, count, xBins, yBins, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[263])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); + #endif + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, int yBins) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, int xBins) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, int yBins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PlotHistogram2DNative(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[264])(labelId, xs, ys, count, xBins, yBins, range, flags); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[264])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); + #endif + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotRect range) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = &labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int xBins) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.063.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.063.cs index 5ec153e25..fe3fbae24 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.063.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.063.cs @@ -22,7 +22,79 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotRect range) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + fixed (byte* plabelId = labelId) + { + double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + return ret; + } + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -41,9 +113,970 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pneg = &neg) + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)pneg, pos, count, flags, offset, stride); + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, ImPlotRect range) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotDigitalNative(byte* labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[265])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[265])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) + { + PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags) + { + PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, float* xs, float* ys, int count) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, float* xs, float* ys, int count, int offset) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, float* xs, float* ys, int count, int offset, int stride) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, float* xs, float* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, float* xs, float* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, float* xs, float* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, float* xs, float* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative(labelId, (float*)pxs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative(labelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative(labelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative(labelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count, int offset) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative(labelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative(labelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref float xs, float* ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (float* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pxs = &xs) + { + PlotDigitalNative(pStr0, (float*)pxs, ys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -54,7 +1087,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(string labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -73,9 +1106,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pneg = &neg) + fixed (float* pxs = &xs) { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)pneg, pos, count, flags, offset, (int)(sizeof(ushort))); + PlotDigitalNative(pStr0, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -86,7 +1119,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(string labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -105,9 +1138,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pneg = &neg) + fixed (float* pxs = &xs) { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotDigitalNative(pStr0, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -118,7 +1151,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count) + public static void PlotDigital(string labelId, ref float xs, float* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -137,9 +1170,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pneg = &neg) + fixed (float* pxs = &xs) { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotDigitalNative(pStr0, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -150,7 +1183,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, int offset) + public static void PlotDigital(string labelId, ref float xs, float* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -169,9 +1202,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pneg = &neg) + fixed (float* pxs = &xs) { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotDigitalNative(pStr0, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -182,7 +1215,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort neg, ushort* pos, int count, int offset, int stride) + public static void PlotDigital(string labelId, ref float xs, float* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -201,9 +1234,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pneg = &neg) + fixed (float* pxs = &xs) { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotDigitalNative(pStr0, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -214,100 +1247,79 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, flags, offset, stride); - } + PlotDigitalNative(labelId, xs, (float*)pys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, flags, offset, (int)(sizeof(ushort))); - } + PlotDigitalNative(labelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } + PlotDigitalNative(labelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count) + public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotDigitalNative(labelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, int offset) + public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count, int offset) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotDigitalNative(labelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, int offset, int stride) + public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + PlotDigitalNative(labelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, flags, offset, stride); - } + PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); } } } @@ -315,16 +1327,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, flags, offset, (int)(sizeof(ushort))); - } + PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); } } } @@ -332,16 +1341,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } + PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); } } } @@ -349,16 +1355,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count) + public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -366,16 +1369,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, int offset) + public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); } } } @@ -383,16 +1383,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, int offset, int stride) + public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); } } } @@ -400,16 +1397,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, flags, offset, stride); - } + PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); } } } @@ -417,16 +1411,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, flags, offset, (int)(sizeof(ushort))); - } + PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); } } } @@ -434,16 +1425,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } + PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); } } } @@ -451,16 +1439,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count) + public static void PlotDigital(ReadOnlySpan labelId, float* xs, ref float ys, int count) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } + PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -468,16 +1453,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, int offset) + public static void PlotDigital(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } + PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); } } } @@ -485,16 +1467,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, int offset, int stride) + public static void PlotDigital(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); } } } @@ -502,7 +1481,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(string labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -521,1521 +1500,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (float* pys = &ys) { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)pneg, pos, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort neg, ushort* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, int offset) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)pneg, pos, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort neg, ushort* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort neg, ushort* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (ushort*)ppos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, int offset) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, int offset, int stride) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ushort*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ushort*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (ushort*)ppos, count, flags, offset, stride); + PlotDigitalNative(pStr0, xs, (float*)pys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2046,7 +1513,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(string labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2065,9 +1532,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); + PlotDigitalNative(pStr0, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2078,7 +1545,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(string labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2097,9 +1564,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotDigitalNative(pStr0, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2110,7 +1577,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count) + public static void PlotDigital(string labelId, float* xs, ref float ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2129,9 +1596,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotDigitalNative(pStr0, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2142,7 +1609,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, int offset) + public static void PlotDigital(string labelId, float* xs, ref float ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2161,9 +1628,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotDigitalNative(pStr0, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2174,7 +1641,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(string labelId, float* xs, ref float ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2193,9 +1660,9 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotDigitalNative(pStr0, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2206,13 +1673,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, flags, offset, stride); + PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, stride); } } } @@ -2220,13 +1687,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); + PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); } } } @@ -2234,13 +1701,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); } } } @@ -2248,13 +1715,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count) + public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -2262,13 +1729,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, int offset) + public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count, int offset) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); } } } @@ -2276,13 +1743,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); } } } @@ -2290,15 +1757,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, flags, offset, stride); + PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); } } } @@ -2307,15 +1774,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); + PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); } } } @@ -2324,15 +1791,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); } } } @@ -2341,15 +1808,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count) + public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -2358,15 +1825,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, int offset) + public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); } } } @@ -2375,15 +1842,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); } } } @@ -2392,15 +1859,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, flags, offset, stride); + PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); } } } @@ -2409,15 +1876,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); + PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); } } } @@ -2426,15 +1893,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); } } } @@ -2443,15 +1910,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count) + public static void PlotDigital(ReadOnlySpan labelId, ref float xs, ref float ys, int count) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); } } } @@ -2460,15 +1927,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, int offset) + public static void PlotDigital(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); } } } @@ -2477,15 +1944,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); } } } @@ -2494,7 +1961,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(string labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2513,11 +1980,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, neg, (ushort*)ppos, count, flags, offset, stride); + PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2529,7 +1996,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(string labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2548,11 +2015,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, neg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); + PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2564,7 +2031,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(string labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2583,11 +2050,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, neg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2599,7 +2066,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count) + public static void PlotDigital(string labelId, ref float xs, ref float ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2618,11 +2085,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2634,7 +2101,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, int offset) + public static void PlotDigital(string labelId, ref float xs, ref float ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2653,11 +2120,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2669,7 +2136,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ushort* neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(string labelId, ref float xs, ref float ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2688,11 +2155,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + fixed (float* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (float* pys = &ys) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2704,295 +2171,200 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotDigitalNative(byte* labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, flags, offset, stride); - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[266])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[266])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(byte* labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } + PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(byte* labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } + PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count) + public static void PlotDigital(byte* labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } + PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, int offset) + public static void PlotDigital(byte* labelId, double* xs, double* ys, int count) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(byte* labelId, double* xs, double* ys, int count, int offset) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(byte* labelId, double* xs, double* ys, int count, int offset, int stride) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, flags, offset, stride); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count) + public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, int offset) + public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, flags, offset, stride); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count) + public static void PlotDigital(ReadOnlySpan labelId, double* xs, double* ys, int count) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, int offset) + public static void PlotDigital(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(string labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3011,11 +2383,1325 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* ppos = &pos) + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, neg, (ushort*)ppos, count, flags, offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, double* xs, double* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, double* xs, double* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, double* xs, double* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative(labelId, (double*)pxs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative(labelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative(labelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative(labelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count, int offset) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative(labelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative(labelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref double xs, double* ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotDigitalNative(pStr0, (double*)pxs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotDigitalNative(pStr0, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotDigitalNative(pStr0, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ref double xs, double* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotDigitalNative(pStr0, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ref double xs, double* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotDigitalNative(pStr0, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ref double xs, double* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + PlotDigitalNative(pStr0, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotDigitalNative(labelId, xs, (double*)pys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (double* pys = &ys) + { + PlotDigitalNative(labelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags) + { + fixed (double* pys = &ys) + { + PlotDigitalNative(labelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count) + { + fixed (double* pys = &ys) + { + PlotDigitalNative(labelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count, int offset) + { + fixed (double* pys = &ys) + { + PlotDigitalNative(labelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (double* pys = &ys) + { + PlotDigitalNative(labelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, double* xs, ref double ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotDigitalNative(pStr0, xs, (double*)pys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotDigitalNative(pStr0, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotDigitalNative(pStr0, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, double* xs, ref double ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotDigitalNative(pStr0, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, double* xs, ref double ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotDigitalNative(pStr0, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, double* xs, ref double ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pys = &ys) + { + PlotDigitalNative(pStr0, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count, int offset) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref double xs, ref double ys, int count) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (double* pxs = &xs) + { + fixed (double* pys = &ys) + { + PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3027,7 +3713,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(string labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3046,11 +3732,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + fixed (double* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, neg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); + PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3062,7 +3748,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(string labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3081,11 +3767,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + fixed (double* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, neg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); + PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3097,7 +3783,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count) + public static void PlotDigital(string labelId, ref double xs, ref double ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3116,11 +3802,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + fixed (double* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); + PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3132,7 +3818,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, int offset) + public static void PlotDigital(string labelId, ref double xs, ref double ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3151,11 +3837,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + fixed (double* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); + PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3167,7 +3853,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ushort* neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(string labelId, ref double xs, ref double ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3186,11 +3872,11 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pys = &ys) + fixed (double* pxs = &xs) { - fixed (ushort* ppos = &pos) + fixed (double* pys = &ys) { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3202,349 +3888,200 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotDigitalNative(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, flags, offset, stride); - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[267])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[267])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count) + public static void PlotDigital(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, int offset) + public static void PlotDigital(byte* labelId, sbyte* xs, sbyte* ys, int count) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, flags, offset, stride); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count) + public static void PlotDigital(ref byte labelId, sbyte* xs, sbyte* ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, int offset) + public static void PlotDigital(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, flags, offset, stride); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count) + public static void PlotDigital(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, int offset) + public static void PlotDigital(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(ReadOnlySpan labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3563,26 +4100,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3601,26 +4129,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3639,26 +4158,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count) + public static void PlotDigital(string labelId, sbyte* xs, sbyte* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3677,26 +4187,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, int offset) + public static void PlotDigital(string labelId, sbyte* xs, sbyte* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3715,26 +4216,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ushort* neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(string labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -3753,314 +4245,210 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, neg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotDigitalNative(byte* labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, stride); - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[268])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[268])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } + PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } + PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count) + public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } + PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, int offset) + public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count, int offset) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(byte))); } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, stride); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count) + public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, int offset) + public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, stride); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count) + public static void PlotDigital(ReadOnlySpan labelId, byte* xs, byte* ys, int count) { fixed (byte* plabelId = labelId) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, int offset) + public static void PlotDigital(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(byte))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(string labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4079,23 +4467,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pneg = &neg) + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(string labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4114,23 +4496,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pneg = &neg) + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(string labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4149,23 +4525,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pneg = &neg) + PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count) + public static void PlotDigital(string labelId, byte* xs, byte* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4184,23 +4554,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pneg = &neg) + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, int offset) + public static void PlotDigital(string labelId, byte* xs, byte* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4219,23 +4583,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pneg = &neg) + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(byte))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ref ushort neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(string labelId, byte* xs, byte* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4254,365 +4612,210 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pneg = &neg) + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotDigitalNative(byte* labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, stride); - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[269])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[269])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(byte* labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(byte* labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count) + public static void PlotDigital(byte* labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, int offset) + public static void PlotDigital(byte* labelId, short* xs, short* ys, int count) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(byte* labelId, short* xs, short* ys, int count, int offset) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(byte* labelId, short* xs, short* ys, int count, int offset, int stride) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, stride); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count) + public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, int offset) + public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, stride); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count) + public static void PlotDigital(ReadOnlySpan labelId, short* xs, short* ys, int count) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, int offset) + public static void PlotDigital(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(string labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4631,26 +4834,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(string labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4669,26 +4863,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(string labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4707,26 +4892,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count) + public static void PlotDigital(string labelId, short* xs, short* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4745,26 +4921,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, int offset) + public static void PlotDigital(string labelId, short* xs, short* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4783,26 +4950,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ushort* ys, ref ushort neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(string labelId, short* xs, short* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4821,202 +4979,48 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, ys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotDigitalNative(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, stride); - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[270])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[270])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset) { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count) + public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags) { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, int offset) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } + PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.064.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.064.cs index 41b0b7243..f1cbb2b9b 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.064.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.064.cs @@ -22,791 +22,530 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, int offset) + public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count, int offset) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ushort* xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, stride); - } - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count) + public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, int offset) + public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotDigitalNative(byte* labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[271])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[271])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset) + { + PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags) + { + PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, int* xs, int* ys, int count) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, int* xs, int* ys, int count, int offset) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, int* xs, int* ys, int count, int offset, int stride) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset) { fixed (byte* plabelId = &labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, stride); - } - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count) + public static void PlotDigital(ReadOnlySpan labelId, int* xs, int* ys, int count) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, int offset) + public static void PlotDigital(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset, int stride) { fixed (byte* plabelId = labelId) { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotDigital(string labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -825,29 +564,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotDigital(string labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -866,29 +593,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotDigital(string labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -907,29 +622,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count) + public static void PlotDigital(string labelId, int* xs, int* ys, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -948,29 +651,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, int offset) + public static void PlotDigital(string labelId, int* xs, int* ys, int count, int offset) { byte* pStr0 = null; int pStrSize0 = 0; @@ -989,29 +680,17 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) - { - fixed (ushort* pneg = &neg) - { - fixed (ushort* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + Utils.Free(pStr0); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ushort xs, ref ushort ys, ref ushort neg, ref ushort pos, int count, int offset, int stride) + public static void PlotDigital(string labelId, int* xs, int* ys, int count, int offset, int stride) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1030,19 +709,3101 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ushort* pxs = &xs) + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pys = &ys) + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotDigitalNative(byte* labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[272])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[272])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset) + { + PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags) + { + PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count, int offset) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, uint* xs, uint* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ushort* pneg = &neg) + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, uint* xs, uint* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, uint* xs, uint* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, uint* xs, uint* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotDigitalNative(byte* labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[273])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[273])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset) + { + PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags) + { + PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, long* xs, long* ys, int count) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, long* xs, long* ys, int count, int offset) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, long* xs, long* ys, int count, int offset, int stride) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, long* xs, long* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, long* xs, long* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, long* xs, long* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, long* xs, long* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotDigitalNative(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[274])(labelId, xs, ys, count, flags, offset, stride); + #else + ((delegate* unmanaged[Cdecl])funcTable[274])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); + #endif + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset) + { + PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags) + { + PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count, int offset) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); + } + + /// + /// To be documented. + /// + public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count, int offset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotImageNative(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol, ImPlotImageFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[275])(labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[275])((nint)labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol, ImPlotImageFlags flags) + { + PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); + } + + /// + /// To be documented. + /// + public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol) + { + PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, (ImPlotImageFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1) + { + PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0) + { + PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol) + { + PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol) + { + PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, ImPlotImageFlags flags) + { + PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, ImPlotImageFlags flags) + { + PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotImageFlags flags) + { + PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); + } + + /// + /// To be documented. + /// + public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol, ImPlotImageFlags flags) + { + PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, flags); + } + + /// + /// To be documented. + /// + public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol, ImPlotImageFlags flags) + { + PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, flags); + } + + /// + /// To be documented. + /// + public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol, ImPlotImageFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol) + { + fixed (byte* plabelId = &labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, (ImPlotImageFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1) + { + fixed (byte* plabelId = &labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0) + { + fixed (byte* plabelId = &labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = &labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol) + { + fixed (byte* plabelId = &labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol) + { + fixed (byte* plabelId = &labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, ImPlotImageFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, ImPlotImageFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotImageFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol, ImPlotImageFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol, ImPlotImageFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol, ImPlotImageFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol) + { + fixed (byte* plabelId = labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, (ImPlotImageFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1) + { + fixed (byte* plabelId = labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0) + { + fixed (byte* plabelId = labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + fixed (byte* plabelId = labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol) + { + fixed (byte* plabelId = labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol) + { + fixed (byte* plabelId = labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, ImPlotImageFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, ImPlotImageFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotImageFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol, ImPlotImageFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol, ImPlotImageFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol, ImPlotImageFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, (ImPlotImageFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, ImPlotImageFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, ImPlotImageFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotImageFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol, ImPlotImageFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol, ImPlotImageFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotTextNative(byte* text, double x, double y, Vector2 pixOffset, ImPlotTextFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[276])(text, x, y, pixOffset, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[276])((nint)text, x, y, pixOffset, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotText(byte* text, double x, double y, Vector2 pixOffset, ImPlotTextFlags flags) + { + PlotTextNative(text, x, y, pixOffset, flags); + } + + /// + /// To be documented. + /// + public static void PlotText(byte* text, double x, double y, Vector2 pixOffset) + { + PlotTextNative(text, x, y, pixOffset, (ImPlotTextFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotText(byte* text, double x, double y) + { + PlotTextNative(text, x, y, (Vector2)(new Vector2(0,0)), (ImPlotTextFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotText(byte* text, double x, double y, ImPlotTextFlags flags) + { + PlotTextNative(text, x, y, (Vector2)(new Vector2(0,0)), flags); + } + + /// + /// To be documented. + /// + public static void PlotText(ref byte text, double x, double y, Vector2 pixOffset, ImPlotTextFlags flags) + { + fixed (byte* ptext = &text) + { + PlotTextNative((byte*)ptext, x, y, pixOffset, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotText(ref byte text, double x, double y, Vector2 pixOffset) + { + fixed (byte* ptext = &text) + { + PlotTextNative((byte*)ptext, x, y, pixOffset, (ImPlotTextFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotText(ref byte text, double x, double y) + { + fixed (byte* ptext = &text) + { + PlotTextNative((byte*)ptext, x, y, (Vector2)(new Vector2(0,0)), (ImPlotTextFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotText(ref byte text, double x, double y, ImPlotTextFlags flags) + { + fixed (byte* ptext = &text) + { + PlotTextNative((byte*)ptext, x, y, (Vector2)(new Vector2(0,0)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotText(ReadOnlySpan text, double x, double y, Vector2 pixOffset, ImPlotTextFlags flags) + { + fixed (byte* ptext = text) + { + PlotTextNative((byte*)ptext, x, y, pixOffset, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotText(ReadOnlySpan text, double x, double y, Vector2 pixOffset) + { + fixed (byte* ptext = text) + { + PlotTextNative((byte*)ptext, x, y, pixOffset, (ImPlotTextFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotText(ReadOnlySpan text, double x, double y) + { + fixed (byte* ptext = text) + { + PlotTextNative((byte*)ptext, x, y, (Vector2)(new Vector2(0,0)), (ImPlotTextFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotText(ReadOnlySpan text, double x, double y, ImPlotTextFlags flags) + { + fixed (byte* ptext = text) + { + PlotTextNative((byte*)ptext, x, y, (Vector2)(new Vector2(0,0)), flags); + } + } + + /// + /// To be documented. + /// + public static void PlotText(string text, double x, double y, Vector2 pixOffset, ImPlotTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotTextNative(pStr0, x, y, pixOffset, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotText(string text, double x, double y, Vector2 pixOffset) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotTextNative(pStr0, x, y, pixOffset, (ImPlotTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotText(string text, double x, double y) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotTextNative(pStr0, x, y, (Vector2)(new Vector2(0,0)), (ImPlotTextFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotText(string text, double x, double y, ImPlotTextFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotTextNative(pStr0, x, y, (Vector2)(new Vector2(0,0)), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotDummyNative(byte* labelId, ImPlotDummyFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[277])(labelId, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[277])((nint)labelId, flags); + #endif + } + + /// + /// To be documented. + /// + public static void PlotDummy(byte* labelId, ImPlotDummyFlags flags) + { + PlotDummyNative(labelId, flags); + } + + /// + /// To be documented. + /// + public static void PlotDummy(byte* labelId) + { + PlotDummyNative(labelId, (ImPlotDummyFlags)(0)); + } + + /// + /// To be documented. + /// + public static void PlotDummy(ref byte labelId, ImPlotDummyFlags flags) + { + fixed (byte* plabelId = &labelId) + { + PlotDummyNative((byte*)plabelId, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotDummy(ref byte labelId) + { + fixed (byte* plabelId = &labelId) + { + PlotDummyNative((byte*)plabelId, (ImPlotDummyFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotDummy(ReadOnlySpan labelId, ImPlotDummyFlags flags) + { + fixed (byte* plabelId = labelId) + { + PlotDummyNative((byte*)plabelId, flags); + } + } + + /// + /// To be documented. + /// + public static void PlotDummy(ReadOnlySpan labelId) + { + fixed (byte* plabelId = labelId) + { + PlotDummyNative((byte*)plabelId, (ImPlotDummyFlags)(0)); + } + } + + /// + /// To be documented. + /// + public static void PlotDummy(string labelId, ImPlotDummyFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDummyNative(pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void PlotDummy(string labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDummyNative(pStr0, (ImPlotDummyFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DragPointNative(int id, double* x, double* y, Vector4 col, float size, ImPlotDragToolFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[278])(id, x, y, col, size, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[278])(id, (nint)x, (nint)y, col, size, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragPoint(int id, double* x, double* y, Vector4 col, float size, ImPlotDragToolFlags flags) + { + byte ret = DragPointNative(id, x, y, col, size, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragPoint(int id, double* x, double* y, Vector4 col, float size) + { + byte ret = DragPointNative(id, x, y, col, size, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragPoint(int id, double* x, double* y, Vector4 col) + { + byte ret = DragPointNative(id, x, y, col, (float)(4), (ImPlotDragToolFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragPoint(int id, double* x, double* y, Vector4 col, ImPlotDragToolFlags flags) + { + byte ret = DragPointNative(id, x, y, col, (float)(4), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragPoint(int id, ref double x, double* y, Vector4 col, float size, ImPlotDragToolFlags flags) + { + fixed (double* px = &x) + { + byte ret = DragPointNative(id, (double*)px, y, col, size, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragPoint(int id, ref double x, double* y, Vector4 col, float size) + { + fixed (double* px = &x) + { + byte ret = DragPointNative(id, (double*)px, y, col, size, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragPoint(int id, ref double x, double* y, Vector4 col) + { + fixed (double* px = &x) + { + byte ret = DragPointNative(id, (double*)px, y, col, (float)(4), (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragPoint(int id, ref double x, double* y, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* px = &x) + { + byte ret = DragPointNative(id, (double*)px, y, col, (float)(4), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragPoint(int id, double* x, ref double y, Vector4 col, float size, ImPlotDragToolFlags flags) + { + fixed (double* py = &y) + { + byte ret = DragPointNative(id, x, (double*)py, col, size, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragPoint(int id, double* x, ref double y, Vector4 col, float size) + { + fixed (double* py = &y) + { + byte ret = DragPointNative(id, x, (double*)py, col, size, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragPoint(int id, double* x, ref double y, Vector4 col) + { + fixed (double* py = &y) + { + byte ret = DragPointNative(id, x, (double*)py, col, (float)(4), (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragPoint(int id, double* x, ref double y, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* py = &y) + { + byte ret = DragPointNative(id, x, (double*)py, col, (float)(4), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragPoint(int id, ref double x, ref double y, Vector4 col, float size, ImPlotDragToolFlags flags) + { + fixed (double* px = &x) + { + fixed (double* py = &y) + { + byte ret = DragPointNative(id, (double*)px, (double*)py, col, size, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragPoint(int id, ref double x, ref double y, Vector4 col, float size) + { + fixed (double* px = &x) + { + fixed (double* py = &y) + { + byte ret = DragPointNative(id, (double*)px, (double*)py, col, size, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragPoint(int id, ref double x, ref double y, Vector4 col) + { + fixed (double* px = &x) + { + fixed (double* py = &y) + { + byte ret = DragPointNative(id, (double*)px, (double*)py, col, (float)(4), (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragPoint(int id, ref double x, ref double y, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* px = &x) + { + fixed (double* py = &y) + { + byte ret = DragPointNative(id, (double*)px, (double*)py, col, (float)(4), flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DragLineXNative(int id, double* x, Vector4 col, float thickness, ImPlotDragToolFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[279])(id, x, col, thickness, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[279])(id, (nint)x, col, thickness, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragLineX(int id, double* x, Vector4 col, float thickness, ImPlotDragToolFlags flags) + { + byte ret = DragLineXNative(id, x, col, thickness, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragLineX(int id, double* x, Vector4 col, float thickness) + { + byte ret = DragLineXNative(id, x, col, thickness, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragLineX(int id, double* x, Vector4 col) + { + byte ret = DragLineXNative(id, x, col, (float)(1), (ImPlotDragToolFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragLineX(int id, double* x, Vector4 col, ImPlotDragToolFlags flags) + { + byte ret = DragLineXNative(id, x, col, (float)(1), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragLineX(int id, ref double x, Vector4 col, float thickness, ImPlotDragToolFlags flags) + { + fixed (double* px = &x) + { + byte ret = DragLineXNative(id, (double*)px, col, thickness, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragLineX(int id, ref double x, Vector4 col, float thickness) + { + fixed (double* px = &x) + { + byte ret = DragLineXNative(id, (double*)px, col, thickness, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragLineX(int id, ref double x, Vector4 col) + { + fixed (double* px = &x) + { + byte ret = DragLineXNative(id, (double*)px, col, (float)(1), (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragLineX(int id, ref double x, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* px = &x) + { + byte ret = DragLineXNative(id, (double*)px, col, (float)(1), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DragLineYNative(int id, double* y, Vector4 col, float thickness, ImPlotDragToolFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[280])(id, y, col, thickness, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[280])(id, (nint)y, col, thickness, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragLineY(int id, double* y, Vector4 col, float thickness, ImPlotDragToolFlags flags) + { + byte ret = DragLineYNative(id, y, col, thickness, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragLineY(int id, double* y, Vector4 col, float thickness) + { + byte ret = DragLineYNative(id, y, col, thickness, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragLineY(int id, double* y, Vector4 col) + { + byte ret = DragLineYNative(id, y, col, (float)(1), (ImPlotDragToolFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragLineY(int id, double* y, Vector4 col, ImPlotDragToolFlags flags) + { + byte ret = DragLineYNative(id, y, col, (float)(1), flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragLineY(int id, ref double y, Vector4 col, float thickness, ImPlotDragToolFlags flags) + { + fixed (double* py = &y) + { + byte ret = DragLineYNative(id, (double*)py, col, thickness, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragLineY(int id, ref double y, Vector4 col, float thickness) + { + fixed (double* py = &y) + { + byte ret = DragLineYNative(id, (double*)py, col, thickness, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragLineY(int id, ref double y, Vector4 col) + { + fixed (double* py = &y) + { + byte ret = DragLineYNative(id, (double*)py, col, (float)(1), (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragLineY(int id, ref double y, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* py = &y) + { + byte ret = DragLineYNative(id, (double*)py, col, (float)(1), flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte DragRectNative(int id, double* x1, double* y1, double* x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[281])(id, x1, y1, x2, y2, col, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[281])(id, (nint)x1, (nint)y1, (nint)x2, (nint)y2, col, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, double* x1, double* y1, double* x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) + { + byte ret = DragRectNative(id, x1, y1, x2, y2, col, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, double* x1, double* y1, double* x2, double* y2, Vector4 col) + { + byte ret = DragRectNative(id, x1, y1, x2, y2, col, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, ref double x1, double* y1, double* x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* px1 = &x1) + { + byte ret = DragRectNative(id, (double*)px1, y1, x2, y2, col, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, ref double x1, double* y1, double* x2, double* y2, Vector4 col) + { + fixed (double* px1 = &x1) + { + byte ret = DragRectNative(id, (double*)px1, y1, x2, y2, col, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, double* x1, ref double y1, double* x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* py1 = &y1) + { + byte ret = DragRectNative(id, x1, (double*)py1, x2, y2, col, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, double* x1, ref double y1, double* x2, double* y2, Vector4 col) + { + fixed (double* py1 = &y1) + { + byte ret = DragRectNative(id, x1, (double*)py1, x2, y2, col, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, ref double x1, ref double y1, double* x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* px1 = &x1) + { + fixed (double* py1 = &y1) + { + byte ret = DragRectNative(id, (double*)px1, (double*)py1, x2, y2, col, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, ref double x1, ref double y1, double* x2, double* y2, Vector4 col) + { + fixed (double* px1 = &x1) + { + fixed (double* py1 = &y1) + { + byte ret = DragRectNative(id, (double*)px1, (double*)py1, x2, y2, col, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, double* x1, double* y1, ref double x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* px2 = &x2) + { + byte ret = DragRectNative(id, x1, y1, (double*)px2, y2, col, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, double* x1, double* y1, ref double x2, double* y2, Vector4 col) + { + fixed (double* px2 = &x2) + { + byte ret = DragRectNative(id, x1, y1, (double*)px2, y2, col, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, ref double x1, double* y1, ref double x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* px1 = &x1) + { + fixed (double* px2 = &x2) + { + byte ret = DragRectNative(id, (double*)px1, y1, (double*)px2, y2, col, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, ref double x1, double* y1, ref double x2, double* y2, Vector4 col) + { + fixed (double* px1 = &x1) + { + fixed (double* px2 = &x2) + { + byte ret = DragRectNative(id, (double*)px1, y1, (double*)px2, y2, col, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, double* x1, ref double y1, ref double x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* py1 = &y1) + { + fixed (double* px2 = &x2) + { + byte ret = DragRectNative(id, x1, (double*)py1, (double*)px2, y2, col, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, double* x1, ref double y1, ref double x2, double* y2, Vector4 col) + { + fixed (double* py1 = &y1) + { + fixed (double* px2 = &x2) + { + byte ret = DragRectNative(id, x1, (double*)py1, (double*)px2, y2, col, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, ref double x1, ref double y1, ref double x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* px1 = &x1) + { + fixed (double* py1 = &y1) + { + fixed (double* px2 = &x2) { - fixed (ushort* ppos = &pos) + byte ret = DragRectNative(id, (double*)px1, (double*)py1, (double*)px2, y2, col, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, ref double x1, ref double y1, ref double x2, double* y2, Vector4 col) + { + fixed (double* px1 = &x1) + { + fixed (double* py1 = &y1) + { + fixed (double* px2 = &x2) + { + byte ret = DragRectNative(id, (double*)px1, (double*)py1, (double*)px2, y2, col, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, double* x1, double* y1, double* x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* py2 = &y2) + { + byte ret = DragRectNative(id, x1, y1, x2, (double*)py2, col, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, double* x1, double* y1, double* x2, ref double y2, Vector4 col) + { + fixed (double* py2 = &y2) + { + byte ret = DragRectNative(id, x1, y1, x2, (double*)py2, col, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, ref double x1, double* y1, double* x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* px1 = &x1) + { + fixed (double* py2 = &y2) + { + byte ret = DragRectNative(id, (double*)px1, y1, x2, (double*)py2, col, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, ref double x1, double* y1, double* x2, ref double y2, Vector4 col) + { + fixed (double* px1 = &x1) + { + fixed (double* py2 = &y2) + { + byte ret = DragRectNative(id, (double*)px1, y1, x2, (double*)py2, col, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, double* x1, ref double y1, double* x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* py1 = &y1) + { + fixed (double* py2 = &y2) + { + byte ret = DragRectNative(id, x1, (double*)py1, x2, (double*)py2, col, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, double* x1, ref double y1, double* x2, ref double y2, Vector4 col) + { + fixed (double* py1 = &y1) + { + fixed (double* py2 = &y2) + { + byte ret = DragRectNative(id, x1, (double*)py1, x2, (double*)py2, col, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, ref double x1, ref double y1, double* x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* px1 = &x1) + { + fixed (double* py1 = &y1) + { + fixed (double* py2 = &y2) + { + byte ret = DragRectNative(id, (double*)px1, (double*)py1, x2, (double*)py2, col, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, ref double x1, ref double y1, double* x2, ref double y2, Vector4 col) + { + fixed (double* px1 = &x1) + { + fixed (double* py1 = &y1) + { + fixed (double* py2 = &y2) + { + byte ret = DragRectNative(id, (double*)px1, (double*)py1, x2, (double*)py2, col, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, double* x1, double* y1, ref double x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* px2 = &x2) + { + fixed (double* py2 = &y2) + { + byte ret = DragRectNative(id, x1, y1, (double*)px2, (double*)py2, col, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, double* x1, double* y1, ref double x2, ref double y2, Vector4 col) + { + fixed (double* px2 = &x2) + { + fixed (double* py2 = &y2) + { + byte ret = DragRectNative(id, x1, y1, (double*)px2, (double*)py2, col, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, ref double x1, double* y1, ref double x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* px1 = &x1) + { + fixed (double* px2 = &x2) + { + fixed (double* py2 = &y2) + { + byte ret = DragRectNative(id, (double*)px1, y1, (double*)px2, (double*)py2, col, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, ref double x1, double* y1, ref double x2, ref double y2, Vector4 col) + { + fixed (double* px1 = &x1) + { + fixed (double* px2 = &x2) + { + fixed (double* py2 = &y2) + { + byte ret = DragRectNative(id, (double*)px1, y1, (double*)px2, (double*)py2, col, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, double* x1, ref double y1, ref double x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* py1 = &y1) + { + fixed (double* px2 = &x2) + { + fixed (double* py2 = &y2) + { + byte ret = DragRectNative(id, x1, (double*)py1, (double*)px2, (double*)py2, col, flags); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, double* x1, ref double y1, ref double x2, ref double y2, Vector4 col) + { + fixed (double* py1 = &y1) + { + fixed (double* px2 = &x2) + { + fixed (double* py2 = &y2) + { + byte ret = DragRectNative(id, x1, (double*)py1, (double*)px2, (double*)py2, col, (ImPlotDragToolFlags)(0)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, ref double x1, ref double y1, ref double x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) + { + fixed (double* px1 = &x1) + { + fixed (double* py1 = &y1) + { + fixed (double* px2 = &x2) + { + fixed (double* py2 = &y2) { - PlotErrorBarsNative(pStr0, (ushort*)pxs, (ushort*)pys, (ushort*)pneg, (ushort*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragRectNative(id, (double*)px1, (double*)py1, (double*)px2, (double*)py2, col, flags); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool DragRect(int id, ref double x1, ref double y1, ref double x2, ref double y2, Vector4 col) + { + fixed (double* px1 = &x1) + { + fixed (double* py1 = &y1) + { + fixed (double* px2 = &x2) + { + fixed (double* py2 = &y2) + { + byte ret = DragRectNative(id, (double*)px1, (double*)py1, (double*)px2, (double*)py2, col, (ImPlotDragToolFlags)(0)); + return ret != 0; } } } @@ -1053,205 +3814,84 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + internal static void AnnotationNative(double x, double y, Vector4 col, Vector2 pixOffset, byte clamp, byte round) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[177])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[282])(x, y, col, pixOffset, clamp, round); #else - ((delegate* unmanaged[Cdecl])funcTable[177])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[282])(x, y, col, pixOffset, clamp, round); #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, bool round) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); + AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, round ? (byte)1 : (byte)0); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(int))); + AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, (byte)(0)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AnnotationNative(double x, double y, Vector4 col, Vector2 pixOffset, byte clamp, byte* fmt) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[283])(x, y, col, pixOffset, clamp, fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[283])(x, y, col, pixOffset, clamp, (nint)fmt); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count) + public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, byte* fmt) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); + AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, fmt); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset) + public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, ref byte fmt) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) + fixed (byte* pfmt = &fmt) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, (byte*)pfmt); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, ReadOnlySpan fmt) { - fixed (byte* plabelId = &labelId) + fixed (byte* pfmt = fmt) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(int))); + AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, (byte*)pfmt); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, int* pos, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (fmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1261,10 +3901,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); + AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1274,13 +3914,56 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AnnotationVNative(double x, double y, Vector4 col, Vector2 pixOffset, byte clamp, byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[284])(x, y, col, pixOffset, clamp, fmt, args); + #else + ((delegate* unmanaged[Cdecl])funcTable[284])(x, y, col, pixOffset, clamp, (nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static void AnnotationV(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, byte* fmt, nuint args) + { + AnnotationVNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, fmt, args); + } + + /// + /// To be documented. + /// + public static void AnnotationV(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + AnnotationVNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void AnnotationV(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + AnnotationVNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void AnnotationV(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (fmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1290,10 +3973,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(int))); + AnnotationVNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1303,13 +3986,85 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TagXNative(double x, Vector4 col, byte round) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[285])(x, col, round); + #else + ((delegate* unmanaged[Cdecl])funcTable[285])(x, col, round); + #endif + } + + /// + /// To be documented. + /// + public static void TagX(double x, Vector4 col, bool round) + { + TagXNative(x, col, round ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void TagX(double x, Vector4 col) + { + TagXNative(x, col, (byte)(0)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TagXNative(double x, Vector4 col, byte* fmt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[286])(x, col, fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[286])(x, col, (nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static void TagX(double x, Vector4 col, byte* fmt) + { + TagXNative(x, col, fmt); + } + + /// + /// To be documented. + /// + public static void TagX(double x, Vector4 col, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + TagXNative(x, col, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void TagX(double x, Vector4 col, ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + TagXNative(x, col, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void TagX(double x, Vector4 col, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (fmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1319,10 +4074,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); + TagXNative(x, col, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1332,13 +4087,56 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TagXVNative(double x, Vector4 col, byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[287])(x, col, fmt, args); + #else + ((delegate* unmanaged[Cdecl])funcTable[287])(x, col, (nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static void TagXV(double x, Vector4 col, byte* fmt, nuint args) + { + TagXVNative(x, col, fmt, args); + } + + /// + /// To be documented. + /// + public static void TagXV(double x, Vector4 col, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + TagXVNative(x, col, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void TagXV(double x, Vector4 col, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + TagXVNative(x, col, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void TagXV(double x, Vector4 col, string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (fmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1348,10 +4146,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); + TagXVNative(x, col, pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1361,13 +4159,85 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TagYNative(double y, Vector4 col, byte round) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[288])(y, col, round); + #else + ((delegate* unmanaged[Cdecl])funcTable[288])(y, col, round); + #endif + } + + /// + /// To be documented. + /// + public static void TagY(double y, Vector4 col, bool round) + { + TagYNative(y, col, round ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void TagY(double y, Vector4 col) + { + TagYNative(y, col, (byte)(0)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TagYNative(double y, Vector4 col, byte* fmt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[289])(y, col, fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[289])(y, col, (nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static void TagY(double y, Vector4 col, byte* fmt) + { + TagYNative(y, col, fmt); + } + + /// + /// To be documented. + /// + public static void TagY(double y, Vector4 col, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + TagYNative(y, col, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void TagY(double y, Vector4 col, ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + TagYNative(y, col, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void TagY(double y, Vector4 col, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (fmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1377,10 +4247,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); + TagYNative(y, col, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1390,13 +4260,56 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void TagYVNative(double y, Vector4 col, byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[290])(y, col, fmt, args); + #else + ((delegate* unmanaged[Cdecl])funcTable[290])(y, col, (nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static void TagYV(double y, Vector4 col, byte* fmt, nuint args) + { + TagYVNative(y, col, fmt, args); + } + + /// + /// To be documented. + /// + public static void TagYV(double y, Vector4 col, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + TagYVNative(y, col, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void TagYV(double y, Vector4 col, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + TagYVNative(y, col, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void TagYV(double y, Vector4 col, string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (fmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1406,10 +4319,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + TagYVNative(y, col, pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1419,3609 +4332,702 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetAxisNative(ImAxis axis) { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* neg, int* pos, int count) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* neg, int* pos, int count, int offset) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* neg, int* pos, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* neg, int* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* neg, int* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* neg, int* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* neg, int* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* neg, int* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* neg, int* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* neg, int* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* neg, int* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* neg, int* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, neg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* neg, int* pos, int count) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* neg, int* pos, int count, int offset) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* neg, int* pos, int count, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* neg, int* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* neg, int* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* neg, int* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* neg, int* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* neg, int* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* neg, int* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, neg, pos, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* neg, int* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* neg, int* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* neg, int* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, neg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* neg, int* pos, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* neg, int* pos, int count, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* neg, int* pos, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* neg, int* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* neg, int* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* neg, int* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* neg, int* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* neg, int* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* neg, int* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, neg, pos, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* neg, int* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* neg, int* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* neg, int* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)pneg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)pneg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)pneg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int neg, int* pos, int count) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int neg, int* pos, int count, int offset) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int neg, int* pos, int count, int offset, int stride) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int neg, int* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int neg, int* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int neg, int* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int neg, int* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int neg, int* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int neg, int* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (int*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (int*)pneg, pos, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (int*)pneg, pos, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int neg, int* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int neg, int* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int neg, int* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)pneg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)pneg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int neg, int* pos, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int neg, int* pos, int count, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int neg, int* pos, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int neg, int* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int neg, int* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int neg, int* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int neg, int* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int neg, int* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int neg, int* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)pneg, pos, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[291])(axis); + #else + ((delegate* unmanaged[Cdecl])funcTable[291])(axis); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags) + public static void SetAxis(ImAxis axis) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)pneg, pos, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int neg, int* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int neg, int* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int neg, int* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + SetAxisNative(axis); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetAxesNative(ImAxis xAxis, ImAxis yAxis) { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)pneg, pos, count, flags, offset, stride); - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[292])(xAxis, yAxis); + #else + ((delegate* unmanaged[Cdecl])funcTable[292])(xAxis, yAxis); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void SetAxes(ImAxis xAxis, ImAxis yAxis) { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)pneg, pos, count, flags, offset, (int)(sizeof(int))); - } - } + SetAxesNative(xAxis, yAxis); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PixelsToPlotNative(ImPlotPoint* pOut, Vector2 pix, ImAxis xAxis, ImAxis yAxis) { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)pneg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[293])(pOut, pix, xAxis, yAxis); + #else + ((delegate* unmanaged[Cdecl])funcTable[293])((nint)pOut, pix, xAxis, yAxis); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int neg, int* pos, int count) + public static ImPlotPoint PixelsToPlot(Vector2 pix) { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } + ImPlotPoint ret; + PixelsToPlotNative(&ret, pix, (ImAxis)(-1), (ImAxis)(-1)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int neg, int* pos, int count, int offset) + public static ImPlotPoint PixelsToPlot(Vector2 pix, ImAxis xAxis) { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } + ImPlotPoint ret; + PixelsToPlotNative(&ret, pix, xAxis, (ImAxis)(-1)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int neg, int* pos, int count, int offset, int stride) + public static void PixelsToPlot(ImPlotPointPtr pOut, Vector2 pix) { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + PixelsToPlotNative(pOut, pix, (ImAxis)(-1), (ImAxis)(-1)); } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static ImPlotPoint PixelsToPlot(Vector2 pix, ImAxis xAxis, ImAxis yAxis) { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, pos, count, flags, offset, stride); - } - } - } + ImPlotPoint ret; + PixelsToPlotNative(&ret, pix, xAxis, yAxis); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PixelsToPlot(ImPlotPointPtr pOut, Vector2 pix, ImAxis xAxis, ImAxis yAxis) { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } + PixelsToPlotNative(pOut, pix, xAxis, yAxis); } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags) + public static void PixelsToPlot(ImPlotPointPtr pOut, Vector2 pix, ImAxis xAxis) { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } + PixelsToPlotNative(pOut, pix, xAxis, (ImAxis)(-1)); } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int neg, int* pos, int count) + public static void PixelsToPlot(ref ImPlotPoint pOut, Vector2 pix, ImAxis xAxis, ImAxis yAxis) { - fixed (byte* plabelId = &labelId) + fixed (ImPlotPoint* ppOut = &pOut) { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } + PixelsToPlotNative((ImPlotPoint*)ppOut, pix, xAxis, yAxis); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int neg, int* pos, int count, int offset) + public static void PixelsToPlot(ref ImPlotPoint pOut, Vector2 pix, ImAxis xAxis) { - fixed (byte* plabelId = &labelId) + fixed (ImPlotPoint* ppOut = &pOut) { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } + PixelsToPlotNative((ImPlotPoint*)ppOut, pix, xAxis, (ImAxis)(-1)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int neg, int* pos, int count, int offset, int stride) + public static void PixelsToPlot(ref ImPlotPoint pOut, Vector2 pix) { - fixed (byte* plabelId = &labelId) + fixed (ImPlotPoint* ppOut = &pOut) { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + PixelsToPlotNative((ImPlotPoint*)ppOut, pix, (ImAxis)(-1), (ImAxis)(-1)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PixelsToPlotNative(ImPlotPoint* pOut, float x, float y, ImAxis xAxis, ImAxis yAxis) { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, pos, count, flags, offset, stride); - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[294])(pOut, x, y, xAxis, yAxis); + #else + ((delegate* unmanaged[Cdecl])funcTable[294])((nint)pOut, x, y, xAxis, yAxis); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static ImPlotPoint PixelsToPlot(float x, float y) { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } + ImPlotPoint ret; + PixelsToPlotNative(&ret, x, y, (ImAxis)(-1), (ImAxis)(-1)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags) + public static ImPlotPoint PixelsToPlot(float x, float y, ImAxis xAxis) { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } + ImPlotPoint ret; + PixelsToPlotNative(&ret, x, y, xAxis, (ImAxis)(-1)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int neg, int* pos, int count) + public static void PixelsToPlot(ImPlotPointPtr pOut, float x, float y) { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } + PixelsToPlotNative(pOut, x, y, (ImAxis)(-1), (ImAxis)(-1)); } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int neg, int* pos, int count, int offset) + public static ImPlotPoint PixelsToPlot(float x, float y, ImAxis xAxis, ImAxis yAxis) { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } + ImPlotPoint ret; + PixelsToPlotNative(&ret, x, y, xAxis, yAxis); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int neg, int* pos, int count, int offset, int stride) + public static void PixelsToPlot(ImPlotPointPtr pOut, float x, float y, ImAxis xAxis, ImAxis yAxis) { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + PixelsToPlotNative(pOut, x, y, xAxis, yAxis); } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PixelsToPlot(ImPlotPointPtr pOut, float x, float y, ImAxis xAxis) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + PixelsToPlotNative(pOut, x, y, xAxis, (ImAxis)(-1)); } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PixelsToPlot(ref ImPlotPoint pOut, float x, float y, ImAxis xAxis, ImAxis yAxis) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (ImPlotPoint* ppOut = &pOut) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)pneg, pos, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PixelsToPlotNative((ImPlotPoint*)ppOut, x, y, xAxis, yAxis); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags) + public static void PixelsToPlot(ref ImPlotPoint pOut, float x, float y, ImAxis xAxis) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) + fixed (ImPlotPoint* ppOut = &pOut) { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)pneg, pos, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PixelsToPlotNative((ImPlotPoint*)ppOut, x, y, xAxis, (ImAxis)(-1)); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int neg, int* pos, int count) + public static void PixelsToPlot(ref ImPlotPoint pOut, float x, float y) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (ImPlotPoint* ppOut = &pOut) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PixelsToPlotNative((ImPlotPoint*)ppOut, x, y, (ImAxis)(-1), (ImAxis)(-1)); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int neg, int* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotToPixelsNative(Vector2* pOut, ImPlotPoint plt, ImAxis xAxis, ImAxis yAxis) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[295])(pOut, plt, xAxis, yAxis); + #else + ((delegate* unmanaged[Cdecl])funcTable[295])((nint)pOut, plt, xAxis, yAxis); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int neg, int* pos, int count, int offset, int stride) + public static Vector2 PlotToPixels(ImPlotPoint plt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + Vector2 ret; + PlotToPixelsNative(&ret, plt, (ImAxis)(-1), (ImAxis)(-1)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static Vector2 PlotToPixels(ImPlotPoint plt, ImAxis xAxis) { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, flags, offset, stride); - } - } - } + Vector2 ret; + PlotToPixelsNative(&ret, plt, xAxis, (ImAxis)(-1)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotToPixels(Vector2* pOut, ImPlotPoint plt) { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } + PlotToPixelsNative(pOut, plt, (ImAxis)(-1), (ImAxis)(-1)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags) + public static Vector2 PlotToPixels(ImPlotPoint plt, ImAxis xAxis, ImAxis yAxis) { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } + Vector2 ret; + PlotToPixelsNative(&ret, plt, xAxis, yAxis); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int neg, int* pos, int count) + public static void PlotToPixels(Vector2* pOut, ImPlotPoint plt, ImAxis xAxis, ImAxis yAxis) { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } + PlotToPixelsNative(pOut, plt, xAxis, yAxis); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, int offset) + public static void PlotToPixels(Vector2* pOut, ImPlotPoint plt, ImAxis xAxis) { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } + PlotToPixelsNative(pOut, plt, xAxis, (ImAxis)(-1)); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, int offset, int stride) + public static void PlotToPixels(ref Vector2 pOut, ImPlotPoint plt, ImAxis xAxis, ImAxis yAxis) { - fixed (int* pxs = &xs) + fixed (Vector2* ppOut = &pOut) { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + PlotToPixelsNative((Vector2*)ppOut, plt, xAxis, yAxis); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void PlotToPixels(ref Vector2 pOut, ImPlotPoint plt, ImAxis xAxis) { - fixed (byte* plabelId = &labelId) + fixed (Vector2* ppOut = &pOut) { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, flags, offset, stride); - } - } - } + PlotToPixelsNative((Vector2*)ppOut, plt, xAxis, (ImAxis)(-1)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotToPixels(ref Vector2 pOut, ImPlotPoint plt) { - fixed (byte* plabelId = &labelId) + fixed (Vector2* ppOut = &pOut) { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } + PlotToPixelsNative((Vector2*)ppOut, plt, (ImAxis)(-1), (ImAxis)(-1)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotToPixelsNative(Vector2* pOut, double x, double y, ImAxis xAxis, ImAxis yAxis) { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[296])(pOut, x, y, xAxis, yAxis); + #else + ((delegate* unmanaged[Cdecl])funcTable[296])((nint)pOut, x, y, xAxis, yAxis); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int neg, int* pos, int count) + public static Vector2 PlotToPixels(double x, double y) { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } + Vector2 ret; + PlotToPixelsNative(&ret, x, y, (ImAxis)(-1), (ImAxis)(-1)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, int offset) + public static Vector2 PlotToPixels(double x, double y, ImAxis xAxis) { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } + Vector2 ret; + PlotToPixelsNative(&ret, x, y, xAxis, (ImAxis)(-1)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, int offset, int stride) + public static void PlotToPixels(Vector2* pOut, double x, double y) { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } + PlotToPixelsNative(pOut, x, y, (ImAxis)(-1), (ImAxis)(-1)); } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static Vector2 PlotToPixels(double x, double y, ImAxis xAxis, ImAxis yAxis) { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, flags, offset, stride); - } - } - } - } + Vector2 ret; + PlotToPixelsNative(&ret, x, y, xAxis, yAxis); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void PlotToPixels(Vector2* pOut, double x, double y, ImAxis xAxis, ImAxis yAxis) { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } + PlotToPixelsNative(pOut, x, y, xAxis, yAxis); } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags) + public static void PlotToPixels(Vector2* pOut, double x, double y, ImAxis xAxis) { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } + PlotToPixelsNative(pOut, x, y, xAxis, (ImAxis)(-1)); } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int neg, int* pos, int count) + public static void PlotToPixels(ref Vector2 pOut, double x, double y, ImAxis xAxis, ImAxis yAxis) { - fixed (byte* plabelId = labelId) + fixed (Vector2* ppOut = &pOut) { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } + PlotToPixelsNative((Vector2*)ppOut, x, y, xAxis, yAxis); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, int offset) + public static void PlotToPixels(ref Vector2 pOut, double x, double y, ImAxis xAxis) { - fixed (byte* plabelId = labelId) + fixed (Vector2* ppOut = &pOut) { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } + PlotToPixelsNative((Vector2*)ppOut, x, y, xAxis, (ImAxis)(-1)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, int offset, int stride) + public static void PlotToPixels(ref Vector2 pOut, double x, double y) { - fixed (byte* plabelId = labelId) + fixed (Vector2* ppOut = &pOut) { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + PlotToPixelsNative((Vector2*)ppOut, x, y, (ImAxis)(-1), (ImAxis)(-1)); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetPlotPosNative(Vector2* pOut) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[297])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[297])((nint)pOut); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static Vector2 GetPlotPos() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)pneg, pos, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + Vector2 ret; + GetPlotPosNative(&ret); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, ImPlotErrorBarsFlags flags) + public static void GetPlotPos(Vector2* pOut) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)pneg, pos, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + GetPlotPosNative(pOut); } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int neg, int* pos, int count) + public static void GetPlotPos(ref Vector2 pOut) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) + fixed (Vector2* ppOut = &pOut) { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + GetPlotPosNative((Vector2*)ppOut); } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetPlotSizeNative(Vector2* pOut) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[298])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[298])((nint)pOut); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int neg, int* pos, int count, int offset, int stride) + public static Vector2 GetPlotSize() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + Vector2 ret; + GetPlotSizeNative(&ret); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void GetPlotSize(Vector2* pOut) { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (int*)ppos, count, flags, offset, stride); - } + GetPlotSizeNative(pOut); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void GetPlotSize(ref Vector2 pOut) { - fixed (int* ppos = &pos) + fixed (Vector2* ppOut = &pOut) { - PlotErrorBarsNative(labelId, xs, ys, neg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); + GetPlotSizeNative((Vector2*)ppOut); } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetPlotMousePosNative(ImPlotPoint* pOut, ImAxis xAxis, ImAxis yAxis) { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[299])(pOut, xAxis, yAxis); + #else + ((delegate* unmanaged[Cdecl])funcTable[299])((nint)pOut, xAxis, yAxis); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, ref int pos, int count) + public static ImPlotPoint GetPlotMousePos() { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } + ImPlotPoint ret; + GetPlotMousePosNative(&ret, (ImAxis)(-1), (ImAxis)(-1)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, ref int pos, int count, int offset) + public static ImPlotPoint GetPlotMousePos(ImAxis xAxis) { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } + ImPlotPoint ret; + GetPlotMousePosNative(&ret, xAxis, (ImAxis)(-1)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, ref int pos, int count, int offset, int stride) + public static void GetPlotMousePos(ImPlotPointPtr pOut) { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + GetPlotMousePosNative(pOut, (ImAxis)(-1), (ImAxis)(-1)); } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static ImPlotPoint GetPlotMousePos(ImAxis xAxis, ImAxis yAxis) { - fixed (byte* plabelId = &labelId) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (int*)ppos, count, flags, offset, stride); - } - } + ImPlotPoint ret; + GetPlotMousePosNative(&ret, xAxis, yAxis); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void GetPlotMousePos(ImPlotPointPtr pOut, ImAxis xAxis, ImAxis yAxis) { - fixed (byte* plabelId = &labelId) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } + GetPlotMousePosNative(pOut, xAxis, yAxis); } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags) + public static void GetPlotMousePos(ImPlotPointPtr pOut, ImAxis xAxis) { - fixed (byte* plabelId = &labelId) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } + GetPlotMousePosNative(pOut, xAxis, (ImAxis)(-1)); } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, ref int pos, int count) + public static void GetPlotMousePos(ref ImPlotPoint pOut, ImAxis xAxis, ImAxis yAxis) { - fixed (byte* plabelId = &labelId) + fixed (ImPlotPoint* ppOut = &pOut) { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } + GetPlotMousePosNative((ImPlotPoint*)ppOut, xAxis, yAxis); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, ref int pos, int count, int offset) + public static void GetPlotMousePos(ref ImPlotPoint pOut, ImAxis xAxis) { - fixed (byte* plabelId = &labelId) + fixed (ImPlotPoint* ppOut = &pOut) { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } + GetPlotMousePosNative((ImPlotPoint*)ppOut, xAxis, (ImAxis)(-1)); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, ref int pos, int count, int offset, int stride) + public static void GetPlotMousePos(ref ImPlotPoint pOut) { - fixed (byte* plabelId = &labelId) + fixed (ImPlotPoint* ppOut = &pOut) { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + GetPlotMousePosNative((ImPlotPoint*)ppOut, (ImAxis)(-1), (ImAxis)(-1)); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotRect GetPlotLimitsNative(ImAxis xAxis, ImAxis yAxis) { - fixed (byte* plabelId = labelId) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (int*)ppos, count, flags, offset, stride); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[300])(xAxis, yAxis); + #else + return (ImPlotRect)((delegate* unmanaged[Cdecl])funcTable[300])(xAxis, yAxis); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static ImPlotRect GetPlotLimits(ImAxis xAxis, ImAxis yAxis) { - fixed (byte* plabelId = labelId) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } + ImPlotRect ret = GetPlotLimitsNative(xAxis, yAxis); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags) + public static ImPlotRect GetPlotLimits(ImAxis xAxis) { - fixed (byte* plabelId = labelId) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } + ImPlotRect ret = GetPlotLimitsNative(xAxis, (ImAxis)(-1)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, ref int pos, int count) + public static ImPlotRect GetPlotLimits() { - fixed (byte* plabelId = labelId) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } + ImPlotRect ret = GetPlotLimitsNative((ImAxis)(-1), (ImAxis)(-1)); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, ref int pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsPlotHoveredNative() { - fixed (byte* plabelId = labelId) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[301])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[301])(); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, int* neg, ref int pos, int count, int offset, int stride) + public static bool IsPlotHovered() { - fixed (byte* plabelId = labelId) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + byte ret = IsPlotHoveredNative(); + return ret != 0; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsAxisHoveredNative(ImAxis axis) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (int*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[302])(axis); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[302])(axis); + #endif } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.065.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.065.cs index 76e7812c5..5da30f965 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.065.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.065.cs @@ -22,13 +22,251 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static bool IsAxisHovered(ImAxis axis) + { + byte ret = IsAxisHoveredNative(axis); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsSubplotsHoveredNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[303])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[303])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsSubplotsHovered() + { + byte ret = IsSubplotsHoveredNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsPlotSelectedNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[304])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[304])(); + #endif + } + + /// + /// To be documented. + /// + public static bool IsPlotSelected() + { + byte ret = IsPlotSelectedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotRect GetPlotSelectionNative(ImAxis xAxis, ImAxis yAxis) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[305])(xAxis, yAxis); + #else + return (ImPlotRect)((delegate* unmanaged[Cdecl])funcTable[305])(xAxis, yAxis); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotRect GetPlotSelection(ImAxis xAxis, ImAxis yAxis) + { + ImPlotRect ret = GetPlotSelectionNative(xAxis, yAxis); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotRect GetPlotSelection(ImAxis xAxis) + { + ImPlotRect ret = GetPlotSelectionNative(xAxis, (ImAxis)(-1)); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotRect GetPlotSelection() + { + ImPlotRect ret = GetPlotSelectionNative((ImAxis)(-1), (ImAxis)(-1)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CancelPlotSelectionNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[306])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[306])(); + #endif + } + + /// + /// To be documented. + /// + public static void CancelPlotSelection() + { + CancelPlotSelectionNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void HideNextItemNative(byte hidden, ImPlotCond cond) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[307])(hidden, cond); + #else + ((delegate* unmanaged[Cdecl])funcTable[307])(hidden, cond); + #endif + } + + /// + /// To be documented. + /// + public static void HideNextItem(bool hidden, ImPlotCond cond) + { + HideNextItemNative(hidden ? (byte)1 : (byte)0, cond); + } + + /// + /// To be documented. + /// + public static void HideNextItem(bool hidden) + { + HideNextItemNative(hidden ? (byte)1 : (byte)0, (ImPlotCond)(ImPlotCond.Once)); + } + + /// + /// To be documented. + /// + public static void HideNextItem() + { + HideNextItemNative((byte)(1), (ImPlotCond)(ImPlotCond.Once)); + } + + /// + /// To be documented. + /// + public static void HideNextItem(ImPlotCond cond) + { + HideNextItemNative((byte)(1), cond); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginAlignedPlotsNative(byte* groupId, byte vertical) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[308])(groupId, vertical); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[308])((nint)groupId, vertical); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginAlignedPlots(byte* groupId, bool vertical) + { + byte ret = BeginAlignedPlotsNative(groupId, vertical ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginAlignedPlots(byte* groupId) + { + byte ret = BeginAlignedPlotsNative(groupId, (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginAlignedPlots(ref byte groupId, bool vertical) + { + fixed (byte* pgroupId = &groupId) + { + byte ret = BeginAlignedPlotsNative((byte*)pgroupId, vertical ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginAlignedPlots(ref byte groupId) + { + fixed (byte* pgroupId = &groupId) + { + byte ret = BeginAlignedPlotsNative((byte*)pgroupId, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginAlignedPlots(ReadOnlySpan groupId, bool vertical) + { + fixed (byte* pgroupId = groupId) + { + byte ret = BeginAlignedPlotsNative((byte*)pgroupId, vertical ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginAlignedPlots(ReadOnlySpan groupId) + { + fixed (byte* pgroupId = groupId) + { + byte ret = BeginAlignedPlotsNative((byte*)pgroupId, (byte)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginAlignedPlots(string groupId, bool vertical) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (groupId != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(groupId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -38,29 +276,27 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(groupId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* ppos = &pos) + byte ret = BeginAlignedPlotsNative(pStr0, vertical ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags) + public static bool BeginAlignedPlots(string groupId) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (groupId != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(groupId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -70,407 +306,506 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(groupId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* ppos = &pos) + byte ret = BeginAlignedPlotsNative(pStr0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, ref int pos, int count) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndAlignedPlotsNative() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[309])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[309])(); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, ref int pos, int count, int offset) + public static void EndAlignedPlots() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + EndAlignedPlotsNative(); } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, ref int pos, int count, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginLegendPopupNative(byte* labelId, ImGuiMouseButton mouseButton) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[310])(labelId, mouseButton); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[310])((nint)labelId, mouseButton); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static bool BeginLegendPopup(byte* labelId, ImGuiMouseButton mouseButton) { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, neg, (int*)ppos, count, flags, offset, stride); - } - } + byte ret = BeginLegendPopupNative(labelId, mouseButton); + return ret != 0; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static bool BeginLegendPopup(byte* labelId) { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, neg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } + byte ret = BeginLegendPopupNative(labelId, (ImGuiMouseButton)(1)); + return ret != 0; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, neg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* neg, ref int pos, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* neg, ref int pos, int count, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, int* neg, ref int pos, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static bool BeginLegendPopup(ref byte labelId, ImGuiMouseButton mouseButton) { fixed (byte* plabelId = &labelId) { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, (int*)ppos, count, flags, offset, stride); - } - } + byte ret = BeginLegendPopupNative((byte*)plabelId, mouseButton); + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static bool BeginLegendPopup(ref byte labelId) { fixed (byte* plabelId = &labelId) { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } + byte ret = BeginLegendPopupNative((byte*)plabelId, (ImGuiMouseButton)(1)); + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags) + public static bool BeginLegendPopup(ReadOnlySpan labelId, ImGuiMouseButton mouseButton) + { + fixed (byte* plabelId = labelId) + { + byte ret = BeginLegendPopupNative((byte*)plabelId, mouseButton); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginLegendPopup(ReadOnlySpan labelId) + { + fixed (byte* plabelId = labelId) + { + byte ret = BeginLegendPopupNative((byte*)plabelId, (ImGuiMouseButton)(1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginLegendPopup(string labelId, ImGuiMouseButton mouseButton) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginLegendPopupNative(pStr0, mouseButton); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginLegendPopup(string labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginLegendPopupNative(pStr0, (ImGuiMouseButton)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndLegendPopupNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[311])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[311])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndLegendPopup() + { + EndLegendPopupNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsLegendEntryHoveredNative(byte* labelId) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[312])(labelId); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[312])((nint)labelId); + #endif + } + + /// + /// To be documented. + /// + public static bool IsLegendEntryHovered(byte* labelId) + { + byte ret = IsLegendEntryHoveredNative(labelId); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsLegendEntryHovered(ref byte labelId) { fixed (byte* plabelId = &labelId) { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } + byte ret = IsLegendEntryHoveredNative((byte*)plabelId); + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* neg, ref int pos, int count) + public static bool IsLegendEntryHovered(ReadOnlySpan labelId) + { + fixed (byte* plabelId = labelId) + { + byte ret = IsLegendEntryHoveredNative((byte*)plabelId); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool IsLegendEntryHovered(string labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = IsLegendEntryHoveredNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginDragDropTargetPlotNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[313])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[313])(); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginDragDropTargetPlot() + { + byte ret = BeginDragDropTargetPlotNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginDragDropTargetAxisNative(ImAxis axis) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[314])(axis); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[314])(axis); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginDragDropTargetAxis(ImAxis axis) + { + byte ret = BeginDragDropTargetAxisNative(axis); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginDragDropTargetLegendNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[315])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[315])(); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginDragDropTargetLegend() + { + byte ret = BeginDragDropTargetLegendNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndDragDropTargetNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[316])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[316])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndDragDropTarget() + { + EndDragDropTargetNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginDragDropSourcePlotNative(ImGuiDragDropFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[317])(flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[317])(flags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginDragDropSourcePlot(ImGuiDragDropFlags flags) + { + byte ret = BeginDragDropSourcePlotNative(flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginDragDropSourcePlot() + { + byte ret = BeginDragDropSourcePlotNative((ImGuiDragDropFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginDragDropSourceAxisNative(ImAxis axis, ImGuiDragDropFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[318])(axis, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[318])(axis, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginDragDropSourceAxis(ImAxis axis, ImGuiDragDropFlags flags) + { + byte ret = BeginDragDropSourceAxisNative(axis, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginDragDropSourceAxis(ImAxis axis) + { + byte ret = BeginDragDropSourceAxisNative(axis, (ImGuiDragDropFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginDragDropSourceItemNative(byte* labelId, ImGuiDragDropFlags flags) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[319])(labelId, flags); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[319])((nint)labelId, flags); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginDragDropSourceItem(byte* labelId, ImGuiDragDropFlags flags) + { + byte ret = BeginDragDropSourceItemNative(labelId, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginDragDropSourceItem(byte* labelId) + { + byte ret = BeginDragDropSourceItemNative(labelId, (ImGuiDragDropFlags)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginDragDropSourceItem(ref byte labelId, ImGuiDragDropFlags flags) { fixed (byte* plabelId = &labelId) { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } + byte ret = BeginDragDropSourceItemNative((byte*)plabelId, flags); + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* neg, ref int pos, int count, int offset) + public static bool BeginDragDropSourceItem(ref byte labelId) { fixed (byte* plabelId = &labelId) { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } + byte ret = BeginDragDropSourceItemNative((byte*)plabelId, (ImGuiDragDropFlags)(0)); + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, int* neg, ref int pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static bool BeginDragDropSourceItem(ReadOnlySpan labelId, ImGuiDragDropFlags flags) { fixed (byte* plabelId = labelId) { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, (int*)ppos, count, flags, offset, stride); - } - } + byte ret = BeginDragDropSourceItemNative((byte*)plabelId, flags); + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static bool BeginDragDropSourceItem(ReadOnlySpan labelId) { fixed (byte* plabelId = labelId) { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } + byte ret = BeginDragDropSourceItemNative((byte*)plabelId, (ImGuiDragDropFlags)(0)); + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* neg, ref int pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* neg, ref int pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, int* neg, ref int pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static bool BeginDragDropSourceItem(string labelId, ImGuiDragDropFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -489,23 +824,18 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + byte ret = BeginDragDropSourceItemNative(pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, neg, (int*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static bool BeginDragDropSourceItem(string labelId) { byte* pStr0 = null; int pStrSize0 = 0; @@ -524,3504 +854,94 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pxs = &xs) + byte ret = BeginDragDropSourceItemNative(pStr0, (ImGuiDragDropFlags)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, neg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndDragDropSourceNative() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, neg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* neg, ref int pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* neg, ref int pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, int* neg, ref int pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, neg, (int*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, neg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, neg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* neg, ref int pos, int count) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* neg, ref int pos, int count, int offset) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, int* neg, ref int pos, int count, int offset, int stride) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, (int*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* neg, ref int pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* neg, ref int pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, int* neg, ref int pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, (int*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* neg, ref int pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* neg, ref int pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, int* neg, ref int pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, neg, (int*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, neg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, neg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* neg, ref int pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* neg, ref int pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, int* neg, ref int pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* neg, ref int pos, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* neg, ref int pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* neg, ref int pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, neg, (int*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, neg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, neg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* neg, ref int pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, int* neg, ref int pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, neg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)pneg, (int*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)pneg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)pneg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int neg, ref int pos, int count) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int neg, ref int pos, int count, int offset) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, ref int neg, ref int pos, int count, int offset, int stride) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, (int*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int neg, ref int pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int neg, ref int pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, ref int neg, ref int pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, (int*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int neg, ref int pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int neg, ref int pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, int* ys, ref int neg, ref int pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (int*)pneg, (int*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (int*)pneg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (int*)pneg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int neg, ref int pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int neg, ref int pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, int* ys, ref int neg, ref int pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int neg, ref int pos, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int neg, ref int pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int neg, ref int pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int neg, ref int pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref int xs, int* ys, ref int neg, ref int pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, ys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int neg, ref int pos, int count) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, int offset) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, int offset, int stride) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int neg, ref int pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int neg, ref int pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int neg, ref int pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, int* xs, ref int ys, ref int neg, ref int pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[320])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[320])(); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, int offset) + public static void EndDragDropSource() { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(labelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } + EndDragDropSourceNative(); } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotStyle* GetStyleNative() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[321])(); + #else + return (ImPlotStyle*)((delegate* unmanaged[Cdecl])funcTable[321])(); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static ImPlotStylePtr GetStyle() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } + ImPlotStylePtr ret = GetStyleNative(); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void StyleColorsAutoNative(ImPlotStyle* dst) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[322])(dst); + #else + ((delegate* unmanaged[Cdecl])funcTable[322])((nint)dst); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count) + public static void StyleColorsAuto(ImPlotStylePtr dst) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } + StyleColorsAutoNative(dst); } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, int offset) + public static void StyleColorsAuto() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } + StyleColorsAutoNative((ImPlotStyle*)(((void*)0))); } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref int xs, ref int ys, ref int neg, ref int pos, int count, int offset, int stride) + public static void StyleColorsAuto(ref ImPlotStyle dst) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) + fixed (ImPlotStyle* pdst = &dst) { - fixed (int* pys = &ys) - { - fixed (int* pneg = &neg) - { - fixed (int* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (int*)pxs, (int*)pys, (int*)pneg, (int*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + StyleColorsAutoNative((ImPlotStyle*)pdst); } } @@ -4029,205 +949,834 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + internal static void StyleColorsClassicNative(ImPlotStyle* dst) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[178])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[323])(dst); #else - ((delegate* unmanaged[Cdecl])funcTable[178])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[323])((nint)dst); #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void StyleColorsClassic(ImPlotStylePtr dst) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); + StyleColorsClassicNative(dst); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void StyleColorsClassic() { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(uint))); + StyleColorsClassicNative((ImPlotStyle*)(((void*)0))); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) + public static void StyleColorsClassic(ref ImPlotStyle dst) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) + fixed (ImPlotStyle* pdst = &dst) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + StyleColorsClassicNative((ImPlotStyle*)pdst); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void StyleColorsDarkNative(ImPlotStyle* dst) { - fixed (byte* plabelId = &labelId) + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[324])(dst); + #else + ((delegate* unmanaged[Cdecl])funcTable[324])((nint)dst); + #endif + } + + /// + /// To be documented. + /// + public static void StyleColorsDark(ImPlotStylePtr dst) + { + StyleColorsDarkNative(dst); + } + + /// + /// To be documented. + /// + public static void StyleColorsDark() + { + StyleColorsDarkNative((ImPlotStyle*)(((void*)0))); + } + + /// + /// To be documented. + /// + public static void StyleColorsDark(ref ImPlotStyle dst) + { + fixed (ImPlotStyle* pdst = &dst) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(uint))); + StyleColorsDarkNative((ImPlotStyle*)pdst); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void StyleColorsLightNative(ImPlotStyle* dst) { - fixed (byte* plabelId = &labelId) + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[325])(dst); + #else + ((delegate* unmanaged[Cdecl])funcTable[325])((nint)dst); + #endif + } + + /// + /// To be documented. + /// + public static void StyleColorsLight(ImPlotStylePtr dst) + { + StyleColorsLightNative(dst); + } + + /// + /// To be documented. + /// + public static void StyleColorsLight() + { + StyleColorsLightNative((ImPlotStyle*)(((void*)0))); + } + + /// + /// To be documented. + /// + public static void StyleColorsLight(ref ImPlotStyle dst) + { + fixed (ImPlotStyle* pdst = &dst) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); + StyleColorsLightNative((ImPlotStyle*)pdst); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushStyleColorNative(ImPlotCol idx, uint col) { - fixed (byte* plabelId = &labelId) + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[326])(idx, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[326])(idx, col); + #endif + } + + /// + /// To be documented. + /// + public static void PushStyleColor(ImPlotCol idx, uint col) + { + PushStyleColorNative(idx, col); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushStyleColorNative(ImPlotCol idx, Vector4 col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[327])(idx, col); + #else + ((delegate* unmanaged[Cdecl])funcTable[327])(idx, col); + #endif + } + + /// + /// To be documented. + /// + public static void PushStyleColor(ImPlotCol idx, Vector4 col) + { + PushStyleColorNative(idx, col); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopStyleColorNative(int count) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[328])(count); + #else + ((delegate* unmanaged[Cdecl])funcTable[328])(count); + #endif + } + + /// + /// To be documented. + /// + public static void PopStyleColor(int count) + { + PopStyleColorNative(count); + } + + /// + /// To be documented. + /// + public static void PopStyleColor() + { + PopStyleColorNative((int)(1)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushStyleVarNative(ImPlotStyleVar idx, float val) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[329])(idx, val); + #else + ((delegate* unmanaged[Cdecl])funcTable[329])(idx, val); + #endif + } + + /// + /// To be documented. + /// + public static void PushStyleVar(ImPlotStyleVar idx, float val) + { + PushStyleVarNative(idx, val); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushStyleVarNative(ImPlotStyleVar idx, int val) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[330])(idx, val); + #else + ((delegate* unmanaged[Cdecl])funcTable[330])(idx, val); + #endif + } + + /// + /// To be documented. + /// + public static void PushStyleVar(ImPlotStyleVar idx, int val) + { + PushStyleVarNative(idx, val); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushStyleVarNative(ImPlotStyleVar idx, Vector2 val) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[331])(idx, val); + #else + ((delegate* unmanaged[Cdecl])funcTable[331])(idx, val); + #endif + } + + /// + /// To be documented. + /// + public static void PushStyleVar(ImPlotStyleVar idx, Vector2 val) + { + PushStyleVarNative(idx, val); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopStyleVarNative(int count) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[332])(count); + #else + ((delegate* unmanaged[Cdecl])funcTable[332])(count); + #endif + } + + /// + /// To be documented. + /// + public static void PopStyleVar(int count) + { + PopStyleVarNative(count); + } + + /// + /// To be documented. + /// + public static void PopStyleVar() + { + PopStyleVarNative((int)(1)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextLineStyleNative(Vector4 col, float weight) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[333])(col, weight); + #else + ((delegate* unmanaged[Cdecl])funcTable[333])(col, weight); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextLineStyle(Vector4 col, float weight) + { + SetNextLineStyleNative(col, weight); + } + + /// + /// To be documented. + /// + public static void SetNextLineStyle(Vector4 col) + { + SetNextLineStyleNative(col, (float)(-1)); + } + + /// + /// To be documented. + /// + public static void SetNextLineStyle() + { + SetNextLineStyleNative((Vector4)(new Vector4(0,0,0,-1)), (float)(-1)); + } + + /// + /// To be documented. + /// + public static void SetNextLineStyle(float weight) + { + SetNextLineStyleNative((Vector4)(new Vector4(0,0,0,-1)), weight); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextFillStyleNative(Vector4 col, float alphaMod) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[334])(col, alphaMod); + #else + ((delegate* unmanaged[Cdecl])funcTable[334])(col, alphaMod); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextFillStyle(Vector4 col, float alphaMod) + { + SetNextFillStyleNative(col, alphaMod); + } + + /// + /// To be documented. + /// + public static void SetNextFillStyle(Vector4 col) + { + SetNextFillStyleNative(col, (float)(-1)); + } + + /// + /// To be documented. + /// + public static void SetNextFillStyle() + { + SetNextFillStyleNative((Vector4)(new Vector4(0,0,0,-1)), (float)(-1)); + } + + /// + /// To be documented. + /// + public static void SetNextFillStyle(float alphaMod) + { + SetNextFillStyleNative((Vector4)(new Vector4(0,0,0,-1)), alphaMod); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextMarkerStyleNative(ImPlotMarker marker, float size, Vector4 fill, float weight, Vector4 outline) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[335])(marker, size, fill, weight, outline); + #else + ((delegate* unmanaged[Cdecl])funcTable[335])(marker, size, fill, weight, outline); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(ImPlotMarker marker, float size, Vector4 fill, float weight, Vector4 outline) + { + SetNextMarkerStyleNative(marker, size, fill, weight, outline); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(ImPlotMarker marker, float size, Vector4 fill, float weight) + { + SetNextMarkerStyleNative(marker, size, fill, weight, (Vector4)(new Vector4(0,0,0,-1))); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(ImPlotMarker marker, float size, Vector4 fill) + { + SetNextMarkerStyleNative(marker, size, fill, (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(ImPlotMarker marker, float size) + { + SetNextMarkerStyleNative(marker, size, (Vector4)(new Vector4(0,0,0,-1)), (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(ImPlotMarker marker) + { + SetNextMarkerStyleNative(marker, (float)(-1), (Vector4)(new Vector4(0,0,0,-1)), (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle() + { + SetNextMarkerStyleNative((ImPlotMarker)(-1), (float)(-1), (Vector4)(new Vector4(0,0,0,-1)), (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(float size) + { + SetNextMarkerStyleNative((ImPlotMarker)(-1), size, (Vector4)(new Vector4(0,0,0,-1)), (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(ImPlotMarker marker, Vector4 fill) + { + SetNextMarkerStyleNative(marker, (float)(-1), fill, (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(Vector4 fill) + { + SetNextMarkerStyleNative((ImPlotMarker)(-1), (float)(-1), fill, (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(float size, Vector4 fill) + { + SetNextMarkerStyleNative((ImPlotMarker)(-1), size, fill, (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(ImPlotMarker marker, float size, float weight) + { + SetNextMarkerStyleNative(marker, size, (Vector4)(new Vector4(0,0,0,-1)), weight, (Vector4)(new Vector4(0,0,0,-1))); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(float size, float weight) + { + SetNextMarkerStyleNative((ImPlotMarker)(-1), size, (Vector4)(new Vector4(0,0,0,-1)), weight, (Vector4)(new Vector4(0,0,0,-1))); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(ImPlotMarker marker, Vector4 fill, float weight) + { + SetNextMarkerStyleNative(marker, (float)(-1), fill, weight, (Vector4)(new Vector4(0,0,0,-1))); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(Vector4 fill, float weight) + { + SetNextMarkerStyleNative((ImPlotMarker)(-1), (float)(-1), fill, weight, (Vector4)(new Vector4(0,0,0,-1))); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(float size, Vector4 fill, float weight) + { + SetNextMarkerStyleNative((ImPlotMarker)(-1), size, fill, weight, (Vector4)(new Vector4(0,0,0,-1))); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(ImPlotMarker marker, float size, Vector4 fill, Vector4 outline) + { + SetNextMarkerStyleNative(marker, size, fill, (float)(-1), outline); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(ImPlotMarker marker, Vector4 fill, Vector4 outline) + { + SetNextMarkerStyleNative(marker, (float)(-1), fill, (float)(-1), outline); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(Vector4 fill, Vector4 outline) + { + SetNextMarkerStyleNative((ImPlotMarker)(-1), (float)(-1), fill, (float)(-1), outline); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(float size, Vector4 fill, Vector4 outline) + { + SetNextMarkerStyleNative((ImPlotMarker)(-1), size, fill, (float)(-1), outline); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(ImPlotMarker marker, float size, float weight, Vector4 outline) + { + SetNextMarkerStyleNative(marker, size, (Vector4)(new Vector4(0,0,0,-1)), weight, outline); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(float size, float weight, Vector4 outline) + { + SetNextMarkerStyleNative((ImPlotMarker)(-1), size, (Vector4)(new Vector4(0,0,0,-1)), weight, outline); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(ImPlotMarker marker, Vector4 fill, float weight, Vector4 outline) + { + SetNextMarkerStyleNative(marker, (float)(-1), fill, weight, outline); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(Vector4 fill, float weight, Vector4 outline) + { + SetNextMarkerStyleNative((ImPlotMarker)(-1), (float)(-1), fill, weight, outline); + } + + /// + /// To be documented. + /// + public static void SetNextMarkerStyle(float size, Vector4 fill, float weight, Vector4 outline) + { + SetNextMarkerStyleNative((ImPlotMarker)(-1), size, fill, weight, outline); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetNextErrorBarStyleNative(Vector4 col, float size, float weight) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[336])(col, size, weight); + #else + ((delegate* unmanaged[Cdecl])funcTable[336])(col, size, weight); + #endif + } + + /// + /// To be documented. + /// + public static void SetNextErrorBarStyle(Vector4 col, float size, float weight) + { + SetNextErrorBarStyleNative(col, size, weight); + } + + /// + /// To be documented. + /// + public static void SetNextErrorBarStyle(Vector4 col, float size) + { + SetNextErrorBarStyleNative(col, size, (float)(-1)); + } + + /// + /// To be documented. + /// + public static void SetNextErrorBarStyle(Vector4 col) + { + SetNextErrorBarStyleNative(col, (float)(-1), (float)(-1)); + } + + /// + /// To be documented. + /// + public static void SetNextErrorBarStyle() + { + SetNextErrorBarStyleNative((Vector4)(new Vector4(0,0,0,-1)), (float)(-1), (float)(-1)); + } + + /// + /// To be documented. + /// + public static void SetNextErrorBarStyle(float size) + { + SetNextErrorBarStyleNative((Vector4)(new Vector4(0,0,0,-1)), size, (float)(-1)); + } + + /// + /// To be documented. + /// + public static void SetNextErrorBarStyle(float size, float weight) + { + SetNextErrorBarStyleNative((Vector4)(new Vector4(0,0,0,-1)), size, weight); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetLastItemColorNative(Vector4* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[337])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[337])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector4 GetLastItemColor() + { + Vector4 ret; + GetLastItemColorNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void GetLastItemColor(Vector4* pOut) + { + GetLastItemColorNative(pOut); + } + + /// + /// To be documented. + /// + public static void GetLastItemColor(ref Vector4 pOut) + { + fixed (Vector4* ppOut = &pOut) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + GetLastItemColorNative((Vector4*)ppOut); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetStyleColorNameNative(ImPlotCol idx) { - fixed (byte* plabelId = &labelId) + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[338])(idx); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[338])(idx); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetStyleColorName(ImPlotCol idx) + { + byte* ret = GetStyleColorNameNative(idx); + return ret; + } + + /// + /// To be documented. + /// + public static string GetStyleColorNameS(ImPlotCol idx) + { + string ret = Utils.DecodeStringUTF8(GetStyleColorNameNative(idx)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetMarkerNameNative(ImPlotMarker idx) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[339])(idx); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[339])(idx); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetMarkerName(ImPlotMarker idx) + { + byte* ret = GetMarkerNameNative(idx); + return ret; + } + + /// + /// To be documented. + /// + public static string GetMarkerNameS(ImPlotMarker idx) + { + string ret = Utils.DecodeStringUTF8(GetMarkerNameNative(idx)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotColormap AddColormapNative(byte* name, Vector4* cols, int size, byte qual) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[340])(name, cols, size, qual); + #else + return (ImPlotColormap)((delegate* unmanaged[Cdecl])funcTable[340])((nint)name, (nint)cols, size, qual); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(byte* name, Vector4* cols, int size, bool qual) + { + ImPlotColormap ret = AddColormapNative(name, cols, size, qual ? (byte)1 : (byte)0); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(byte* name, Vector4* cols, int size) + { + ImPlotColormap ret = AddColormapNative(name, cols, size, (byte)(1)); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(ref byte name, Vector4* cols, int size, bool qual) + { + fixed (byte* pname = &name) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, qual ? (byte)1 : (byte)0); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset, int stride) + public static ImPlotColormap AddColormap(ref byte name, Vector4* cols, int size) { - fixed (byte* plabelId = &labelId) + fixed (byte* pname = &name) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, (byte)(1)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static ImPlotColormap AddColormap(ReadOnlySpan name, Vector4* cols, int size, bool qual) { - fixed (byte* plabelId = labelId) + fixed (byte* pname = name) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, qual ? (byte)1 : (byte)0); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static ImPlotColormap AddColormap(ReadOnlySpan name, Vector4* cols, int size) { - fixed (byte* plabelId = labelId) + fixed (byte* pname = name) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(uint))); + ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, (byte)(1)); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static ImPlotColormap AddColormap(string name, Vector4* cols, int size, bool qual) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (name != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4237,10 +1786,552 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); + ImPlotColormap ret = AddColormapNative(pStr0, cols, size, qual ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(string name, Vector4* cols, int size) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImPlotColormap ret = AddColormapNative(pStr0, cols, size, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(byte* name, ref Vector4 cols, int size, bool qual) + { + fixed (Vector4* pcols = &cols) + { + ImPlotColormap ret = AddColormapNative(name, (Vector4*)pcols, size, qual ? (byte)1 : (byte)0); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(byte* name, ref Vector4 cols, int size) + { + fixed (Vector4* pcols = &cols) + { + ImPlotColormap ret = AddColormapNative(name, (Vector4*)pcols, size, (byte)(1)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(ref byte name, ref Vector4 cols, int size, bool qual) + { + fixed (byte* pname = &name) + { + fixed (Vector4* pcols = &cols) + { + ImPlotColormap ret = AddColormapNative((byte*)pname, (Vector4*)pcols, size, qual ? (byte)1 : (byte)0); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(ref byte name, ref Vector4 cols, int size) + { + fixed (byte* pname = &name) + { + fixed (Vector4* pcols = &cols) + { + ImPlotColormap ret = AddColormapNative((byte*)pname, (Vector4*)pcols, size, (byte)(1)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(ReadOnlySpan name, ref Vector4 cols, int size, bool qual) + { + fixed (byte* pname = name) + { + fixed (Vector4* pcols = &cols) + { + ImPlotColormap ret = AddColormapNative((byte*)pname, (Vector4*)pcols, size, qual ? (byte)1 : (byte)0); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(ReadOnlySpan name, ref Vector4 cols, int size) + { + fixed (byte* pname = name) + { + fixed (Vector4* pcols = &cols) + { + ImPlotColormap ret = AddColormapNative((byte*)pname, (Vector4*)pcols, size, (byte)(1)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(string name, ref Vector4 cols, int size, bool qual) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcols = &cols) + { + ImPlotColormap ret = AddColormapNative(pStr0, (Vector4*)pcols, size, qual ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(string name, ref Vector4 cols, int size) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcols = &cols) + { + ImPlotColormap ret = AddColormapNative(pStr0, (Vector4*)pcols, size, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotColormap AddColormapNative(byte* name, uint* cols, int size, byte qual) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[341])(name, cols, size, qual); + #else + return (ImPlotColormap)((delegate* unmanaged[Cdecl])funcTable[341])((nint)name, (nint)cols, size, qual); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(byte* name, uint* cols, int size, bool qual) + { + ImPlotColormap ret = AddColormapNative(name, cols, size, qual ? (byte)1 : (byte)0); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(byte* name, uint* cols, int size) + { + ImPlotColormap ret = AddColormapNative(name, cols, size, (byte)(1)); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(ref byte name, uint* cols, int size, bool qual) + { + fixed (byte* pname = &name) + { + ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, qual ? (byte)1 : (byte)0); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(ref byte name, uint* cols, int size) + { + fixed (byte* pname = &name) + { + ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, (byte)(1)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(ReadOnlySpan name, uint* cols, int size, bool qual) + { + fixed (byte* pname = name) + { + ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, qual ? (byte)1 : (byte)0); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(ReadOnlySpan name, uint* cols, int size) + { + fixed (byte* pname = name) + { + ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, (byte)(1)); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(string name, uint* cols, int size, bool qual) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImPlotColormap ret = AddColormapNative(pStr0, cols, size, qual ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotColormap AddColormap(string name, uint* cols, int size) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImPlotColormap ret = AddColormapNative(pStr0, cols, size, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetColormapCountNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[342])(); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[342])(); + #endif + } + + /// + /// To be documented. + /// + public static int GetColormapCount() + { + int ret = GetColormapCountNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetColormapNameNative(ImPlotColormap cmap) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[343])(cmap); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[343])(cmap); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetColormapName(ImPlotColormap cmap) + { + byte* ret = GetColormapNameNative(cmap); + return ret; + } + + /// + /// To be documented. + /// + public static string GetColormapNameS(ImPlotColormap cmap) + { + string ret = Utils.DecodeStringUTF8(GetColormapNameNative(cmap)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotColormap GetColormapIndexNative(byte* name) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[344])(name); + #else + return (ImPlotColormap)((delegate* unmanaged[Cdecl])funcTable[344])((nint)name); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotColormap GetColormapIndex(byte* name) + { + ImPlotColormap ret = GetColormapIndexNative(name); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotColormap GetColormapIndex(ref byte name) + { + fixed (byte* pname = &name) + { + ImPlotColormap ret = GetColormapIndexNative((byte*)pname); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap GetColormapIndex(ReadOnlySpan name) + { + fixed (byte* pname = name) + { + ImPlotColormap ret = GetColormapIndexNative((byte*)pname); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap GetColormapIndex(string name) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImPlotColormap ret = GetColormapIndexNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushColormapNative(ImPlotColormap cmap) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[345])(cmap); + #else + ((delegate* unmanaged[Cdecl])funcTable[345])(cmap); + #endif + } + + /// + /// To be documented. + /// + public static void PushColormap(ImPlotColormap cmap) + { + PushColormapNative(cmap); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushColormapNative(byte* name) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[346])(name); + #else + ((delegate* unmanaged[Cdecl])funcTable[346])((nint)name); + #endif + } + + /// + /// To be documented. + /// + public static void PushColormap(byte* name) + { + PushColormapNative(name); + } + + /// + /// To be documented. + /// + public static void PushColormap(ref byte name) + { + fixed (byte* pname = &name) + { + PushColormapNative((byte*)pname); + } + } + + /// + /// To be documented. + /// + public static void PushColormap(ReadOnlySpan name) + { + fixed (byte* pname = name) + { + PushColormapNative((byte*)pname); + } + } + + /// + /// To be documented. + /// + public static void PushColormap(string name) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PushColormapNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4250,13 +2341,750 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopColormapNative(int count) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[347])(count); + #else + ((delegate* unmanaged[Cdecl])funcTable[347])(count); + #endif + } + + /// + /// To be documented. + /// + public static void PopColormap(int count) + { + PopColormapNative(count); + } + + /// + /// To be documented. + /// + public static void PopColormap() + { + PopColormapNative((int)(1)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void NextColormapColorNative(Vector4* pOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[348])(pOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[348])((nint)pOut); + #endif + } + + /// + /// To be documented. + /// + public static Vector4 NextColormapColor() + { + Vector4 ret; + NextColormapColorNative(&ret); + return ret; + } + + /// + /// To be documented. + /// + public static void NextColormapColor(Vector4* pOut) + { + NextColormapColorNative(pOut); + } + + /// + /// To be documented. + /// + public static void NextColormapColor(ref Vector4 pOut) + { + fixed (Vector4* ppOut = &pOut) + { + NextColormapColorNative((Vector4*)ppOut); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetColormapSizeNative(ImPlotColormap cmap) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[349])(cmap); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[349])(cmap); + #endif + } + + /// + /// To be documented. + /// + public static int GetColormapSize(ImPlotColormap cmap) + { + int ret = GetColormapSizeNative(cmap); + return ret; + } + + /// + /// To be documented. + /// + public static int GetColormapSize() + { + int ret = GetColormapSizeNative((ImPlotColormap)(-1)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetColormapColorNative(Vector4* pOut, int idx, ImPlotColormap cmap) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[350])(pOut, idx, cmap); + #else + ((delegate* unmanaged[Cdecl])funcTable[350])((nint)pOut, idx, cmap); + #endif + } + + /// + /// To be documented. + /// + public static Vector4 GetColormapColor(int idx) + { + Vector4 ret; + GetColormapColorNative(&ret, idx, (ImPlotColormap)(-1)); + return ret; + } + + /// + /// To be documented. + /// + public static Vector4 GetColormapColor(int idx, ImPlotColormap cmap) + { + Vector4 ret; + GetColormapColorNative(&ret, idx, cmap); + return ret; + } + + /// + /// To be documented. + /// + public static void GetColormapColor(Vector4* pOut, int idx, ImPlotColormap cmap) + { + GetColormapColorNative(pOut, idx, cmap); + } + + /// + /// To be documented. + /// + public static void GetColormapColor(Vector4* pOut, int idx) + { + GetColormapColorNative(pOut, idx, (ImPlotColormap)(-1)); + } + + /// + /// To be documented. + /// + public static void GetColormapColor(ref Vector4 pOut, int idx, ImPlotColormap cmap) + { + fixed (Vector4* ppOut = &pOut) + { + GetColormapColorNative((Vector4*)ppOut, idx, cmap); + } + } + + /// + /// To be documented. + /// + public static void GetColormapColor(ref Vector4 pOut, int idx) + { + fixed (Vector4* ppOut = &pOut) + { + GetColormapColorNative((Vector4*)ppOut, idx, (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SampleColormapNative(Vector4* pOut, float t, ImPlotColormap cmap) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[351])(pOut, t, cmap); + #else + ((delegate* unmanaged[Cdecl])funcTable[351])((nint)pOut, t, cmap); + #endif + } + + /// + /// To be documented. + /// + public static Vector4 SampleColormap(float t) + { + Vector4 ret; + SampleColormapNative(&ret, t, (ImPlotColormap)(-1)); + return ret; + } + + /// + /// To be documented. + /// + public static Vector4 SampleColormap(float t, ImPlotColormap cmap) + { + Vector4 ret; + SampleColormapNative(&ret, t, cmap); + return ret; + } + + /// + /// To be documented. + /// + public static void SampleColormap(Vector4* pOut, float t, ImPlotColormap cmap) + { + SampleColormapNative(pOut, t, cmap); + } + + /// + /// To be documented. + /// + public static void SampleColormap(Vector4* pOut, float t) + { + SampleColormapNative(pOut, t, (ImPlotColormap)(-1)); + } + + /// + /// To be documented. + /// + public static void SampleColormap(ref Vector4 pOut, float t, ImPlotColormap cmap) + { + fixed (Vector4* ppOut = &pOut) + { + SampleColormapNative((Vector4*)ppOut, t, cmap); + } + } + + /// + /// To be documented. + /// + public static void SampleColormap(ref Vector4 pOut, float t) + { + fixed (Vector4* ppOut = &pOut) + { + SampleColormapNative((Vector4*)ppOut, t, (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ColormapScaleNative(byte* label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[352])(label, scaleMin, scaleMax, size, format, flags, cmap); + #else + ((delegate* unmanaged[Cdecl])funcTable[352])((nint)label, scaleMin, scaleMax, size, (nint)format, flags, cmap); + #endif + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + ColormapScaleNative(label, scaleMin, scaleMax, size, format, flags, cmap); + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags) + { + ColormapScaleNative(label, scaleMin, scaleMax, size, format, flags, (ImPlotColormap)(-1)); + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, byte* format) + { + ColormapScaleNative(label, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size) + { + ColormapScale(label, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax) + { + ColormapScale(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, byte* format) + { + ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags) + { + ColormapScale(label, scaleMin, scaleMax, size, (string)"%g", flags, (ImPlotColormap)(-1)); + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags) + { + ColormapScale(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, (ImPlotColormap)(-1)); + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags) + { + ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, (ImPlotColormap)(-1)); + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormap cmap) + { + ColormapScaleNative(label, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), cmap); + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormap cmap) + { + ColormapScale(label, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ImPlotColormap cmap) + { + ColormapScale(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, byte* format, ImPlotColormap cmap) + { + ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), cmap); + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + ColormapScale(label, scaleMin, scaleMax, size, (string)"%g", flags, cmap); + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + ColormapScale(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, cmap); + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, cmap); + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, flags, cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags) + { + fixed (byte* plabel = &label) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, flags, (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, byte* format) + { + fixed (byte* plabel = &label) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size) + { + fixed (byte* plabel = &label) + { + ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax) + { + fixed (byte* plabel = &label) + { + ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, byte* format) + { + fixed (byte* plabel = &label) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags) + { + fixed (byte* plabel = &label) + { + ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", flags, (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags) + { + fixed (byte* plabel = &label) + { + ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags) + { + fixed (byte* plabel = &label) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, byte* format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", flags, cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, flags, cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags) + { + fixed (byte* plabel = label) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, flags, (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, byte* format) + { + fixed (byte* plabel = label) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size) + { + fixed (byte* plabel = label) + { + ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax) + { + fixed (byte* plabel = label) + { + ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, byte* format) + { + fixed (byte* plabel = label) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags) + { + fixed (byte* plabel = label) + { + ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", flags, (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags) + { + fixed (byte* plabel = label) + { + ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags) + { + fixed (byte* plabel = label) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, byte* format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", flags, cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4266,10 +3094,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(uint))); + ColormapScaleNative(pStr0, scaleMin, scaleMax, size, format, flags, cmap); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4279,13 +3107,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4295,10 +3123,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); + ColormapScaleNative(pStr0, scaleMin, scaleMax, size, format, flags, (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4308,13 +3136,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count) + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, byte* format) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4324,10 +3152,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + ColormapScaleNative(pStr0, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4337,13 +3165,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset) + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4353,10 +3181,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + ColormapScale(pStr0, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4366,13 +3194,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset, int stride) + public static void ColormapScale(string label, double scaleMin, double scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4382,10 +3210,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + ColormapScale(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4395,247 +3223,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, int offset) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void ColormapScale(string label, double scaleMin, double scaleMax, byte* format) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4645,12 +3239,1475 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, neg, pos, count, flags, offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScale(pStr0, scaleMin, scaleMax, size, (string)"%g", flags, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScale(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScaleNative(pStr0, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScale(pStr0, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScale(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, byte* format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScale(pStr0, scaleMin, scaleMax, size, (string)"%g", flags, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScale(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* pformat = &format) + { + ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags) + { + fixed (byte* pformat = &format) + { + ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ref byte format) + { + fixed (byte* pformat = &format) + { + ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ref byte format) + { + fixed (byte* pformat = &format) + { + ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags) + { + fixed (byte* pformat = &format) + { + ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormap cmap) + { + fixed (byte* pformat = &format) + { + ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ref byte format, ImPlotColormap cmap) + { + fixed (byte* pformat = &format) + { + ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* pformat = &format) + { + ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* pformat = format) + { + ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormapScaleFlags flags) + { + fixed (byte* pformat = format) + { + ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormapScaleFlags flags) + { + fixed (byte* pformat = format) + { + ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* pformat = format) + { + ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* pformat = format) + { + ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* pformat = format) + { + ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScaleNative(label, scaleMin, scaleMax, size, pStr0, flags, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScaleNative(label, scaleMin, scaleMax, size, pStr0, flags, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScaleNative(label, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScaleNative(label, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, string format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(byte* label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ref byte format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormapScaleFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormapScaleFlags flags) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ColormapScaleNative(pStr0, scaleMin, scaleMax, size, pStr1, flags, cmap); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ColormapScaleNative(pStr0, scaleMin, scaleMax, size, pStr1, flags, (ImPlotColormap)(-1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ColormapScaleNative(pStr0, scaleMin, scaleMax, size, pStr1, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr1, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr1, flags, (ImPlotColormap)(-1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ColormapScaleNative(pStr0, scaleMin, scaleMax, size, pStr1, (ImPlotColormapScaleFlags)(0), cmap); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, string format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr1, (ImPlotColormapScaleFlags)(0), cmap); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr1, flags, cmap); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormapScaleFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormapScaleFlags flags) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, flags, cmap); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4661,28 +4718,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = &label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(uint))); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, flags, (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4693,28 +4750,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = &label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4725,28 +4782,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count) + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = &label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4757,28 +4814,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, int offset) + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = &label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4789,28 +4846,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* neg, uint* pos, int count, int offset, int stride) + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormap cmap) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = &label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), cmap); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4821,79 +4878,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, string format, ImPlotColormap cmap) { - fixed (uint* pys = &ys) + fixed (byte* plabel = &label) { - PlotErrorBarsNative(labelId, xs, (uint*)pys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, neg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, int offset) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, int offset, int stride) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, pos, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4901,13 +4910,31 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabel = &label) { - fixed (uint* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, pos, count, flags, offset, (int)(sizeof(uint))); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -4915,13 +4942,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabel = label) { - fixed (uint* pys = &ys) + fixed (byte* pformat = &format) { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); } } } @@ -4929,13 +4956,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count) + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabel = label) { - fixed (uint* pys = &ys) + fixed (byte* pformat = &format) { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); } } } @@ -4943,13 +4970,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, int offset) + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ref byte format) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabel = label) { - fixed (uint* pys = &ys) + fixed (byte* pformat = &format) { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); } } } @@ -4957,13 +4984,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, int offset, int stride) + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ref byte format) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabel = label) { - fixed (uint* pys = &ys) + fixed (byte* pformat = &format) { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); } } } @@ -4971,13 +4998,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags) { - fixed (byte* plabelId = labelId) + fixed (byte* plabel = label) { - fixed (uint* pys = &ys) + fixed (byte* pformat = &format) { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, pos, count, flags, offset, stride); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); } } } @@ -4985,41 +5012,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormap cmap) { - fixed (byte* plabelId = labelId) + fixed (byte* plabel = label) { - fixed (uint* pys = &ys) + fixed (byte* pformat = &format) { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.066.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.066.cs index 86e1194cc..4e7748ef9 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.066.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.066.cs @@ -22,13 +22,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, int offset) + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ref byte format, ImPlotColormap cmap) { - fixed (byte* plabelId = labelId) + fixed (byte* plabel = label) { - fixed (uint* pys = &ys) + fixed (byte* pformat = &format) { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); } } } @@ -36,13 +36,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, int offset, int stride) + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) { - fixed (byte* plabelId = labelId) + fixed (byte* plabel = label) { - fixed (uint* pys = &ys) + fixed (byte* pformat = &format) { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); } } } @@ -50,28 +50,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, neg, pos, count, flags, offset, stride); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, flags, cmap); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -82,28 +82,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, neg, pos, count, flags, offset, (int)(sizeof(uint))); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, flags, (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -114,28 +114,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -146,28 +146,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count) + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -178,28 +178,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, int offset) + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -210,28 +210,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* neg, uint* pos, int count, int offset, int stride) + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormap cmap) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), cmap); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -242,760 +242,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, string format, ImPlotColormap cmap) { - fixed (uint* pxs = &xs) + fixed (byte* plabel = label) { - fixed (uint* pys = &ys) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, neg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, neg, pos, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, neg, pos, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* neg, uint* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)pneg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)pneg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)pneg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, int offset) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, int offset, int stride) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)pneg, pos, count, flags, offset, stride); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), cmap); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1006,28 +274,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)pneg, pos, count, flags, offset, (int)(sizeof(uint))); + ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, cmap); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1038,13 +306,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags) + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1054,12 +322,12 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pneg = &neg) + fixed (byte* pformat = &format) { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)pneg, pos, count, flags, (int)(0), (int)(sizeof(uint))); + ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1070,13 +338,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count) + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1086,12 +354,12 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pneg = &neg) + fixed (byte* pformat = &format) { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1102,13 +370,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, int offset) + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ref byte format) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1118,12 +386,12 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pneg = &neg) + fixed (byte* pformat = &format) { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1134,13 +402,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint neg, uint* pos, int count, int offset, int stride) + public static void ColormapScale(string label, double scaleMin, double scaleMax, ref byte format) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1150,12 +418,12 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pneg = &neg) + fixed (byte* pformat = &format) { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1166,301 +434,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)pneg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)pneg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void ColormapScale(string label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1470,18 +450,2024 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + fixed (byte* pformat = &format) { - fixed (uint* pneg = &neg) + ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)pneg, pos, count, flags, offset, stride); + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = &format) + { + ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, ref byte format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = &format) + { + ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = &format) + { + ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormapScaleFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, ReadOnlySpan format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormapScaleFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void ColormapScale(string label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ColormapSliderNative(byte* label, float* t, Vector4* output, byte* format, ImPlotColormap cmap) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[353])(label, t, output, format, cmap); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[353])((nint)label, (nint)t, (nint)output, (nint)format, cmap); + #endif + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, Vector4* output, byte* format, ImPlotColormap cmap) + { + byte ret = ColormapSliderNative(label, t, output, format, cmap); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, Vector4* output, byte* format) + { + byte ret = ColormapSliderNative(label, t, output, format, (ImPlotColormap)(-1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, Vector4* output) + { + bool ret = ColormapSlider(label, t, output, (string)"", (ImPlotColormap)(-1)); + return ret; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t) + { + bool ret = ColormapSlider(label, t, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); + return ret; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, byte* format) + { + byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, Vector4* output, ImPlotColormap cmap) + { + bool ret = ColormapSlider(label, t, output, (string)"", cmap); + return ret; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, ImPlotColormap cmap) + { + bool ret = ColormapSlider(label, t, (Vector4*)(((void*)0)), (string)"", cmap); + return ret; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, byte* format, ImPlotColormap cmap) + { + byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), format, cmap); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, Vector4* output, byte* format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + byte ret = ColormapSliderNative((byte*)plabel, t, output, format, cmap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, Vector4* output, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = ColormapSliderNative((byte*)plabel, t, output, format, (ImPlotColormap)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, Vector4* output) + { + fixed (byte* plabel = &label) + { + bool ret = ColormapSlider((byte*)plabel, t, output, (string)"", (ImPlotColormap)(-1)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t) + { + fixed (byte* plabel = &label) + { + bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, byte* format) + { + fixed (byte* plabel = &label) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, Vector4* output, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + bool ret = ColormapSlider((byte*)plabel, t, output, (string)"", cmap); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)(((void*)0)), (string)"", cmap); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, byte* format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), format, cmap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, byte* format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + byte ret = ColormapSliderNative((byte*)plabel, t, output, format, cmap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = ColormapSliderNative((byte*)plabel, t, output, format, (ImPlotColormap)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output) + { + fixed (byte* plabel = label) + { + bool ret = ColormapSlider((byte*)plabel, t, output, (string)"", (ImPlotColormap)(-1)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t) + { + fixed (byte* plabel = label) + { + bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, byte* format) + { + fixed (byte* plabel = label) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + bool ret = ColormapSlider((byte*)plabel, t, output, (string)"", cmap); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)(((void*)0)), (string)"", cmap); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, byte* format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), format, cmap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, Vector4* output, byte* format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative(pStr0, t, output, format, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, Vector4* output, byte* format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative(pStr0, t, output, format, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, Vector4* output) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + bool ret = ColormapSlider(pStr0, t, output, (string)"", (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + bool ret = ColormapSlider(pStr0, t, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, byte* format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, Vector4* output, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + bool ret = ColormapSlider(pStr0, t, output, (string)"", cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + bool ret = ColormapSlider(pStr0, t, (Vector4*)(((void*)0)), (string)"", cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, byte* format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), format, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, Vector4* output, byte* format, ImPlotColormap cmap) + { + fixed (float* pt = &t) + { + byte ret = ColormapSliderNative(label, (float*)pt, output, format, cmap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, Vector4* output, byte* format) + { + fixed (float* pt = &t) + { + byte ret = ColormapSliderNative(label, (float*)pt, output, format, (ImPlotColormap)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, Vector4* output) + { + fixed (float* pt = &t) + { + bool ret = ColormapSlider(label, (float*)pt, output, (string)"", (ImPlotColormap)(-1)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t) + { + fixed (float* pt = &t) + { + bool ret = ColormapSlider(label, (float*)pt, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, byte* format) + { + fixed (float* pt = &t) + { + byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, Vector4* output, ImPlotColormap cmap) + { + fixed (float* pt = &t) + { + bool ret = ColormapSlider(label, (float*)pt, output, (string)"", cmap); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, ImPlotColormap cmap) + { + fixed (float* pt = &t) + { + bool ret = ColormapSlider(label, (float*)pt, (Vector4*)(((void*)0)), (string)"", cmap); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, byte* format, ImPlotColormap cmap) + { + fixed (float* pt = &t) + { + byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), format, cmap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, byte* format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, format, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, format, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, Vector4* output) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + bool ret = ColormapSlider((byte*)plabel, (float*)pt, output, (string)"", (ImPlotColormap)(-1)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + bool ret = ColormapSlider((byte*)plabel, (float*)pt, output, (string)"", cmap); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (string)"", cmap); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, byte* format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), format, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, byte* format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, format, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, format, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + bool ret = ColormapSlider((byte*)plabel, (float*)pt, output, (string)"", (ImPlotColormap)(-1)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + bool ret = ColormapSlider((byte*)plabel, (float*)pt, output, (string)"", cmap); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (string)"", cmap); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, byte* format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), format, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, Vector4* output, byte* format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + byte ret = ColormapSliderNative(pStr0, (float*)pt, output, format, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, Vector4* output, byte* format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + byte ret = ColormapSliderNative(pStr0, (float*)pt, output, format, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, Vector4* output) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + bool ret = ColormapSlider(pStr0, (float*)pt, output, (string)"", (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + bool ret = ColormapSlider(pStr0, (float*)pt, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, byte* format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, Vector4* output, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + bool ret = ColormapSlider(pStr0, (float*)pt, output, (string)"", cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + bool ret = ColormapSlider(pStr0, (float*)pt, (Vector4*)(((void*)0)), (string)"", cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, byte* format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), format, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, byte* format, ImPlotColormap cmap) + { + fixed (Vector4* poutput = &output) + { + byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, format, cmap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, byte* format) + { + fixed (Vector4* poutput = &output) + { + byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, format, (ImPlotColormap)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, ref Vector4 output) + { + fixed (Vector4* poutput = &output) + { + bool ret = ColormapSlider(label, t, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, ImPlotColormap cmap) + { + fixed (Vector4* poutput = &output) + { + bool ret = ColormapSlider(label, t, (Vector4*)poutput, (string)"", cmap); + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, byte* format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (Vector4* poutput = &output) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, format, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (Vector4* poutput = &output) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, format, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output) + { + fixed (byte* plabel = &label) + { + fixed (Vector4* poutput = &output) + { + bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (Vector4* poutput = &output) + { + bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)poutput, (string)"", cmap); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, byte* format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (Vector4* poutput = &output) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, format, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, byte* format) + { + fixed (byte* plabel = label) + { + fixed (Vector4* poutput = &output) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, format, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output) + { + fixed (byte* plabel = label) + { + fixed (Vector4* poutput = &output) + { + bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (Vector4* poutput = &output) + { + bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)poutput, (string)"", cmap); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, ref Vector4 output, byte* format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* poutput = &output) + { + byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, format, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, ref Vector4 output, byte* format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* poutput = &output) + { + byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, format, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, ref Vector4 output) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* poutput = &output) + { + bool ret = ColormapSlider(pStr0, t, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, ref Vector4 output, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* poutput = &output) + { + bool ret = ColormapSlider(pStr0, t, (Vector4*)poutput, (string)"", cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, byte* format, ImPlotColormap cmap) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, format, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, byte* format) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, format, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + bool ret = ColormapSlider(label, (float*)pt, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, ImPlotColormap cmap) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + bool ret = ColormapSlider(label, (float*)pt, (Vector4*)poutput, (string)"", cmap); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, byte* format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, format, cmap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, byte* format) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, format, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)poutput, (string)"", cmap); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, byte* format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, format, cmap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, byte* format) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, format, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)poutput, (string)"", cmap); + return ret; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, ref Vector4 output, byte* format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, format, cmap); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } } } @@ -1489,13 +2475,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static bool ColormapSlider(string label, ref float t, ref Vector4 output, byte* format) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1505,18 +2491,19 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + fixed (float* pt = &t) { - fixed (uint* pneg = &neg) + fixed (Vector4* poutput = &output) { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)pneg, pos, count, flags, offset, (int)(sizeof(uint))); + byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, format, (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } } } @@ -1524,13 +2511,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags) + public static bool ColormapSlider(string label, ref float t, ref Vector4 output) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1540,18 +2527,19 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + fixed (float* pt = &t) { - fixed (uint* pneg = &neg) + fixed (Vector4* poutput = &output) { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)pneg, pos, count, flags, (int)(0), (int)(sizeof(uint))); + bool ret = ColormapSlider(pStr0, (float*)pt, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } } @@ -1559,13 +2547,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count) + public static bool ColormapSlider(string label, ref float t, ref Vector4 output, ImPlotColormap cmap) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1575,18 +2563,19 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + fixed (float* pt = &t) { - fixed (uint* pneg = &neg) + fixed (Vector4* poutput = &output) { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + bool ret = ColormapSlider(pStr0, (float*)pt, (Vector4*)poutput, (string)"", cmap); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } } @@ -1594,13 +2583,109 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, int offset) + public static bool ColormapSlider(byte* label, float* t, Vector4* output, ref byte format, ImPlotColormap cmap) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(label, t, output, (byte*)pformat, cmap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, Vector4* output, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(label, t, output, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, ref byte format, ImPlotColormap cmap) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, Vector4* output, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(label, t, output, (byte*)pformat, cmap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, Vector4* output, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(label, t, output, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, ReadOnlySpan format) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, Vector4* output, string format, ImPlotColormap cmap) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1610,411 +2695,634 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + byte ret = ColormapSliderNative(label, t, output, pStr0, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (uint* pneg = &neg) + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, Vector4* output, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative(label, t, output, pStr0, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, string format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), pStr0, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, Vector4* output, ref byte format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, Vector4* output, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, ref byte format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, Vector4* output, string format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = ColormapSliderNative(pStr0, t, output, pStr1, cmap); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, Vector4* output, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = ColormapSliderNative(pStr0, t, output, pStr1, (ImPlotColormap)(-1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), pStr1, (ImPlotColormap)(-1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, string format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), pStr1, cmap); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, Vector4* output, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, Vector4* output, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, Vector4* output, string format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = ColormapSliderNative((byte*)plabel, t, output, pStr0, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint neg, uint* pos, int count, int offset, int stride) + public static bool ColormapSlider(ref byte label, float* t, Vector4* output, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = &label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)pneg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)pneg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, int offset) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, int offset, int stride) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) + else { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, pos, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + byte ret = ColormapSliderNative((byte*)plabel, t, output, pStr0, (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + Utils.Free(pStr0); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - fixed (uint* pys = &ys) + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, string format) + { + fixed (byte* plabel = &label) { - fixed (uint* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)pneg, pos, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static bool ColormapSlider(ref byte label, float* t, string format, ImPlotColormap cmap) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = &label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)pneg, pos, count, flags, offset, (int)(sizeof(uint))); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), pStr0, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, ref byte format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, cmap); + return ret != 0; } } } @@ -2022,495 +3330,190 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags) + public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (uint* pys = &ys) + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, ref byte format) + { + fixed (byte* plabel = label) { - fixed (uint* pneg = &neg) + fixed (byte* pformat = &format) { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)pneg, pos, count, flags, (int)(0), (int)(sizeof(uint))); + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, ref byte format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, string format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = ColormapSliderNative((byte*)plabel, t, output, pStr0, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count) + public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = ColormapSliderNative((byte*)plabel, t, output, pStr0, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, int offset) + public static bool ColormapSlider(ReadOnlySpan label, float* t, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint neg, uint* pos, int count, int offset, int stride) + public static bool ColormapSlider(ReadOnlySpan label, float* t, string format, ImPlotColormap cmap) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) + else { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), pStr0, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, flags, offset, (int)(sizeof(uint))); - } + Utils.Free(pStr0); } + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static bool ColormapSlider(string label, float* t, Vector4* output, ref byte format, ImPlotColormap cmap) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -2520,21 +3523,967 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + fixed (byte* pformat = &format) { - fixed (uint* pys = &ys) + byte ret = ColormapSliderNative(pStr0, t, output, (byte*)pformat, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (uint* pneg = &neg) + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, Vector4* output, ref byte format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(pStr0, t, output, (byte*)pformat, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, ref byte format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, ref byte format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, Vector4* output, ReadOnlySpan format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(pStr0, t, output, (byte*)pformat, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, Vector4* output, ReadOnlySpan format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(pStr0, t, output, (byte*)pformat, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, ReadOnlySpan format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, ReadOnlySpan format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, Vector4* output, ref byte format, ImPlotColormap cmap) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(label, (float*)pt, output, (byte*)pformat, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, Vector4* output, ref byte format) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(label, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, ref byte format) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, ref byte format, ImPlotColormap cmap) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, Vector4* output, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(label, (float*)pt, output, (byte*)pformat, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, Vector4* output, ReadOnlySpan format) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(label, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, ReadOnlySpan format) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, Vector4* output, string format, ImPlotColormap cmap) + { + fixed (float* pt = &t) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, flags, offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative(label, (float*)pt, output, pStr0, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, Vector4* output, string format) + { + fixed (float* pt = &t) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative(label, (float*)pt, output, pStr0, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, string format) + { + fixed (float* pt = &t) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, string format, ImPlotColormap cmap) + { + fixed (float* pt = &t) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), pStr0, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, ref byte format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, cmap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, ref byte format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, cmap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, Vector4* output, string format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = ColormapSliderNative(pStr0, (float*)pt, output, pStr1, cmap); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, Vector4* output, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = ColormapSliderNative(pStr0, (float*)pt, output, pStr1, (ImPlotColormap)(-1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), pStr1, (ImPlotColormap)(-1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, string format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), pStr1, cmap); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, cmap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, string format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, pStr0, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } } @@ -2542,37 +4491,35 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = &label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pt = &t) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, flags, offset, (int)(sizeof(uint))); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, pStr0, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } } @@ -2580,37 +4527,35 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, ImPlotErrorBarsFlags flags) + public static bool ColormapSlider(ref byte label, ref float t, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = &label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pt = &t) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, flags, (int)(0), (int)(sizeof(uint))); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } } @@ -2618,36 +4563,52 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count) + public static bool ColormapSlider(ref byte label, ref float t, string format, ImPlotColormap cmap) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = &label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pt = &t) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), pStr0, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, ref byte format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, cmap); + return ret != 0; } } } @@ -2656,37 +4617,89 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, int offset) + public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pt = &t) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) + fixed (byte* pformat = &format) { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref byte format) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref byte format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, string format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, pStr0, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } } @@ -2694,786 +4707,35 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint neg, uint* pos, int count, int offset, int stride) + public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pt = &t) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (uint*)ppos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, int offset) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, int offset, int stride) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (uint*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (uint*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (uint*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, ref uint pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, neg, (uint*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, neg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, neg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, neg, (uint*)ppos, count, flags, offset, stride); + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, pStr0, (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } } } @@ -3481,1565 +4743,287 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static bool ColormapSlider(ReadOnlySpan label, ref float t, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pt = &t) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, neg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, neg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, uint* neg, ref uint pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, neg, (uint*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, neg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, neg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, int offset) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, int offset, int stride) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, neg, (uint*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, neg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, neg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, uint* neg, ref uint pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, uint* neg, ref uint pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, neg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)pneg, (uint*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)pneg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)pneg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, int offset) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, int offset, int stride) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)pneg, (uint*)ppos, count, flags, offset, stride); + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, string format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), pStr0, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, Vector4* output, ref byte format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(pStr0, (float*)pt, output, (byte*)pformat, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, Vector4* output, ref byte format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(pStr0, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, ref byte format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, ref byte format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, Vector4* output, ReadOnlySpan format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(pStr0, (float*)pt, output, (byte*)pformat, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, Vector4* output, ReadOnlySpan format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(pStr0, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.067.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.067.cs index a9873d23f..bf4b6eba1 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.067.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.067.cs @@ -22,13 +22,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static bool ColormapSlider(string label, ref float t, ReadOnlySpan format) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -38,18 +38,19 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pneg = &neg) + fixed (float* pt = &t) { - fixed (uint* ppos = &pos) + fixed (byte* pformat = format) { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)pneg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); + byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } } } @@ -57,13 +58,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) + public static bool ColormapSlider(string label, ref float t, ReadOnlySpan format, ImPlotColormap cmap) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -73,18 +74,19 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pneg = &neg) + fixed (float* pt = &t) { - fixed (uint* ppos = &pos) + fixed (byte* pformat = format) { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)pneg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); + byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } } } @@ -92,13 +94,211 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count) + public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, ref byte format, ImPlotColormap cmap) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, (byte*)pformat, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, ref byte format) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, (byte*)pformat, cmap); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, ReadOnlySpan format) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, string format, ImPlotColormap cmap) + { + fixed (Vector4* poutput = &output) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, pStr0, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, string format) + { + fixed (Vector4* poutput = &output) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, ref byte format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, cmap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, cmap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, ref Vector4 output, string format, ImPlotColormap cmap) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -108,18 +308,163 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pneg = &neg) + fixed (Vector4* poutput = &output) { - fixed (uint* ppos = &pos) + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, pStr1, cmap); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, ref Vector4 output, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* poutput = &output) + { + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, pStr1, (ImPlotColormap)(-1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, cmap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, ReadOnlySpan format) + { + fixed (byte* plabel = &label) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, string format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (Vector4* poutput = &output) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, pStr0, cmap); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } } } @@ -127,34 +472,35 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, int offset) + public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = &label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (Vector4* poutput = &output) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } } } @@ -162,34 +508,71 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, ref uint neg, ref uint pos, int count, int offset, int stride) + public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, ref byte format, ImPlotColormap cmap) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (Vector4* poutput = &output) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, cmap); + return ret != 0; + } } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (uint* pneg = &neg) + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, ref byte format) + { + fixed (byte* plabel = label) { - fixed (uint* ppos = &pos) + fixed (Vector4* poutput = &output) { - PlotErrorBarsNative(pStr0, xs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, string format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (Vector4* poutput = &output) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, pStr0, cmap); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } } } @@ -197,379 +580,35 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, string format) { - fixed (uint* pxs = &xs) + fixed (byte* plabel = label) { - fixed (uint* pneg = &neg) + fixed (Vector4* poutput = &output) { - fixed (uint* ppos = &pos) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } } @@ -577,13 +616,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static bool ColormapSlider(string label, float* t, ref Vector4 output, ref byte format, ImPlotColormap cmap) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -593,21 +632,235 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + fixed (Vector4* poutput = &output) { - fixed (uint* pneg = &neg) + fixed (byte* pformat = &format) { - fixed (uint* ppos = &pos) + byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, (byte*)pformat, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, ref Vector4 output, ref byte format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, ref Vector4 output, ReadOnlySpan format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, (byte*)pformat, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, float* t, ref Vector4 output, ReadOnlySpan format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, ref byte format, ImPlotColormap cmap) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, ref byte format) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, ReadOnlySpan format) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, string format, ImPlotColormap cmap) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, pStr0, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } } @@ -615,35 +868,54 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) + public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (float* pt = &t) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (Vector4* poutput = &output) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, ref byte format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); + return ret != 0; } } } @@ -653,13 +925,76 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count) + public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, ref byte format) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, ReadOnlySpan format) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, ref Vector4 output, string format, ImPlotColormap cmap) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -669,21 +1004,40 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + fixed (float* pt = &t) { - fixed (uint* pneg = &neg) + fixed (Vector4* poutput = &output) { - fixed (uint* ppos = &pos) + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } + byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, pStr1, cmap); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } } @@ -691,13 +1045,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, int offset) + public static bool ColormapSlider(string label, ref float t, ref Vector4 output, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -707,19 +1061,59 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + fixed (float* pt = &t) { - fixed (uint* pneg = &neg) + fixed (Vector4* poutput = &output) { - fixed (uint* ppos = &pos) + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, pStr1, (ImPlotColormap)(-1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, ReadOnlySpan format, ImPlotColormap cmap) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); + return ret != 0; } } } @@ -729,35 +1123,18 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, uint* ys, ref uint neg, ref uint pos, int count, int offset, int stride) + public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, ReadOnlySpan format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = &label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pt = &t) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) + fixed (Vector4* poutput = &output) { - PlotErrorBarsNative(pStr0, (uint*)pxs, ys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = format) { - Utils.Free(pStr0); + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; } } } @@ -767,1004 +1144,96 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, string format, ImPlotColormap cmap) { - fixed (uint* pys = &ys) + fixed (byte* plabel = &label) { - fixed (uint* pneg = &neg) + fixed (float* pt = &t) { - fixed (uint* ppos = &pos) + fixed (Vector4* poutput = &output) { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, int offset) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, int offset, int stride) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, uint* xs, ref uint ys, ref uint neg, ref uint pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(labelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) - { - fixed (uint* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, pStr0, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, string format) + { + fixed (byte* plabel = &label) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, ref byte format, ImPlotColormap cmap) + { + fixed (byte* plabel = label) + { + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = &format) + { + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); + return ret != 0; } } } @@ -1774,38 +1243,18 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pt = &t) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) + fixed (Vector4* poutput = &output) { - fixed (uint* ppos = &pos) + fixed (byte* pformat = &format) { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); + return ret != 0; } } } @@ -1815,39 +1264,37 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, ImPlotErrorBarsFlags flags) + public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, string format, ImPlotColormap cmap) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pt = &t) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) + fixed (Vector4* poutput = &output) { - fixed (uint* ppos = &pos) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, flags, (int)(0), (int)(sizeof(uint))); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, pStr0, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } } @@ -1856,39 +1303,37 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count) + public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* plabel = label) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pt = &t) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - fixed (uint* pneg = &neg) + fixed (Vector4* poutput = &output) { - fixed (uint* ppos = &pos) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } } @@ -1897,13 +1342,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, int offset) + public static bool ColormapSlider(string label, ref float t, ref Vector4 output, ref byte format, ImPlotColormap cmap) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1913,23 +1358,21 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + fixed (float* pt = &t) { - fixed (uint* pys = &ys) + fixed (Vector4* poutput = &output) { - fixed (uint* pneg = &neg) + fixed (byte* pformat = &format) { - fixed (uint* ppos = &pos) + byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret != 0; } } } @@ -1938,13 +1381,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref uint xs, ref uint ys, ref uint neg, ref uint pos, int count, int offset, int stride) + public static bool ColormapSlider(string label, ref float t, ref Vector4 output, ref byte format) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1954,23 +1397,99 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (uint* pxs = &xs) + fixed (float* pt = &t) { - fixed (uint* pys = &ys) + fixed (Vector4* poutput = &output) { - fixed (uint* pneg = &neg) + fixed (byte* pformat = &format) { - fixed (uint* ppos = &pos) + byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (uint*)pxs, (uint*)pys, (uint*)pneg, (uint*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, ref Vector4 output, ReadOnlySpan format, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ColormapSlider(string label, ref float t, ref Vector4 output, ReadOnlySpan format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (float* pt = &t) + { + fixed (Vector4* poutput = &output) + { + fixed (byte* pformat = format) + { + byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } } @@ -1980,205 +1499,157 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + internal static byte ColormapButtonNative(byte* label, Vector2 size, ImPlotColormap cmap) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[179])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + return ((delegate* unmanaged[Cdecl])funcTable[354])(label, size, cmap); #else - ((delegate* unmanaged[Cdecl])funcTable[179])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + return (byte)((delegate* unmanaged[Cdecl])funcTable[354])((nint)label, size, cmap); #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static bool ColormapButton(byte* label, Vector2 size, ImPlotColormap cmap) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); + byte ret = ColormapButtonNative(label, size, cmap); + return ret != 0; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static bool ColormapButton(byte* label, Vector2 size) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(long))); + byte ret = ColormapButtonNative(label, size, (ImPlotColormap)(-1)); + return ret != 0; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) + public static bool ColormapButton(byte* label) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); + byte ret = ColormapButtonNative(label, (Vector2)(new Vector2(0,0)), (ImPlotColormap)(-1)); + return ret != 0; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count) + public static bool ColormapButton(byte* label, ImPlotColormap cmap) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); + byte ret = ColormapButtonNative(label, (Vector2)(new Vector2(0,0)), cmap); + return ret != 0; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset) + public static bool ColormapButton(ref byte label, Vector2 size, ImPlotColormap cmap) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) + fixed (byte* plabel = &label) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + byte ret = ColormapButtonNative((byte*)plabel, size, cmap); + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static bool ColormapButton(ref byte label, Vector2 size) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabel = &label) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(long))); + byte ret = ColormapButtonNative((byte*)plabel, size, (ImPlotColormap)(-1)); + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) + public static bool ColormapButton(ref byte label) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabel = &label) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); + byte ret = ColormapButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0)), (ImPlotColormap)(-1)); + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count) + public static bool ColormapButton(ref byte label, ImPlotColormap cmap) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabel = &label) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); + byte ret = ColormapButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0)), cmap); + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset) + public static bool ColormapButton(ReadOnlySpan label, Vector2 size, ImPlotColormap cmap) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabel = label) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); + byte ret = ColormapButtonNative((byte*)plabel, size, cmap); + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset, int stride) + public static bool ColormapButton(ReadOnlySpan label, Vector2 size) { - fixed (byte* plabelId = &labelId) + fixed (byte* plabel = label) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + byte ret = ColormapButtonNative((byte*)plabel, size, (ImPlotColormap)(-1)); + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static bool ColormapButton(ReadOnlySpan label) { - fixed (byte* plabelId = labelId) + fixed (byte* plabel = label) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + byte ret = ColormapButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0)), (ImPlotColormap)(-1)); + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static bool ColormapButton(ReadOnlySpan label, ImPlotColormap cmap) { - fixed (byte* plabelId = labelId) + fixed (byte* plabel = label) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(long))); + byte ret = ColormapButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0)), cmap); + return ret != 0; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, long* pos, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static bool ColormapButton(string label, Vector2 size, ImPlotColormap cmap) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -2188,10 +1659,181 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); + byte ret = ColormapButtonNative(pStr0, size, cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapButton(string label, Vector2 size) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapButtonNative(pStr0, size, (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapButton(string label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapButtonNative(pStr0, (Vector2)(new Vector2(0,0)), (ImPlotColormap)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ColormapButton(string label, ImPlotColormap cmap) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ColormapButtonNative(pStr0, (Vector2)(new Vector2(0,0)), cmap); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BustColorCacheNative(byte* plotTitleId) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[355])(plotTitleId); + #else + ((delegate* unmanaged[Cdecl])funcTable[355])((nint)plotTitleId); + #endif + } + + /// + /// To be documented. + /// + public static void BustColorCache(byte* plotTitleId) + { + BustColorCacheNative(plotTitleId); + } + + /// + /// To be documented. + /// + public static void BustColorCache() + { + BustColorCacheNative((byte*)(((void*)0))); + } + + /// + /// To be documented. + /// + public static void BustColorCache(ref byte plotTitleId) + { + fixed (byte* pplotTitleId = &plotTitleId) + { + BustColorCacheNative((byte*)pplotTitleId); + } + } + + /// + /// To be documented. + /// + public static void BustColorCache(ReadOnlySpan plotTitleId) + { + fixed (byte* pplotTitleId = plotTitleId) + { + BustColorCacheNative((byte*)pplotTitleId); + } + } + + /// + /// To be documented. + /// + public static void BustColorCache(string plotTitleId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (plotTitleId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(plotTitleId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(plotTitleId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + BustColorCacheNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -2201,13 +1843,296 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotInputMap* GetInputMapNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[356])(); + #else + return (ImPlotInputMap*)((delegate* unmanaged[Cdecl])funcTable[356])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotInputMapPtr GetInputMap() + { + ImPlotInputMapPtr ret = GetInputMapNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void MapInputDefaultNative(ImPlotInputMap* dst) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[357])(dst); + #else + ((delegate* unmanaged[Cdecl])funcTable[357])((nint)dst); + #endif + } + + /// + /// To be documented. + /// + public static void MapInputDefault(ImPlotInputMapPtr dst) + { + MapInputDefaultNative(dst); + } + + /// + /// To be documented. + /// + public static void MapInputDefault() + { + MapInputDefaultNative((ImPlotInputMap*)(((void*)0))); + } + + /// + /// To be documented. + /// + public static void MapInputDefault(ref ImPlotInputMap dst) + { + fixed (ImPlotInputMap* pdst = &dst) + { + MapInputDefaultNative((ImPlotInputMap*)pdst); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void MapInputReverseNative(ImPlotInputMap* dst) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[358])(dst); + #else + ((delegate* unmanaged[Cdecl])funcTable[358])((nint)dst); + #endif + } + + /// + /// To be documented. + /// + public static void MapInputReverse(ImPlotInputMapPtr dst) + { + MapInputReverseNative(dst); + } + + /// + /// To be documented. + /// + public static void MapInputReverse() + { + MapInputReverseNative((ImPlotInputMap*)(((void*)0))); + } + + /// + /// To be documented. + /// + public static void MapInputReverse(ref ImPlotInputMap dst) + { + fixed (ImPlotInputMap* pdst = &dst) + { + MapInputReverseNative((ImPlotInputMap*)pdst); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ItemIconNative(Vector4 col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[359])(col); + #else + ((delegate* unmanaged[Cdecl])funcTable[359])(col); + #endif + } + + /// + /// To be documented. + /// + public static void ItemIcon(Vector4 col) + { + ItemIconNative(col); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ItemIconNative(uint col) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[360])(col); + #else + ((delegate* unmanaged[Cdecl])funcTable[360])(col); + #endif + } + + /// + /// To be documented. + /// + public static void ItemIcon(uint col) + { + ItemIconNative(col); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ColormapIconNative(ImPlotColormap cmap) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[361])(cmap); + #else + ((delegate* unmanaged[Cdecl])funcTable[361])(cmap); + #endif + } + + /// + /// To be documented. + /// + public static void ColormapIcon(ImPlotColormap cmap) + { + ColormapIconNative(cmap); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImDrawList* GetPlotDrawListNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[362])(); + #else + return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[362])(); + #endif + } + + /// + /// To be documented. + /// + public static ImDrawListPtr GetPlotDrawList() + { + ImDrawListPtr ret = GetPlotDrawListNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushPlotClipRectNative(float expand) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[363])(expand); + #else + ((delegate* unmanaged[Cdecl])funcTable[363])(expand); + #endif + } + + /// + /// To be documented. + /// + public static void PushPlotClipRect(float expand) + { + PushPlotClipRectNative(expand); + } + + /// + /// To be documented. + /// + public static void PushPlotClipRect() + { + PushPlotClipRectNative((float)(0)); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopPlotClipRectNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[364])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[364])(); + #endif + } + + /// + /// To be documented. + /// + public static void PopPlotClipRect() + { + PopPlotClipRectNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ShowStyleSelectorNative(byte* label) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[365])(label); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[365])((nint)label); + #endif + } + + /// + /// To be documented. + /// + public static bool ShowStyleSelector(byte* label) + { + byte ret = ShowStyleSelectorNative(label); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ShowStyleSelector(ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = ShowStyleSelectorNative((byte*)plabel); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowStyleSelector(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = ShowStyleSelectorNative((byte*)plabel); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowStyleSelector(string label) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -2217,26 +2142,73 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(long))); + byte ret = ShowStyleSelectorNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ShowColormapSelectorNative(byte* label) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[366])(label); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[366])((nint)label); + #endif + } + + /// + /// To be documented. + /// + public static bool ShowColormapSelector(byte* label) + { + byte ret = ShowColormapSelectorNative(label); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ShowColormapSelector(ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = ShowColormapSelectorNative((byte*)plabel); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowColormapSelector(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = ShowColormapSelectorNative((byte*)plabel); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowColormapSelector(string label) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -2246,26 +2218,73 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); + byte ret = ShowColormapSelectorNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ShowInputMapSelectorNative(byte* label) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[367])(label); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[367])((nint)label); + #endif + } + + /// + /// To be documented. + /// + public static bool ShowInputMapSelector(byte* label) + { + byte ret = ShowInputMapSelectorNative(label); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ShowInputMapSelector(ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = ShowInputMapSelectorNative((byte*)plabel); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowInputMapSelector(ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + byte ret = ShowInputMapSelectorNative((byte*)plabel); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowInputMapSelector(string label) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -2275,150 +2294,1456 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); + byte ret = ShowInputMapSelectorNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShowStyleEditorNative(ImPlotStyle* reference) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[368])(reference); + #else + ((delegate* unmanaged[Cdecl])funcTable[368])((nint)reference); + #endif + } + + /// + /// To be documented. + /// + public static void ShowStyleEditor(ImPlotStylePtr reference) + { + ShowStyleEditorNative(reference); + } + + /// + /// To be documented. + /// + public static void ShowStyleEditor() + { + ShowStyleEditorNative((ImPlotStyle*)(((void*)0))); + } + + /// + /// To be documented. + /// + public static void ShowStyleEditor(ref ImPlotStyle reference) + { + fixed (ImPlotStyle* preference = &reference) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + ShowStyleEditorNative((ImPlotStyle*)preference); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShowUserGuideNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[369])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[369])(); + #endif + } + + /// + /// To be documented. + /// + public static void ShowUserGuide() + { + ShowUserGuideNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShowMetricsWindowNative(bool* pPopen) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[370])(pPopen); + #else + ((delegate* unmanaged[Cdecl])funcTable[370])((nint)pPopen); + #endif + } + + /// + /// To be documented. + /// + public static void ShowMetricsWindow(bool* pPopen) + { + ShowMetricsWindowNative(pPopen); + } + + /// + /// To be documented. + /// + public static void ShowMetricsWindow() + { + ShowMetricsWindowNative((bool*)(((void*)0))); + } + + /// + /// To be documented. + /// + public static void ShowMetricsWindow(ref bool pPopen) + { + fixed (bool* ppPopen = &pPopen) + { + ShowMetricsWindowNative((bool*)ppPopen); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShowDemoWindowNative(bool* pOpen) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[371])(pOpen); + #else + ((delegate* unmanaged[Cdecl])funcTable[371])((nint)pOpen); + #endif + } + + /// + /// To be documented. + /// + public static void ShowDemoWindow(bool* pOpen) + { + ShowDemoWindowNative(pOpen); + } + + /// + /// To be documented. + /// + public static void ShowDemoWindow() + { + ShowDemoWindowNative((bool*)(((void*)0))); + } + + /// + /// To be documented. + /// + public static void ShowDemoWindow(ref bool pOpen) + { + fixed (bool* ppOpen = &pOpen) + { + ShowDemoWindowNative((bool*)ppOpen); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImLog10Native(float x) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[372])(x); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[372])(x); + #endif + } + + /// + /// To be documented. + /// + public static float ImLog10(float x) + { + float ret = ImLog10Native(x); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImLog10Native(double x) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[373])(x); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[373])(x); + #endif + } + + /// + /// To be documented. + /// + public static double ImLog10(double x) + { + double ret = ImLog10Native(x); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImSinhNative(float x) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[374])(x); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[374])(x); + #endif + } + + /// + /// To be documented. + /// + public static float ImSinh(float x) + { + float ret = ImSinhNative(x); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImSinhNative(double x) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[375])(x); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[375])(x); + #endif + } + + /// + /// To be documented. + /// + public static double ImSinh(double x) + { + double ret = ImSinhNative(x); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImAsinhNative(float x) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[376])(x); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[376])(x); + #endif + } + + /// + /// To be documented. + /// + public static float ImAsinh(float x) + { + float ret = ImAsinhNative(x); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImAsinhNative(double x) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[377])(x); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[377])(x); + #endif + } + + /// + /// To be documented. + /// + public static double ImAsinh(double x) + { + double ret = ImAsinhNative(x); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImRemapNative(float x, float x0, float x1, float y0, float y1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[378])(x, x0, x1, y0, y1); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[378])(x, x0, x1, y0, y1); + #endif + } + + /// + /// To be documented. + /// + public static float ImRemap(float x, float x0, float x1, float y0, float y1) + { + float ret = ImRemapNative(x, x0, x1, y0, y1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImRemapNative(double x, double x0, double x1, double y0, double y1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[379])(x, x0, x1, y0, y1); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[379])(x, x0, x1, y0, y1); + #endif + } + + /// + /// To be documented. + /// + public static double ImRemap(double x, double x0, double x1, double y0, double y1) + { + double ret = ImRemapNative(x, x0, x1, y0, y1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static sbyte ImRemapNative(sbyte x, sbyte x0, sbyte x1, sbyte y0, sbyte y1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[380])(x, x0, x1, y0, y1); + #else + return (sbyte)((delegate* unmanaged[Cdecl])funcTable[380])(x, x0, x1, y0, y1); + #endif + } + + /// + /// To be documented. + /// + public static sbyte ImRemap(sbyte x, sbyte x0, sbyte x1, sbyte y0, sbyte y1) + { + sbyte ret = ImRemapNative(x, x0, x1, y0, y1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImRemapNative(byte x, byte x0, byte x1, byte y0, byte y1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[381])(x, x0, x1, y0, y1); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[381])(x, x0, x1, y0, y1); + #endif + } + + /// + /// To be documented. + /// + public static byte ImRemap(byte x, byte x0, byte x1, byte y0, byte y1) + { + byte ret = ImRemapNative(x, x0, x1, y0, y1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static short ImRemapNative(short x, short x0, short x1, short y0, short y1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[382])(x, x0, x1, y0, y1); + #else + return (short)((delegate* unmanaged[Cdecl])funcTable[382])(x, x0, x1, y0, y1); + #endif + } + + /// + /// To be documented. + /// + public static short ImRemap(short x, short x0, short x1, short y0, short y1) + { + short ret = ImRemapNative(x, x0, x1, y0, y1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ushort ImRemapNative(ushort x, ushort x0, ushort x1, ushort y0, ushort y1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[383])(x, x0, x1, y0, y1); + #else + return (ushort)((delegate* unmanaged[Cdecl])funcTable[383])(x, x0, x1, y0, y1); + #endif + } + + /// + /// To be documented. + /// + public static ushort ImRemap(ushort x, ushort x0, ushort x1, ushort y0, ushort y1) + { + ushort ret = ImRemapNative(x, x0, x1, y0, y1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImRemapNative(int x, int x0, int x1, int y0, int y1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[384])(x, x0, x1, y0, y1); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[384])(x, x0, x1, y0, y1); + #endif + } + + /// + /// To be documented. + /// + public static int ImRemap(int x, int x0, int x1, int y0, int y1) + { + int ret = ImRemapNative(x, x0, x1, y0, y1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint ImRemapNative(uint x, uint x0, uint x1, uint y0, uint y1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[385])(x, x0, x1, y0, y1); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[385])(x, x0, x1, y0, y1); + #endif + } + + /// + /// To be documented. + /// + public static uint ImRemap(uint x, uint x0, uint x1, uint y0, uint y1) + { + uint ret = ImRemapNative(x, x0, x1, y0, y1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static long ImRemapNative(long x, long x0, long x1, long y0, long y1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[386])(x, x0, x1, y0, y1); + #else + return (long)((delegate* unmanaged[Cdecl])funcTable[386])(x, x0, x1, y0, y1); + #endif + } + + /// + /// To be documented. + /// + public static long ImRemap(long x, long x0, long x1, long y0, long y1) + { + long ret = ImRemapNative(x, x0, x1, y0, y1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ulong ImRemapNative(ulong x, ulong x0, ulong x1, ulong y0, ulong y1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[387])(x, x0, x1, y0, y1); + #else + return (ulong)((delegate* unmanaged[Cdecl])funcTable[387])(x, x0, x1, y0, y1); + #endif + } + + /// + /// To be documented. + /// + public static ulong ImRemap(ulong x, ulong x0, ulong x1, ulong y0, ulong y1) + { + ulong ret = ImRemapNative(x, x0, x1, y0, y1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImRemap01Native(float x, float x0, float x1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[388])(x, x0, x1); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[388])(x, x0, x1); + #endif + } + + /// + /// To be documented. + /// + public static float ImRemap01(float x, float x0, float x1) + { + float ret = ImRemap01Native(x, x0, x1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImRemap01Native(double x, double x0, double x1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[389])(x, x0, x1); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[389])(x, x0, x1); + #endif + } + + /// + /// To be documented. + /// + public static double ImRemap01(double x, double x0, double x1) + { + double ret = ImRemap01Native(x, x0, x1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static sbyte ImRemap01Native(sbyte x, sbyte x0, sbyte x1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[390])(x, x0, x1); + #else + return (sbyte)((delegate* unmanaged[Cdecl])funcTable[390])(x, x0, x1); + #endif + } + + /// + /// To be documented. + /// + public static sbyte ImRemap01(sbyte x, sbyte x0, sbyte x1) + { + sbyte ret = ImRemap01Native(x, x0, x1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImRemap01Native(byte x, byte x0, byte x1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[391])(x, x0, x1); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[391])(x, x0, x1); + #endif + } + + /// + /// To be documented. + /// + public static byte ImRemap01(byte x, byte x0, byte x1) + { + byte ret = ImRemap01Native(x, x0, x1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static short ImRemap01Native(short x, short x0, short x1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[392])(x, x0, x1); + #else + return (short)((delegate* unmanaged[Cdecl])funcTable[392])(x, x0, x1); + #endif + } + + /// + /// To be documented. + /// + public static short ImRemap01(short x, short x0, short x1) + { + short ret = ImRemap01Native(x, x0, x1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ushort ImRemap01Native(ushort x, ushort x0, ushort x1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[393])(x, x0, x1); + #else + return (ushort)((delegate* unmanaged[Cdecl])funcTable[393])(x, x0, x1); + #endif + } + + /// + /// To be documented. + /// + public static ushort ImRemap01(ushort x, ushort x0, ushort x1) + { + ushort ret = ImRemap01Native(x, x0, x1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImRemap01Native(int x, int x0, int x1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[394])(x, x0, x1); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[394])(x, x0, x1); + #endif + } + + /// + /// To be documented. + /// + public static int ImRemap01(int x, int x0, int x1) + { + int ret = ImRemap01Native(x, x0, x1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint ImRemap01Native(uint x, uint x0, uint x1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[395])(x, x0, x1); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[395])(x, x0, x1); + #endif + } + + /// + /// To be documented. + /// + public static uint ImRemap01(uint x, uint x0, uint x1) + { + uint ret = ImRemap01Native(x, x0, x1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static long ImRemap01Native(long x, long x0, long x1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[396])(x, x0, x1); + #else + return (long)((delegate* unmanaged[Cdecl])funcTable[396])(x, x0, x1); + #endif + } + + /// + /// To be documented. + /// + public static long ImRemap01(long x, long x0, long x1) + { + long ret = ImRemap01Native(x, x0, x1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ulong ImRemap01Native(ulong x, ulong x0, ulong x1) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[397])(x, x0, x1); + #else + return (ulong)((delegate* unmanaged[Cdecl])funcTable[397])(x, x0, x1); + #endif + } + + /// + /// To be documented. + /// + public static ulong ImRemap01(ulong x, ulong x0, ulong x1) + { + ulong ret = ImRemap01Native(x, x0, x1); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImPosModNative(int l, int r) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[398])(l, r); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[398])(l, r); + #endif + } + + /// + /// To be documented. + /// + public static int ImPosMod(int l, int r) + { + int ret = ImPosModNative(l, r); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImNanNative(double val) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[399])(val); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[399])(val); + #endif + } + + /// + /// To be documented. + /// + public static bool ImNan(double val) + { + byte ret = ImNanNative(val); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImNanOrInfNative(double val) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[400])(val); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[400])(val); + #endif + } + + /// + /// To be documented. + /// + public static bool ImNanOrInf(double val) + { + byte ret = ImNanOrInfNative(val); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImConstrainNanNative(double val) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[401])(val); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[401])(val); + #endif + } + + /// + /// To be documented. + /// + public static double ImConstrainNan(double val) + { + double ret = ImConstrainNanNative(val); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImConstrainInfNative(double val) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[402])(val); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[402])(val); + #endif + } + + /// + /// To be documented. + /// + public static double ImConstrainInf(double val) + { + double ret = ImConstrainInfNative(val); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImConstrainLogNative(double val) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[403])(val); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[403])(val); + #endif + } + + /// + /// To be documented. + /// + public static double ImConstrainLog(double val) + { + double ret = ImConstrainLogNative(val); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImConstrainTimeNative(double val) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[404])(val); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[404])(val); + #endif + } + + /// + /// To be documented. + /// + public static double ImConstrainTime(double val) + { + double ret = ImConstrainTimeNative(val); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImAlmostEqualNative(double v1, double v2, int ulp) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[405])(v1, v2, ulp); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[405])(v1, v2, ulp); + #endif + } + + /// + /// To be documented. + /// + public static bool ImAlmostEqual(double v1, double v2, int ulp) + { + byte ret = ImAlmostEqualNative(v1, v2, ulp); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ImAlmostEqual(double v1, double v2) + { + byte ret = ImAlmostEqualNative(v1, v2, (int)(2)); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImMinArrayNative(float* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[406])(values, count); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[406])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static float ImMinArray(float* values, int count) + { + float ret = ImMinArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + public static float ImMinArray(ref float values, int count) + { + fixed (float* pvalues = &values) + { + float ret = ImMinArrayNative((float*)pvalues, count); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImMinArrayNative(double* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[407])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[407])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static double ImMinArray(double* values, int count) + { + double ret = ImMinArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + public static double ImMinArray(ref double values, int count) + { + fixed (double* pvalues = &values) + { + double ret = ImMinArrayNative((double*)pvalues, count); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static sbyte ImMinArrayNative(sbyte* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[408])(values, count); + #else + return (sbyte)((delegate* unmanaged[Cdecl])funcTable[408])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static sbyte ImMinArray(sbyte* values, int count) + { + sbyte ret = ImMinArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImMinArrayNative(byte* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[409])(values, count); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[409])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static byte ImMinArray(byte* values, int count) + { + byte ret = ImMinArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static short ImMinArrayNative(short* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[410])(values, count); + #else + return (short)((delegate* unmanaged[Cdecl])funcTable[410])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static short ImMinArray(short* values, int count) + { + short ret = ImMinArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ushort ImMinArrayNative(ushort* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[411])(values, count); + #else + return (ushort)((delegate* unmanaged[Cdecl])funcTable[411])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static ushort ImMinArray(ushort* values, int count) + { + ushort ret = ImMinArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImMinArrayNative(int* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[412])(values, count); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[412])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static int ImMinArray(int* values, int count) + { + int ret = ImMinArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint ImMinArrayNative(uint* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[413])(values, count); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[413])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static uint ImMinArray(uint* values, int count) + { + uint ret = ImMinArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static long ImMinArrayNative(long* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[414])(values, count); + #else + return (long)((delegate* unmanaged[Cdecl])funcTable[414])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static long ImMinArray(long* values, int count) + { + long ret = ImMinArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ulong ImMinArrayNative(ulong* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[415])(values, count); + #else + return (ulong)((delegate* unmanaged[Cdecl])funcTable[415])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static ulong ImMinArray(ulong* values, int count) + { + ulong ret = ImMinArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImMaxArrayNative(float* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[416])(values, count); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[416])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static float ImMaxArray(float* values, int count) + { + float ret = ImMaxArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + public static float ImMaxArray(ref float values, int count) + { + fixed (float* pvalues = &values) + { + float ret = ImMaxArrayNative((float*)pvalues, count); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImMaxArrayNative(double* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[417])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[417])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static double ImMaxArray(double* values, int count) + { + double ret = ImMaxArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + public static double ImMaxArray(ref double values, int count) + { + fixed (double* pvalues = &values) + { + double ret = ImMaxArrayNative((double*)pvalues, count); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static sbyte ImMaxArrayNative(sbyte* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[418])(values, count); + #else + return (sbyte)((delegate* unmanaged[Cdecl])funcTable[418])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static sbyte ImMaxArray(sbyte* values, int count) + { + sbyte ret = ImMaxArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImMaxArrayNative(byte* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[419])(values, count); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[419])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static byte ImMaxArray(byte* values, int count) + { + byte ret = ImMaxArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static short ImMaxArrayNative(short* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[420])(values, count); + #else + return (short)((delegate* unmanaged[Cdecl])funcTable[420])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static short ImMaxArray(short* values, int count) + { + short ret = ImMaxArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ushort ImMaxArrayNative(ushort* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[421])(values, count); + #else + return (ushort)((delegate* unmanaged[Cdecl])funcTable[421])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static ushort ImMaxArray(ushort* values, int count) + { + ushort ret = ImMaxArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImMaxArrayNative(int* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[422])(values, count); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[422])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static int ImMaxArray(int* values, int count) + { + int ret = ImMaxArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint ImMaxArrayNative(uint* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[423])(values, count); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[423])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static uint ImMaxArray(uint* values, int count) + { + uint ret = ImMaxArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static long ImMaxArrayNative(long* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[424])(values, count); + #else + return (long)((delegate* unmanaged[Cdecl])funcTable[424])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static long ImMaxArray(long* values, int count) + { + long ret = ImMaxArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ulong ImMaxArrayNative(ulong* values, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[425])(values, count); + #else + return (ulong)((delegate* unmanaged[Cdecl])funcTable[425])((nint)values, count); + #endif + } + + /// + /// To be documented. + /// + public static ulong ImMaxArray(ulong* values, int count) + { + ulong ret = ImMaxArrayNative(values, count); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImMinMaxArrayNative(float* values, int count, float* minOut, float* maxOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[426])(values, count, minOut, maxOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[426])((nint)values, count, (nint)minOut, (nint)maxOut); + #endif + } + + /// + /// To be documented. + /// + public static void ImMinMaxArray(float* values, int count, float* minOut, float* maxOut) + { + ImMinMaxArrayNative(values, count, minOut, maxOut); + } + + /// + /// To be documented. + /// + public static void ImMinMaxArray(ref float values, int count, float* minOut, float* maxOut) + { + fixed (float* pvalues = &values) + { + ImMinMaxArrayNative((float*)pvalues, count, minOut, maxOut); + } + } + + /// + /// To be documented. + /// + public static void ImMinMaxArray(float* values, int count, ref float minOut, float* maxOut) + { + fixed (float* pminOut = &minOut) + { + ImMinMaxArrayNative(values, count, (float*)pminOut, maxOut); + } + } + + /// + /// To be documented. + /// + public static void ImMinMaxArray(ref float values, int count, ref float minOut, float* maxOut) + { + fixed (float* pvalues = &values) + { + fixed (float* pminOut = &minOut) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* neg, long* pos, int count) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* neg, long* pos, int count, int offset) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* neg, long* pos, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, pos, count, flags, offset, stride); + ImMinMaxArrayNative((float*)pvalues, count, (float*)pminOut, maxOut); } } } @@ -2426,13 +3751,24 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void ImMinMaxArray(float* values, int count, float* minOut, ref float maxOut) { - fixed (byte* plabelId = &labelId) + fixed (float* pmaxOut = &maxOut) { - fixed (long* pxs = &xs) + ImMinMaxArrayNative(values, count, minOut, (float*)pmaxOut); + } + } + + /// + /// To be documented. + /// + public static void ImMinMaxArray(ref float values, int count, float* minOut, ref float maxOut) + { + fixed (float* pvalues = &values) + { + fixed (float* pmaxOut = &maxOut) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(long))); + ImMinMaxArrayNative((float*)pvalues, count, minOut, (float*)pmaxOut); } } } @@ -2440,13 +3776,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) + public static void ImMinMaxArray(float* values, int count, ref float minOut, ref float maxOut) { - fixed (byte* plabelId = &labelId) + fixed (float* pminOut = &minOut) { - fixed (long* pxs = &xs) + fixed (float* pmaxOut = &maxOut) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); + ImMinMaxArrayNative(values, count, (float*)pminOut, (float*)pmaxOut); } } } @@ -2454,843 +3790,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* neg, long* pos, int count) + public static void ImMinMaxArray(ref float values, int count, ref float minOut, ref float maxOut) { - fixed (byte* plabelId = &labelId) + fixed (float* pvalues = &values) { - fixed (long* pxs = &xs) + fixed (float* pminOut = &minOut) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* neg, long* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* neg, long* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* neg, long* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* neg, long* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* neg, long* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* neg, long* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* neg, long* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* neg, long* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, neg, pos, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* neg, long* pos, int count) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* neg, long* pos, int count, int offset) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* neg, long* pos, int count, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, pos, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* neg, long* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* neg, long* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* neg, long* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, pos, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* neg, long* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* neg, long* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* neg, long* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, neg, pos, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* neg, long* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* neg, long* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* neg, long* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, neg, pos, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* neg, long* pos, int count) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* neg, long* pos, int count, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* neg, long* pos, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) + fixed (float* pmaxOut = &maxOut) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, pos, count, flags, offset, stride); + ImMinMaxArrayNative((float*)pvalues, count, (float*)pminOut, (float*)pmaxOut); } } } @@ -3299,15 +3807,111 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImMinMaxArrayNative(double* values, int count, double* minOut, double* maxOut) { - fixed (byte* plabelId = &labelId) + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[427])(values, count, minOut, maxOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[427])((nint)values, count, (nint)minOut, (nint)maxOut); + #endif + } + + /// + /// To be documented. + /// + public static void ImMinMaxArray(double* values, int count, double* minOut, double* maxOut) + { + ImMinMaxArrayNative(values, count, minOut, maxOut); + } + + /// + /// To be documented. + /// + public static void ImMinMaxArray(ref double values, int count, double* minOut, double* maxOut) + { + fixed (double* pvalues = &values) { - fixed (long* pxs = &xs) + ImMinMaxArrayNative((double*)pvalues, count, minOut, maxOut); + } + } + + /// + /// To be documented. + /// + public static void ImMinMaxArray(double* values, int count, ref double minOut, double* maxOut) + { + fixed (double* pminOut = &minOut) + { + ImMinMaxArrayNative(values, count, (double*)pminOut, maxOut); + } + } + + /// + /// To be documented. + /// + public static void ImMinMaxArray(ref double values, int count, ref double minOut, double* maxOut) + { + fixed (double* pvalues = &values) + { + fixed (double* pminOut = &minOut) { - fixed (long* pys = &ys) + ImMinMaxArrayNative((double*)pvalues, count, (double*)pminOut, maxOut); + } + } + } + + /// + /// To be documented. + /// + public static void ImMinMaxArray(double* values, int count, double* minOut, ref double maxOut) + { + fixed (double* pmaxOut = &maxOut) + { + ImMinMaxArrayNative(values, count, minOut, (double*)pmaxOut); + } + } + + /// + /// To be documented. + /// + public static void ImMinMaxArray(ref double values, int count, double* minOut, ref double maxOut) + { + fixed (double* pvalues = &values) + { + fixed (double* pmaxOut = &maxOut) + { + ImMinMaxArrayNative((double*)pvalues, count, minOut, (double*)pmaxOut); + } + } + } + + /// + /// To be documented. + /// + public static void ImMinMaxArray(double* values, int count, ref double minOut, ref double maxOut) + { + fixed (double* pminOut = &minOut) + { + fixed (double* pmaxOut = &maxOut) + { + ImMinMaxArrayNative(values, count, (double*)pminOut, (double*)pmaxOut); + } + } + } + + /// + /// To be documented. + /// + public static void ImMinMaxArray(ref double values, int count, ref double minOut, ref double maxOut) + { + fixed (double* pvalues = &values) + { + fixed (double* pminOut = &minOut) + { + fixed (double* pmaxOut = &maxOut) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, pos, count, flags, offset, (int)(sizeof(long))); + ImMinMaxArrayNative((double*)pvalues, count, (double*)pminOut, (double*)pmaxOut); } } } @@ -3316,1733 +3920,1112 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImMinMaxArrayNative(sbyte* values, int count, sbyte* minOut, sbyte* maxOut) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[428])(values, count, minOut, maxOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[428])((nint)values, count, (nint)minOut, (nint)maxOut); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* neg, long* pos, int count) + public static void ImMinMaxArray(sbyte* values, int count, sbyte* minOut, sbyte* maxOut) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } + ImMinMaxArrayNative(values, count, minOut, maxOut); } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* neg, long* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImMinMaxArrayNative(byte* values, int count, byte* minOut, byte* maxOut) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[429])(values, count, minOut, maxOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[429])((nint)values, count, (nint)minOut, (nint)maxOut); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* neg, long* pos, int count, int offset, int stride) + public static void ImMinMaxArray(byte* values, int count, byte* minOut, byte* maxOut) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + ImMinMaxArrayNative(values, count, minOut, maxOut); } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImMinMaxArrayNative(short* values, int count, short* minOut, short* maxOut) { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, pos, count, flags, offset, stride); - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[430])(values, count, minOut, maxOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[430])((nint)values, count, (nint)minOut, (nint)maxOut); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void ImMinMaxArray(short* values, int count, short* minOut, short* maxOut) { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, pos, count, flags, offset, (int)(sizeof(long))); - } - } - } + ImMinMaxArrayNative(values, count, minOut, maxOut); } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImMinMaxArrayNative(ushort* values, int count, ushort* minOut, ushort* maxOut) { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[431])(values, count, minOut, maxOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[431])((nint)values, count, (nint)minOut, (nint)maxOut); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* neg, long* pos, int count) + public static void ImMinMaxArray(ushort* values, int count, ushort* minOut, ushort* maxOut) { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } + ImMinMaxArrayNative(values, count, minOut, maxOut); } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* neg, long* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImMinMaxArrayNative(int* values, int count, int* minOut, int* maxOut) { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[432])(values, count, minOut, maxOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[432])((nint)values, count, (nint)minOut, (nint)maxOut); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* neg, long* pos, int count, int offset, int stride) + public static void ImMinMaxArray(int* values, int count, int* minOut, int* maxOut) { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + ImMinMaxArrayNative(values, count, minOut, maxOut); } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImMinMaxArrayNative(uint* values, int count, uint* minOut, uint* maxOut) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[433])(values, count, minOut, maxOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[433])((nint)values, count, (nint)minOut, (nint)maxOut); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void ImMinMaxArray(uint* values, int count, uint* minOut, uint* maxOut) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, neg, pos, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + ImMinMaxArrayNative(values, count, minOut, maxOut); } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImMinMaxArrayNative(long* values, int count, long* minOut, long* maxOut) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[434])(values, count, minOut, maxOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[434])((nint)values, count, (nint)minOut, (nint)maxOut); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* neg, long* pos, int count) + public static void ImMinMaxArray(long* values, int count, long* minOut, long* maxOut) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + ImMinMaxArrayNative(values, count, minOut, maxOut); } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* neg, long* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ImMinMaxArrayNative(ulong* values, int count, ulong* minOut, ulong* maxOut) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[435])(values, count, minOut, maxOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[435])((nint)values, count, (nint)minOut, (nint)maxOut); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* neg, long* pos, int count, int offset, int stride) + public static void ImMinMaxArray(ulong* values, int count, ulong* minOut, ulong* maxOut) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + ImMinMaxArrayNative(values, count, minOut, maxOut); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float ImSumNative(float* values, int count) { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (long*)pneg, pos, count, flags, offset, stride); - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[436])(values, count); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[436])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static float ImSum(float* values, int count) { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (long*)pneg, pos, count, flags, offset, (int)(sizeof(long))); - } + float ret = ImSumNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags) + public static float ImSum(ref float values, int count) { - fixed (long* pneg = &neg) + fixed (float* pvalues = &values) { - PlotErrorBarsNative(labelId, xs, ys, (long*)pneg, pos, count, flags, (int)(0), (int)(sizeof(long))); + float ret = ImSumNative((float*)pvalues, count); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long neg, long* pos, int count) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImSumNative(double* values, int count) { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[437])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[437])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long neg, long* pos, int count, int offset) + public static double ImSum(double* values, int count) { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } + double ret = ImSumNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long neg, long* pos, int count, int offset, int stride) + public static double ImSum(ref double values, int count) { - fixed (long* pneg = &neg) + fixed (double* pvalues = &values) { - PlotErrorBarsNative(labelId, xs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + double ret = ImSumNative((double*)pvalues, count); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static sbyte ImSumNative(sbyte* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, pos, count, flags, offset, stride); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[438])(values, count); + #else + return (sbyte)((delegate* unmanaged[Cdecl])funcTable[438])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static sbyte ImSum(sbyte* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, pos, count, flags, offset, (int)(sizeof(long))); - } - } + sbyte ret = ImSumNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImSumNative(byte* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[439])(values, count); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[439])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long neg, long* pos, int count) + public static byte ImSum(byte* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } + byte ret = ImSumNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long neg, long* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static short ImSumNative(short* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[440])(values, count); + #else + return (short)((delegate* unmanaged[Cdecl])funcTable[440])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long neg, long* pos, int count, int offset, int stride) + public static short ImSum(short* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + short ret = ImSumNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ushort ImSumNative(ushort* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, pos, count, flags, offset, stride); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[441])(values, count); + #else + return (ushort)((delegate* unmanaged[Cdecl])funcTable[441])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static ushort ImSum(ushort* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, pos, count, flags, offset, (int)(sizeof(long))); - } - } + ushort ret = ImSumNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int ImSumNative(int* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[442])(values, count); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[442])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long neg, long* pos, int count) + public static int ImSum(int* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } + int ret = ImSumNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long neg, long* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint ImSumNative(uint* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[443])(values, count); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[443])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long neg, long* pos, int count, int offset, int stride) + public static uint ImSum(uint* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + uint ret = ImSumNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static long ImSumNative(long* values, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[444])(values, count); + #else + return (long)((delegate* unmanaged[Cdecl])funcTable[444])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static long ImSum(long* values, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)pneg, pos, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + long ret = ImSumNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ulong ImSumNative(ulong* values, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)pneg, pos, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[445])(values, count); + #else + return (ulong)((delegate* unmanaged[Cdecl])funcTable[445])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long neg, long* pos, int count) + public static ulong ImSum(ulong* values, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ulong ret = ImSumNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long neg, long* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImMeanNative(float* values, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[446])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[446])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long neg, long* pos, int count, int offset, int stride) + public static double ImMean(float* values, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + double ret = ImMeanNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double ImMean(ref float values, int count) { - fixed (long* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)pneg, pos, count, flags, offset, stride); - } + double ret = ImMeanNative((float*)pvalues, count); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImMeanNative(double* values, int count) { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)pneg, pos, count, flags, offset, (int)(sizeof(long))); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[447])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[447])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags) + public static double ImMean(double* values, int count) { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)pneg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } + double ret = ImMeanNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long neg, long* pos, int count) + public static double ImMean(ref double values, int count) { - fixed (long* pxs = &xs) + fixed (double* pvalues = &values) { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } + double ret = ImMeanNative((double*)pvalues, count); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long neg, long* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImMeanNative(sbyte* values, int count) { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[448])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[448])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long neg, long* pos, int count, int offset, int stride) + public static double ImMean(sbyte* values, int count) { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + double ret = ImMeanNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImMeanNative(byte* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, pos, count, flags, offset, stride); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[449])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[449])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double ImMean(byte* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, pos, count, flags, offset, (int)(sizeof(long))); - } - } - } + double ret = ImMeanNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImMeanNative(short* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[450])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[450])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long neg, long* pos, int count) + public static double ImMean(short* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } + double ret = ImMeanNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long neg, long* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImMeanNative(ushort* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[451])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[451])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long neg, long* pos, int count, int offset, int stride) + public static double ImMean(ushort* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + double ret = ImMeanNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImMeanNative(int* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, pos, count, flags, offset, stride); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[452])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[452])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double ImMean(int* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, pos, count, flags, offset, (int)(sizeof(long))); - } - } - } + double ret = ImMeanNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImMeanNative(uint* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[453])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[453])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long neg, long* pos, int count) + public static double ImMean(uint* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } + double ret = ImMeanNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long neg, long* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImMeanNative(long* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[454])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[454])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long neg, long* pos, int count, int offset, int stride) + public static double ImMean(long* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + double ret = ImMeanNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImMeanNative(ulong* values, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[455])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[455])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double ImMean(ulong* values, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)pneg, pos, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + double ret = ImMeanNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImStdDevNative(float* values, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)pneg, pos, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[456])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[456])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long neg, long* pos, int count) + public static double ImStdDev(float* values, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + double ret = ImStdDevNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long neg, long* pos, int count, int offset) + public static double ImStdDev(ref float values, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) + fixed (float* pvalues = &values) { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + double ret = ImStdDevNative((float*)pvalues, count); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long neg, long* pos, int count, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImStdDevNative(double* values, int count) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[457])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[457])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static double ImStdDev(double* values, int count) { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)pneg, pos, count, flags, offset, stride); - } - } + double ret = ImStdDevNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double ImStdDev(ref double values, int count) { - fixed (long* pys = &ys) + fixed (double* pvalues = &values) { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)pneg, pos, count, flags, offset, (int)(sizeof(long))); - } + double ret = ImStdDevNative((double*)pvalues, count); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImStdDevNative(sbyte* values, int count) { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)pneg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[458])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[458])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long neg, long* pos, int count) + public static double ImStdDev(sbyte* values, int count) { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } + double ret = ImStdDevNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long neg, long* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImStdDevNative(byte* values, int count) { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[459])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[459])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long neg, long* pos, int count, int offset, int stride) + public static double ImStdDev(byte* values, int count) { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } + double ret = ImStdDevNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImStdDevNative(short* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, pos, count, flags, offset, stride); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[460])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[460])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double ImStdDev(short* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, pos, count, flags, offset, (int)(sizeof(long))); - } - } - } + double ret = ImStdDevNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImStdDevNative(ushort* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[461])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[461])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long neg, long* pos, int count) + public static double ImStdDev(ushort* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } + double ret = ImStdDevNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long neg, long* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImStdDevNative(int* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[462])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[462])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long neg, long* pos, int count, int offset, int stride) + public static double ImStdDev(int* values, int count) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + double ret = ImStdDevNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImStdDevNative(uint* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, pos, count, flags, offset, stride); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[463])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[463])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static double ImStdDev(uint* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, pos, count, flags, offset, (int)(sizeof(long))); - } - } - } + double ret = ImStdDevNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImStdDevNative(long* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[464])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[464])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long neg, long* pos, int count) + public static double ImStdDev(long* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } + double ret = ImStdDevNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long neg, long* pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ImStdDevNative(ulong* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[465])(values, count); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[465])((nint)values, count); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long neg, long* pos, int count, int offset, int stride) + public static double ImStdDev(ulong* values, int count) { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + double ret = ImStdDevNative(values, count); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint ImMixU32Native(uint a, uint b, uint s) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[466])(a, b, s); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[466])(a, b, s); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static uint ImMixU32(uint a, uint b, uint s) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)pneg, pos, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + uint ret = ImMixU32Native(a, b, s); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint ImLerpU32Native(uint* colors, int size, float t) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)pneg, pos, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[467])(colors, size, t); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[467])((nint)colors, size, t); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long neg, long* pos, int count) + public static uint ImLerpU32(uint* colors, int size, float t) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + uint ret = ImLerpU32Native(colors, size, t); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint ImAlphaU32Native(uint col, float alpha) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[468])(col, alpha); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[468])(col, alpha); + #endif + } + + /// + /// To be documented. + /// + public static uint ImAlphaU32(uint col, float alpha) + { + uint ret = ImAlphaU32Native(col, alpha); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImOverlapsNative(float minA, float maxA, float minB, float maxB) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[469])(minA, maxA, minB, maxB); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[469])(minA, maxA, minB, maxB); + #endif + } + + /// + /// To be documented. + /// + public static bool ImOverlaps(float minA, float maxA, float minB, float maxB) + { + byte ret = ImOverlapsNative(minA, maxA, minB, maxB); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImOverlapsNative(double minA, double maxA, double minB, double maxB) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[470])(minA, maxA, minB, maxB); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[470])(minA, maxA, minB, maxB); + #endif + } + + /// + /// To be documented. + /// + public static bool ImOverlaps(double minA, double maxA, double minB, double maxB) + { + byte ret = ImOverlapsNative(minA, maxA, minB, maxB); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImOverlapsNative(sbyte minA, sbyte maxA, sbyte minB, sbyte maxB) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[471])(minA, maxA, minB, maxB); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[471])(minA, maxA, minB, maxB); + #endif + } + + /// + /// To be documented. + /// + public static bool ImOverlaps(sbyte minA, sbyte maxA, sbyte minB, sbyte maxB) + { + byte ret = ImOverlapsNative(minA, maxA, minB, maxB); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImOverlapsNative(byte minA, byte maxA, byte minB, byte maxB) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[472])(minA, maxA, minB, maxB); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[472])(minA, maxA, minB, maxB); + #endif + } + + /// + /// To be documented. + /// + public static bool ImOverlaps(byte minA, byte maxA, byte minB, byte maxB) + { + byte ret = ImOverlapsNative(minA, maxA, minB, maxB); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImOverlapsNative(short minA, short maxA, short minB, short maxB) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[473])(minA, maxA, minB, maxB); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[473])(minA, maxA, minB, maxB); + #endif + } + + /// + /// To be documented. + /// + public static bool ImOverlaps(short minA, short maxA, short minB, short maxB) + { + byte ret = ImOverlapsNative(minA, maxA, minB, maxB); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImOverlapsNative(ushort minA, ushort maxA, ushort minB, ushort maxB) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[474])(minA, maxA, minB, maxB); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[474])(minA, maxA, minB, maxB); + #endif + } + + /// + /// To be documented. + /// + public static bool ImOverlaps(ushort minA, ushort maxA, ushort minB, ushort maxB) + { + byte ret = ImOverlapsNative(minA, maxA, minB, maxB); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImOverlapsNative(int minA, int maxA, int minB, int maxB) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[475])(minA, maxA, minB, maxB); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[475])(minA, maxA, minB, maxB); + #endif } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.068.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.068.cs index 0c37b999d..6264f658d 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.068.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.068.cs @@ -22,13 +22,487 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long neg, long* pos, int count, int offset) + public static bool ImOverlaps(int minA, int maxA, int minB, int maxB) + { + byte ret = ImOverlapsNative(minA, maxA, minB, maxB); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImOverlapsNative(uint minA, uint maxA, uint minB, uint maxB) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[476])(minA, maxA, minB, maxB); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[476])(minA, maxA, minB, maxB); + #endif + } + + /// + /// To be documented. + /// + public static bool ImOverlaps(uint minA, uint maxA, uint minB, uint maxB) + { + byte ret = ImOverlapsNative(minA, maxA, minB, maxB); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImOverlapsNative(long minA, long maxA, long minB, long maxB) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[477])(minA, maxA, minB, maxB); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[477])(minA, maxA, minB, maxB); + #endif + } + + /// + /// To be documented. + /// + public static bool ImOverlaps(long minA, long maxA, long minB, long maxB) + { + byte ret = ImOverlapsNative(minA, maxA, minB, maxB); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ImOverlapsNative(ulong minA, ulong maxA, ulong minB, ulong maxB) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[478])(minA, maxA, minB, maxB); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[478])(minA, maxA, minB, maxB); + #endif + } + + /// + /// To be documented. + /// + public static bool ImOverlaps(ulong minA, ulong maxA, ulong minB, ulong maxB) + { + byte ret = ImOverlapsNative(minA, maxA, minB, maxB); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotDateTimeSpec* ImPlotDateTimeSpecNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[479])(); + #else + return (ImPlotDateTimeSpec*)((delegate* unmanaged[Cdecl])funcTable[479])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotDateTimeSpecPtr ImPlotDateTimeSpec() + { + ImPlotDateTimeSpecPtr ret = ImPlotDateTimeSpecNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotDateTimeSpec* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[480])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[480])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotDateTimeSpecPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotDateTimeSpec self) + { + fixed (ImPlotDateTimeSpec* pself = &self) + { + DestroyNative((ImPlotDateTimeSpec*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotDateTimeSpec* ImPlotDateTimeSpecNative(ImPlotDateFmt dateFmt, ImPlotTimeFmt timeFmt, byte use24HrClk, byte useIso8601) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[481])(dateFmt, timeFmt, use24HrClk, useIso8601); + #else + return (ImPlotDateTimeSpec*)((delegate* unmanaged[Cdecl])funcTable[481])(dateFmt, timeFmt, use24HrClk, useIso8601); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotDateTimeSpecPtr ImPlotDateTimeSpec(ImPlotDateFmt dateFmt, ImPlotTimeFmt timeFmt, bool use24HrClk, bool useIso8601) + { + ImPlotDateTimeSpecPtr ret = ImPlotDateTimeSpecNative(dateFmt, timeFmt, use24HrClk ? (byte)1 : (byte)0, useIso8601 ? (byte)1 : (byte)0); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotDateTimeSpecPtr ImPlotDateTimeSpec(ImPlotDateFmt dateFmt, ImPlotTimeFmt timeFmt, bool use24HrClk) + { + ImPlotDateTimeSpecPtr ret = ImPlotDateTimeSpecNative(dateFmt, timeFmt, use24HrClk ? (byte)1 : (byte)0, (byte)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotDateTimeSpecPtr ImPlotDateTimeSpec(ImPlotDateFmt dateFmt, ImPlotTimeFmt timeFmt) + { + ImPlotDateTimeSpecPtr ret = ImPlotDateTimeSpecNative(dateFmt, timeFmt, (byte)(0), (byte)(0)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotTime* ImPlotTimeNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[482])(); + #else + return (ImPlotTime*)((delegate* unmanaged[Cdecl])funcTable[482])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTimePtr ImPlotTime() + { + ImPlotTimePtr ret = ImPlotTimeNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotTime* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[483])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[483])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotTimePtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotTime self) + { + fixed (ImPlotTime* pself = &self) + { + DestroyNative((ImPlotTime*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotTime* ImPlotTimeNative(long s, int us) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[484])(s, us); + #else + return (ImPlotTime*)((delegate* unmanaged[Cdecl])funcTable[484])(s, us); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTimePtr ImPlotTime(long s, int us) + { + ImPlotTimePtr ret = ImPlotTimeNative(s, us); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotTimePtr ImPlotTime(long s) + { + ImPlotTimePtr ret = ImPlotTimeNative(s, (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RollOverNative(ImPlotTime* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[485])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[485])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void RollOver(ImPlotTimePtr self) + { + RollOverNative(self); + } + + /// + /// To be documented. + /// + public static void RollOver(ref ImPlotTime self) + { + fixed (ImPlotTime* pself = &self) + { + RollOverNative((ImPlotTime*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double ToDoubleNative(ImPlotTime* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[486])(self); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[486])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static double ToDouble(ImPlotTimePtr self) + { + double ret = ToDoubleNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static double ToDouble(ref ImPlotTime self) + { + fixed (ImPlotTime* pself = &self) + { + double ret = ToDoubleNative((ImPlotTime*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FromDoubleNative(ImPlotTime* pOut, double t) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[487])(pOut, t); + #else + ((delegate* unmanaged[Cdecl])funcTable[487])((nint)pOut, t); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTime FromDouble(double t) + { + ImPlotTime ret; + FromDoubleNative(&ret, t); + return ret; + } + + /// + /// To be documented. + /// + public static void FromDouble(ImPlotTimePtr pOut, double t) + { + FromDoubleNative(pOut, t); + } + + /// + /// To be documented. + /// + public static void FromDouble(ref ImPlotTime pOut, double t) + { + fixed (ImPlotTime* ppOut = &pOut) + { + FromDoubleNative((ImPlotTime*)ppOut, t); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotColormapData* ImPlotColormapDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[488])(); + #else + return (ImPlotColormapData*)((delegate* unmanaged[Cdecl])funcTable[488])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotColormapDataPtr ImPlotColormapData() + { + ImPlotColormapDataPtr ret = ImPlotColormapDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotColormapData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[489])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[489])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotColormapDataPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotColormapData self) + { + fixed (ImPlotColormapData* pself = &self) + { + DestroyNative((ImPlotColormapData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int AppendNative(ImPlotColormapData* self, byte* name, uint* keys, int count, byte qual) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[490])(self, name, keys, count, qual); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[490])((nint)self, (nint)name, (nint)keys, count, qual); + #endif + } + + /// + /// To be documented. + /// + public static int Append(ImPlotColormapDataPtr self, byte* name, uint* keys, int count, bool qual) + { + int ret = AppendNative(self, name, keys, count, qual ? (byte)1 : (byte)0); + return ret; + } + + /// + /// To be documented. + /// + public static int Append(ref ImPlotColormapData self, byte* name, uint* keys, int count, bool qual) + { + fixed (ImPlotColormapData* pself = &self) + { + int ret = AppendNative((ImPlotColormapData*)pself, name, keys, count, qual ? (byte)1 : (byte)0); + return ret; + } + } + + /// + /// To be documented. + /// + public static int Append(ImPlotColormapDataPtr self, ref byte name, uint* keys, int count, bool qual) + { + fixed (byte* pname = &name) + { + int ret = AppendNative(self, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); + return ret; + } + } + + /// + /// To be documented. + /// + public static int Append(ImPlotColormapDataPtr self, ReadOnlySpan name, uint* keys, int count, bool qual) + { + fixed (byte* pname = name) + { + int ret = AppendNative(self, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); + return ret; + } + } + + /// + /// To be documented. + /// + public static int Append(ImPlotColormapDataPtr self, string name, uint* keys, int count, bool qual) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (name != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -38,32 +512,301 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pys = &ys) + int ret = AppendNative(self, pStr0, keys, count, qual ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (long* pneg = &neg) + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static int Append(ref ImPlotColormapData self, ref byte name, uint* keys, int count, bool qual) + { + fixed (ImPlotColormapData* pself = &self) + { + fixed (byte* pname = &name) { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); + int ret = AppendNative((ImPlotColormapData*)pself, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int Append(ref ImPlotColormapData self, ReadOnlySpan name, uint* keys, int count, bool qual) + { + fixed (ImPlotColormapData* pself = &self) + { + fixed (byte* pname = name) + { + int ret = AppendNative((ImPlotColormapData*)pself, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static int Append(ref ImPlotColormapData self, string name, uint* keys, int count, bool qual) + { + fixed (ImPlotColormapData* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + int ret = AppendNative((ImPlotColormapData*)pself, pStr0, keys, count, qual ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long neg, long* pos, int count, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void _AppendTableNative(ImPlotColormapData* self, ImPlotColormap cmap) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[491])(self, cmap); + #else + ((delegate* unmanaged[Cdecl])funcTable[491])((nint)self, cmap); + #endif + } + + /// + /// To be documented. + /// + public static void _AppendTable(ImPlotColormapDataPtr self, ImPlotColormap cmap) + { + _AppendTableNative(self, cmap); + } + + /// + /// To be documented. + /// + public static void _AppendTable(ref ImPlotColormapData self, ImPlotColormap cmap) + { + fixed (ImPlotColormapData* pself = &self) + { + _AppendTableNative((ImPlotColormapData*)pself, cmap); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RebuildTablesNative(ImPlotColormapData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[492])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[492])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void RebuildTables(ImPlotColormapDataPtr self) + { + RebuildTablesNative(self); + } + + /// + /// To be documented. + /// + public static void RebuildTables(ref ImPlotColormapData self) + { + fixed (ImPlotColormapData* pself = &self) + { + RebuildTablesNative((ImPlotColormapData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsQualNative(ImPlotColormapData* self, ImPlotColormap cmap) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[493])(self, cmap); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[493])((nint)self, cmap); + #endif + } + + /// + /// To be documented. + /// + public static bool IsQual(ImPlotColormapDataPtr self, ImPlotColormap cmap) + { + byte ret = IsQualNative(self, cmap); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsQual(ref ImPlotColormapData self, ImPlotColormap cmap) + { + fixed (ImPlotColormapData* pself = &self) + { + byte ret = IsQualNative((ImPlotColormapData*)pself, cmap); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetNameNative(ImPlotColormapData* self, ImPlotColormap cmap) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[494])(self, cmap); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[494])((nint)self, cmap); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetName(ImPlotColormapDataPtr self, ImPlotColormap cmap) + { + byte* ret = GetNameNative(self, cmap); + return ret; + } + + /// + /// To be documented. + /// + public static string GetNameS(ImPlotColormapDataPtr self, ImPlotColormap cmap) + { + string ret = Utils.DecodeStringUTF8(GetNameNative(self, cmap)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* GetName(ref ImPlotColormapData self, ImPlotColormap cmap) + { + fixed (ImPlotColormapData* pself = &self) + { + byte* ret = GetNameNative((ImPlotColormapData*)pself, cmap); + return ret; + } + } + + /// + /// To be documented. + /// + public static string GetNameS(ref ImPlotColormapData self, ImPlotColormap cmap) + { + fixed (ImPlotColormapData* pself = &self) + { + string ret = Utils.DecodeStringUTF8(GetNameNative((ImPlotColormapData*)pself, cmap)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotColormap GetIndexNative(ImPlotColormapData* self, byte* name) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[495])(self, name); + #else + return (ImPlotColormap)((delegate* unmanaged[Cdecl])funcTable[495])((nint)self, (nint)name); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotColormap GetIndex(ImPlotColormapDataPtr self, byte* name) + { + ImPlotColormap ret = GetIndexNative(self, name); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotColormap GetIndex(ref ImPlotColormapData self, byte* name) + { + fixed (ImPlotColormapData* pself = &self) + { + ImPlotColormap ret = GetIndexNative((ImPlotColormapData*)pself, name); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap GetIndex(ImPlotColormapDataPtr self, ref byte name) + { + fixed (byte* pname = &name) + { + ImPlotColormap ret = GetIndexNative(self, (byte*)pname); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap GetIndex(ImPlotColormapDataPtr self, ReadOnlySpan name) + { + fixed (byte* pname = name) + { + ImPlotColormap ret = GetIndexNative(self, (byte*)pname); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap GetIndex(ImPlotColormapDataPtr self, string name) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (name != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -73,374 +816,522 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pys = &ys) + ImPlotColormap ret = GetIndexNative(self, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (long* pneg = &neg) + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotColormap GetIndex(ref ImPlotColormapData self, ref byte name) + { + fixed (ImPlotColormapData* pself = &self) + { + fixed (byte* pname = &name) { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + ImPlotColormap ret = GetIndexNative((ImPlotColormapData*)pself, (byte*)pname); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap GetIndex(ref ImPlotColormapData self, ReadOnlySpan name) + { + fixed (ImPlotColormapData* pself = &self) + { + fixed (byte* pname = name) + { + ImPlotColormap ret = GetIndexNative((ImPlotColormapData*)pself, (byte*)pname); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImPlotColormap GetIndex(ref ImPlotColormapData self, string name) + { + fixed (ImPlotColormapData* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) + else { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, flags, offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) + ImPlotColormap ret = GetIndexNative((ImPlotColormapData*)pself, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, flags, offset, (int)(sizeof(long))); - } + Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint* GetKeysNative(ImPlotColormapData* self, ImPlotColormap cmap) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[496])(self, cmap); + #else + return (uint*)((delegate* unmanaged[Cdecl])funcTable[496])((nint)self, cmap); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long neg, long* pos, int count) + public static uint* GetKeys(ImPlotColormapDataPtr self, ImPlotColormap cmap) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } + uint* ret = GetKeysNative(self, cmap); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, int offset) + public static uint* GetKeys(ref ImPlotColormapData self, ImPlotColormap cmap) { - fixed (long* pxs = &xs) + fixed (ImPlotColormapData* pself = &self) { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } + uint* ret = GetKeysNative((ImPlotColormapData*)pself, cmap); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetKeyCountNative(ImPlotColormapData* self, ImPlotColormap cmap) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[497])(self, cmap); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[497])((nint)self, cmap); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static int GetKeyCount(ImPlotColormapDataPtr self, ImPlotColormap cmap) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, flags, offset, stride); - } - } - } - } + int ret = GetKeyCountNative(self, cmap); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static int GetKeyCount(ref ImPlotColormapData self, ImPlotColormap cmap) { - fixed (byte* plabelId = &labelId) + fixed (ImPlotColormapData* pself = &self) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, flags, offset, (int)(sizeof(long))); - } - } - } + int ret = GetKeyCountNative((ImPlotColormapData*)pself, cmap); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetKeyColorNative(ImPlotColormapData* self, ImPlotColormap cmap, int idx) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[498])(self, cmap, idx); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[498])((nint)self, cmap, idx); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long neg, long* pos, int count) + public static uint GetKeyColor(ImPlotColormapDataPtr self, ImPlotColormap cmap, int idx) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } + uint ret = GetKeyColorNative(self, cmap, idx); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, int offset) + public static uint GetKeyColor(ref ImPlotColormapData self, ImPlotColormap cmap, int idx) { - fixed (byte* plabelId = &labelId) + fixed (ImPlotColormapData* pself = &self) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } + uint ret = GetKeyColorNative((ImPlotColormapData*)pself, cmap, idx); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetKeyColorNative(ImPlotColormapData* self, ImPlotColormap cmap, int idx, uint value) { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[499])(self, cmap, idx, value); + #else + ((delegate* unmanaged[Cdecl])funcTable[499])((nint)self, cmap, idx, value); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void SetKeyColor(ImPlotColormapDataPtr self, ImPlotColormap cmap, int idx, uint value) { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, flags, offset, stride); - } - } - } - } + SetKeyColorNative(self, cmap, idx, value); } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void SetKeyColor(ref ImPlotColormapData self, ImPlotColormap cmap, int idx, uint value) { - fixed (byte* plabelId = labelId) + fixed (ImPlotColormapData* pself = &self) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, flags, offset, (int)(sizeof(long))); - } - } - } + SetKeyColorNative((ImPlotColormapData*)pself, cmap, idx, value); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint* GetTableNative(ImPlotColormapData* self, ImPlotColormap cmap) { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[500])(self, cmap); + #else + return (uint*)((delegate* unmanaged[Cdecl])funcTable[500])((nint)self, cmap); + #endif } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long neg, long* pos, int count) + public static uint* GetTable(ImPlotColormapDataPtr self, ImPlotColormap cmap) { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } + uint* ret = GetTableNative(self, cmap); + return ret; } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, int offset) + public static uint* GetTable(ref ImPlotColormapData self, ImPlotColormap cmap) { - fixed (byte* plabelId = labelId) + fixed (ImPlotColormapData* pself = &self) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } + uint* ret = GetTableNative((ImPlotColormapData*)pself, cmap); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetTableSizeNative(ImPlotColormapData* self, ImPlotColormap cmap) { - fixed (byte* plabelId = labelId) + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[501])(self, cmap); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[501])((nint)self, cmap); + #endif + } + + /// + /// To be documented. + /// + public static int GetTableSize(ImPlotColormapDataPtr self, ImPlotColormap cmap) + { + int ret = GetTableSizeNative(self, cmap); + return ret; + } + + /// + /// To be documented. + /// + public static int GetTableSize(ref ImPlotColormapData self, ImPlotColormap cmap) + { + fixed (ImPlotColormapData* pself = &self) { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } + int ret = GetTableSizeNative((ImPlotColormapData*)pself, cmap); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetTableColorNative(ImPlotColormapData* self, ImPlotColormap cmap, int idx) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[502])(self, cmap, idx); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[502])((nint)self, cmap, idx); + #endif + } + + /// + /// To be documented. + /// + public static uint GetTableColor(ImPlotColormapDataPtr self, ImPlotColormap cmap, int idx) + { + uint ret = GetTableColorNative(self, cmap, idx); + return ret; + } + + /// + /// To be documented. + /// + public static uint GetTableColor(ref ImPlotColormapData self, ImPlotColormap cmap, int idx) + { + fixed (ImPlotColormapData* pself = &self) + { + uint ret = GetTableColorNative((ImPlotColormapData*)pself, cmap, idx); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint LerpTableNative(ImPlotColormapData* self, ImPlotColormap cmap, float t) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[503])(self, cmap, t); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[503])((nint)self, cmap, t); + #endif + } + + /// + /// To be documented. + /// + public static uint LerpTable(ImPlotColormapDataPtr self, ImPlotColormap cmap, float t) + { + uint ret = LerpTableNative(self, cmap, t); + return ret; + } + + /// + /// To be documented. + /// + public static uint LerpTable(ref ImPlotColormapData self, ImPlotColormap cmap, float t) + { + fixed (ImPlotColormapData* pself = &self) + { + uint ret = LerpTableNative((ImPlotColormapData*)pself, cmap, t); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotPointError* ImPlotPointErrorNative(double x, double y, double neg, double pos) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[504])(x, y, neg, pos); + #else + return (ImPlotPointError*)((delegate* unmanaged[Cdecl])funcTable[504])(x, y, neg, pos); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotPointErrorPtr ImPlotPointError(double x, double y, double neg, double pos) + { + ImPlotPointErrorPtr ret = ImPlotPointErrorNative(x, y, neg, pos); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotPointError* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[505])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[505])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotPointErrorPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotPointError self) + { + fixed (ImPlotPointError* pself = &self) + { + DestroyNative((ImPlotPointError*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotAnnotationCollection* ImPlotAnnotationCollectionNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[506])(); + #else + return (ImPlotAnnotationCollection*)((delegate* unmanaged[Cdecl])funcTable[506])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotAnnotationCollectionPtr ImPlotAnnotationCollection() + { + ImPlotAnnotationCollectionPtr ret = ImPlotAnnotationCollectionNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotAnnotationCollection* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[507])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[507])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotAnnotationCollectionPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotAnnotationCollection self) + { + fixed (ImPlotAnnotationCollection* pself = &self) + { + DestroyNative((ImPlotAnnotationCollection*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AppendVNative(ImPlotAnnotationCollection* self, Vector2 pos, Vector2 off, uint bg, uint fg, byte clamp, byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[508])(self, pos, off, bg, fg, clamp, fmt, args); + #else + ((delegate* unmanaged[Cdecl])funcTable[508])((nint)self, pos, off, bg, fg, clamp, (nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static void AppendV(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt, nuint args) + { + AppendVNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt, args); + } + + /// + /// To be documented. + /// + public static void AppendV(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt, nuint args) + { + fixed (ImPlotAnnotationCollection* pself = &self) + { + AppendVNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt, args); + } + } + + /// + /// To be documented. + /// + public static void AppendV(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + AppendVNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void AppendV(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + AppendVNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void AppendV(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (fmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -450,474 +1341,69 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* pxs = &xs) + AppendVNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (long* pys = &ys) + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AppendV(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt, nuint args) + { + fixed (ImPlotAnnotationCollection* pself = &self) + { + fixed (byte* pfmt = &fmt) { - fixed (long* pneg = &neg) + AppendVNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public static void AppendV(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan fmt, nuint args) + { + fixed (ImPlotAnnotationCollection* pself = &self) + { + fixed (byte* pfmt = fmt) + { + AppendVNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public static void AppendV(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt, nuint args) + { + fixed (ImPlotAnnotationCollection* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) + else { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)pneg, pos, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)pneg, pos, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long neg, long* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long neg, long* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (long*)ppos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, ref long pos, int count) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, ref long pos, int count, int offset) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, ref long pos, int count, int offset, int stride) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (long*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, ref long pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, ref long pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, ref long pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (long*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, ref long pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, ref long pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, long* neg, ref long pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (long*)ppos, count, flags, offset, stride); + AppendVNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -928,13 +1414,67 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AppendNative(ImPlotAnnotationCollection* self, Vector2 pos, Vector2 off, uint bg, uint fg, byte clamp, byte* fmt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[509])(self, pos, off, bg, fg, clamp, fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[509])((nint)self, pos, off, bg, fg, clamp, (nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static void Append(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt) + { + AppendNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt); + } + + /// + /// To be documented. + /// + public static void Append(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt) + { + fixed (ImPlotAnnotationCollection* pself = &self) + { + AppendNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt); + } + } + + /// + /// To be documented. + /// + public static void Append(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + AppendNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void Append(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + AppendNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void Append(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (fmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -944,12 +1484,69 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* ppos = &pos) + AppendNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void Append(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt) + { + fixed (ImPlotAnnotationCollection* pself = &self) + { + fixed (byte* pfmt = &fmt) + { + AppendNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); + } + } + } + + /// + /// To be documented. + /// + public static void Append(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan fmt) + { + fixed (ImPlotAnnotationCollection* pself = &self) + { + fixed (byte* pfmt = fmt) + { + AppendNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); + } + } + } + + /// + /// To be documented. + /// + public static void Append(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt) + { + fixed (ImPlotAnnotationCollection* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AppendNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -960,13 +1557,208 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetTextNative(ImPlotAnnotationCollection* self, int idx) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[510])(self, idx); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[510])((nint)self, idx); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetText(ImPlotAnnotationCollectionPtr self, int idx) + { + byte* ret = GetTextNative(self, idx); + return ret; + } + + /// + /// To be documented. + /// + public static string GetTextS(ImPlotAnnotationCollectionPtr self, int idx) + { + string ret = Utils.DecodeStringUTF8(GetTextNative(self, idx)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* GetText(ref ImPlotAnnotationCollection self, int idx) + { + fixed (ImPlotAnnotationCollection* pself = &self) + { + byte* ret = GetTextNative((ImPlotAnnotationCollection*)pself, idx); + return ret; + } + } + + /// + /// To be documented. + /// + public static string GetTextS(ref ImPlotAnnotationCollection self, int idx) + { + fixed (ImPlotAnnotationCollection* pself = &self) + { + string ret = Utils.DecodeStringUTF8(GetTextNative((ImPlotAnnotationCollection*)pself, idx)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ResetNative(ImPlotAnnotationCollection* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[511])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[511])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Reset(ImPlotAnnotationCollectionPtr self) + { + ResetNative(self); + } + + /// + /// To be documented. + /// + public static void Reset(ref ImPlotAnnotationCollection self) + { + fixed (ImPlotAnnotationCollection* pself = &self) + { + ResetNative((ImPlotAnnotationCollection*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotTagCollection* ImPlotTagCollectionNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[512])(); + #else + return (ImPlotTagCollection*)((delegate* unmanaged[Cdecl])funcTable[512])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTagCollectionPtr ImPlotTagCollection() + { + ImPlotTagCollectionPtr ret = ImPlotTagCollectionNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotTagCollection* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[513])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[513])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotTagCollectionPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotTagCollection self) + { + fixed (ImPlotTagCollection* pself = &self) + { + DestroyNative((ImPlotTagCollection*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AppendVNative(ImPlotTagCollection* self, ImAxis axis, double value, uint bg, uint fg, byte* fmt, nuint args) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[514])(self, axis, value, bg, fg, fmt, args); + #else + ((delegate* unmanaged[Cdecl])funcTable[514])((nint)self, axis, value, bg, fg, (nint)fmt, args); + #endif + } + + /// + /// To be documented. + /// + public static void AppendV(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, byte* fmt, nuint args) + { + AppendVNative(self, axis, value, bg, fg, fmt, args); + } + + /// + /// To be documented. + /// + public static void AppendV(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, byte* fmt, nuint args) + { + fixed (ImPlotTagCollection* pself = &self) + { + AppendVNative((ImPlotTagCollection*)pself, axis, value, bg, fg, fmt, args); + } + } + + /// + /// To be documented. + /// + public static void AppendV(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + AppendVNative(self, axis, value, bg, fg, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void AppendV(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan fmt, nuint args) + { + fixed (byte* pfmt = fmt) + { + AppendVNative(self, axis, value, bg, fg, (byte*)pfmt, args); + } + } + + /// + /// To be documented. + /// + public static void AppendV(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (fmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -976,12 +1768,69 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* ppos = &pos) + AppendVNative(self, axis, value, bg, fg, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AppendV(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, ref byte fmt, nuint args) + { + fixed (ImPlotTagCollection* pself = &self) + { + fixed (byte* pfmt = &fmt) + { + AppendVNative((ImPlotTagCollection*)pself, axis, value, bg, fg, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public static void AppendV(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan fmt, nuint args) + { + fixed (ImPlotTagCollection* pself = &self) + { + fixed (byte* pfmt = fmt) + { + AppendVNative((ImPlotTagCollection*)pself, axis, value, bg, fg, (byte*)pfmt, args); + } + } + } + + /// + /// To be documented. + /// + public static void AppendV(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, string fmt, nuint args) + { + fixed (ImPlotTagCollection* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AppendVNative((ImPlotTagCollection*)pself, axis, value, bg, fg, pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -992,13 +1841,67 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, ref long pos, int count) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AppendNative(ImPlotTagCollection* self, ImAxis axis, double value, uint bg, uint fg, byte* fmt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[515])(self, axis, value, bg, fg, fmt); + #else + ((delegate* unmanaged[Cdecl])funcTable[515])((nint)self, axis, value, bg, fg, (nint)fmt); + #endif + } + + /// + /// To be documented. + /// + public static void Append(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, byte* fmt) + { + AppendNative(self, axis, value, bg, fg, fmt); + } + + /// + /// To be documented. + /// + public static void Append(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, byte* fmt) + { + fixed (ImPlotTagCollection* pself = &self) + { + AppendNative((ImPlotTagCollection*)pself, axis, value, bg, fg, fmt); + } + } + + /// + /// To be documented. + /// + public static void Append(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + AppendNative(self, axis, value, bg, fg, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void Append(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan fmt) + { + fixed (byte* pfmt = fmt) + { + AppendNative(self, axis, value, bg, fg, (byte*)pfmt); + } + } + + /// + /// To be documented. + /// + public static void Append(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (fmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1008,12 +1911,69 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* ppos = &pos) + AppendNative(self, axis, value, bg, fg, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void Append(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, ref byte fmt) + { + fixed (ImPlotTagCollection* pself = &self) + { + fixed (byte* pfmt = &fmt) + { + AppendNative((ImPlotTagCollection*)pself, axis, value, bg, fg, (byte*)pfmt); + } + } + } + + /// + /// To be documented. + /// + public static void Append(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan fmt) + { + fixed (ImPlotTagCollection* pself = &self) + { + fixed (byte* pfmt = fmt) + { + AppendNative((ImPlotTagCollection*)pself, axis, value, bg, fg, (byte*)pfmt); + } + } + } + + /// + /// To be documented. + /// + public static void Append(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, string fmt) + { + fixed (ImPlotTagCollection* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AppendNative((ImPlotTagCollection*)pself, axis, value, bg, fg, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1024,13 +1984,266 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, ref long pos, int count, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetTextNative(ImPlotTagCollection* self, int idx) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[516])(self, idx); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[516])((nint)self, idx); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetText(ImPlotTagCollectionPtr self, int idx) + { + byte* ret = GetTextNative(self, idx); + return ret; + } + + /// + /// To be documented. + /// + public static string GetTextS(ImPlotTagCollectionPtr self, int idx) + { + string ret = Utils.DecodeStringUTF8(GetTextNative(self, idx)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* GetText(ref ImPlotTagCollection self, int idx) + { + fixed (ImPlotTagCollection* pself = &self) + { + byte* ret = GetTextNative((ImPlotTagCollection*)pself, idx); + return ret; + } + } + + /// + /// To be documented. + /// + public static string GetTextS(ref ImPlotTagCollection self, int idx) + { + fixed (ImPlotTagCollection* pself = &self) + { + string ret = Utils.DecodeStringUTF8(GetTextNative((ImPlotTagCollection*)pself, idx)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ResetNative(ImPlotTagCollection* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[517])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[517])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Reset(ImPlotTagCollectionPtr self) + { + ResetNative(self); + } + + /// + /// To be documented. + /// + public static void Reset(ref ImPlotTagCollection self) + { + fixed (ImPlotTagCollection* pself = &self) + { + ResetNative((ImPlotTagCollection*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotTick* ImPlotTickNative(double value, byte major, int level, byte showLabel) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[518])(value, major, level, showLabel); + #else + return (ImPlotTick*)((delegate* unmanaged[Cdecl])funcTable[518])(value, major, level, showLabel); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTickPtr ImPlotTick(double value, bool major, int level, bool showLabel) + { + ImPlotTickPtr ret = ImPlotTickNative(value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotTick* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[519])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[519])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotTickPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotTick self) + { + fixed (ImPlotTick* pself = &self) + { + DestroyNative((ImPlotTick*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotTicker* ImPlotTickerNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[520])(); + #else + return (ImPlotTicker*)((delegate* unmanaged[Cdecl])funcTable[520])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTickerPtr ImPlotTicker() + { + ImPlotTickerPtr ret = ImPlotTickerNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotTicker* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[521])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[521])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotTickerPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotTicker self) + { + fixed (ImPlotTicker* pself = &self) + { + DestroyNative((ImPlotTicker*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotTick* AddTickNative(ImPlotTicker* self, double value, byte major, int level, byte showLabel, byte* label) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[522])(self, value, major, level, showLabel, label); + #else + return (ImPlotTick*)((delegate* unmanaged[Cdecl])funcTable[522])((nint)self, value, major, level, showLabel, (nint)label); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, double value, bool major, int level, bool showLabel, byte* label) + { + ImPlotTickPtr ret = AddTickNative(self, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, label); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotTickPtr AddTick(ref ImPlotTicker self, double value, bool major, int level, bool showLabel, byte* label) + { + fixed (ImPlotTicker* pself = &self) + { + ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, label); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, double value, bool major, int level, bool showLabel, ref byte label) + { + fixed (byte* plabel = &label) + { + ImPlotTickPtr ret = AddTickNative(self, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, double value, bool major, int level, bool showLabel, ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + ImPlotTickPtr ret = AddTickNative(self, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, double value, bool major, int level, bool showLabel, string label) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1040,47 +2253,933 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (long* ppos = &pos) + ImPlotTickPtr ret = AddTickNative(self, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotTickPtr AddTick(ref ImPlotTicker self, double value, bool major, int level, bool showLabel, ref byte label) + { + fixed (ImPlotTicker* pself = &self) + { + fixed (byte* plabel = &label) + { + ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImPlotTickPtr AddTick(ref ImPlotTicker self, double value, bool major, int level, bool showLabel, ReadOnlySpan label) + { + fixed (ImPlotTicker* pself = &self) + { + fixed (byte* plabel = label) + { + ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImPlotTickPtr AddTick(ref ImPlotTicker self, double value, bool major, int level, bool showLabel, string label) + { + fixed (ImPlotTicker* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, ref long pos, int count, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotTick* AddTickNative(ImPlotTicker* self, double value, byte major, int level, byte showLabel, ImPlotFormatter formatter, void* data) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl], void*, ImPlotTick*>)funcTable[523])(self, value, major, level, showLabel, (delegate*)Utils.GetFunctionPointerForDelegate(formatter), data); + #else + return (ImPlotTick*)((delegate* unmanaged[Cdecl])funcTable[523])((nint)self, value, major, level, showLabel, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)data); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, double value, bool major, int level, bool showLabel, ImPlotFormatter formatter, void* data) + { + ImPlotTickPtr ret = AddTickNative(self, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, formatter, data); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotTickPtr AddTick(ref ImPlotTicker self, double value, bool major, int level, bool showLabel, ImPlotFormatter formatter, void* data) + { + fixed (ImPlotTicker* pself = &self) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, formatter, data); + return ret; } - fixed (long* ppos = &pos) + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotTick* AddTickNative(ImPlotTicker* self, ImPlotTick tick) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[524])(self, tick); + #else + return (ImPlotTick*)((delegate* unmanaged[Cdecl])funcTable[524])((nint)self, tick); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, ImPlotTick tick) + { + ImPlotTickPtr ret = AddTickNative(self, tick); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotTickPtr AddTick(ref ImPlotTicker self, ImPlotTick tick) + { + fixed (ImPlotTicker* pself = &self) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, tick); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetTextNative(ImPlotTicker* self, int idx) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[525])(self, idx); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[525])((nint)self, idx); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetText(ImPlotTickerPtr self, int idx) + { + byte* ret = GetTextNative(self, idx); + return ret; + } + + /// + /// To be documented. + /// + public static string GetTextS(ImPlotTickerPtr self, int idx) + { + string ret = Utils.DecodeStringUTF8(GetTextNative(self, idx)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* GetText(ref ImPlotTicker self, int idx) + { + fixed (ImPlotTicker* pself = &self) + { + byte* ret = GetTextNative((ImPlotTicker*)pself, idx); + return ret; + } + } + + /// + /// To be documented. + /// + public static string GetTextS(ref ImPlotTicker self, int idx) + { + fixed (ImPlotTicker* pself = &self) + { + string ret = Utils.DecodeStringUTF8(GetTextNative((ImPlotTicker*)pself, idx)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetTextNative(ImPlotTicker* self, ImPlotTick tick) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[526])(self, tick); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[526])((nint)self, tick); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetText(ImPlotTickerPtr self, ImPlotTick tick) + { + byte* ret = GetTextNative(self, tick); + return ret; + } + + /// + /// To be documented. + /// + public static string GetTextS(ImPlotTickerPtr self, ImPlotTick tick) + { + string ret = Utils.DecodeStringUTF8(GetTextNative(self, tick)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* GetText(ref ImPlotTicker self, ImPlotTick tick) + { + fixed (ImPlotTicker* pself = &self) + { + byte* ret = GetTextNative((ImPlotTicker*)pself, tick); + return ret; + } + } + + /// + /// To be documented. + /// + public static string GetTextS(ref ImPlotTicker self, ImPlotTick tick) + { + fixed (ImPlotTicker* pself = &self) + { + string ret = Utils.DecodeStringUTF8(GetTextNative((ImPlotTicker*)pself, tick)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void OverrideSizeLateNative(ImPlotTicker* self, Vector2 size) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[527])(self, size); + #else + ((delegate* unmanaged[Cdecl])funcTable[527])((nint)self, size); + #endif + } + + /// + /// To be documented. + /// + public static void OverrideSizeLate(ImPlotTickerPtr self, Vector2 size) + { + OverrideSizeLateNative(self, size); + } + + /// + /// To be documented. + /// + public static void OverrideSizeLate(ref ImPlotTicker self, Vector2 size) + { + fixed (ImPlotTicker* pself = &self) + { + OverrideSizeLateNative((ImPlotTicker*)pself, size); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ResetNative(ImPlotTicker* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[528])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[528])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Reset(ImPlotTickerPtr self) + { + ResetNative(self); + } + + /// + /// To be documented. + /// + public static void Reset(ref ImPlotTicker self) + { + fixed (ImPlotTicker* pself = &self) + { + ResetNative((ImPlotTicker*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int TickCountNative(ImPlotTicker* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[529])(self); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[529])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static int TickCount(ImPlotTickerPtr self) + { + int ret = TickCountNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static int TickCount(ref ImPlotTicker self) + { + fixed (ImPlotTicker* pself = &self) + { + int ret = TickCountNative((ImPlotTicker*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotAxis* ImPlotAxisNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[530])(); + #else + return (ImPlotAxis*)((delegate* unmanaged[Cdecl])funcTable[530])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotAxisPtr ImPlotAxis() + { + ImPlotAxisPtr ret = ImPlotAxisNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[531])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[531])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotAxisPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + DestroyNative((ImPlotAxis*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ResetNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[532])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[532])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Reset(ImPlotAxisPtr self) + { + ResetNative(self); + } + + /// + /// To be documented. + /// + public static void Reset(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + ResetNative((ImPlotAxis*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte SetMinNative(ImPlotAxis* self, double min, byte force) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[533])(self, min, force); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[533])((nint)self, min, force); + #endif + } + + /// + /// To be documented. + /// + public static bool SetMin(ImPlotAxisPtr self, double min, bool force) + { + byte ret = SetMinNative(self, min, force ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SetMin(ImPlotAxisPtr self, double min) + { + byte ret = SetMinNative(self, min, (byte)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SetMin(ref ImPlotAxis self, double min, bool force) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = SetMinNative((ImPlotAxis*)pself, min, force ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SetMin(ref ImPlotAxis self, double min) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = SetMinNative((ImPlotAxis*)pself, min, (byte)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte SetMaxNative(ImPlotAxis* self, double max, byte force) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[534])(self, max, force); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[534])((nint)self, max, force); + #endif + } + + /// + /// To be documented. + /// + public static bool SetMax(ImPlotAxisPtr self, double max, bool force) + { + byte ret = SetMaxNative(self, max, force ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SetMax(ImPlotAxisPtr self, double max) + { + byte ret = SetMaxNative(self, max, (byte)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool SetMax(ref ImPlotAxis self, double max, bool force) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = SetMaxNative((ImPlotAxis*)pself, max, force ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool SetMax(ref ImPlotAxis self, double max) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = SetMaxNative((ImPlotAxis*)pself, max, (byte)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetRangeNative(ImPlotAxis* self, double v1, double v2) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[535])(self, v1, v2); + #else + ((delegate* unmanaged[Cdecl])funcTable[535])((nint)self, v1, v2); + #endif + } + + /// + /// To be documented. + /// + public static void SetRange(ImPlotAxisPtr self, double v1, double v2) + { + SetRangeNative(self, v1, v2); + } + + /// + /// To be documented. + /// + public static void SetRange(ref ImPlotAxis self, double v1, double v2) + { + fixed (ImPlotAxis* pself = &self) + { + SetRangeNative((ImPlotAxis*)pself, v1, v2); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetRangeNative(ImPlotAxis* self, ImPlotRange range) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[536])(self, range); + #else + ((delegate* unmanaged[Cdecl])funcTable[536])((nint)self, range); + #endif + } + + /// + /// To be documented. + /// + public static void SetRange(ImPlotAxisPtr self, ImPlotRange range) + { + SetRangeNative(self, range); + } + + /// + /// To be documented. + /// + public static void SetRange(ref ImPlotAxis self, ImPlotRange range) + { + fixed (ImPlotAxis* pself = &self) + { + SetRangeNative((ImPlotAxis*)pself, range); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetAspectNative(ImPlotAxis* self, double unitPerPix) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[537])(self, unitPerPix); + #else + ((delegate* unmanaged[Cdecl])funcTable[537])((nint)self, unitPerPix); + #endif + } + + /// + /// To be documented. + /// + public static void SetAspect(ImPlotAxisPtr self, double unitPerPix) + { + SetAspectNative(self, unitPerPix); + } + + /// + /// To be documented. + /// + public static void SetAspect(ref ImPlotAxis self, double unitPerPix) + { + fixed (ImPlotAxis* pself = &self) + { + SetAspectNative((ImPlotAxis*)pself, unitPerPix); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float PixelSizeNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[538])(self); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[538])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static float PixelSize(ImPlotAxisPtr self) + { + float ret = PixelSizeNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static float PixelSize(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + float ret = PixelSizeNative((ImPlotAxis*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double GetAspectNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[539])(self); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[539])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static double GetAspect(ImPlotAxisPtr self) + { + double ret = GetAspectNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static double GetAspect(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + double ret = GetAspectNative((ImPlotAxis*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ConstrainNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[540])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[540])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Constrain(ImPlotAxisPtr self) + { + ConstrainNative(self); + } + + /// + /// To be documented. + /// + public static void Constrain(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + ConstrainNative((ImPlotAxis*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void UpdateTransformCacheNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[541])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[541])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void UpdateTransformCache(ImPlotAxisPtr self) + { + UpdateTransformCacheNative(self); + } + + /// + /// To be documented. + /// + public static void UpdateTransformCache(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + UpdateTransformCacheNative((ImPlotAxis*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float PlotToPixelsNative(ImPlotAxis* self, double plt) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[542])(self, plt); + #else + return (float)((delegate* unmanaged[Cdecl])funcTable[542])((nint)self, plt); + #endif + } + + /// + /// To be documented. + /// + public static float PlotToPixels(ImPlotAxisPtr self, double plt) + { + float ret = PlotToPixelsNative(self, plt); + return ret; + } + + /// + /// To be documented. + /// + public static float PlotToPixels(ref ImPlotAxis self, double plt) + { + fixed (ImPlotAxis* pself = &self) + { + float ret = PlotToPixelsNative((ImPlotAxis*)pself, plt); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double PixelsToPlotNative(ImPlotAxis* self, float pix) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[543])(self, pix); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[543])((nint)self, pix); + #endif + } + + /// + /// To be documented. + /// + public static double PixelsToPlot(ImPlotAxisPtr self, float pix) + { + double ret = PixelsToPlotNative(self, pix); + return ret; + } + + /// + /// To be documented. + /// + public static double PixelsToPlot(ref ImPlotAxis self, float pix) + { + fixed (ImPlotAxis* pself = &self) + { + double ret = PixelsToPlotNative((ImPlotAxis*)pself, pix); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ExtendFitNative(ImPlotAxis* self, double v) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[544])(self, v); + #else + ((delegate* unmanaged[Cdecl])funcTable[544])((nint)self, v); + #endif + } + + /// + /// To be documented. + /// + public static void ExtendFit(ImPlotAxisPtr self, double v) + { + ExtendFitNative(self, v); + } + + /// + /// To be documented. + /// + public static void ExtendFit(ref ImPlotAxis self, double v) + { + fixed (ImPlotAxis* pself = &self) + { + ExtendFitNative((ImPlotAxis*)pself, v); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ExtendFitWithNative(ImPlotAxis* self, ImPlotAxis* alt, double v, double vAlt) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[545])(self, alt, v, vAlt); + #else + ((delegate* unmanaged[Cdecl])funcTable[545])((nint)self, (nint)alt, v, vAlt); + #endif + } + + /// + /// To be documented. + /// + public static void ExtendFitWith(ImPlotAxisPtr self, ImPlotAxisPtr alt, double v, double vAlt) + { + ExtendFitWithNative(self, alt, v, vAlt); + } + + /// + /// To be documented. + /// + public static void ExtendFitWith(ref ImPlotAxis self, ImPlotAxisPtr alt, double v, double vAlt) + { + fixed (ImPlotAxis* pself = &self) + { + ExtendFitWithNative((ImPlotAxis*)pself, alt, v, vAlt); + } + } + + /// + /// To be documented. + /// + public static void ExtendFitWith(ImPlotAxisPtr self, ref ImPlotAxis alt, double v, double vAlt) + { + fixed (ImPlotAxis* palt = &alt) + { + ExtendFitWithNative(self, (ImPlotAxis*)palt, v, vAlt); + } + } + + /// + /// To be documented. + /// + public static void ExtendFitWith(ref ImPlotAxis self, ref ImPlotAxis alt, double v, double vAlt) + { + fixed (ImPlotAxis* pself = &self) + { + fixed (ImPlotAxis* palt = &alt) { - Utils.Free(pStr0); + ExtendFitWithNative((ImPlotAxis*)pself, (ImPlotAxis*)palt, v, vAlt); } } } @@ -1088,13 +3187,884 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ApplyFitNative(ImPlotAxis* self, float padding) { - fixed (long* pxs = &xs) + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[546])(self, padding); + #else + ((delegate* unmanaged[Cdecl])funcTable[546])((nint)self, padding); + #endif + } + + /// + /// To be documented. + /// + public static void ApplyFit(ImPlotAxisPtr self, float padding) + { + ApplyFitNative(self, padding); + } + + /// + /// To be documented. + /// + public static void ApplyFit(ref ImPlotAxis self, float padding) + { + fixed (ImPlotAxis* pself = &self) { - fixed (long* ppos = &pos) + ApplyFitNative((ImPlotAxis*)pself, padding); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte HasLabelNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[547])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[547])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool HasLabel(ImPlotAxisPtr self) + { + byte ret = HasLabelNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool HasLabel(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = HasLabelNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte HasGridLinesNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[548])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[548])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool HasGridLines(ImPlotAxisPtr self) + { + byte ret = HasGridLinesNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool HasGridLines(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = HasGridLinesNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte HasTickLabelsNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[549])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[549])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool HasTickLabels(ImPlotAxisPtr self) + { + byte ret = HasTickLabelsNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool HasTickLabels(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = HasTickLabelsNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte HasTickMarksNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[550])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[550])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool HasTickMarks(ImPlotAxisPtr self) + { + byte ret = HasTickMarksNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool HasTickMarks(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = HasTickMarksNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte WillRenderNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[551])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[551])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool WillRender(ImPlotAxisPtr self) + { + byte ret = WillRenderNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool WillRender(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = WillRenderNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsOppositeNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[552])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[552])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsOpposite(ImPlotAxisPtr self) + { + byte ret = IsOppositeNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsOpposite(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = IsOppositeNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsInvertedNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[553])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[553])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsInverted(ImPlotAxisPtr self) + { + byte ret = IsInvertedNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsInverted(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = IsInvertedNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsForegroundNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[554])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[554])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsForeground(ImPlotAxisPtr self) + { + byte ret = IsForegroundNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsForeground(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = IsForegroundNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsAutoFittingNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[555])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[555])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsAutoFitting(ImPlotAxisPtr self) + { + byte ret = IsAutoFittingNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsAutoFitting(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = IsAutoFittingNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte CanInitFitNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[556])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[556])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool CanInitFit(ImPlotAxisPtr self) + { + byte ret = CanInitFitNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool CanInitFit(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = CanInitFitNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsRangeLockedNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[557])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[557])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsRangeLocked(ImPlotAxisPtr self) + { + byte ret = IsRangeLockedNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsRangeLocked(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = IsRangeLockedNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsLockedMinNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[558])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[558])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsLockedMin(ImPlotAxisPtr self) + { + byte ret = IsLockedMinNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsLockedMin(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = IsLockedMinNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsLockedMaxNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[559])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[559])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsLockedMax(ImPlotAxisPtr self) + { + byte ret = IsLockedMaxNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsLockedMax(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = IsLockedMaxNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsLockedNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[560])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[560])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsLocked(ImPlotAxisPtr self) + { + byte ret = IsLockedNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsLocked(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = IsLockedNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsInputLockedMinNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[561])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[561])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsInputLockedMin(ImPlotAxisPtr self) + { + byte ret = IsInputLockedMinNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsInputLockedMin(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = IsInputLockedMinNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsInputLockedMaxNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[562])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[562])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsInputLockedMax(ImPlotAxisPtr self) + { + byte ret = IsInputLockedMaxNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsInputLockedMax(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = IsInputLockedMaxNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsInputLockedNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[563])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[563])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsInputLocked(ImPlotAxisPtr self) + { + byte ret = IsInputLockedNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsInputLocked(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = IsInputLockedNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte HasMenusNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[564])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[564])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool HasMenus(ImPlotAxisPtr self) + { + byte ret = HasMenusNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool HasMenus(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = HasMenusNative((ImPlotAxis*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsPanLockedNative(ImPlotAxis* self, byte increasing) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[565])(self, increasing); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[565])((nint)self, increasing); + #endif + } + + /// + /// To be documented. + /// + public static bool IsPanLocked(ImPlotAxisPtr self, bool increasing) + { + byte ret = IsPanLockedNative(self, increasing ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsPanLocked(ref ImPlotAxis self, bool increasing) + { + fixed (ImPlotAxis* pself = &self) + { + byte ret = IsPanLockedNative((ImPlotAxis*)pself, increasing ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushLinksNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[566])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[566])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void PushLinks(ImPlotAxisPtr self) + { + PushLinksNative(self); + } + + /// + /// To be documented. + /// + public static void PushLinks(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + PushLinksNative((ImPlotAxis*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PullLinksNative(ImPlotAxis* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[567])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[567])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void PullLinks(ImPlotAxisPtr self) + { + PullLinksNative(self); + } + + /// + /// To be documented. + /// + public static void PullLinks(ref ImPlotAxis self) + { + fixed (ImPlotAxis* pself = &self) + { + PullLinksNative((ImPlotAxis*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotAlignmentData* ImPlotAlignmentDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[568])(); + #else + return (ImPlotAlignmentData*)((delegate* unmanaged[Cdecl])funcTable[568])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotAlignmentDataPtr ImPlotAlignmentData() + { + ImPlotAlignmentDataPtr ret = ImPlotAlignmentDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotAlignmentData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[569])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[569])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotAlignmentDataPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotAlignmentData self) + { + fixed (ImPlotAlignmentData* pself = &self) + { + DestroyNative((ImPlotAlignmentData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BeginNative(ImPlotAlignmentData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[570])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[570])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Begin(ImPlotAlignmentDataPtr self) + { + BeginNative(self); + } + + /// + /// To be documented. + /// + public static void Begin(ref ImPlotAlignmentData self) + { + fixed (ImPlotAlignmentData* pself = &self) + { + BeginNative((ImPlotAlignmentData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void UpdateNative(ImPlotAlignmentData* self, float* padA, float* padB, float* deltaA, float* deltaB) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[571])(self, padA, padB, deltaA, deltaB); + #else + ((delegate* unmanaged[Cdecl])funcTable[571])((nint)self, (nint)padA, (nint)padB, (nint)deltaA, (nint)deltaB); + #endif + } + + /// + /// To be documented. + /// + public static void Update(ImPlotAlignmentDataPtr self, float* padA, float* padB, float* deltaA, float* deltaB) + { + UpdateNative(self, padA, padB, deltaA, deltaB); + } + + /// + /// To be documented. + /// + public static void Update(ref ImPlotAlignmentData self, float* padA, float* padB, float* deltaA, float* deltaB) + { + fixed (ImPlotAlignmentData* pself = &self) + { + UpdateNative((ImPlotAlignmentData*)pself, padA, padB, deltaA, deltaB); + } + } + + /// + /// To be documented. + /// + public static void Update(ImPlotAlignmentDataPtr self, ref float padA, float* padB, float* deltaA, float* deltaB) + { + fixed (float* ppadA = &padA) + { + UpdateNative(self, (float*)ppadA, padB, deltaA, deltaB); + } + } + + /// + /// To be documented. + /// + public static void Update(ref ImPlotAlignmentData self, ref float padA, float* padB, float* deltaA, float* deltaB) + { + fixed (ImPlotAlignmentData* pself = &self) + { + fixed (float* ppadA = &padA) { - PlotErrorBarsNative(labelId, (long*)pxs, ys, neg, (long*)ppos, count, flags, offset, stride); + UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, padB, deltaA, deltaB); } } } @@ -1102,13 +4072,24 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void Update(ImPlotAlignmentDataPtr self, float* padA, ref float padB, float* deltaA, float* deltaB) { - fixed (long* pxs = &xs) + fixed (float* ppadB = &padB) { - fixed (long* ppos = &pos) + UpdateNative(self, padA, (float*)ppadB, deltaA, deltaB); + } + } + + /// + /// To be documented. + /// + public static void Update(ref ImPlotAlignmentData self, float* padA, ref float padB, float* deltaA, float* deltaB) + { + fixed (ImPlotAlignmentData* pself = &self) + { + fixed (float* ppadB = &padB) { - PlotErrorBarsNative(labelId, (long*)pxs, ys, neg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); + UpdateNative((ImPlotAlignmentData*)pself, padA, (float*)ppadB, deltaA, deltaB); } } } @@ -1116,13 +4097,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags) + public static void Update(ImPlotAlignmentDataPtr self, ref float padA, ref float padB, float* deltaA, float* deltaB) { - fixed (long* pxs = &xs) + fixed (float* ppadA = &padA) { - fixed (long* ppos = &pos) + fixed (float* ppadB = &padB) { - PlotErrorBarsNative(labelId, (long*)pxs, ys, neg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); + UpdateNative(self, (float*)ppadA, (float*)ppadB, deltaA, deltaB); } } } @@ -1130,57 +4111,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* neg, ref long pos, int count) + public static void Update(ref ImPlotAlignmentData self, ref float padA, ref float padB, float* deltaA, float* deltaB) { - fixed (long* pxs = &xs) + fixed (ImPlotAlignmentData* pself = &self) { - fixed (long* ppos = &pos) + fixed (float* ppadA = &padA) { - PlotErrorBarsNative(labelId, (long*)pxs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* neg, ref long pos, int count, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, long* neg, ref long pos, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* ppos = &pos) + fixed (float* ppadB = &padB) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, (long*)ppos, count, flags, offset, stride); + UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, (float*)ppadB, deltaA, deltaB); } } } @@ -1189,15 +4128,54 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void Update(ImPlotAlignmentDataPtr self, float* padA, float* padB, ref float deltaA, float* deltaB) { - fixed (byte* plabelId = &labelId) + fixed (float* pdeltaA = &deltaA) { - fixed (long* pxs = &xs) + UpdateNative(self, padA, padB, (float*)pdeltaA, deltaB); + } + } + + /// + /// To be documented. + /// + public static void Update(ref ImPlotAlignmentData self, float* padA, float* padB, ref float deltaA, float* deltaB) + { + fixed (ImPlotAlignmentData* pself = &self) + { + fixed (float* pdeltaA = &deltaA) { - fixed (long* ppos = &pos) + UpdateNative((ImPlotAlignmentData*)pself, padA, padB, (float*)pdeltaA, deltaB); + } + } + } + + /// + /// To be documented. + /// + public static void Update(ImPlotAlignmentDataPtr self, ref float padA, float* padB, ref float deltaA, float* deltaB) + { + fixed (float* ppadA = &padA) + { + fixed (float* pdeltaA = &deltaA) + { + UpdateNative(self, (float*)ppadA, padB, (float*)pdeltaA, deltaB); + } + } + } + + /// + /// To be documented. + /// + public static void Update(ref ImPlotAlignmentData self, ref float padA, float* padB, ref float deltaA, float* deltaB) + { + fixed (ImPlotAlignmentData* pself = &self) + { + fixed (float* ppadA = &padA) + { + fixed (float* pdeltaA = &deltaA) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); + UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, padB, (float*)pdeltaA, deltaB); } } } @@ -1206,15 +4184,29 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags) + public static void Update(ImPlotAlignmentDataPtr self, float* padA, ref float padB, ref float deltaA, float* deltaB) { - fixed (byte* plabelId = &labelId) + fixed (float* ppadB = &padB) { - fixed (long* pxs = &xs) + fixed (float* pdeltaA = &deltaA) { - fixed (long* ppos = &pos) + UpdateNative(self, padA, (float*)ppadB, (float*)pdeltaA, deltaB); + } + } + } + + /// + /// To be documented. + /// + public static void Update(ref ImPlotAlignmentData self, float* padA, ref float padB, ref float deltaA, float* deltaB) + { + fixed (ImPlotAlignmentData* pself = &self) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaA = &deltaA) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); + UpdateNative((ImPlotAlignmentData*)pself, padA, (float*)ppadB, (float*)pdeltaA, deltaB); } } } @@ -1223,15 +4215,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* neg, ref long pos, int count) + public static void Update(ImPlotAlignmentDataPtr self, ref float padA, ref float padB, ref float deltaA, float* deltaB) { - fixed (byte* plabelId = &labelId) + fixed (float* ppadA = &padA) { - fixed (long* pxs = &xs) + fixed (float* ppadB = &padB) { - fixed (long* ppos = &pos) + fixed (float* pdeltaA = &deltaA) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); + UpdateNative(self, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, deltaB); } } } @@ -1240,963 +4232,17 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* neg, ref long pos, int count, int offset) + public static void Update(ref ImPlotAlignmentData self, ref float padA, ref float padB, ref float deltaA, float* deltaB) { - fixed (byte* plabelId = &labelId) + fixed (ImPlotAlignmentData* pself = &self) { - fixed (long* pxs = &xs) + fixed (float* ppadA = &padA) { - fixed (long* ppos = &pos) + fixed (float* ppadB = &padB) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, long* neg, ref long pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, (long*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* neg, ref long pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* neg, ref long pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, long* neg, ref long pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, neg, (long*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, neg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, neg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* neg, ref long pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* neg, ref long pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, long* neg, ref long pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, neg, (long*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, neg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, neg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* neg, ref long pos, int count) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* neg, ref long pos, int count, int offset) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, long* neg, ref long pos, int count, int offset, int stride) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, (long*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* neg, ref long pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* neg, ref long pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, long* neg, ref long pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, (long*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* neg, ref long pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* neg, ref long pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, long* neg, ref long pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, neg, (long*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, neg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, neg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* neg, ref long pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* neg, ref long pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, long* neg, ref long pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* neg, ref long pos, int count) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) + fixed (float* pdeltaA = &deltaA) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, flags, offset, stride); + UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, deltaB); } } } @@ -2206,17 +4252,121 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void Update(ImPlotAlignmentDataPtr self, float* padA, float* padB, float* deltaA, ref float deltaB) { - fixed (byte* plabelId = &labelId) + fixed (float* pdeltaB = &deltaB) { - fixed (long* pxs = &xs) + UpdateNative(self, padA, padB, deltaA, (float*)pdeltaB); + } + } + + /// + /// To be documented. + /// + public static void Update(ref ImPlotAlignmentData self, float* padA, float* padB, float* deltaA, ref float deltaB) + { + fixed (ImPlotAlignmentData* pself = &self) + { + fixed (float* pdeltaB = &deltaB) { - fixed (long* pys = &ys) + UpdateNative((ImPlotAlignmentData*)pself, padA, padB, deltaA, (float*)pdeltaB); + } + } + } + + /// + /// To be documented. + /// + public static void Update(ImPlotAlignmentDataPtr self, ref float padA, float* padB, float* deltaA, ref float deltaB) + { + fixed (float* ppadA = &padA) + { + fixed (float* pdeltaB = &deltaB) + { + UpdateNative(self, (float*)ppadA, padB, deltaA, (float*)pdeltaB); + } + } + } + + /// + /// To be documented. + /// + public static void Update(ref ImPlotAlignmentData self, ref float padA, float* padB, float* deltaA, ref float deltaB) + { + fixed (ImPlotAlignmentData* pself = &self) + { + fixed (float* ppadA = &padA) + { + fixed (float* pdeltaB = &deltaB) { - fixed (long* ppos = &pos) + UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, padB, deltaA, (float*)pdeltaB); + } + } + } + } + + /// + /// To be documented. + /// + public static void Update(ImPlotAlignmentDataPtr self, float* padA, ref float padB, float* deltaA, ref float deltaB) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaB = &deltaB) + { + UpdateNative(self, padA, (float*)ppadB, deltaA, (float*)pdeltaB); + } + } + } + + /// + /// To be documented. + /// + public static void Update(ref ImPlotAlignmentData self, float* padA, ref float padB, float* deltaA, ref float deltaB) + { + fixed (ImPlotAlignmentData* pself = &self) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaB = &deltaB) + { + UpdateNative((ImPlotAlignmentData*)pself, padA, (float*)ppadB, deltaA, (float*)pdeltaB); + } + } + } + } + + /// + /// To be documented. + /// + public static void Update(ImPlotAlignmentDataPtr self, ref float padA, ref float padB, float* deltaA, ref float deltaB) + { + fixed (float* ppadA = &padA) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaB = &deltaB) + { + UpdateNative(self, (float*)ppadA, (float*)ppadB, deltaA, (float*)pdeltaB); + } + } + } + } + + /// + /// To be documented. + /// + public static void Update(ref ImPlotAlignmentData self, ref float padA, ref float padB, float* deltaA, ref float deltaB) + { + fixed (ImPlotAlignmentData* pself = &self) + { + fixed (float* ppadA = &padA) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaB = &deltaB) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); + UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, (float*)ppadB, deltaA, (float*)pdeltaB); } } } @@ -2226,17 +4376,65 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags) + public static void Update(ImPlotAlignmentDataPtr self, float* padA, float* padB, ref float deltaA, ref float deltaB) { - fixed (byte* plabelId = &labelId) + fixed (float* pdeltaA = &deltaA) { - fixed (long* pxs = &xs) + fixed (float* pdeltaB = &deltaB) { - fixed (long* pys = &ys) + UpdateNative(self, padA, padB, (float*)pdeltaA, (float*)pdeltaB); + } + } + } + + /// + /// To be documented. + /// + public static void Update(ref ImPlotAlignmentData self, float* padA, float* padB, ref float deltaA, ref float deltaB) + { + fixed (ImPlotAlignmentData* pself = &self) + { + fixed (float* pdeltaA = &deltaA) + { + fixed (float* pdeltaB = &deltaB) { - fixed (long* ppos = &pos) + UpdateNative((ImPlotAlignmentData*)pself, padA, padB, (float*)pdeltaA, (float*)pdeltaB); + } + } + } + } + + /// + /// To be documented. + /// + public static void Update(ImPlotAlignmentDataPtr self, ref float padA, float* padB, ref float deltaA, ref float deltaB) + { + fixed (float* ppadA = &padA) + { + fixed (float* pdeltaA = &deltaA) + { + fixed (float* pdeltaB = &deltaB) + { + UpdateNative(self, (float*)ppadA, padB, (float*)pdeltaA, (float*)pdeltaB); + } + } + } + } + + /// + /// To be documented. + /// + public static void Update(ref ImPlotAlignmentData self, ref float padA, float* padB, ref float deltaA, ref float deltaB) + { + fixed (ImPlotAlignmentData* pself = &self) + { + fixed (float* ppadA = &padA) + { + fixed (float* pdeltaA = &deltaA) + { + fixed (float* pdeltaB = &deltaB) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); + UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, padB, (float*)pdeltaA, (float*)pdeltaB); } } } @@ -2246,17 +4444,34 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* neg, ref long pos, int count) + public static void Update(ImPlotAlignmentDataPtr self, float* padA, ref float padB, ref float deltaA, ref float deltaB) { - fixed (byte* plabelId = &labelId) + fixed (float* ppadB = &padB) { - fixed (long* pxs = &xs) + fixed (float* pdeltaA = &deltaA) { - fixed (long* pys = &ys) + fixed (float* pdeltaB = &deltaB) { - fixed (long* ppos = &pos) + UpdateNative(self, padA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); + } + } + } + } + + /// + /// To be documented. + /// + public static void Update(ref ImPlotAlignmentData self, float* padA, ref float padB, ref float deltaA, ref float deltaB) + { + fixed (ImPlotAlignmentData* pself = &self) + { + fixed (float* ppadB = &padB) + { + fixed (float* pdeltaA = &deltaA) + { + fixed (float* pdeltaB = &deltaB) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); + UpdateNative((ImPlotAlignmentData*)pself, padA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); } } } @@ -2266,17 +4481,17 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, int offset) + public static void Update(ImPlotAlignmentDataPtr self, ref float padA, ref float padB, ref float deltaA, ref float deltaB) { - fixed (byte* plabelId = &labelId) + fixed (float* ppadA = &padA) { - fixed (long* pxs = &xs) + fixed (float* ppadB = &padB) { - fixed (long* pys = &ys) + fixed (float* pdeltaA = &deltaA) { - fixed (long* ppos = &pos) + fixed (float* pdeltaB = &deltaB) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); + UpdateNative(self, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); } } } @@ -2286,2644 +4501,19 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, int offset, int stride) + public static void Update(ref ImPlotAlignmentData self, ref float padA, ref float padB, ref float deltaA, ref float deltaB) { - fixed (byte* plabelId = &labelId) + fixed (ImPlotAlignmentData* pself = &self) { - fixed (long* pxs = &xs) + fixed (float* ppadA = &padA) { - fixed (long* pys = &ys) + fixed (float* ppadB = &padB) { - fixed (long* ppos = &pos) + fixed (float* pdeltaA = &deltaA) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* neg, ref long pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, neg, (long*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, neg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, neg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* neg, ref long pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, long* neg, ref long pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, neg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (long*)pneg, (long*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (long*)pneg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (long*)pneg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long neg, ref long pos, int count) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long neg, ref long pos, int count, int offset) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, ref long neg, ref long pos, int count, int offset, int stride) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, (long*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long neg, ref long pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long neg, ref long pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, ref long neg, ref long pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, (long*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long neg, ref long pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long neg, ref long pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, long* ys, ref long neg, ref long pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)pneg, (long*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)pneg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)pneg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long neg, ref long pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long neg, ref long pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, long* ys, ref long neg, ref long pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long neg, ref long pos, int count) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long neg, ref long pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long neg, ref long pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long neg, ref long pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, long* ys, ref long neg, ref long pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, ys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long neg, ref long pos, int count) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, int offset) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, int offset, int stride) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long neg, ref long pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long neg, ref long pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long neg, ref long pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, long* xs, ref long ys, ref long neg, ref long pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(labelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) + fixed (float* pdeltaB = &deltaB) { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref long xs, ref long ys, ref long neg, ref long pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - fixed (long* pneg = &neg) - { - fixed (long* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (long*)pxs, (long*)pys, (long*)pneg, (long*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); } } } @@ -4935,94 +4525,499 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + internal static void EndNative(ImPlotAlignmentData* self) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[180])(labelId, xs, ys, neg, pos, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[572])(self); #else - ((delegate* unmanaged[Cdecl])funcTable[180])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[572])((nint)self); #endif } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void End(ImPlotAlignmentDataPtr self) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); + EndNative(self); } /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void End(ref ImPlotAlignmentData self) { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) + fixed (ImPlotAlignmentData* pself = &self) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + EndNative((ImPlotAlignmentData*)pself); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ResetNative(ImPlotAlignmentData* self) { - fixed (byte* plabelId = &labelId) + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[573])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[573])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Reset(ImPlotAlignmentDataPtr self) + { + ResetNative(self); + } + + /// + /// To be documented. + /// + public static void Reset(ref ImPlotAlignmentData self) + { + fixed (ImPlotAlignmentData* pself = &self) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); + ResetNative((ImPlotAlignmentData*)pself); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotItem* ImPlotItemNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[574])(); + #else + return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[574])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr ImPlotItem() + { + ImPlotItemPtr ret = ImPlotItemNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotItem* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[575])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[575])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotItemPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotItem self) + { + fixed (ImPlotItem* pself = &self) + { + DestroyNative((ImPlotItem*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotLegend* ImPlotLegendNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[576])(); + #else + return (ImPlotLegend*)((delegate* unmanaged[Cdecl])funcTable[576])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotLegendPtr ImPlotLegend() + { + ImPlotLegendPtr ret = ImPlotLegendNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotLegend* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[577])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[577])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotLegendPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotLegend self) + { + fixed (ImPlotLegend* pself = &self) + { + DestroyNative((ImPlotLegend*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ResetNative(ImPlotLegend* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[578])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[578])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Reset(ImPlotLegendPtr self) + { + ResetNative(self); + } + + /// + /// To be documented. + /// + public static void Reset(ref ImPlotLegend self) + { + fixed (ImPlotLegend* pself = &self) + { + ResetNative((ImPlotLegend*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotItemGroup* ImPlotItemGroupNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[579])(); + #else + return (ImPlotItemGroup*)((delegate* unmanaged[Cdecl])funcTable[579])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotItemGroupPtr ImPlotItemGroup() + { + ImPlotItemGroupPtr ret = ImPlotItemGroupNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotItemGroup* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[580])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[580])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotItemGroupPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotItemGroup self) + { + fixed (ImPlotItemGroup* pself = &self) + { + DestroyNative((ImPlotItemGroup*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetItemCountNative(ImPlotItemGroup* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[581])(self); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[581])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static int GetItemCount(ImPlotItemGroupPtr self) + { + int ret = GetItemCountNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static int GetItemCount(ref ImPlotItemGroup self) + { + fixed (ImPlotItemGroup* pself = &self) + { + int ret = GetItemCountNative((ImPlotItemGroup*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetItemIDNative(ImPlotItemGroup* self, byte* labelId) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[582])(self, labelId); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[582])((nint)self, (nint)labelId); + #endif + } + + /// + /// To be documented. + /// + public static uint GetItemID(ImPlotItemGroupPtr self, byte* labelId) + { + uint ret = GetItemIDNative(self, labelId); + return ret; + } + + /// + /// To be documented. + /// + public static uint GetItemID(ref ImPlotItemGroup self, byte* labelId) + { + fixed (ImPlotItemGroup* pself = &self) + { + uint ret = GetItemIDNative((ImPlotItemGroup*)pself, labelId); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetItemID(ImPlotItemGroupPtr self, ref byte labelId) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); + uint ret = GetItemIDNative(self, (byte*)plabelId); + return ret; } } + + /// + /// To be documented. + /// + public static uint GetItemID(ImPlotItemGroupPtr self, ReadOnlySpan labelId) + { + fixed (byte* plabelId = labelId) + { + uint ret = GetItemIDNative(self, (byte*)plabelId); + return ret; + } + } + + /// + /// To be documented. + /// + public static uint GetItemID(ImPlotItemGroupPtr self, string labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetItemIDNative(self, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static uint GetItemID(ref ImPlotItemGroup self, ref byte labelId) + { + fixed (ImPlotItemGroup* pself = &self) + { + fixed (byte* plabelId = &labelId) + { + uint ret = GetItemIDNative((ImPlotItemGroup*)pself, (byte*)plabelId); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetItemID(ref ImPlotItemGroup self, ReadOnlySpan labelId) + { + fixed (ImPlotItemGroup* pself = &self) + { + fixed (byte* plabelId = labelId) + { + uint ret = GetItemIDNative((ImPlotItemGroup*)pself, (byte*)plabelId); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static uint GetItemID(ref ImPlotItemGroup self, string labelId) + { + fixed (ImPlotItemGroup* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetItemIDNative((ImPlotItemGroup*)pself, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotItem* GetItemNative(ImPlotItemGroup* self, uint id) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[583])(self, id); + #else + return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[583])((nint)self, id); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, uint id) + { + ImPlotItemPtr ret = GetItemNative(self, id); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, uint id) + { + fixed (ImPlotItemGroup* pself = &self) + { + ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, id); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotItem* GetItemNative(ImPlotItemGroup* self, byte* labelId) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[584])(self, labelId); + #else + return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[584])((nint)self, (nint)labelId); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, byte* labelId) + { + ImPlotItemPtr ret = GetItemNative(self, labelId); + return ret; + } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.069.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.069.cs index 241af4407..26c28f510 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.069.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.069.cs @@ -22,106 +22,43 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count) + public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, byte* labelId) + { + fixed (ImPlotItemGroup* pself = &self) + { + ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, labelId); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, ref byte labelId) { fixed (byte* plabelId = &labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + ImPlotItemPtr ret = GetItemNative(self, (byte*)plabelId); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, ReadOnlySpan labelId) { fixed (byte* plabelId = labelId) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); + ImPlotItemPtr ret = GetItemNative(self, (byte*)plabelId); + return ret; } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, string labelId) { byte* pStr0 = null; int pStrSize0 = 0; @@ -140,7 +77,558 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); + ImPlotItemPtr ret = GetItemNative(self, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, ref byte labelId) + { + fixed (ImPlotItemGroup* pself = &self) + { + fixed (byte* plabelId = &labelId) + { + ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, (byte*)plabelId); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, ReadOnlySpan labelId) + { + fixed (ImPlotItemGroup* pself = &self) + { + fixed (byte* plabelId = labelId) + { + ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, (byte*)plabelId); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, string labelId) + { + fixed (ImPlotItemGroup* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotItem* GetOrAddItemNative(ImPlotItemGroup* self, uint id) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[585])(self, id); + #else + return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[585])((nint)self, id); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetOrAddItem(ImPlotItemGroupPtr self, uint id) + { + ImPlotItemPtr ret = GetOrAddItemNative(self, id); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetOrAddItem(ref ImPlotItemGroup self, uint id) + { + fixed (ImPlotItemGroup* pself = &self) + { + ImPlotItemPtr ret = GetOrAddItemNative((ImPlotItemGroup*)pself, id); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotItem* GetItemByIndexNative(ImPlotItemGroup* self, int i) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[586])(self, i); + #else + return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[586])((nint)self, i); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetItemByIndex(ImPlotItemGroupPtr self, int i) + { + ImPlotItemPtr ret = GetItemByIndexNative(self, i); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetItemByIndex(ref ImPlotItemGroup self, int i) + { + fixed (ImPlotItemGroup* pself = &self) + { + ImPlotItemPtr ret = GetItemByIndexNative((ImPlotItemGroup*)pself, i); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetItemIndexNative(ImPlotItemGroup* self, ImPlotItem* item) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[587])(self, item); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[587])((nint)self, (nint)item); + #endif + } + + /// + /// To be documented. + /// + public static int GetItemIndex(ImPlotItemGroupPtr self, ImPlotItemPtr item) + { + int ret = GetItemIndexNative(self, item); + return ret; + } + + /// + /// To be documented. + /// + public static int GetItemIndex(ref ImPlotItemGroup self, ImPlotItemPtr item) + { + fixed (ImPlotItemGroup* pself = &self) + { + int ret = GetItemIndexNative((ImPlotItemGroup*)pself, item); + return ret; + } + } + + /// + /// To be documented. + /// + public static int GetItemIndex(ImPlotItemGroupPtr self, ref ImPlotItem item) + { + fixed (ImPlotItem* pitem = &item) + { + int ret = GetItemIndexNative(self, (ImPlotItem*)pitem); + return ret; + } + } + + /// + /// To be documented. + /// + public static int GetItemIndex(ref ImPlotItemGroup self, ref ImPlotItem item) + { + fixed (ImPlotItemGroup* pself = &self) + { + fixed (ImPlotItem* pitem = &item) + { + int ret = GetItemIndexNative((ImPlotItemGroup*)pself, (ImPlotItem*)pitem); + return ret; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetLegendCountNative(ImPlotItemGroup* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[588])(self); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[588])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static int GetLegendCount(ImPlotItemGroupPtr self) + { + int ret = GetLegendCountNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static int GetLegendCount(ref ImPlotItemGroup self) + { + fixed (ImPlotItemGroup* pself = &self) + { + int ret = GetLegendCountNative((ImPlotItemGroup*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotItem* GetLegendItemNative(ImPlotItemGroup* self, int i) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[589])(self, i); + #else + return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[589])((nint)self, i); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetLegendItem(ImPlotItemGroupPtr self, int i) + { + ImPlotItemPtr ret = GetLegendItemNative(self, i); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetLegendItem(ref ImPlotItemGroup self, int i) + { + fixed (ImPlotItemGroup* pself = &self) + { + ImPlotItemPtr ret = GetLegendItemNative((ImPlotItemGroup*)pself, i); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetLegendLabelNative(ImPlotItemGroup* self, int i) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[590])(self, i); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[590])((nint)self, i); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetLegendLabel(ImPlotItemGroupPtr self, int i) + { + byte* ret = GetLegendLabelNative(self, i); + return ret; + } + + /// + /// To be documented. + /// + public static string GetLegendLabelS(ImPlotItemGroupPtr self, int i) + { + string ret = Utils.DecodeStringUTF8(GetLegendLabelNative(self, i)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* GetLegendLabel(ref ImPlotItemGroup self, int i) + { + fixed (ImPlotItemGroup* pself = &self) + { + byte* ret = GetLegendLabelNative((ImPlotItemGroup*)pself, i); + return ret; + } + } + + /// + /// To be documented. + /// + public static string GetLegendLabelS(ref ImPlotItemGroup self, int i) + { + fixed (ImPlotItemGroup* pself = &self) + { + string ret = Utils.DecodeStringUTF8(GetLegendLabelNative((ImPlotItemGroup*)pself, i)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ResetNative(ImPlotItemGroup* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[591])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[591])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Reset(ImPlotItemGroupPtr self) + { + ResetNative(self); + } + + /// + /// To be documented. + /// + public static void Reset(ref ImPlotItemGroup self) + { + fixed (ImPlotItemGroup* pself = &self) + { + ResetNative((ImPlotItemGroup*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotPlot* ImPlotPlotNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[592])(); + #else + return (ImPlotPlot*)((delegate* unmanaged[Cdecl])funcTable[592])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotPlotPtr ImPlotPlot() + { + ImPlotPlotPtr ret = ImPlotPlotNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotPlot* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[593])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[593])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotPlotPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotPlot self) + { + fixed (ImPlotPlot* pself = &self) + { + DestroyNative((ImPlotPlot*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsInputLockedNative(ImPlotPlot* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[594])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[594])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool IsInputLocked(ImPlotPlotPtr self) + { + byte ret = IsInputLockedNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool IsInputLocked(ref ImPlotPlot self) + { + fixed (ImPlotPlot* pself = &self) + { + byte ret = IsInputLockedNative((ImPlotPlot*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClearTextBufferNative(ImPlotPlot* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[595])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[595])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void ClearTextBuffer(ImPlotPlotPtr self) + { + ClearTextBufferNative(self); + } + + /// + /// To be documented. + /// + public static void ClearTextBuffer(ref ImPlotPlot self) + { + fixed (ImPlotPlot* pself = &self) + { + ClearTextBufferNative((ImPlotPlot*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetTitleNative(ImPlotPlot* self, byte* title) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[596])(self, title); + #else + ((delegate* unmanaged[Cdecl])funcTable[596])((nint)self, (nint)title); + #endif + } + + /// + /// To be documented. + /// + public static void SetTitle(ImPlotPlotPtr self, byte* title) + { + SetTitleNative(self, title); + } + + /// + /// To be documented. + /// + public static void SetTitle(ref ImPlotPlot self, byte* title) + { + fixed (ImPlotPlot* pself = &self) + { + SetTitleNative((ImPlotPlot*)pself, title); + } + } + + /// + /// To be documented. + /// + public static void SetTitle(ImPlotPlotPtr self, ref byte title) + { + fixed (byte* ptitle = &title) + { + SetTitleNative(self, (byte*)ptitle); + } + } + + /// + /// To be documented. + /// + public static void SetTitle(ImPlotPlotPtr self, ReadOnlySpan title) + { + fixed (byte* ptitle = title) + { + SetTitleNative(self, (byte*)ptitle); + } + } + + /// + /// To be documented. + /// + public static void SetTitle(ImPlotPlotPtr self, string title) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (title != null) + { + pStrSize0 = Utils.GetByteCountUTF8(title); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(title, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetTitleNative(self, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -150,13 +638,445 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void SetTitle(ref ImPlotPlot self, ref byte title) + { + fixed (ImPlotPlot* pself = &self) + { + fixed (byte* ptitle = &title) + { + SetTitleNative((ImPlotPlot*)pself, (byte*)ptitle); + } + } + } + + /// + /// To be documented. + /// + public static void SetTitle(ref ImPlotPlot self, ReadOnlySpan title) + { + fixed (ImPlotPlot* pself = &self) + { + fixed (byte* ptitle = title) + { + SetTitleNative((ImPlotPlot*)pself, (byte*)ptitle); + } + } + } + + /// + /// To be documented. + /// + public static void SetTitle(ref ImPlotPlot self, string title) + { + fixed (ImPlotPlot* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (title != null) + { + pStrSize0 = Utils.GetByteCountUTF8(title); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(title, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetTitleNative((ImPlotPlot*)pself, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte HasTitleNative(ImPlotPlot* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[597])(self); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[597])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static bool HasTitle(ImPlotPlotPtr self) + { + byte ret = HasTitleNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool HasTitle(ref ImPlotPlot self) + { + fixed (ImPlotPlot* pself = &self) + { + byte ret = HasTitleNative((ImPlotPlot*)pself); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetTitleNative(ImPlotPlot* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[598])(self); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[598])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetTitle(ImPlotPlotPtr self) + { + byte* ret = GetTitleNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static string GetTitleS(ImPlotPlotPtr self) + { + string ret = Utils.DecodeStringUTF8(GetTitleNative(self)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* GetTitle(ref ImPlotPlot self) + { + fixed (ImPlotPlot* pself = &self) + { + byte* ret = GetTitleNative((ImPlotPlot*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + public static string GetTitleS(ref ImPlotPlot self) + { + fixed (ImPlotPlot* pself = &self) + { + string ret = Utils.DecodeStringUTF8(GetTitleNative((ImPlotPlot*)pself)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotAxis* XAxisNative(ImPlotPlot* self, int i) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[599])(self, i); + #else + return (ImPlotAxis*)((delegate* unmanaged[Cdecl])funcTable[599])((nint)self, i); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotAxisPtr XAxis(ImPlotPlotPtr self, int i) + { + ImPlotAxisPtr ret = XAxisNative(self, i); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotAxisPtr XAxis(ref ImPlotPlot self, int i) + { + fixed (ImPlotPlot* pself = &self) + { + ImPlotAxisPtr ret = XAxisNative((ImPlotPlot*)pself, i); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotAxis* ImPlotPlotXAxisConstNative(ImPlotPlot* self, int i) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[600])(self, i); + #else + return (ImPlotAxis*)((delegate* unmanaged[Cdecl])funcTable[600])((nint)self, i); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotAxisPtr ImPlotPlotXAxisConst(ImPlotPlotPtr self, int i) + { + ImPlotAxisPtr ret = ImPlotPlotXAxisConstNative(self, i); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotAxisPtr ImPlotPlotXAxisConst(ref ImPlotPlot self, int i) + { + fixed (ImPlotPlot* pself = &self) + { + ImPlotAxisPtr ret = ImPlotPlotXAxisConstNative((ImPlotPlot*)pself, i); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotAxis* YAxisNative(ImPlotPlot* self, int i) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[601])(self, i); + #else + return (ImPlotAxis*)((delegate* unmanaged[Cdecl])funcTable[601])((nint)self, i); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotAxisPtr YAxis(ImPlotPlotPtr self, int i) + { + ImPlotAxisPtr ret = YAxisNative(self, i); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotAxisPtr YAxis(ref ImPlotPlot self, int i) + { + fixed (ImPlotPlot* pself = &self) + { + ImPlotAxisPtr ret = YAxisNative((ImPlotPlot*)pself, i); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotAxis* ImPlotPlotYAxisConstNative(ImPlotPlot* self, int i) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[602])(self, i); + #else + return (ImPlotAxis*)((delegate* unmanaged[Cdecl])funcTable[602])((nint)self, i); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotAxisPtr ImPlotPlotYAxisConst(ImPlotPlotPtr self, int i) + { + ImPlotAxisPtr ret = ImPlotPlotYAxisConstNative(self, i); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotAxisPtr ImPlotPlotYAxisConst(ref ImPlotPlot self, int i) + { + fixed (ImPlotPlot* pself = &self) + { + ImPlotAxisPtr ret = ImPlotPlotYAxisConstNative((ImPlotPlot*)pself, i); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int EnabledAxesXNative(ImPlotPlot* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[603])(self); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[603])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static int EnabledAxesX(ImPlotPlotPtr self) + { + int ret = EnabledAxesXNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static int EnabledAxesX(ref ImPlotPlot self) + { + fixed (ImPlotPlot* pself = &self) + { + int ret = EnabledAxesXNative((ImPlotPlot*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int EnabledAxesYNative(ImPlotPlot* self) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[604])(self); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[604])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static int EnabledAxesY(ImPlotPlotPtr self) + { + int ret = EnabledAxesYNative(self); + return ret; + } + + /// + /// To be documented. + /// + public static int EnabledAxesY(ref ImPlotPlot self) + { + fixed (ImPlotPlot* pself = &self) + { + int ret = EnabledAxesYNative((ImPlotPlot*)pself); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetAxisLabelNative(ImPlotPlot* self, ImPlotAxis* axis, byte* label) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[605])(self, axis, label); + #else + ((delegate* unmanaged[Cdecl])funcTable[605])((nint)self, (nint)axis, (nint)label); + #endif + } + + /// + /// To be documented. + /// + public static void SetAxisLabel(ImPlotPlotPtr self, ImPlotAxisPtr axis, byte* label) + { + SetAxisLabelNative(self, axis, label); + } + + /// + /// To be documented. + /// + public static void SetAxisLabel(ref ImPlotPlot self, ImPlotAxisPtr axis, byte* label) + { + fixed (ImPlotPlot* pself = &self) + { + SetAxisLabelNative((ImPlotPlot*)pself, axis, label); + } + } + + /// + /// To be documented. + /// + public static void SetAxisLabel(ImPlotPlotPtr self, ref ImPlotAxis axis, byte* label) + { + fixed (ImPlotAxis* paxis = &axis) + { + SetAxisLabelNative(self, (ImPlotAxis*)paxis, label); + } + } + + /// + /// To be documented. + /// + public static void SetAxisLabel(ref ImPlotPlot self, ref ImPlotAxis axis, byte* label) + { + fixed (ImPlotPlot* pself = &self) + { + fixed (ImPlotAxis* paxis = &axis) + { + SetAxisLabelNative((ImPlotPlot*)pself, (ImPlotAxis*)paxis, label); + } + } + } + + /// + /// To be documented. + /// + public static void SetAxisLabel(ImPlotPlotPtr self, ImPlotAxisPtr axis, ref byte label) + { + fixed (byte* plabel = &label) + { + SetAxisLabelNative(self, axis, (byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void SetAxisLabel(ImPlotPlotPtr self, ImPlotAxisPtr axis, ReadOnlySpan label) + { + fixed (byte* plabel = label) + { + SetAxisLabelNative(self, axis, (byte*)plabel); + } + } + + /// + /// To be documented. + /// + public static void SetAxisLabel(ImPlotPlotPtr self, ImPlotAxisPtr axis, string label) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -166,10 +1086,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); + SetAxisLabelNative(self, axis, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -179,7 +1099,975 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) + public static void SetAxisLabel(ref ImPlotPlot self, ImPlotAxisPtr axis, ref byte label) + { + fixed (ImPlotPlot* pself = &self) + { + fixed (byte* plabel = &label) + { + SetAxisLabelNative((ImPlotPlot*)pself, axis, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void SetAxisLabel(ref ImPlotPlot self, ImPlotAxisPtr axis, ReadOnlySpan label) + { + fixed (ImPlotPlot* pself = &self) + { + fixed (byte* plabel = label) + { + SetAxisLabelNative((ImPlotPlot*)pself, axis, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void SetAxisLabel(ref ImPlotPlot self, ImPlotAxisPtr axis, string label) + { + fixed (ImPlotPlot* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetAxisLabelNative((ImPlotPlot*)pself, axis, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void SetAxisLabel(ImPlotPlotPtr self, ref ImPlotAxis axis, ref byte label) + { + fixed (ImPlotAxis* paxis = &axis) + { + fixed (byte* plabel = &label) + { + SetAxisLabelNative(self, (ImPlotAxis*)paxis, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void SetAxisLabel(ImPlotPlotPtr self, ref ImPlotAxis axis, ReadOnlySpan label) + { + fixed (ImPlotAxis* paxis = &axis) + { + fixed (byte* plabel = label) + { + SetAxisLabelNative(self, (ImPlotAxis*)paxis, (byte*)plabel); + } + } + } + + /// + /// To be documented. + /// + public static void SetAxisLabel(ImPlotPlotPtr self, ref ImPlotAxis axis, string label) + { + fixed (ImPlotAxis* paxis = &axis) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetAxisLabelNative(self, (ImPlotAxis*)paxis, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void SetAxisLabel(ref ImPlotPlot self, ref ImPlotAxis axis, ref byte label) + { + fixed (ImPlotPlot* pself = &self) + { + fixed (ImPlotAxis* paxis = &axis) + { + fixed (byte* plabel = &label) + { + SetAxisLabelNative((ImPlotPlot*)pself, (ImPlotAxis*)paxis, (byte*)plabel); + } + } + } + } + + /// + /// To be documented. + /// + public static void SetAxisLabel(ref ImPlotPlot self, ref ImPlotAxis axis, ReadOnlySpan label) + { + fixed (ImPlotPlot* pself = &self) + { + fixed (ImPlotAxis* paxis = &axis) + { + fixed (byte* plabel = label) + { + SetAxisLabelNative((ImPlotPlot*)pself, (ImPlotAxis*)paxis, (byte*)plabel); + } + } + } + } + + /// + /// To be documented. + /// + public static void SetAxisLabel(ref ImPlotPlot self, ref ImPlotAxis axis, string label) + { + fixed (ImPlotPlot* pself = &self) + { + fixed (ImPlotAxis* paxis = &axis) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SetAxisLabelNative((ImPlotPlot*)pself, (ImPlotAxis*)paxis, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte* GetAxisLabelNative(ImPlotPlot* self, ImPlotAxis axis) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[606])(self, axis); + #else + return (byte*)((delegate* unmanaged[Cdecl])funcTable[606])((nint)self, axis); + #endif + } + + /// + /// To be documented. + /// + public static byte* GetAxisLabel(ImPlotPlotPtr self, ImPlotAxis axis) + { + byte* ret = GetAxisLabelNative(self, axis); + return ret; + } + + /// + /// To be documented. + /// + public static string GetAxisLabelS(ImPlotPlotPtr self, ImPlotAxis axis) + { + string ret = Utils.DecodeStringUTF8(GetAxisLabelNative(self, axis)); + return ret; + } + + /// + /// To be documented. + /// + public static byte* GetAxisLabel(ref ImPlotPlot self, ImPlotAxis axis) + { + fixed (ImPlotPlot* pself = &self) + { + byte* ret = GetAxisLabelNative((ImPlotPlot*)pself, axis); + return ret; + } + } + + /// + /// To be documented. + /// + public static string GetAxisLabelS(ref ImPlotPlot self, ImPlotAxis axis) + { + fixed (ImPlotPlot* pself = &self) + { + string ret = Utils.DecodeStringUTF8(GetAxisLabelNative((ImPlotPlot*)pself, axis)); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotSubplot* ImPlotSubplotNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[607])(); + #else + return (ImPlotSubplot*)((delegate* unmanaged[Cdecl])funcTable[607])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotSubplotPtr ImPlotSubplot() + { + ImPlotSubplotPtr ret = ImPlotSubplotNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotSubplot* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[608])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[608])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotSubplotPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotSubplot self) + { + fixed (ImPlotSubplot* pself = &self) + { + DestroyNative((ImPlotSubplot*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotNextPlotData* ImPlotNextPlotDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[609])(); + #else + return (ImPlotNextPlotData*)((delegate* unmanaged[Cdecl])funcTable[609])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotNextPlotDataPtr ImPlotNextPlotData() + { + ImPlotNextPlotDataPtr ret = ImPlotNextPlotDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotNextPlotData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[610])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[610])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotNextPlotDataPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotNextPlotData self) + { + fixed (ImPlotNextPlotData* pself = &self) + { + DestroyNative((ImPlotNextPlotData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ResetNative(ImPlotNextPlotData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[611])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[611])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Reset(ImPlotNextPlotDataPtr self) + { + ResetNative(self); + } + + /// + /// To be documented. + /// + public static void Reset(ref ImPlotNextPlotData self) + { + fixed (ImPlotNextPlotData* pself = &self) + { + ResetNative((ImPlotNextPlotData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotNextItemData* ImPlotNextItemDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[612])(); + #else + return (ImPlotNextItemData*)((delegate* unmanaged[Cdecl])funcTable[612])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotNextItemDataPtr ImPlotNextItemData() + { + ImPlotNextItemDataPtr ret = ImPlotNextItemDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void DestroyNative(ImPlotNextItemData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[613])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[613])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Destroy(ImPlotNextItemDataPtr self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + public static void Destroy(ref ImPlotNextItemData self) + { + fixed (ImPlotNextItemData* pself = &self) + { + DestroyNative((ImPlotNextItemData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ResetNative(ImPlotNextItemData* self) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[614])(self); + #else + ((delegate* unmanaged[Cdecl])funcTable[614])((nint)self); + #endif + } + + /// + /// To be documented. + /// + public static void Reset(ImPlotNextItemDataPtr self) + { + ResetNative(self); + } + + /// + /// To be documented. + /// + public static void Reset(ref ImPlotNextItemData self) + { + fixed (ImPlotNextItemData* pself = &self) + { + ResetNative((ImPlotNextItemData*)pself); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void InitializeNative(ImPlotContext* ctx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[615])(ctx); + #else + ((delegate* unmanaged[Cdecl])funcTable[615])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static void Initialize(ImPlotContextPtr ctx) + { + InitializeNative(ctx); + } + + /// + /// To be documented. + /// + public static void Initialize(ref ImPlotContext ctx) + { + fixed (ImPlotContext* pctx = &ctx) + { + InitializeNative((ImPlotContext*)pctx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ResetCtxForNextPlotNative(ImPlotContext* ctx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[616])(ctx); + #else + ((delegate* unmanaged[Cdecl])funcTable[616])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static void ResetCtxForNextPlot(ImPlotContextPtr ctx) + { + ResetCtxForNextPlotNative(ctx); + } + + /// + /// To be documented. + /// + public static void ResetCtxForNextPlot(ref ImPlotContext ctx) + { + fixed (ImPlotContext* pctx = &ctx) + { + ResetCtxForNextPlotNative((ImPlotContext*)pctx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ResetCtxForNextAlignedPlotsNative(ImPlotContext* ctx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[617])(ctx); + #else + ((delegate* unmanaged[Cdecl])funcTable[617])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static void ResetCtxForNextAlignedPlots(ImPlotContextPtr ctx) + { + ResetCtxForNextAlignedPlotsNative(ctx); + } + + /// + /// To be documented. + /// + public static void ResetCtxForNextAlignedPlots(ref ImPlotContext ctx) + { + fixed (ImPlotContext* pctx = &ctx) + { + ResetCtxForNextAlignedPlotsNative((ImPlotContext*)pctx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ResetCtxForNextSubplotNative(ImPlotContext* ctx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[618])(ctx); + #else + ((delegate* unmanaged[Cdecl])funcTable[618])((nint)ctx); + #endif + } + + /// + /// To be documented. + /// + public static void ResetCtxForNextSubplot(ImPlotContextPtr ctx) + { + ResetCtxForNextSubplotNative(ctx); + } + + /// + /// To be documented. + /// + public static void ResetCtxForNextSubplot(ref ImPlotContext ctx) + { + fixed (ImPlotContext* pctx = &ctx) + { + ResetCtxForNextSubplotNative((ImPlotContext*)pctx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotPlot* GetPlotNative(byte* title) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[619])(title); + #else + return (ImPlotPlot*)((delegate* unmanaged[Cdecl])funcTable[619])((nint)title); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotPlotPtr GetPlot(byte* title) + { + ImPlotPlotPtr ret = GetPlotNative(title); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotPlotPtr GetPlot(ref byte title) + { + fixed (byte* ptitle = &title) + { + ImPlotPlotPtr ret = GetPlotNative((byte*)ptitle); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotPlotPtr GetPlot(ReadOnlySpan title) + { + fixed (byte* ptitle = title) + { + ImPlotPlotPtr ret = GetPlotNative((byte*)ptitle); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotPlotPtr GetPlot(string title) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (title != null) + { + pStrSize0 = Utils.GetByteCountUTF8(title); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(title, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImPlotPlotPtr ret = GetPlotNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotPlot* GetCurrentPlotNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[620])(); + #else + return (ImPlotPlot*)((delegate* unmanaged[Cdecl])funcTable[620])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotPlotPtr GetCurrentPlot() + { + ImPlotPlotPtr ret = GetCurrentPlotNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BustPlotCacheNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[621])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[621])(); + #endif + } + + /// + /// To be documented. + /// + public static void BustPlotCache() + { + BustPlotCacheNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShowPlotContextMenuNative(ImPlotPlot* plot) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[622])(plot); + #else + ((delegate* unmanaged[Cdecl])funcTable[622])((nint)plot); + #endif + } + + /// + /// To be documented. + /// + public static void ShowPlotContextMenu(ImPlotPlotPtr plot) + { + ShowPlotContextMenuNative(plot); + } + + /// + /// To be documented. + /// + public static void ShowPlotContextMenu(ref ImPlotPlot plot) + { + fixed (ImPlotPlot* pplot = &plot) + { + ShowPlotContextMenuNative((ImPlotPlot*)pplot); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SetupLockNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[623])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[623])(); + #endif + } + + /// + /// To be documented. + /// + public static void SetupLock() + { + SetupLockNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void SubplotNextCellNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[624])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[624])(); + #endif + } + + /// + /// To be documented. + /// + public static void SubplotNextCell() + { + SubplotNextCellNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShowSubplotsContextMenuNative(ImPlotSubplot* subplot) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[625])(subplot); + #else + ((delegate* unmanaged[Cdecl])funcTable[625])((nint)subplot); + #endif + } + + /// + /// To be documented. + /// + public static void ShowSubplotsContextMenu(ImPlotSubplotPtr subplot) + { + ShowSubplotsContextMenuNative(subplot); + } + + /// + /// To be documented. + /// + public static void ShowSubplotsContextMenu(ref ImPlotSubplot subplot) + { + fixed (ImPlotSubplot* psubplot = &subplot) + { + ShowSubplotsContextMenuNative((ImPlotSubplot*)psubplot); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte BeginItemNative(byte* labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[626])(labelId, flags, recolorFrom); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[626])((nint)labelId, flags, recolorFrom); + #endif + } + + /// + /// To be documented. + /// + public static bool BeginItem(byte* labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) + { + byte ret = BeginItemNative(labelId, flags, recolorFrom); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginItem(byte* labelId, ImPlotItemFlags flags) + { + byte ret = BeginItemNative(labelId, flags, (ImPlotCol)(-1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginItem(byte* labelId) + { + byte ret = BeginItemNative(labelId, (ImPlotItemFlags)(0), (ImPlotCol)(-1)); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginItem(byte* labelId, ImPlotCol recolorFrom) + { + byte ret = BeginItemNative(labelId, (ImPlotItemFlags)(0), recolorFrom); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginItem(ref byte labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) + { + fixed (byte* plabelId = &labelId) + { + byte ret = BeginItemNative((byte*)plabelId, flags, recolorFrom); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginItem(ref byte labelId, ImPlotItemFlags flags) + { + fixed (byte* plabelId = &labelId) + { + byte ret = BeginItemNative((byte*)plabelId, flags, (ImPlotCol)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginItem(ref byte labelId) + { + fixed (byte* plabelId = &labelId) + { + byte ret = BeginItemNative((byte*)plabelId, (ImPlotItemFlags)(0), (ImPlotCol)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginItem(ref byte labelId, ImPlotCol recolorFrom) + { + fixed (byte* plabelId = &labelId) + { + byte ret = BeginItemNative((byte*)plabelId, (ImPlotItemFlags)(0), recolorFrom); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginItem(ReadOnlySpan labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) + { + fixed (byte* plabelId = labelId) + { + byte ret = BeginItemNative((byte*)plabelId, flags, recolorFrom); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginItem(ReadOnlySpan labelId, ImPlotItemFlags flags) + { + fixed (byte* plabelId = labelId) + { + byte ret = BeginItemNative((byte*)plabelId, flags, (ImPlotCol)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginItem(ReadOnlySpan labelId) + { + fixed (byte* plabelId = labelId) + { + byte ret = BeginItemNative((byte*)plabelId, (ImPlotItemFlags)(0), (ImPlotCol)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginItem(ReadOnlySpan labelId, ImPlotCol recolorFrom) + { + fixed (byte* plabelId = labelId) + { + byte ret = BeginItemNative((byte*)plabelId, (ImPlotItemFlags)(0), recolorFrom); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool BeginItem(string labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) { byte* pStr0 = null; int pStrSize0 = 0; @@ -198,7 +2086,1260 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); + byte ret = BeginItemNative(pStr0, flags, recolorFrom); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginItem(string labelId, ImPlotItemFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginItemNative(pStr0, flags, (ImPlotCol)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginItem(string labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginItemNative(pStr0, (ImPlotItemFlags)(0), (ImPlotCol)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool BeginItem(string labelId, ImPlotCol recolorFrom) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginItemNative(pStr0, (ImPlotItemFlags)(0), recolorFrom); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void EndItemNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[627])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[627])(); + #endif + } + + /// + /// To be documented. + /// + public static void EndItem() + { + EndItemNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotItem* RegisterOrGetItemNative(byte* labelId, ImPlotItemFlags flags, bool* justCreated) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[628])(labelId, flags, justCreated); + #else + return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[628])((nint)labelId, flags, (nint)justCreated); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr RegisterOrGetItem(byte* labelId, ImPlotItemFlags flags, bool* justCreated) + { + ImPlotItemPtr ret = RegisterOrGetItemNative(labelId, flags, justCreated); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr RegisterOrGetItem(byte* labelId, ImPlotItemFlags flags) + { + ImPlotItemPtr ret = RegisterOrGetItemNative(labelId, flags, (bool*)(((void*)0))); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr RegisterOrGetItem(ref byte labelId, ImPlotItemFlags flags, bool* justCreated) + { + fixed (byte* plabelId = &labelId) + { + ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, justCreated); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr RegisterOrGetItem(ref byte labelId, ImPlotItemFlags flags) + { + fixed (byte* plabelId = &labelId) + { + ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, (bool*)(((void*)0))); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr RegisterOrGetItem(ReadOnlySpan labelId, ImPlotItemFlags flags, bool* justCreated) + { + fixed (byte* plabelId = labelId) + { + ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, justCreated); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr RegisterOrGetItem(ReadOnlySpan labelId, ImPlotItemFlags flags) + { + fixed (byte* plabelId = labelId) + { + ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, (bool*)(((void*)0))); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr RegisterOrGetItem(string labelId, ImPlotItemFlags flags, bool* justCreated) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImPlotItemPtr ret = RegisterOrGetItemNative(pStr0, flags, justCreated); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr RegisterOrGetItem(string labelId, ImPlotItemFlags flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImPlotItemPtr ret = RegisterOrGetItemNative(pStr0, flags, (bool*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr RegisterOrGetItem(byte* labelId, ImPlotItemFlags flags, ref bool justCreated) + { + fixed (bool* pjustCreated = &justCreated) + { + ImPlotItemPtr ret = RegisterOrGetItemNative(labelId, flags, (bool*)pjustCreated); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr RegisterOrGetItem(ref byte labelId, ImPlotItemFlags flags, ref bool justCreated) + { + fixed (byte* plabelId = &labelId) + { + fixed (bool* pjustCreated = &justCreated) + { + ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, (bool*)pjustCreated); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr RegisterOrGetItem(ReadOnlySpan labelId, ImPlotItemFlags flags, ref bool justCreated) + { + fixed (byte* plabelId = labelId) + { + fixed (bool* pjustCreated = &justCreated) + { + ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, (bool*)pjustCreated); + return ret; + } + } + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr RegisterOrGetItem(string labelId, ImPlotItemFlags flags, ref bool justCreated) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (bool* pjustCreated = &justCreated) + { + ImPlotItemPtr ret = RegisterOrGetItemNative(pStr0, flags, (bool*)pjustCreated); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotItem* GetItemNative(byte* labelId) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[629])(labelId); + #else + return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[629])((nint)labelId); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetItem(byte* labelId) + { + ImPlotItemPtr ret = GetItemNative(labelId); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetItem(ref byte labelId) + { + fixed (byte* plabelId = &labelId) + { + ImPlotItemPtr ret = GetItemNative((byte*)plabelId); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetItem(ReadOnlySpan labelId) + { + fixed (byte* plabelId = labelId) + { + ImPlotItemPtr ret = GetItemNative((byte*)plabelId); + return ret; + } + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetItem(string labelId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImPlotItemPtr ret = GetItemNative(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotItem* GetCurrentItemNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[630])(); + #else + return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[630])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotItemPtr GetCurrentItem() + { + ImPlotItemPtr ret = GetCurrentItemNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void BustItemCacheNative() + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[631])(); + #else + ((delegate* unmanaged[Cdecl])funcTable[631])(); + #endif + } + + /// + /// To be documented. + /// + public static void BustItemCache() + { + BustItemCacheNative(); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte AnyAxesInputLockedNative(ImPlotAxis* axes, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[632])(axes, count); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[632])((nint)axes, count); + #endif + } + + /// + /// To be documented. + /// + public static bool AnyAxesInputLocked(ImPlotAxisPtr axes, int count) + { + byte ret = AnyAxesInputLockedNative(axes, count); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool AnyAxesInputLocked(ref ImPlotAxis axes, int count) + { + fixed (ImPlotAxis* paxes = &axes) + { + byte ret = AnyAxesInputLockedNative((ImPlotAxis*)paxes, count); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte AllAxesInputLockedNative(ImPlotAxis* axes, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[633])(axes, count); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[633])((nint)axes, count); + #endif + } + + /// + /// To be documented. + /// + public static bool AllAxesInputLocked(ImPlotAxisPtr axes, int count) + { + byte ret = AllAxesInputLockedNative(axes, count); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool AllAxesInputLocked(ref ImPlotAxis axes, int count) + { + fixed (ImPlotAxis* paxes = &axes) + { + byte ret = AllAxesInputLockedNative((ImPlotAxis*)paxes, count); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte AnyAxesHeldNative(ImPlotAxis* axes, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[634])(axes, count); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[634])((nint)axes, count); + #endif + } + + /// + /// To be documented. + /// + public static bool AnyAxesHeld(ImPlotAxisPtr axes, int count) + { + byte ret = AnyAxesHeldNative(axes, count); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool AnyAxesHeld(ref ImPlotAxis axes, int count) + { + fixed (ImPlotAxis* paxes = &axes) + { + byte ret = AnyAxesHeldNative((ImPlotAxis*)paxes, count); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte AnyAxesHoveredNative(ImPlotAxis* axes, int count) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[635])(axes, count); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[635])((nint)axes, count); + #endif + } + + /// + /// To be documented. + /// + public static bool AnyAxesHovered(ImPlotAxisPtr axes, int count) + { + byte ret = AnyAxesHoveredNative(axes, count); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool AnyAxesHovered(ref ImPlotAxis axes, int count) + { + fixed (ImPlotAxis* paxes = &axes) + { + byte ret = AnyAxesHoveredNative((ImPlotAxis*)paxes, count); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte FitThisFrameNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[636])(); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[636])(); + #endif + } + + /// + /// To be documented. + /// + public static bool FitThisFrame() + { + byte ret = FitThisFrameNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FitPointXNative(double x) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[637])(x); + #else + ((delegate* unmanaged[Cdecl])funcTable[637])(x); + #endif + } + + /// + /// To be documented. + /// + public static void FitPointX(double x) + { + FitPointXNative(x); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FitPointYNative(double y) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[638])(y); + #else + ((delegate* unmanaged[Cdecl])funcTable[638])(y); + #endif + } + + /// + /// To be documented. + /// + public static void FitPointY(double y) + { + FitPointYNative(y); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FitPointNative(ImPlotPoint p) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[639])(p); + #else + ((delegate* unmanaged[Cdecl])funcTable[639])(p); + #endif + } + + /// + /// To be documented. + /// + public static void FitPoint(ImPlotPoint p) + { + FitPointNative(p); + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte RangesOverlapNative(ImPlotRange r1, ImPlotRange r2) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[640])(r1, r2); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[640])(r1, r2); + #endif + } + + /// + /// To be documented. + /// + public static bool RangesOverlap(ImPlotRange r1, ImPlotRange r2) + { + byte ret = RangesOverlapNative(r1, r2); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShowAxisContextMenuNative(ImPlotAxis* axis, ImPlotAxis* equalAxis, byte timeAllowed) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[641])(axis, equalAxis, timeAllowed); + #else + ((delegate* unmanaged[Cdecl])funcTable[641])((nint)axis, (nint)equalAxis, timeAllowed); + #endif + } + + /// + /// To be documented. + /// + public static void ShowAxisContextMenu(ImPlotAxisPtr axis, ImPlotAxisPtr equalAxis, bool timeAllowed) + { + ShowAxisContextMenuNative(axis, equalAxis, timeAllowed ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void ShowAxisContextMenu(ImPlotAxisPtr axis, ImPlotAxisPtr equalAxis) + { + ShowAxisContextMenuNative(axis, equalAxis, (byte)(0)); + } + + /// + /// To be documented. + /// + public static void ShowAxisContextMenu(ref ImPlotAxis axis, ImPlotAxisPtr equalAxis, bool timeAllowed) + { + fixed (ImPlotAxis* paxis = &axis) + { + ShowAxisContextMenuNative((ImPlotAxis*)paxis, equalAxis, timeAllowed ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void ShowAxisContextMenu(ref ImPlotAxis axis, ImPlotAxisPtr equalAxis) + { + fixed (ImPlotAxis* paxis = &axis) + { + ShowAxisContextMenuNative((ImPlotAxis*)paxis, equalAxis, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void ShowAxisContextMenu(ImPlotAxisPtr axis, ref ImPlotAxis equalAxis, bool timeAllowed) + { + fixed (ImPlotAxis* pequalAxis = &equalAxis) + { + ShowAxisContextMenuNative(axis, (ImPlotAxis*)pequalAxis, timeAllowed ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void ShowAxisContextMenu(ImPlotAxisPtr axis, ref ImPlotAxis equalAxis) + { + fixed (ImPlotAxis* pequalAxis = &equalAxis) + { + ShowAxisContextMenuNative(axis, (ImPlotAxis*)pequalAxis, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void ShowAxisContextMenu(ref ImPlotAxis axis, ref ImPlotAxis equalAxis, bool timeAllowed) + { + fixed (ImPlotAxis* paxis = &axis) + { + fixed (ImPlotAxis* pequalAxis = &equalAxis) + { + ShowAxisContextMenuNative((ImPlotAxis*)paxis, (ImPlotAxis*)pequalAxis, timeAllowed ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + public static void ShowAxisContextMenu(ref ImPlotAxis axis, ref ImPlotAxis equalAxis) + { + fixed (ImPlotAxis* paxis = &axis) + { + fixed (ImPlotAxis* pequalAxis = &equalAxis) + { + ShowAxisContextMenuNative((ImPlotAxis*)paxis, (ImPlotAxis*)pequalAxis, (byte)(0)); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetLocationPosNative(Vector2* pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location, Vector2 pad) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[642])(pOut, outerRect, innerSize, location, pad); + #else + ((delegate* unmanaged[Cdecl])funcTable[642])((nint)pOut, outerRect, innerSize, location, pad); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 GetLocationPos(ImRect outerRect, Vector2 innerSize, ImPlotLocation location) + { + Vector2 ret; + GetLocationPosNative(&ret, outerRect, innerSize, location, (Vector2)(new Vector2(0,0))); + return ret; + } + + /// + /// To be documented. + /// + public static Vector2 GetLocationPos(ImRect outerRect, Vector2 innerSize, ImPlotLocation location, Vector2 pad) + { + Vector2 ret; + GetLocationPosNative(&ret, outerRect, innerSize, location, pad); + return ret; + } + + /// + /// To be documented. + /// + public static void GetLocationPos(Vector2* pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location, Vector2 pad) + { + GetLocationPosNative(pOut, outerRect, innerSize, location, pad); + } + + /// + /// To be documented. + /// + public static void GetLocationPos(Vector2* pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location) + { + GetLocationPosNative(pOut, outerRect, innerSize, location, (Vector2)(new Vector2(0,0))); + } + + /// + /// To be documented. + /// + public static void GetLocationPos(ref Vector2 pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location, Vector2 pad) + { + fixed (Vector2* ppOut = &pOut) + { + GetLocationPosNative((Vector2*)ppOut, outerRect, innerSize, location, pad); + } + } + + /// + /// To be documented. + /// + public static void GetLocationPos(ref Vector2 pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location) + { + fixed (Vector2* ppOut = &pOut) + { + GetLocationPosNative((Vector2*)ppOut, outerRect, innerSize, location, (Vector2)(new Vector2(0,0))); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalcLegendSizeNative(Vector2* pOut, ImPlotItemGroup* items, Vector2 pad, Vector2 spacing, byte vertical) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[643])(pOut, items, pad, spacing, vertical); + #else + ((delegate* unmanaged[Cdecl])funcTable[643])((nint)pOut, (nint)items, pad, spacing, vertical); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 CalcLegendSize(ImPlotItemGroupPtr items, Vector2 pad, Vector2 spacing, bool vertical) + { + Vector2 ret; + CalcLegendSizeNative(&ret, items, pad, spacing, vertical ? (byte)1 : (byte)0); + return ret; + } + + /// + /// To be documented. + /// + public static void CalcLegendSize(Vector2* pOut, ImPlotItemGroupPtr items, Vector2 pad, Vector2 spacing, bool vertical) + { + CalcLegendSizeNative(pOut, items, pad, spacing, vertical ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void CalcLegendSize(ref Vector2 pOut, ImPlotItemGroupPtr items, Vector2 pad, Vector2 spacing, bool vertical) + { + fixed (Vector2* ppOut = &pOut) + { + CalcLegendSizeNative((Vector2*)ppOut, items, pad, spacing, vertical ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static Vector2 CalcLegendSize(ref ImPlotItemGroup items, Vector2 pad, Vector2 spacing, bool vertical) + { + fixed (ImPlotItemGroup* pitems = &items) + { + Vector2 ret; + CalcLegendSizeNative(&ret, (ImPlotItemGroup*)pitems, pad, spacing, vertical ? (byte)1 : (byte)0); + return ret; + } + } + + /// + /// To be documented. + /// + public static void CalcLegendSize(Vector2* pOut, ref ImPlotItemGroup items, Vector2 pad, Vector2 spacing, bool vertical) + { + fixed (ImPlotItemGroup* pitems = &items) + { + CalcLegendSizeNative(pOut, (ImPlotItemGroup*)pitems, pad, spacing, vertical ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void CalcLegendSize(ref Vector2 pOut, ref ImPlotItemGroup items, Vector2 pad, Vector2 spacing, bool vertical) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (ImPlotItemGroup* pitems = &items) + { + CalcLegendSizeNative((Vector2*)ppOut, (ImPlotItemGroup*)pitems, pad, spacing, vertical ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ShowLegendEntriesNative(ImPlotItemGroup* items, ImRect legendBb, byte interactable, Vector2 pad, Vector2 spacing, byte vertical, ImDrawList* drawList) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[644])(items, legendBb, interactable, pad, spacing, vertical, drawList); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[644])((nint)items, legendBb, interactable, pad, spacing, vertical, (nint)drawList); + #endif + } + + /// + /// To be documented. + /// + public static bool ShowLegendEntries(ImPlotItemGroupPtr items, ImRect legendBb, bool interactable, Vector2 pad, Vector2 spacing, bool vertical, ImDrawListPtr drawList) + { + byte ret = ShowLegendEntriesNative(items, legendBb, interactable ? (byte)1 : (byte)0, pad, spacing, vertical ? (byte)1 : (byte)0, drawList); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ShowLegendEntries(ref ImPlotItemGroup items, ImRect legendBb, bool interactable, Vector2 pad, Vector2 spacing, bool vertical, ImDrawListPtr drawList) + { + fixed (ImPlotItemGroup* pitems = &items) + { + byte ret = ShowLegendEntriesNative((ImPlotItemGroup*)pitems, legendBb, interactable ? (byte)1 : (byte)0, pad, spacing, vertical ? (byte)1 : (byte)0, drawList); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowLegendEntries(ImPlotItemGroupPtr items, ImRect legendBb, bool interactable, Vector2 pad, Vector2 spacing, bool vertical, ref ImDrawList drawList) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte ret = ShowLegendEntriesNative(items, legendBb, interactable ? (byte)1 : (byte)0, pad, spacing, vertical ? (byte)1 : (byte)0, (ImDrawList*)pdrawList); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowLegendEntries(ref ImPlotItemGroup items, ImRect legendBb, bool interactable, Vector2 pad, Vector2 spacing, bool vertical, ref ImDrawList drawList) + { + fixed (ImPlotItemGroup* pitems = &items) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte ret = ShowLegendEntriesNative((ImPlotItemGroup*)pitems, legendBb, interactable ? (byte)1 : (byte)0, pad, spacing, vertical ? (byte)1 : (byte)0, (ImDrawList*)pdrawList); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ShowAltLegendNative(byte* titleId, byte vertical, Vector2 size, byte interactable) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[645])(titleId, vertical, size, interactable); + #else + ((delegate* unmanaged[Cdecl])funcTable[645])((nint)titleId, vertical, size, interactable); + #endif + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(byte* titleId, bool vertical, Vector2 size, bool interactable) + { + ShowAltLegendNative(titleId, vertical ? (byte)1 : (byte)0, size, interactable ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(byte* titleId, bool vertical, Vector2 size) + { + ShowAltLegendNative(titleId, vertical ? (byte)1 : (byte)0, size, (byte)(1)); + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(byte* titleId, bool vertical) + { + ShowAltLegendNative(titleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), (byte)(1)); + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(byte* titleId) + { + ShowAltLegendNative(titleId, (byte)(1), (Vector2)(new Vector2(0,0)), (byte)(1)); + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(byte* titleId, Vector2 size) + { + ShowAltLegendNative(titleId, (byte)(1), size, (byte)(1)); + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(byte* titleId, bool vertical, bool interactable) + { + ShowAltLegendNative(titleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), interactable ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(byte* titleId, Vector2 size, bool interactable) + { + ShowAltLegendNative(titleId, (byte)(1), size, interactable ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(ref byte titleId, bool vertical, Vector2 size, bool interactable) + { + fixed (byte* ptitleId = &titleId) + { + ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, size, interactable ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(ref byte titleId, bool vertical, Vector2 size) + { + fixed (byte* ptitleId = &titleId) + { + ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, size, (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(ref byte titleId, bool vertical) + { + fixed (byte* ptitleId = &titleId) + { + ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(ref byte titleId) + { + fixed (byte* ptitleId = &titleId) + { + ShowAltLegendNative((byte*)ptitleId, (byte)(1), (Vector2)(new Vector2(0,0)), (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(ref byte titleId, Vector2 size) + { + fixed (byte* ptitleId = &titleId) + { + ShowAltLegendNative((byte*)ptitleId, (byte)(1), size, (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(ref byte titleId, bool vertical, bool interactable) + { + fixed (byte* ptitleId = &titleId) + { + ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), interactable ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(ref byte titleId, Vector2 size, bool interactable) + { + fixed (byte* ptitleId = &titleId) + { + ShowAltLegendNative((byte*)ptitleId, (byte)(1), size, interactable ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(ReadOnlySpan titleId, bool vertical, Vector2 size, bool interactable) + { + fixed (byte* ptitleId = titleId) + { + ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, size, interactable ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(ReadOnlySpan titleId, bool vertical, Vector2 size) + { + fixed (byte* ptitleId = titleId) + { + ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, size, (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(ReadOnlySpan titleId, bool vertical) + { + fixed (byte* ptitleId = titleId) + { + ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(ReadOnlySpan titleId) + { + fixed (byte* ptitleId = titleId) + { + ShowAltLegendNative((byte*)ptitleId, (byte)(1), (Vector2)(new Vector2(0,0)), (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(ReadOnlySpan titleId, Vector2 size) + { + fixed (byte* ptitleId = titleId) + { + ShowAltLegendNative((byte*)ptitleId, (byte)(1), size, (byte)(1)); + } + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(ReadOnlySpan titleId, bool vertical, bool interactable) + { + fixed (byte* ptitleId = titleId) + { + ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), interactable ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(ReadOnlySpan titleId, Vector2 size, bool interactable) + { + fixed (byte* ptitleId = titleId) + { + ShowAltLegendNative((byte*)ptitleId, (byte)(1), size, interactable ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(string titleId, bool vertical, Vector2 size, bool interactable) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (titleId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(titleId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ShowAltLegendNative(pStr0, vertical ? (byte)1 : (byte)0, size, interactable ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -208,13 +3349,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count) + public static void ShowAltLegend(string titleId, bool vertical, Vector2 size) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (titleId != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(titleId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -224,10 +3365,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + ShowAltLegendNative(pStr0, vertical ? (byte)1 : (byte)0, size, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -237,13 +3378,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset) + public static void ShowAltLegend(string titleId, bool vertical) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (titleId != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(titleId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -253,10 +3394,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); + ShowAltLegendNative(pStr0, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -266,13 +3407,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset, int stride) + public static void ShowAltLegend(string titleId) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (titleId != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(titleId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -282,10 +3423,10 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + ShowAltLegendNative(pStr0, (byte)(1), (Vector2)(new Vector2(0,0)), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -295,247 +3436,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void ShowAltLegend(string titleId, Vector2 size) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (titleId != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(titleId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -545,12 +3452,625 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + ShowAltLegendNative(pStr0, (byte)(1), size, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, neg, pos, count, flags, offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(string titleId, bool vertical, bool interactable) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (titleId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(titleId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ShowAltLegendNative(pStr0, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), interactable ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void ShowAltLegend(string titleId, Vector2 size, bool interactable) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (titleId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(titleId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ShowAltLegendNative(pStr0, (byte)(1), size, interactable ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ShowLegendContextMenuNative(ImPlotLegend* legend, byte visible) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[646])(legend, visible); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[646])((nint)legend, visible); + #endif + } + + /// + /// To be documented. + /// + public static bool ShowLegendContextMenu(ImPlotLegendPtr legend, bool visible) + { + byte ret = ShowLegendContextMenuNative(legend, visible ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ShowLegendContextMenu(ref ImPlotLegend legend, bool visible) + { + fixed (ImPlotLegend* plegend = &legend) + { + byte ret = ShowLegendContextMenuNative((ImPlotLegend*)plegend, visible ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void LabelAxisValueNative(ImPlotAxis axis, double value, byte* buff, int size, byte round) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[647])(axis, value, buff, size, round); + #else + ((delegate* unmanaged[Cdecl])funcTable[647])(axis, value, (nint)buff, size, round); + #endif + } + + /// + /// To be documented. + /// + public static void LabelAxisValue(ImPlotAxis axis, double value, byte* buff, int size, bool round) + { + LabelAxisValueNative(axis, value, buff, size, round ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void LabelAxisValue(ImPlotAxis axis, double value, byte* buff, int size) + { + LabelAxisValueNative(axis, value, buff, size, (byte)(0)); + } + + /// + /// To be documented. + /// + public static void LabelAxisValue(ImPlotAxis axis, double value, ref byte buff, int size, bool round) + { + fixed (byte* pbuff = &buff) + { + LabelAxisValueNative(axis, value, (byte*)pbuff, size, round ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + public static void LabelAxisValue(ImPlotAxis axis, double value, ref byte buff, int size) + { + fixed (byte* pbuff = &buff) + { + LabelAxisValueNative(axis, value, (byte*)pbuff, size, (byte)(0)); + } + } + + /// + /// To be documented. + /// + public static void LabelAxisValue(ImPlotAxis axis, double value, ref string buff, int size, bool round) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buff != null) + { + pStrSize0 = Utils.GetByteCountUTF8(buff); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LabelAxisValueNative(axis, value, pStr0, size, round ? (byte)1 : (byte)0); + buff = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void LabelAxisValue(ImPlotAxis axis, double value, ref string buff, int size) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (buff != null) + { + pStrSize0 = Utils.GetByteCountUTF8(buff); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LabelAxisValueNative(axis, value, pStr0, size, (byte)(0)); + buff = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static ImPlotNextItemData* GetItemDataNative() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[648])(); + #else + return (ImPlotNextItemData*)((delegate* unmanaged[Cdecl])funcTable[648])(); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotNextItemDataPtr GetItemData() + { + ImPlotNextItemDataPtr ret = GetItemDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsColorAutoNative(Vector4 col) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[649])(col); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[649])(col); + #endif + } + + /// + /// To be documented. + /// + public static bool IsColorAuto(Vector4 col) + { + byte ret = IsColorAutoNative(col); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsColorAutoNative(ImPlotCol idx) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[650])(idx); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[650])(idx); + #endif + } + + /// + /// To be documented. + /// + public static bool IsColorAuto(ImPlotCol idx) + { + byte ret = IsColorAutoNative(idx); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetAutoColorNative(Vector4* pOut, ImPlotCol idx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[651])(pOut, idx); + #else + ((delegate* unmanaged[Cdecl])funcTable[651])((nint)pOut, idx); + #endif + } + + /// + /// To be documented. + /// + public static Vector4 GetAutoColor(ImPlotCol idx) + { + Vector4 ret; + GetAutoColorNative(&ret, idx); + return ret; + } + + /// + /// To be documented. + /// + public static void GetAutoColor(Vector4* pOut, ImPlotCol idx) + { + GetAutoColorNative(pOut, idx); + } + + /// + /// To be documented. + /// + public static void GetAutoColor(ref Vector4 pOut, ImPlotCol idx) + { + fixed (Vector4* ppOut = &pOut) + { + GetAutoColorNative((Vector4*)ppOut, idx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void GetStyleColorVec4Native(Vector4* pOut, ImPlotCol idx) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[652])(pOut, idx); + #else + ((delegate* unmanaged[Cdecl])funcTable[652])((nint)pOut, idx); + #endif + } + + /// + /// To be documented. + /// + public static Vector4 GetStyleColorVec4(ImPlotCol idx) + { + Vector4 ret; + GetStyleColorVec4Native(&ret, idx); + return ret; + } + + /// + /// To be documented. + /// + public static void GetStyleColorVec4(Vector4* pOut, ImPlotCol idx) + { + GetStyleColorVec4Native(pOut, idx); + } + + /// + /// To be documented. + /// + public static void GetStyleColorVec4(ref Vector4 pOut, ImPlotCol idx) + { + fixed (Vector4* ppOut = &pOut) + { + GetStyleColorVec4Native((Vector4*)ppOut, idx); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetStyleColorU32Native(ImPlotCol idx) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[653])(idx); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[653])(idx); + #endif + } + + /// + /// To be documented. + /// + public static uint GetStyleColorU32(ImPlotCol idx) + { + uint ret = GetStyleColorU32Native(idx); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddTextVerticalNative(ImDrawList* drawList, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[654])(drawList, pos, col, textBegin, textEnd); + #else + ((delegate* unmanaged[Cdecl])funcTable[654])((nint)drawList, pos, col, (nint)textBegin, (nint)textEnd); + #endif + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + AddTextVerticalNative(drawList, pos, col, textBegin, textEnd); + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin) + { + AddTextVerticalNative(drawList, pos, col, textBegin, (byte*)(((void*)0))); + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, textEnd); + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin) + { + fixed (ImDrawList* pdrawList = &drawList) + { + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, (byte*)(((void*)0))); + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, textEnd); + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)(((void*)0))); + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, textEnd); + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan textBegin) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)(((void*)0))); + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextVerticalNative(drawList, pos, col, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextVerticalNative(drawList, pos, col, pStr0, (byte*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, textEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)(((void*)0))); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, textEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan textBegin) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)(((void*)0))); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -561,28 +4081,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (ImDrawList* pdrawList = &drawList) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, (byte*)(((void*)0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -593,13 +4113,35 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextVerticalNative(drawList, pos, col, textBegin, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextVerticalNative(drawList, pos, col, textBegin, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -609,12 +4151,69 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + AddTextVerticalNative(drawList, pos, col, textBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin, string textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -625,13 +4224,41 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count) + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -641,12 +4268,76 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextVerticalNative(drawList, pos, col, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin, string textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -657,28 +4348,42 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset) + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (byte* ptextBegin = textBegin) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* ptextEnd = &textEnd) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) + { + fixed (byte* ptextBegin = textBegin) { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -689,13 +4394,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset, int stride) + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin, ref byte textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -705,12 +4410,12 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pxs = &xs) + fixed (byte* ptextEnd = &textEnd) { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + AddTextVerticalNative(drawList, pos, col, pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -721,247 +4426,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, neg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, int offset) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -971,12 +4442,12 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + fixed (byte* ptextEnd = textEnd) { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, neg, pos, count, flags, offset, stride); + AddTextVerticalNative(drawList, pos, col, pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -987,28 +4458,83 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (ImDrawList* pdrawList = &drawList) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* ptextBegin = &textBegin) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + fixed (byte* ptextEnd = &textEnd) + { + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin, string textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1019,2388 +4545,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (ImDrawList* pdrawList = &drawList) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* ptextBegin = &textBegin) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)pneg, pos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)pneg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, int offset) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, int offset, int stride) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)pneg, pos, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong neg, ulong* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)pneg, pos, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong neg, ulong* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, int offset) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)pneg, pos, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong neg, ulong* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) + fixed (byte* ptextEnd = textEnd) { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); } } } @@ -3409,36 +4562,33 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin, string textEnd) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ulong* pys = &ys) + fixed (byte* ptextBegin = &textBegin) { - fixed (ulong* pneg = &neg) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -3447,112 +4597,50 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (ImDrawList* pdrawList = &drawList) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* ptextBegin = textBegin) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) + fixed (byte* ptextEnd = &textEnd) { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, flags, offset, (int)(sizeof(ulong))); + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } } @@ -3561,74 +4649,33 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, int offset) + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin, ref byte textEnd) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (ImDrawList* pdrawList = &drawList) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong neg, ulong* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) + else { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -3637,79 +4684,34 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd) { - fixed (ulong* ppos = &pos) + fixed (ImDrawList* pdrawList = &drawList) { - PlotErrorBarsNative(labelId, xs, ys, neg, (ulong*)ppos, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, int offset) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, int offset, int stride) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* ppos = &pos) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ulong*)ppos, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -3717,167 +4719,108 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddTextCenteredNative(ImDrawList* drawList, Vector2 topCenter, uint col, byte* textBegin, byte* textEnd) { - fixed (byte* plabelId = &labelId) + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[655])(drawList, topCenter, col, textBegin, textEnd); + #else + ((delegate* unmanaged[Cdecl])funcTable[655])((nint)drawList, topCenter, col, (nint)textBegin, (nint)textEnd); + #endif + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin, byte* textEnd) + { + AddTextCenteredNative(drawList, topCenter, col, textBegin, textEnd); + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin) + { + AddTextCenteredNative(drawList, topCenter, col, textBegin, (byte*)(((void*)0))); + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, textEnd); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin) { - fixed (byte* plabelId = &labelId) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, (byte*)(((void*)0))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count) + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin, byte* textEnd) { - fixed (byte* plabelId = &labelId) + fixed (byte* ptextBegin = &textBegin) { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } + AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, textEnd); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, int offset) + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin) { - fixed (byte* plabelId = &labelId) + fixed (byte* ptextBegin = &textBegin) { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } + AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)(((void*)0))); } } /// /// To be documented. /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, int offset, int stride) + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, byte* textEnd) { - fixed (byte* plabelId = &labelId) + fixed (byte* ptextBegin = textBegin) { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } + AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, textEnd); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin) { - fixed (byte* plabelId = labelId) + fixed (byte* ptextBegin = textBegin) { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ulong*)ppos, count, flags, offset, stride); - } + AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)(((void*)0))); } } /// /// To be documented. /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin, byte* textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3887,12 +4830,126 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* ppos = &pos) + AddTextCenteredNative(drawList, topCenter, col, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (ulong*)ppos, count, flags, offset, stride); + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextCenteredNative(drawList, topCenter, col, pStr0, (byte*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, textEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)(((void*)0))); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, textEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)(((void*)0))); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3903,28 +4960,28 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (ImDrawList* pdrawList = &drawList) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, (byte*)(((void*)0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -3935,13 +4992,35 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextCenteredNative(drawList, topCenter, col, textBegin, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextCenteredNative(drawList, topCenter, col, textBegin, (byte*)ptextEnd); + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3951,1073 +5030,13 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* ppos = &pos) + AddTextCenteredNative(drawList, topCenter, col, textBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, ys, neg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ref ulong pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, neg, (ulong*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, neg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, neg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ulong* neg, ref ulong pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, int offset) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, neg, (ulong*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, neg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, neg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.070.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.070.cs index 781d36c8d..984fbb78c 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.070.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.070.cs @@ -22,13 +22,101 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ulong* neg, ref ulong pos, int count, int offset, int stride) + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin, ref byte textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin, string textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -38,14 +126,324 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ulong* pys = &ys) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - fixed (ulong* ppos = &pos) + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextCenteredNative(drawList, topCenter, col, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin, string textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, string textEnd) + { + fixed (byte* ptextBegin = textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin, ref byte textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = &textEnd) + { + AddTextCenteredNative(drawList, topCenter, col, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin, ReadOnlySpan textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ptextEnd = textEnd) + { + AddTextCenteredNative(drawList, topCenter, col, pStr0, (byte*)ptextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin, string textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin, ReadOnlySpan textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = textEnd) + { + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + } + + /// + /// To be documented. + /// + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin, string textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -57,15 +455,15 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, ref byte textEnd) { - fixed (ulong* pxs = &xs) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ulong* pys = &ys) + fixed (byte* ptextBegin = textBegin) { - fixed (ulong* ppos = &pos) + fixed (byte* ptextEnd = &textEnd) { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, flags, offset, stride); + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); } } } @@ -74,871 +472,30 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, string textEnd) { - fixed (ulong* pxs = &xs) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ulong* pys = &ys) + fixed (byte* ptextBegin = textBegin) { - fixed (ulong* ppos = &pos) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, flags, offset, stride); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ulong* neg, ref ulong pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, neg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, int offset) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, int offset, int stride) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, stride); + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -950,30 +507,30 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin, ref byte textEnd) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (ImDrawList* pdrawList = &drawList) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + fixed (byte* ptextEnd = &textEnd) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -985,30 +542,30 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) + public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin, ReadOnlySpan textEnd) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) + fixed (ImDrawList* pdrawList = &drawList) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + fixed (byte* ptextEnd = textEnd) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); + AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -1017,2636 +574,84 @@ namespace Dalamud.Bindings.ImPlot } } - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ref ulong neg, ref ulong pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ulong* ys, ref ulong neg, ref ulong pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, ys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, int offset) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ulong* xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(byte* labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(labelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ref byte labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotErrorBars(string labelId, ref ulong xs, ref ulong ys, ref ulong neg, ref ulong pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - fixed (ulong* pneg = &neg) - { - fixed (ulong* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (ulong*)pxs, (ulong*)pys, (ulong*)pneg, (ulong*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + internal static void CalcTextSizeVerticalNative(Vector2* pOut, byte* text) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[181])(labelId, values, count, reference, scale, start, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[656])(pOut, text); #else - ((delegate* unmanaged[Cdecl])funcTable[181])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); + ((delegate* unmanaged[Cdecl])funcTable[656])((nint)pOut, (nint)text); #endif } /// /// To be documented. /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + public static Vector2 CalcTextSizeVertical(byte* text) { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); + Vector2 ret; + CalcTextSizeVerticalNative(&ret, text); + return ret; } /// /// To be documented. /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + public static void CalcTextSizeVertical(Vector2* pOut, byte* text) { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(float))); + CalcTextSizeVerticalNative(pOut, text); } /// /// To be documented. /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + public static void CalcTextSizeVertical(ref Vector2 pOut, byte* text) { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) + fixed (Vector2* ppOut = &pOut) { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); + CalcTextSizeVerticalNative((Vector2*)ppOut, text); } } /// /// To be documented. /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + public static Vector2 CalcTextSizeVertical(ref byte text) { - fixed (byte* plabelId = &labelId) + fixed (byte* ptext = &text) { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(float))); + Vector2 ret; + CalcTextSizeVerticalNative(&ret, (byte*)ptext); + return ret; } } /// /// To be documented. /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + public static Vector2 CalcTextSizeVertical(ReadOnlySpan text) { - fixed (byte* plabelId = &labelId) + fixed (byte* ptext = text) { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); + Vector2 ret; + CalcTextSizeVerticalNative(&ret, (byte*)ptext); + return ret; } } /// /// To be documented. /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + public static Vector2 CalcTextSizeVertical(string text) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3656,26 +661,2202 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); + Vector2 ret; + CalcTextSizeVerticalNative(&ret, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; + } + + /// + /// To be documented. + /// + public static void CalcTextSizeVertical(ref Vector2 pOut, ref byte text) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = &text) + { + CalcTextSizeVerticalNative((Vector2*)ppOut, (byte*)ptext); + } + } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + public static void CalcTextSizeVertical(ref Vector2 pOut, ReadOnlySpan text) + { + fixed (Vector2* ppOut = &pOut) + { + fixed (byte* ptext = text) + { + CalcTextSizeVerticalNative((Vector2*)ppOut, (byte*)ptext); + } + } + } + + /// + /// To be documented. + /// + public static void CalcTextSizeVertical(ref Vector2 pOut, string text) + { + fixed (Vector2* ppOut = &pOut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeVerticalNative((Vector2*)ppOut, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint CalcTextColorNative(Vector4 bg) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[657])(bg); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[657])(bg); + #endif + } + + /// + /// To be documented. + /// + public static uint CalcTextColor(Vector4 bg) + { + uint ret = CalcTextColorNative(bg); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint CalcTextColorNative(uint bg) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[658])(bg); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[658])(bg); + #endif + } + + /// + /// To be documented. + /// + public static uint CalcTextColor(uint bg) + { + uint ret = CalcTextColorNative(bg); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint CalcHoverColorNative(uint col) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[659])(col); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[659])(col); + #endif + } + + /// + /// To be documented. + /// + public static uint CalcHoverColor(uint col) + { + uint ret = CalcHoverColorNative(col); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void ClampLabelPosNative(Vector2* pOut, Vector2 pos, Vector2 size, Vector2 min, Vector2 max) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[660])(pOut, pos, size, min, max); + #else + ((delegate* unmanaged[Cdecl])funcTable[660])((nint)pOut, pos, size, min, max); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 ClampLabelPos(Vector2 pos, Vector2 size, Vector2 min, Vector2 max) + { + Vector2 ret; + ClampLabelPosNative(&ret, pos, size, min, max); + return ret; + } + + /// + /// To be documented. + /// + public static void ClampLabelPos(Vector2* pOut, Vector2 pos, Vector2 size, Vector2 min, Vector2 max) + { + ClampLabelPosNative(pOut, pos, size, min, max); + } + + /// + /// To be documented. + /// + public static void ClampLabelPos(ref Vector2 pOut, Vector2 pos, Vector2 size, Vector2 min, Vector2 max) + { + fixed (Vector2* ppOut = &pOut) + { + ClampLabelPosNative((Vector2*)ppOut, pos, size, min, max); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint GetColormapColorU32Native(int idx, ImPlotColormap cmap) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[661])(idx, cmap); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[661])(idx, cmap); + #endif + } + + /// + /// To be documented. + /// + public static uint GetColormapColorU32(int idx, ImPlotColormap cmap) + { + uint ret = GetColormapColorU32Native(idx, cmap); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint NextColormapColorU32Native() + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[662])(); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[662])(); + #endif + } + + /// + /// To be documented. + /// + public static uint NextColormapColorU32() + { + uint ret = NextColormapColorU32Native(); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint SampleColormapU32Native(float t, ImPlotColormap cmap) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[663])(t, cmap); + #else + return (uint)((delegate* unmanaged[Cdecl])funcTable[663])(t, cmap); + #endif + } + + /// + /// To be documented. + /// + public static uint SampleColormapU32(float t, ImPlotColormap cmap) + { + uint ret = SampleColormapU32Native(t, cmap); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RenderColorBarNative(uint* colors, int size, ImDrawList* drawList, ImRect bounds, byte vert, byte reversed, byte continuous) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[664])(colors, size, drawList, bounds, vert, reversed, continuous); + #else + ((delegate* unmanaged[Cdecl])funcTable[664])((nint)colors, size, (nint)drawList, bounds, vert, reversed, continuous); + #endif + } + + /// + /// To be documented. + /// + public static void RenderColorBar(uint* colors, int size, ImDrawListPtr drawList, ImRect bounds, bool vert, bool reversed, bool continuous) + { + RenderColorBarNative(colors, size, drawList, bounds, vert ? (byte)1 : (byte)0, reversed ? (byte)1 : (byte)0, continuous ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + public static void RenderColorBar(uint* colors, int size, ref ImDrawList drawList, ImRect bounds, bool vert, bool reversed, bool continuous) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderColorBarNative(colors, size, (ImDrawList*)pdrawList, bounds, vert ? (byte)1 : (byte)0, reversed ? (byte)1 : (byte)0, continuous ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double NiceNumNative(double x, byte round) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[665])(x, round); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[665])(x, round); + #endif + } + + /// + /// To be documented. + /// + public static double NiceNum(double x, bool round) + { + double ret = NiceNumNative(x, round ? (byte)1 : (byte)0); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int OrderOfMagnitudeNative(double val) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[666])(val); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[666])(val); + #endif + } + + /// + /// To be documented. + /// + public static int OrderOfMagnitude(double val) + { + int ret = OrderOfMagnitudeNative(val); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int OrderToPrecisionNative(int order) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[667])(order); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[667])(order); + #endif + } + + /// + /// To be documented. + /// + public static int OrderToPrecision(int order) + { + int ret = OrderToPrecisionNative(order); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int PrecisionNative(double val) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[668])(val); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[668])(val); + #endif + } + + /// + /// To be documented. + /// + public static int Precision(double val) + { + int ret = PrecisionNative(val); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double RoundToNative(double val, int prec) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[669])(val, prec); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[669])(val, prec); + #endif + } + + /// + /// To be documented. + /// + public static double RoundTo(double val, int prec) + { + double ret = RoundToNative(val, prec); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void IntersectionNative(Vector2* pOut, Vector2 a1, Vector2 a2, Vector2 b1, Vector2 b2) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[670])(pOut, a1, a2, b1, b2); + #else + ((delegate* unmanaged[Cdecl])funcTable[670])((nint)pOut, a1, a2, b1, b2); + #endif + } + + /// + /// To be documented. + /// + public static Vector2 Intersection(Vector2 a1, Vector2 a2, Vector2 b1, Vector2 b2) + { + Vector2 ret; + IntersectionNative(&ret, a1, a2, b1, b2); + return ret; + } + + /// + /// To be documented. + /// + public static void Intersection(Vector2* pOut, Vector2 a1, Vector2 a2, Vector2 b1, Vector2 b2) + { + IntersectionNative(pOut, a1, a2, b1, b2); + } + + /// + /// To be documented. + /// + public static void Intersection(ref Vector2 pOut, Vector2 a1, Vector2 a2, Vector2 b1, Vector2 b2) + { + fixed (Vector2* ppOut = &pOut) + { + IntersectionNative((Vector2*)ppOut, a1, a2, b1, b2); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FillRangeNative(ImVector* buffer, int n, float vmin, float vmax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, int, float, float, void>)funcTable[671])(buffer, n, vmin, vmax); + #else + ((delegate* unmanaged[Cdecl])funcTable[671])((nint)buffer, n, vmin, vmax); + #endif + } + + /// + /// To be documented. + /// + public static void FillRange(ImVector* buffer, int n, float vmin, float vmax) + { + FillRangeNative(buffer, n, vmin, vmax); + } + + /// + /// To be documented. + /// + public static void FillRange(ref ImVector buffer, int n, float vmin, float vmax) + { + fixed (ImVector* pbuffer = &buffer) + { + FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FillRangeNative(ImVector* buffer, int n, double vmin, double vmax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, int, double, double, void>)funcTable[672])(buffer, n, vmin, vmax); + #else + ((delegate* unmanaged[Cdecl])funcTable[672])((nint)buffer, n, vmin, vmax); + #endif + } + + /// + /// To be documented. + /// + public static void FillRange(ImVector* buffer, int n, double vmin, double vmax) + { + FillRangeNative(buffer, n, vmin, vmax); + } + + /// + /// To be documented. + /// + public static void FillRange(ref ImVector buffer, int n, double vmin, double vmax) + { + fixed (ImVector* pbuffer = &buffer) + { + FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FillRangeNative(ImVector* buffer, int n, sbyte vmin, sbyte vmax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, int, sbyte, sbyte, void>)funcTable[673])(buffer, n, vmin, vmax); + #else + ((delegate* unmanaged[Cdecl])funcTable[673])((nint)buffer, n, vmin, vmax); + #endif + } + + /// + /// To be documented. + /// + public static void FillRange(ImVector* buffer, int n, sbyte vmin, sbyte vmax) + { + FillRangeNative(buffer, n, vmin, vmax); + } + + /// + /// To be documented. + /// + public static void FillRange(ref ImVector buffer, int n, sbyte vmin, sbyte vmax) + { + fixed (ImVector* pbuffer = &buffer) + { + FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FillRangeNative(ImVector* buffer, int n, byte vmin, byte vmax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, int, byte, byte, void>)funcTable[674])(buffer, n, vmin, vmax); + #else + ((delegate* unmanaged[Cdecl])funcTable[674])((nint)buffer, n, vmin, vmax); + #endif + } + + /// + /// To be documented. + /// + public static void FillRange(ImVector* buffer, int n, byte vmin, byte vmax) + { + FillRangeNative(buffer, n, vmin, vmax); + } + + /// + /// To be documented. + /// + public static void FillRange(ref ImVector buffer, int n, byte vmin, byte vmax) + { + fixed (ImVector* pbuffer = &buffer) + { + FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FillRangeNative(ImVector* buffer, int n, short vmin, short vmax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, int, short, short, void>)funcTable[675])(buffer, n, vmin, vmax); + #else + ((delegate* unmanaged[Cdecl])funcTable[675])((nint)buffer, n, vmin, vmax); + #endif + } + + /// + /// To be documented. + /// + public static void FillRange(ImVector* buffer, int n, short vmin, short vmax) + { + FillRangeNative(buffer, n, vmin, vmax); + } + + /// + /// To be documented. + /// + public static void FillRange(ref ImVector buffer, int n, short vmin, short vmax) + { + fixed (ImVector* pbuffer = &buffer) + { + FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FillRangeNative(ImVector* buffer, int n, ushort vmin, ushort vmax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, int, ushort, ushort, void>)funcTable[676])(buffer, n, vmin, vmax); + #else + ((delegate* unmanaged[Cdecl])funcTable[676])((nint)buffer, n, vmin, vmax); + #endif + } + + /// + /// To be documented. + /// + public static void FillRange(ImVector* buffer, int n, ushort vmin, ushort vmax) + { + FillRangeNative(buffer, n, vmin, vmax); + } + + /// + /// To be documented. + /// + public static void FillRange(ref ImVector buffer, int n, ushort vmin, ushort vmax) + { + fixed (ImVector* pbuffer = &buffer) + { + FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FillRangeNative(ImVector* buffer, int n, int vmin, int vmax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, int, int, int, void>)funcTable[677])(buffer, n, vmin, vmax); + #else + ((delegate* unmanaged[Cdecl])funcTable[677])((nint)buffer, n, vmin, vmax); + #endif + } + + /// + /// To be documented. + /// + public static void FillRange(ImVector* buffer, int n, int vmin, int vmax) + { + FillRangeNative(buffer, n, vmin, vmax); + } + + /// + /// To be documented. + /// + public static void FillRange(ref ImVector buffer, int n, int vmin, int vmax) + { + fixed (ImVector* pbuffer = &buffer) + { + FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FillRangeNative(ImVector* buffer, int n, uint vmin, uint vmax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, int, uint, uint, void>)funcTable[678])(buffer, n, vmin, vmax); + #else + ((delegate* unmanaged[Cdecl])funcTable[678])((nint)buffer, n, vmin, vmax); + #endif + } + + /// + /// To be documented. + /// + public static void FillRange(ImVector* buffer, int n, uint vmin, uint vmax) + { + FillRangeNative(buffer, n, vmin, vmax); + } + + /// + /// To be documented. + /// + public static void FillRange(ref ImVector buffer, int n, uint vmin, uint vmax) + { + fixed (ImVector* pbuffer = &buffer) + { + FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FillRangeNative(ImVector* buffer, int n, long vmin, long vmax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, int, long, long, void>)funcTable[679])(buffer, n, vmin, vmax); + #else + ((delegate* unmanaged[Cdecl])funcTable[679])((nint)buffer, n, vmin, vmax); + #endif + } + + /// + /// To be documented. + /// + public static void FillRange(ImVector* buffer, int n, long vmin, long vmax) + { + FillRangeNative(buffer, n, vmin, vmax); + } + + /// + /// To be documented. + /// + public static void FillRange(ref ImVector buffer, int n, long vmin, long vmax) + { + fixed (ImVector* pbuffer = &buffer) + { + FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FillRangeNative(ImVector* buffer, int n, ulong vmin, ulong vmax) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl]*, int, ulong, ulong, void>)funcTable[680])(buffer, n, vmin, vmax); + #else + ((delegate* unmanaged[Cdecl])funcTable[680])((nint)buffer, n, vmin, vmax); + #endif + } + + /// + /// To be documented. + /// + public static void FillRange(ImVector* buffer, int n, ulong vmin, ulong vmax) + { + FillRangeNative(buffer, n, vmin, vmax); + } + + /// + /// To be documented. + /// + public static void FillRange(ref ImVector buffer, int n, ulong vmin, ulong vmax) + { + fixed (ImVector* pbuffer = &buffer) + { + FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalculateBinsNative(float* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[681])(values, count, meth, range, binsOut, widthOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[681])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); + #endif + } + + /// + /// To be documented. + /// + public static void CalculateBins(float* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, widthOut); + } + + /// + /// To be documented. + /// + public static void CalculateBins(ref float values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + fixed (float* pvalues = &values) + { + CalculateBinsNative((float*)pvalues, count, meth, range, binsOut, widthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(float* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(ref float values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) + { + fixed (float* pvalues = &values) + { + fixed (int* pbinsOut = &binsOut) + { + CalculateBinsNative((float*)pvalues, count, meth, range, (int*)pbinsOut, widthOut); + } + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(float* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(ref float values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) + { + fixed (float* pvalues = &values) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative((float*)pvalues, count, meth, range, binsOut, (double*)pwidthOut); + } + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(float* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); + } + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(ref float values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) + { + fixed (float* pvalues = &values) + { + fixed (int* pbinsOut = &binsOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative((float*)pvalues, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalculateBinsNative(double* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[682])(values, count, meth, range, binsOut, widthOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[682])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); + #endif + } + + /// + /// To be documented. + /// + public static void CalculateBins(double* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, widthOut); + } + + /// + /// To be documented. + /// + public static void CalculateBins(ref double values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + fixed (double* pvalues = &values) + { + CalculateBinsNative((double*)pvalues, count, meth, range, binsOut, widthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(double* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(ref double values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) + { + fixed (double* pvalues = &values) + { + fixed (int* pbinsOut = &binsOut) + { + CalculateBinsNative((double*)pvalues, count, meth, range, (int*)pbinsOut, widthOut); + } + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(double* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(ref double values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) + { + fixed (double* pvalues = &values) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative((double*)pvalues, count, meth, range, binsOut, (double*)pwidthOut); + } + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(double* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); + } + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(ref double values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) + { + fixed (double* pvalues = &values) + { + fixed (int* pbinsOut = &binsOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative((double*)pvalues, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); + } + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalculateBinsNative(sbyte* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[683])(values, count, meth, range, binsOut, widthOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[683])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); + #endif + } + + /// + /// To be documented. + /// + public static void CalculateBins(sbyte* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, widthOut); + } + + /// + /// To be documented. + /// + public static void CalculateBins(sbyte* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(sbyte* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(sbyte* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalculateBinsNative(byte* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[684])(values, count, meth, range, binsOut, widthOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[684])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); + #endif + } + + /// + /// To be documented. + /// + public static void CalculateBins(byte* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, widthOut); + } + + /// + /// To be documented. + /// + public static void CalculateBins(byte* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(byte* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(byte* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalculateBinsNative(short* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[685])(values, count, meth, range, binsOut, widthOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[685])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); + #endif + } + + /// + /// To be documented. + /// + public static void CalculateBins(short* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, widthOut); + } + + /// + /// To be documented. + /// + public static void CalculateBins(short* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(short* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(short* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalculateBinsNative(ushort* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[686])(values, count, meth, range, binsOut, widthOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[686])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); + #endif + } + + /// + /// To be documented. + /// + public static void CalculateBins(ushort* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, widthOut); + } + + /// + /// To be documented. + /// + public static void CalculateBins(ushort* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(ushort* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(ushort* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalculateBinsNative(int* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[687])(values, count, meth, range, binsOut, widthOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[687])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); + #endif + } + + /// + /// To be documented. + /// + public static void CalculateBins(int* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, widthOut); + } + + /// + /// To be documented. + /// + public static void CalculateBins(int* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(int* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(int* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalculateBinsNative(uint* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[688])(values, count, meth, range, binsOut, widthOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[688])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); + #endif + } + + /// + /// To be documented. + /// + public static void CalculateBins(uint* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, widthOut); + } + + /// + /// To be documented. + /// + public static void CalculateBins(uint* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(uint* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(uint* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalculateBinsNative(long* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[689])(values, count, meth, range, binsOut, widthOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[689])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); + #endif + } + + /// + /// To be documented. + /// + public static void CalculateBins(long* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, widthOut); + } + + /// + /// To be documented. + /// + public static void CalculateBins(long* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(long* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(long* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CalculateBinsNative(ulong* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[690])(values, count, meth, range, binsOut, widthOut); + #else + ((delegate* unmanaged[Cdecl])funcTable[690])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); + #endif + } + + /// + /// To be documented. + /// + public static void CalculateBins(ulong* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, widthOut); + } + + /// + /// To be documented. + /// + public static void CalculateBins(ulong* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(ulong* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); + } + } + + /// + /// To be documented. + /// + public static void CalculateBins(ulong* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) + { + fixed (int* pbinsOut = &binsOut) + { + fixed (double* pwidthOut = &widthOut) + { + CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte IsLeapYearNative(int year) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[691])(year); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[691])(year); + #endif + } + + /// + /// To be documented. + /// + public static bool IsLeapYear(int year) + { + byte ret = IsLeapYearNative(year); + return ret != 0; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetDaysInMonthNative(int year, int month) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[692])(year, month); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[692])(year, month); + #endif + } + + /// + /// To be documented. + /// + public static int GetDaysInMonth(int year, int month) + { + int ret = GetDaysInMonthNative(year, month); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void MkGmtTimeNative(ImPlotTime* pOut, Tm* ptm) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[693])(pOut, ptm); + #else + ((delegate* unmanaged[Cdecl])funcTable[693])((nint)pOut, (nint)ptm); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTime MkGmtTime(Tm* ptm) + { + ImPlotTime ret; + MkGmtTimeNative(&ret, ptm); + return ret; + } + + /// + /// To be documented. + /// + public static void MkGmtTime(ImPlotTimePtr pOut, Tm* ptm) + { + MkGmtTimeNative(pOut, ptm); + } + + /// + /// To be documented. + /// + public static void MkGmtTime(ref ImPlotTime pOut, Tm* ptm) + { + fixed (ImPlotTime* ppOut = &pOut) + { + MkGmtTimeNative((ImPlotTime*)ppOut, ptm); + } + } + + /// + /// To be documented. + /// + public static ImPlotTime MkGmtTime(ref Tm ptm) + { + fixed (Tm* pptm = &ptm) + { + ImPlotTime ret; + MkGmtTimeNative(&ret, (Tm*)pptm); + return ret; + } + } + + /// + /// To be documented. + /// + public static void MkGmtTime(ImPlotTimePtr pOut, ref Tm ptm) + { + fixed (Tm* pptm = &ptm) + { + MkGmtTimeNative(pOut, (Tm*)pptm); + } + } + + /// + /// To be documented. + /// + public static void MkGmtTime(ref ImPlotTime pOut, ref Tm ptm) + { + fixed (ImPlotTime* ppOut = &pOut) + { + fixed (Tm* pptm = &ptm) + { + MkGmtTimeNative((ImPlotTime*)ppOut, (Tm*)pptm); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static Tm* GetGmtTimeNative(ImPlotTime t, Tm* ptm) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[694])(t, ptm); + #else + return (Tm*)((delegate* unmanaged[Cdecl])funcTable[694])(t, (nint)ptm); + #endif + } + + /// + /// To be documented. + /// + public static Tm* GetGmtTime(ImPlotTime t, Tm* ptm) + { + Tm* ret = GetGmtTimeNative(t, ptm); + return ret; + } + + /// + /// To be documented. + /// + public static Tm* GetGmtTime(ImPlotTime t, ref Tm ptm) + { + fixed (Tm* pptm = &ptm) + { + Tm* ret = GetGmtTimeNative(t, (Tm*)pptm); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void MkLocTimeNative(ImPlotTime* pOut, Tm* ptm) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[695])(pOut, ptm); + #else + ((delegate* unmanaged[Cdecl])funcTable[695])((nint)pOut, (nint)ptm); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTime MkLocTime(Tm* ptm) + { + ImPlotTime ret; + MkLocTimeNative(&ret, ptm); + return ret; + } + + /// + /// To be documented. + /// + public static void MkLocTime(ImPlotTimePtr pOut, Tm* ptm) + { + MkLocTimeNative(pOut, ptm); + } + + /// + /// To be documented. + /// + public static void MkLocTime(ref ImPlotTime pOut, Tm* ptm) + { + fixed (ImPlotTime* ppOut = &pOut) + { + MkLocTimeNative((ImPlotTime*)ppOut, ptm); + } + } + + /// + /// To be documented. + /// + public static ImPlotTime MkLocTime(ref Tm ptm) + { + fixed (Tm* pptm = &ptm) + { + ImPlotTime ret; + MkLocTimeNative(&ret, (Tm*)pptm); + return ret; + } + } + + /// + /// To be documented. + /// + public static void MkLocTime(ImPlotTimePtr pOut, ref Tm ptm) + { + fixed (Tm* pptm = &ptm) + { + MkLocTimeNative(pOut, (Tm*)pptm); + } + } + + /// + /// To be documented. + /// + public static void MkLocTime(ref ImPlotTime pOut, ref Tm ptm) + { + fixed (ImPlotTime* ppOut = &pOut) + { + fixed (Tm* pptm = &ptm) + { + MkLocTimeNative((ImPlotTime*)ppOut, (Tm*)pptm); + } + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static Tm* GetLocTimeNative(ImPlotTime t, Tm* ptm) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[696])(t, ptm); + #else + return (Tm*)((delegate* unmanaged[Cdecl])funcTable[696])(t, (nint)ptm); + #endif + } + + /// + /// To be documented. + /// + public static Tm* GetLocTime(ImPlotTime t, Tm* ptm) + { + Tm* ret = GetLocTimeNative(t, ptm); + return ret; + } + + /// + /// To be documented. + /// + public static Tm* GetLocTime(ImPlotTime t, ref Tm ptm) + { + fixed (Tm* pptm = &ptm) + { + Tm* ret = GetLocTimeNative(t, (Tm*)pptm); + return ret; + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void MakeTimeNative(ImPlotTime* pOut, int year, int month, int day, int hour, int min, int sec, int us) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[697])(pOut, year, month, day, hour, min, sec, us); + #else + ((delegate* unmanaged[Cdecl])funcTable[697])((nint)pOut, year, month, day, hour, min, sec, us); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTime MakeTime(int year) + { + ImPlotTime ret; + MakeTimeNative(&ret, year, (int)(0), (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static ImPlotTime MakeTime(int year, int month) + { + ImPlotTime ret; + MakeTimeNative(&ret, year, month, (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static void MakeTime(ImPlotTimePtr pOut, int year) + { + MakeTimeNative(pOut, year, (int)(0), (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); + } + + /// + /// To be documented. + /// + public static ImPlotTime MakeTime(int year, int month, int day) + { + ImPlotTime ret; + MakeTimeNative(&ret, year, month, day, (int)(0), (int)(0), (int)(0), (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static void MakeTime(ImPlotTimePtr pOut, int year, int month) + { + MakeTimeNative(pOut, year, month, (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); + } + + /// + /// To be documented. + /// + public static ImPlotTime MakeTime(int year, int month, int day, int hour) + { + ImPlotTime ret; + MakeTimeNative(&ret, year, month, day, hour, (int)(0), (int)(0), (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static void MakeTime(ImPlotTimePtr pOut, int year, int month, int day) + { + MakeTimeNative(pOut, year, month, day, (int)(0), (int)(0), (int)(0), (int)(0)); + } + + /// + /// To be documented. + /// + public static ImPlotTime MakeTime(int year, int month, int day, int hour, int min) + { + ImPlotTime ret; + MakeTimeNative(&ret, year, month, day, hour, min, (int)(0), (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static void MakeTime(ImPlotTimePtr pOut, int year, int month, int day, int hour) + { + MakeTimeNative(pOut, year, month, day, hour, (int)(0), (int)(0), (int)(0)); + } + + /// + /// To be documented. + /// + public static ImPlotTime MakeTime(int year, int month, int day, int hour, int min, int sec) + { + ImPlotTime ret; + MakeTimeNative(&ret, year, month, day, hour, min, sec, (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + public static void MakeTime(ImPlotTimePtr pOut, int year, int month, int day, int hour, int min) + { + MakeTimeNative(pOut, year, month, day, hour, min, (int)(0), (int)(0)); + } + + /// + /// To be documented. + /// + public static ImPlotTime MakeTime(int year, int month, int day, int hour, int min, int sec, int us) + { + ImPlotTime ret; + MakeTimeNative(&ret, year, month, day, hour, min, sec, us); + return ret; + } + + /// + /// To be documented. + /// + public static void MakeTime(ImPlotTimePtr pOut, int year, int month, int day, int hour, int min, int sec, int us) + { + MakeTimeNative(pOut, year, month, day, hour, min, sec, us); + } + + /// + /// To be documented. + /// + public static void MakeTime(ImPlotTimePtr pOut, int year, int month, int day, int hour, int min, int sec) + { + MakeTimeNative(pOut, year, month, day, hour, min, sec, (int)(0)); + } + + /// + /// To be documented. + /// + public static void MakeTime(ref ImPlotTime pOut, int year, int month, int day, int hour, int min, int sec, int us) + { + fixed (ImPlotTime* ppOut = &pOut) + { + MakeTimeNative((ImPlotTime*)ppOut, year, month, day, hour, min, sec, us); + } + } + + /// + /// To be documented. + /// + public static void MakeTime(ref ImPlotTime pOut, int year, int month, int day, int hour, int min, int sec) + { + fixed (ImPlotTime* ppOut = &pOut) + { + MakeTimeNative((ImPlotTime*)ppOut, year, month, day, hour, min, sec, (int)(0)); + } + } + + /// + /// To be documented. + /// + public static void MakeTime(ref ImPlotTime pOut, int year, int month, int day, int hour, int min) + { + fixed (ImPlotTime* ppOut = &pOut) + { + MakeTimeNative((ImPlotTime*)ppOut, year, month, day, hour, min, (int)(0), (int)(0)); + } + } + + /// + /// To be documented. + /// + public static void MakeTime(ref ImPlotTime pOut, int year, int month, int day, int hour) + { + fixed (ImPlotTime* ppOut = &pOut) + { + MakeTimeNative((ImPlotTime*)ppOut, year, month, day, hour, (int)(0), (int)(0), (int)(0)); + } + } + + /// + /// To be documented. + /// + public static void MakeTime(ref ImPlotTime pOut, int year, int month, int day) + { + fixed (ImPlotTime* ppOut = &pOut) + { + MakeTimeNative((ImPlotTime*)ppOut, year, month, day, (int)(0), (int)(0), (int)(0), (int)(0)); + } + } + + /// + /// To be documented. + /// + public static void MakeTime(ref ImPlotTime pOut, int year, int month) + { + fixed (ImPlotTime* ppOut = &pOut) + { + MakeTimeNative((ImPlotTime*)ppOut, year, month, (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); + } + } + + /// + /// To be documented. + /// + public static void MakeTime(ref ImPlotTime pOut, int year) + { + fixed (ImPlotTime* ppOut = &pOut) + { + MakeTimeNative((ImPlotTime*)ppOut, year, (int)(0), (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int GetYearNative(ImPlotTime t) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[698])(t); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[698])(t); + #endif + } + + /// + /// To be documented. + /// + public static int GetYear(ImPlotTime t) + { + int ret = GetYearNative(t); + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void AddTimeNative(ImPlotTime* pOut, ImPlotTime t, ImPlotTimeUnit unit, int count) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[699])(pOut, t, unit, count); + #else + ((delegate* unmanaged[Cdecl])funcTable[699])((nint)pOut, t, unit, count); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTime AddTime(ImPlotTime t, ImPlotTimeUnit unit, int count) + { + ImPlotTime ret; + AddTimeNative(&ret, t, unit, count); + return ret; + } + + /// + /// To be documented. + /// + public static void AddTime(ImPlotTimePtr pOut, ImPlotTime t, ImPlotTimeUnit unit, int count) + { + AddTimeNative(pOut, t, unit, count); + } + + /// + /// To be documented. + /// + public static void AddTime(ref ImPlotTime pOut, ImPlotTime t, ImPlotTimeUnit unit, int count) + { + fixed (ImPlotTime* ppOut = &pOut) + { + AddTimeNative((ImPlotTime*)ppOut, t, unit, count); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void FloorTimeNative(ImPlotTime* pOut, ImPlotTime t, ImPlotTimeUnit unit) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[700])(pOut, t, unit); + #else + ((delegate* unmanaged[Cdecl])funcTable[700])((nint)pOut, t, unit); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTime FloorTime(ImPlotTime t, ImPlotTimeUnit unit) + { + ImPlotTime ret; + FloorTimeNative(&ret, t, unit); + return ret; + } + + /// + /// To be documented. + /// + public static void FloorTime(ImPlotTimePtr pOut, ImPlotTime t, ImPlotTimeUnit unit) + { + FloorTimeNative(pOut, t, unit); + } + + /// + /// To be documented. + /// + public static void FloorTime(ref ImPlotTime pOut, ImPlotTime t, ImPlotTimeUnit unit) + { + fixed (ImPlotTime* ppOut = &pOut) + { + FloorTimeNative((ImPlotTime*)ppOut, t, unit); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CeilTimeNative(ImPlotTime* pOut, ImPlotTime t, ImPlotTimeUnit unit) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[701])(pOut, t, unit); + #else + ((delegate* unmanaged[Cdecl])funcTable[701])((nint)pOut, t, unit); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTime CeilTime(ImPlotTime t, ImPlotTimeUnit unit) + { + ImPlotTime ret; + CeilTimeNative(&ret, t, unit); + return ret; + } + + /// + /// To be documented. + /// + public static void CeilTime(ImPlotTimePtr pOut, ImPlotTime t, ImPlotTimeUnit unit) + { + CeilTimeNative(pOut, t, unit); + } + + /// + /// To be documented. + /// + public static void CeilTime(ref ImPlotTime pOut, ImPlotTime t, ImPlotTimeUnit unit) + { + fixed (ImPlotTime* ppOut = &pOut) + { + CeilTimeNative((ImPlotTime*)ppOut, t, unit); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void RoundTimeNative(ImPlotTime* pOut, ImPlotTime t, ImPlotTimeUnit unit) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[702])(pOut, t, unit); + #else + ((delegate* unmanaged[Cdecl])funcTable[702])((nint)pOut, t, unit); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTime RoundTime(ImPlotTime t, ImPlotTimeUnit unit) + { + ImPlotTime ret; + RoundTimeNative(&ret, t, unit); + return ret; + } + + /// + /// To be documented. + /// + public static void RoundTime(ImPlotTimePtr pOut, ImPlotTime t, ImPlotTimeUnit unit) + { + RoundTimeNative(pOut, t, unit); + } + + /// + /// To be documented. + /// + public static void RoundTime(ref ImPlotTime pOut, ImPlotTime t, ImPlotTimeUnit unit) + { + fixed (ImPlotTime* ppOut = &pOut) + { + RoundTimeNative((ImPlotTime*)ppOut, t, unit); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void CombineDateTimeNative(ImPlotTime* pOut, ImPlotTime datePart, ImPlotTime timePart) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl])funcTable[703])(pOut, datePart, timePart); + #else + ((delegate* unmanaged[Cdecl])funcTable[703])((nint)pOut, datePart, timePart); + #endif + } + + /// + /// To be documented. + /// + public static ImPlotTime CombineDateTime(ImPlotTime datePart, ImPlotTime timePart) + { + ImPlotTime ret; + CombineDateTimeNative(&ret, datePart, timePart); + return ret; + } + + /// + /// To be documented. + /// + public static void CombineDateTime(ImPlotTimePtr pOut, ImPlotTime datePart, ImPlotTime timePart) + { + CombineDateTimeNative(pOut, datePart, timePart); + } + + /// + /// To be documented. + /// + public static void CombineDateTime(ref ImPlotTime pOut, ImPlotTime datePart, ImPlotTime timePart) + { + fixed (ImPlotTime* ppOut = &pOut) + { + CombineDateTimeNative((ImPlotTime*)ppOut, datePart, timePart); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int FormatTimeNative(ImPlotTime t, byte* buffer, int size, ImPlotTimeFmt fmt, byte use24HrClk) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[704])(t, buffer, size, fmt, use24HrClk); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[704])(t, (nint)buffer, size, fmt, use24HrClk); + #endif + } + + /// + /// To be documented. + /// + public static int FormatTime(ImPlotTime t, byte* buffer, int size, ImPlotTimeFmt fmt, bool use24HrClk) + { + int ret = FormatTimeNative(t, buffer, size, fmt, use24HrClk ? (byte)1 : (byte)0); + return ret; + } + + /// + /// To be documented. + /// + public static int FormatTime(ImPlotTime t, ref byte buffer, int size, ImPlotTimeFmt fmt, bool use24HrClk) + { + fixed (byte* pbuffer = &buffer) + { + int ret = FormatTimeNative(t, (byte*)pbuffer, size, fmt, use24HrClk ? (byte)1 : (byte)0); + return ret; + } + } + + /// + /// To be documented. + /// + public static int FormatTime(ImPlotTime t, ref string buffer, int size, ImPlotTimeFmt fmt, bool use24HrClk) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (buffer != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(buffer); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3685,26 +2866,62 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(buffer, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(float))); + int ret = FormatTimeNative(t, pStr0, size, fmt, use24HrClk ? (byte)1 : (byte)0); + buffer = Utils.DecodeStringUTF8(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int FormatDateNative(ImPlotTime t, byte* buffer, int size, ImPlotDateFmt fmt, byte useIso8601) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[705])(t, buffer, size, fmt, useIso8601); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[705])(t, (nint)buffer, size, fmt, useIso8601); + #endif + } + + /// + /// To be documented. + /// + public static int FormatDate(ImPlotTime t, byte* buffer, int size, ImPlotDateFmt fmt, bool useIso8601) + { + int ret = FormatDateNative(t, buffer, size, fmt, useIso8601 ? (byte)1 : (byte)0); + return ret; + } + + /// + /// To be documented. + /// + public static int FormatDate(ImPlotTime t, ref byte buffer, int size, ImPlotDateFmt fmt, bool useIso8601) + { + fixed (byte* pbuffer = &buffer) + { + int ret = FormatDateNative(t, (byte*)pbuffer, size, fmt, useIso8601 ? (byte)1 : (byte)0); + return ret; + } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + public static int FormatDate(ImPlotTime t, ref string buffer, int size, ImPlotDateFmt fmt, bool useIso8601) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (buffer != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(buffer); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3714,26 +2931,62 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(buffer, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); + int ret = FormatDateNative(t, pStr0, size, fmt, useIso8601 ? (byte)1 : (byte)0); + buffer = Utils.DecodeStringUTF8(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int FormatDateTimeNative(ImPlotTime t, byte* buffer, int size, ImPlotDateTimeSpec fmt) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[706])(t, buffer, size, fmt); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[706])(t, (nint)buffer, size, fmt); + #endif + } + + /// + /// To be documented. + /// + public static int FormatDateTime(ImPlotTime t, byte* buffer, int size, ImPlotDateTimeSpec fmt) + { + int ret = FormatDateTimeNative(t, buffer, size, fmt); + return ret; + } + + /// + /// To be documented. + /// + public static int FormatDateTime(ImPlotTime t, ref byte buffer, int size, ImPlotDateTimeSpec fmt) + { + fixed (byte* pbuffer = &buffer) + { + int ret = FormatDateTimeNative(t, (byte*)pbuffer, size, fmt); + return ret; + } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start) + public static int FormatDateTime(ImPlotTime t, ref string buffer, int size, ImPlotDateTimeSpec fmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (buffer != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(buffer); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3743,26 +2996,140 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(buffer, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + int ret = FormatDateTimeNative(t, pStr0, size, fmt); + buffer = Utils.DecodeStringUTF8(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static byte ShowDatePickerNative(byte* id, int* level, ImPlotTime* t, ImPlotTime* t1, ImPlotTime* t2) + { + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[707])(id, level, t, t1, t2); + #else + return (byte)((delegate* unmanaged[Cdecl])funcTable[707])((nint)id, (nint)level, (nint)t, (nint)t1, (nint)t2); + #endif + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) + { + byte ret = ShowDatePickerNative(id, level, t, t1, t2); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1) + { + byte ret = ShowDatePickerNative(id, level, t, t1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t) + { + byte ret = ShowDatePickerNative(id, level, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) + { + fixed (byte* pid = &id) + { + byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, t2); + return ret != 0; + } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference, double scale) + public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1) + { + fixed (byte* pid = &id) + { + byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t) + { + fixed (byte* pid = &id) + { + byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) + { + fixed (byte* pid = id) + { + byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, t2); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1) + { + fixed (byte* pid = id) + { + byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, int* level, ImPlotTimePtr t) + { + fixed (byte* pid = id) + { + byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3772,26 +3139,27 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + byte ret = ShowDatePickerNative(pStr0, level, t, t1, t2); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference) + public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3801,26 +3169,27 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + byte ret = ShowDatePickerNative(pStr0, level, t, t1, (ImPlotTime*)(((void*)0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count) + public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3830,26 +3199,153 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + byte ret = ShowDatePickerNative(pStr0, level, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) + { + fixed (int* plevel = &level) + { + byte ret = ShowDatePickerNative(id, (int*)plevel, t, t1, t2); + return ret != 0; + } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags) + public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1) + { + fixed (int* plevel = &level) + { + byte ret = ShowDatePickerNative(id, (int*)plevel, t, t1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t) + { + fixed (int* plevel = &level) + { + byte ret = ShowDatePickerNative(id, (int*)plevel, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) + { + fixed (byte* pid = &id) + { + fixed (int* plevel = &level) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, t2); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1) + { + fixed (byte* pid = &id) + { + fixed (int* plevel = &level) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t) + { + fixed (byte* pid = &id) + { + fixed (int* plevel = &level) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) + { + fixed (byte* pid = id) + { + fixed (int* plevel = &level) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, t2); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1) + { + fixed (byte* pid = id) + { + fixed (int* plevel = &level) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ImPlotTimePtr t) + { + fixed (byte* pid = id) + { + fixed (int* plevel = &level) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3859,26 +3355,30 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (int* plevel = &level) { - Utils.Free(pStr0); + byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, t1, t2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference, ImPlotStemsFlags flags) + public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3888,26 +3388,30 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (int* plevel = &level) { - Utils.Free(pStr0); + byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, t1, (ImPlotTime*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, ImPlotStemsFlags flags) + public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3917,26 +3421,156 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (int* plevel = &level) { - Utils.Free(pStr0); + byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start, int offset) + public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, t1, t2); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ImPlotTimePtr t1) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) + { + fixed (byte* pid = &id) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, t2); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ImPlotTimePtr t1) + { + fixed (byte* pid = &id) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t) + { + fixed (byte* pid = &id) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) + { + fixed (byte* pid = id) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, t2); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, int* level, ref ImPlotTime t, ImPlotTimePtr t1) + { + fixed (byte* pid = id) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, int* level, ref ImPlotTime t) + { + fixed (byte* pid = id) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3946,26 +3580,30 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImPlotTime* pt = &t) { - Utils.Free(pStr0); + byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, t1, t2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, int offset) + public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ImPlotTimePtr t1) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3975,26 +3613,30 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImPlotTime* pt = &t) { - Utils.Free(pStr0); + byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference, int offset) + public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4004,26 +3646,183 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImPlotTime* pt = &t) { - Utils.Free(pStr0); + byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, int offset) + public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, t1, t2); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) + { + fixed (byte* pid = &id) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, t2); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1) + { + fixed (byte* pid = &id) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t) + { + fixed (byte* pid = &id) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) + { + fixed (byte* pid = id) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, t2); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1) + { + fixed (byte* pid = id) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ref ImPlotTime t) + { + fixed (byte* pid = id) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4033,26 +3832,33 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (int* plevel = &level) { - Utils.Free(pStr0); + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, t1, t2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4062,26 +3868,33 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (int* plevel = &level) { - Utils.Free(pStr0); + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset) + public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4091,26 +3904,117 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (int* plevel = &level) { - Utils.Free(pStr0); + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, ImPlotStemsFlags flags, int offset) + public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative(id, level, t, (ImPlotTime*)pt1, t2); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ref ImPlotTime t1) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative(id, level, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) + { + fixed (byte* pid = &id) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, t2); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ref ImPlotTime t1) + { + fixed (byte* pid = &id) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) + { + fixed (byte* pid = id) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, t2); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, int* level, ImPlotTimePtr t, ref ImPlotTime t1) + { + fixed (byte* pid = id) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4120,26 +4024,30 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImPlotTime* pt1 = &t1) { - Utils.Free(pStr0); + byte ret = ShowDatePickerNative(pStr0, level, t, (ImPlotTime*)pt1, t2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start, int offset, int stride) + public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ref ImPlotTime t1) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4149,26 +4057,132 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImPlotTime* pt1 = &t1) { - Utils.Free(pStr0); + byte ret = ShowDatePickerNative(pStr0, level, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, int offset, int stride) + public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative(id, (int*)plevel, t, (ImPlotTime*)pt1, t2); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative(id, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) + { + fixed (byte* pid = &id) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, t2); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1) + { + fixed (byte* pid = &id) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) + { + fixed (byte* pid = id) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, t2); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1) + { + fixed (byte* pid = id) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4178,26 +4192,33 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (int* plevel = &level) { - Utils.Free(pStr0); + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, (ImPlotTime*)pt1, t2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference, int offset, int stride) + public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4207,26 +4228,135 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (int* plevel = &level) { - Utils.Free(pStr0); + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, int offset, int stride) + public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ref ImPlotTime t1) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) + { + fixed (byte* pid = &id) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ref ImPlotTime t1) + { + fixed (byte* pid = &id) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) + { + fixed (byte* pid = id) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, int* level, ref ImPlotTime t, ref ImPlotTime t1) + { + fixed (byte* pid = id) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4236,26 +4366,33 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImPlotTime* pt = &t) { - Utils.Free(pStr0); + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ref ImPlotTime t1) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4265,26 +4402,153 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImPlotTime* pt = &t) { - Utils.Free(pStr0); + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ref ImPlotTime t1) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) + { + fixed (byte* pid = &id) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ref ImPlotTime t1) + { + fixed (byte* pid = &id) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) + { + fixed (byte* pid = id) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ref ImPlotTime t, ref ImPlotTime t1) + { + fixed (byte* pid = id) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4294,26 +4558,36 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (int* plevel = &level) { - Utils.Free(pStr0); + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } } } /// /// To be documented. /// - public static void PlotStems(string labelId, float* values, int count, ImPlotStemsFlags flags, int offset, int stride) + public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ref ImPlotTime t1) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4323,290 +4597,22 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (int* plevel = &level) { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, ImPlotStemsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start, int offset) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, int offset) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, int offset) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, int offset) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) + fixed (ImPlotTime* pt = &t) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, offset, stride); + fixed (ImPlotTime* pt1 = &t1) + { + byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } } @@ -4614,13 +4620,26 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + fixed (ImPlotTime* pt2 = &t2) { - fixed (float* pvalues = &values) + byte ret = ShowDatePickerNative(id, level, t, t1, (ImPlotTime*)pt2); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) + { + fixed (byte* pid = &id) + { + fixed (ImPlotTime* pt2 = &t2) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(float))); + byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, (ImPlotTime*)pt2); + return ret != 0; } } } @@ -4628,13 +4647,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + public static bool ShowDatePicker(ReadOnlySpan id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + fixed (byte* pid = id) { - fixed (float* pvalues = &values) + fixed (ImPlotTime* pt2 = &t2) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); + byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, (ImPlotTime*)pt2); + return ret != 0; } } } @@ -4642,13 +4662,47 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start) + public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (id != null) { - fixed (float* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(id); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative(pStr0, level, t, t1, (ImPlotTime*)pt2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative(id, (int*)plevel, t, t1, (ImPlotTime*)pt2); + return ret != 0; } } } @@ -4656,13 +4710,17 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale) + public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + fixed (byte* pid = &id) { - fixed (float* pvalues = &values) + fixed (int* plevel = &level) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, (ImPlotTime*)pt2); + return ret != 0; + } } } } @@ -4670,13 +4728,17 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference) + public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + fixed (byte* pid = id) { - fixed (float* pvalues = &values) + fixed (int* plevel = &level) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, (ImPlotTime*)pt2); + return ret != 0; + } } } } @@ -4684,13 +4746,35 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count) + public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (id != null) { - fixed (float* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(id); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, t1, (ImPlotTime*)pt2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } } @@ -4698,13 +4782,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags) + public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + fixed (ImPlotTime* pt = &t) { - fixed (float* pvalues = &values) + fixed (ImPlotTime* pt2 = &t2) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); + return ret != 0; } } } @@ -4712,13 +4797,17 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, ImPlotStemsFlags flags) + public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + fixed (byte* pid = &id) { - fixed (float* pvalues = &values) + fixed (ImPlotTime* pt = &t) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); + return ret != 0; + } } } } @@ -4726,13 +4815,17 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, ImPlotStemsFlags flags) + public static bool ShowDatePicker(ReadOnlySpan id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + fixed (byte* pid = id) { - fixed (float* pvalues = &values) + fixed (ImPlotTime* pt = &t) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); + return ret != 0; + } } } } @@ -4740,13 +4833,35 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start, int offset) + public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (id != null) { - fixed (float* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(id); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } } @@ -4754,13 +4869,17 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, int offset) + public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + fixed (int* plevel = &level) { - fixed (float* pvalues = &values) + fixed (ImPlotTime* pt = &t) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); + return ret != 0; + } } } } @@ -4768,13 +4887,20 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, int offset) + public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + fixed (byte* pid = &id) { - fixed (float* pvalues = &values) + fixed (int* plevel = &level) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); + return ret != 0; + } + } } } } @@ -4782,13 +4908,20 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, int offset) + public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + fixed (byte* pid = id) { - fixed (float* pvalues = &values) + fixed (int* plevel = &level) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); + return ret != 0; + } + } } } } @@ -4796,13 +4929,38 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (id != null) { - fixed (float* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(id); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } } @@ -4810,13 +4968,14 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset) + public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + fixed (ImPlotTime* pt1 = &t1) { - fixed (float* pvalues = &values) + fixed (ImPlotTime* pt2 = &t2) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + byte ret = ShowDatePickerNative(id, level, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); + return ret != 0; } } } @@ -4824,13 +4983,17 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, ImPlotStemsFlags flags, int offset) + public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + fixed (byte* pid = &id) { - fixed (float* pvalues = &values) + fixed (ImPlotTime* pt1 = &t1) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); + return ret != 0; + } } } } @@ -4838,13 +5001,17 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start, int offset, int stride) + public static bool ShowDatePicker(ReadOnlySpan id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + fixed (byte* pid = id) { - fixed (float* pvalues = &values) + fixed (ImPlotTime* pt1 = &t1) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); + return ret != 0; + } } } } @@ -4852,181 +5019,35 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, int offset, int stride) + public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) { - fixed (byte* plabelId = &labelId) + byte* pStr0 = null; + int pStrSize0 = 0; + if (id != null) { - fixed (float* pvalues = &values) + pStrSize0 = Utils.GetByteCountUTF8(id); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) + else { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) + fixed (ImPlotTime* pt1 = &t1) { - fixed (float* pvalues = &values) + fixed (ImPlotTime* pt2 = &t2) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); + byte ret = ShowDatePickerNative(pStr0, level, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.071.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.071.cs index 1f538432c..ce8cab5d7 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.071.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.071.cs @@ -22,13 +22,17 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags) + public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) { - fixed (byte* plabelId = labelId) + fixed (int* plevel = &level) { - fixed (float* pvalues = &values) + fixed (ImPlotTime* pt1 = &t1) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative(id, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); + return ret != 0; + } } } } @@ -36,13 +40,20 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, ImPlotStemsFlags flags) + public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) { - fixed (byte* plabelId = labelId) + fixed (byte* pid = &id) { - fixed (float* pvalues = &values) + fixed (int* plevel = &level) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + fixed (ImPlotTime* pt1 = &t1) + { + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); + return ret != 0; + } + } } } } @@ -50,13 +61,20 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, ImPlotStemsFlags flags) + public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) { - fixed (byte* plabelId = labelId) + fixed (byte* pid = id) { - fixed (float* pvalues = &values) + fixed (int* plevel = &level) { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); + fixed (ImPlotTime* pt1 = &t1) + { + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); + return ret != 0; + } + } } } } @@ -64,209 +82,13 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -276,15 +98,22 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + fixed (int* plevel = &level) { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImPlotTime* pt1 = &t1) { - Utils.Free(pStr0); + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } } @@ -292,13 +121,73 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); + return ret != 0; + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) + { + fixed (byte* pid = &id) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) + { + fixed (byte* pid = id) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -308,15 +197,22 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + fixed (ImPlotTime* pt = &t) { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImPlotTime* pt1 = &t1) { - Utils.Free(pStr0); + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } } @@ -324,13 +220,82 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) + { + fixed (byte* pid = &id) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) + { + fixed (byte* pid = id) + { + fixed (int* plevel = &level) + { + fixed (ImPlotTime* pt = &t) + { + fixed (ImPlotTime* pt1 = &t1) + { + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); + return ret != 0; + } + } + } + } + } + } + + /// + /// To be documented. + /// + public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -340,687 +305,25 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvalues = &values) + fixed (int* plevel = &level) { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImPlotTime* pt = &t) { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + fixed (ImPlotTime* pt1 = &t1) + { + fixed (ImPlotTime* pt2 = &t2) + { + byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } } } } @@ -1029,745 +332,58 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + internal static byte ShowTimePickerNative(byte* id, ImPlotTime* t) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[182])(labelId, values, count, reference, scale, start, flags, offset, stride); + return ((delegate* unmanaged[Cdecl])funcTable[708])(id, t); #else - ((delegate* unmanaged[Cdecl])funcTable[182])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); + return (byte)((delegate* unmanaged[Cdecl])funcTable[708])((nint)id, (nint)t); #endif } /// /// To be documented. /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + public static bool ShowTimePicker(byte* id, ImPlotTimePtr t) { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); + byte ret = ShowTimePickerNative(id, t); + return ret != 0; } /// /// To be documented. /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + public static bool ShowTimePicker(ref byte id, ImPlotTimePtr t) { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) + fixed (byte* pid = &id) { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); + byte ret = ShowTimePickerNative((byte*)pid, t); + return ret != 0; } } /// /// To be documented. /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + public static bool ShowTimePicker(ReadOnlySpan id, ImPlotTimePtr t) { - fixed (byte* plabelId = &labelId) + fixed (byte* pid = id) { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(double))); + byte ret = ShowTimePickerNative((byte*)pid, t); + return ret != 0; } } /// /// To be documented. /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + public static bool ShowTimePicker(string id, ImPlotTimePtr t) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1777,26 +393,69 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); + byte ret = ShowTimePickerNative(pStr0, t); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + public static bool ShowTimePicker(byte* id, ref ImPlotTime t) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowTimePickerNative(id, (ImPlotTime*)pt); + return ret != 0; + } + } + + /// + /// To be documented. + /// + public static bool ShowTimePicker(ref byte id, ref ImPlotTime t) + { + fixed (byte* pid = &id) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowTimePickerNative((byte*)pid, (ImPlotTime*)pt); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowTimePicker(ReadOnlySpan id, ref ImPlotTime t) + { + fixed (byte* pid = id) + { + fixed (ImPlotTime* pt = &t) + { + byte ret = ShowTimePickerNative((byte*)pid, (ImPlotTime*)pt); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + public static bool ShowTimePicker(string id, ref ImPlotTime t) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelId != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelId); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -1806,2355 +465,17 @@ namespace Dalamud.Bindings.ImPlot byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImPlotTime* pt = &t) { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, ImPlotStemsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start, int offset) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, int offset) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, int offset) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, int offset) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + byte ret = ShowTimePickerNative(pStr0, (ImPlotTime*)pt); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } } @@ -4162,739 +483,534 @@ namespace Dalamud.Bindings.ImPlot /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + internal static double TransformForward_Log10Native(double v, void* noname1) { #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[183])(labelId, values, count, reference, scale, start, flags, offset, stride); + return ((delegate* unmanaged[Cdecl])funcTable[709])(v, noname1); #else - ((delegate* unmanaged[Cdecl])funcTable[183])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); + return (double)((delegate* unmanaged[Cdecl])funcTable[709])(v, (nint)noname1); #endif } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + public static double TransformForward_Log10(double v, void* noname1) { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); + double ret = TransformForward_Log10Native(v, noname1); + return ret; } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double TransformInverse_Log10Native(double v, void* noname1) { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[710])(v, noname1); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[710])(v, (nint)noname1); + #endif } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + public static double TransformInverse_Log10(double v, void* noname1) { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); + double ret = TransformInverse_Log10Native(v, noname1); + return ret; } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double TransformForward_SymLogNative(double v, void* noname1) { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[711])(v, noname1); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[711])(v, (nint)noname1); + #endif } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale) + public static double TransformForward_SymLog(double v, void* noname1) { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + double ret = TransformForward_SymLogNative(v, noname1); + return ret; } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double TransformInverse_SymLogNative(double v, void* noname1) { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[712])(v, noname1); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[712])(v, (nint)noname1); + #endif } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count) + public static double TransformInverse_SymLog(double v, void* noname1) { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + double ret = TransformInverse_SymLogNative(v, noname1); + return ret; } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double TransformForward_LogitNative(double v, void* noname1) { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[713])(v, noname1); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[713])(v, (nint)noname1); + #endif } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, ImPlotStemsFlags flags) + public static double TransformForward_Logit(double v, void* noname1) { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + double ret = TransformForward_LogitNative(v, noname1); + return ret; } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, ImPlotStemsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static double TransformInverse_LogitNative(double v, void* noname1) { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[714])(v, noname1); + #else + return (double)((delegate* unmanaged[Cdecl])funcTable[714])(v, (nint)noname1); + #endif } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, int offset) + public static double TransformInverse_Logit(double v, void* noname1) { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + double ret = TransformInverse_LogitNative(v, noname1); + return ret; } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int Formatter_DefaultNative(double value, byte* buff, int size, void* data) { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[715])(value, buff, size, data); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[715])(value, (nint)buff, size, (nint)data); + #endif } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, int offset) + public static int Formatter_Default(double value, byte* buff, int size, void* data) { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + int ret = Formatter_DefaultNative(value, buff, size, data); + return ret; } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, int offset) + public static int Formatter_Default(double value, ref byte buff, int size, void* data) { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); + fixed (byte* pbuff = &buff) + { + int ret = Formatter_DefaultNative(value, (byte*)pbuff, size, data); + return ret; + } } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) + public static int Formatter_Default(double value, ref string buff, int size, void* data) { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(sbyte))); + byte* pStr0 = null; + int pStrSize0 = 0; + if (buff != null) + { + pStrSize0 = Utils.GetByteCountUTF8(buff); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = Formatter_DefaultNative(value, pStr0, size, data); + buff = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int Formatter_LogitNative(double value, byte* buff, int size, void* noname1) { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[716])(value, buff, size, noname1); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[716])(value, (nint)buff, size, (nint)noname1); + #endif } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, ImPlotStemsFlags flags, int offset) + public static int Formatter_Logit(double value, byte* buff, int size, void* noname1) { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); + int ret = Formatter_LogitNative(value, buff, size, noname1); + return ret; } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, int offset, int stride) + public static int Formatter_Logit(double value, ref byte buff, int size, void* noname1) { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); + fixed (byte* pbuff = &buff) + { + int ret = Formatter_LogitNative(value, (byte*)pbuff, size, noname1); + return ret; + } } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, int offset, int stride) + public static int Formatter_Logit(double value, ref string buff, int size, void* noname1) { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); + byte* pStr0 = null; + int pStrSize0 = 0; + if (buff != null) + { + pStrSize0 = Utils.GetByteCountUTF8(buff); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = Formatter_LogitNative(value, pStr0, size, noname1); + buff = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static int Formatter_TimeNative(double noname1, byte* buff, int size, void* data) { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + #if NET5_0_OR_GREATER + return ((delegate* unmanaged[Cdecl])funcTable[717])(noname1, buff, size, data); + #else + return (int)((delegate* unmanaged[Cdecl])funcTable[717])(noname1, (nint)buff, size, (nint)data); + #endif } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, int offset, int stride) + public static int Formatter_Time(double noname1, byte* buff, int size, void* data) { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); + int ret = Formatter_TimeNative(noname1, buff, size, data); + return ret; } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) + public static int Formatter_Time(double noname1, ref byte buff, int size, void* data) { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); + fixed (byte* pbuff = &buff) + { + int ret = Formatter_TimeNative(noname1, (byte*)pbuff, size, data); + return ret; + } } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) + public static int Formatter_Time(double noname1, ref string buff, int size, void* data) { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); + byte* pStr0 = null; + int pStrSize0 = 0; + if (buff != null) + { + pStrSize0 = Utils.GetByteCountUTF8(buff); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = Formatter_TimeNative(noname1, pStr0, size, data); + buff = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - public static void PlotStems(byte* labelId, byte* values, int count, ImPlotStemsFlags flags, int offset, int stride) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void Locator_DefaultNative(ImPlotTicker* ticker, ImPlotRange range, float pixels, byte vertical, ImPlotFormatter formatter, void* formatterData) { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, void>)funcTable[718])(ticker, range, pixels, vertical, (delegate*)Utils.GetFunctionPointerForDelegate(formatter), formatterData); + #else + ((delegate* unmanaged[Cdecl])funcTable[718])((nint)ticker, range, pixels, vertical, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)formatterData); + #endif } /// /// To be documented. /// - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + public static void Locator_Default(ImPlotTickerPtr ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) + { + Locator_DefaultNative(ticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); + } + + /// + /// To be documented. + /// + public static void Locator_Default(ref ImPlotTicker ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) + { + fixed (ImPlotTicker* pticker = &ticker) + { + Locator_DefaultNative((ImPlotTicker*)pticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void Locator_TimeNative(ImPlotTicker* ticker, ImPlotRange range, float pixels, byte vertical, ImPlotFormatter formatter, void* formatterData) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, void>)funcTable[719])(ticker, range, pixels, vertical, (delegate*)Utils.GetFunctionPointerForDelegate(formatter), formatterData); + #else + ((delegate* unmanaged[Cdecl])funcTable[719])((nint)ticker, range, pixels, vertical, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)formatterData); + #endif + } + + /// + /// To be documented. + /// + public static void Locator_Time(ImPlotTickerPtr ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) + { + Locator_TimeNative(ticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); + } + + /// + /// To be documented. + /// + public static void Locator_Time(ref ImPlotTicker ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) + { + fixed (ImPlotTicker* pticker = &ticker) + { + Locator_TimeNative((ImPlotTicker*)pticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void Locator_Log10Native(ImPlotTicker* ticker, ImPlotRange range, float pixels, byte vertical, ImPlotFormatter formatter, void* formatterData) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, void>)funcTable[720])(ticker, range, pixels, vertical, (delegate*)Utils.GetFunctionPointerForDelegate(formatter), formatterData); + #else + ((delegate* unmanaged[Cdecl])funcTable[720])((nint)ticker, range, pixels, vertical, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)formatterData); + #endif + } + + /// + /// To be documented. + /// + public static void Locator_Log10(ImPlotTickerPtr ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) + { + Locator_Log10Native(ticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); + } + + /// + /// To be documented. + /// + public static void Locator_Log10(ref ImPlotTicker ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) + { + fixed (ImPlotTicker* pticker = &ticker) + { + Locator_Log10Native((ImPlotTicker*)pticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); + } + } + + /// + /// To be documented. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void Locator_SymLogNative(ImPlotTicker* ticker, ImPlotRange range, float pixels, byte vertical, ImPlotFormatter formatter, void* formatterData) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, void>)funcTable[721])(ticker, range, pixels, vertical, (delegate*)Utils.GetFunctionPointerForDelegate(formatter), formatterData); + #else + ((delegate* unmanaged[Cdecl])funcTable[721])((nint)ticker, range, pixels, vertical, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)formatterData); + #endif + } + + /// + /// To be documented. + /// + public static void Locator_SymLog(ImPlotTickerPtr ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) + { + Locator_SymLogNative(ticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); + } + + /// + /// To be documented. + /// + public static void Locator_SymLog(ref ImPlotTicker ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) + { + fixed (ImPlotTicker* pticker = &ticker) + { + Locator_SymLogNative((ImPlotTicker*)pticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); + } + } + + /// + /// ImPlotPoint getters manually wrapped
+ ///
+ [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotLineGNative(byte* labelId, ImPlotPointGetter getter, void* data, int count, ImPlotLineFlags flags) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, int, ImPlotLineFlags, void>)funcTable[722])(labelId, (delegate*)Utils.GetFunctionPointerForDelegate(getter), data, count, flags); + #else + ((delegate* unmanaged[Cdecl])funcTable[722])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter), (nint)data, count, flags); + #endif + } + + /// + /// ImPlotPoint getters manually wrapped
+ ///
+ public static void PlotLineG(byte* labelId, ImPlotPointGetter getter, void* data, int count, ImPlotLineFlags flags) + { + PlotLineGNative(labelId, getter, data, count, flags); + } + + /// + /// ImPlotPoint getters manually wrapped
+ ///
+ public static void PlotLineG(byte* labelId, ImPlotPointGetter getter, void* data, int count) + { + PlotLineGNative(labelId, getter, data, count, (ImPlotLineFlags)(0)); + } + + /// + /// ImPlotPoint getters manually wrapped
+ ///
+ public static void PlotLineG(ref byte labelId, ImPlotPointGetter getter, void* data, int count, ImPlotLineFlags flags) { fixed (byte* plabelId = &labelId) { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); + PlotLineGNative((byte*)plabelId, getter, data, count, flags); } } /// - /// To be documented. + /// ImPlotPoint getters manually wrapped
///
- public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + public static void PlotLineG(ref byte labelId, ImPlotPointGetter getter, void* data, int count) { fixed (byte* plabelId = &labelId) { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); + PlotLineGNative((byte*)plabelId, getter, data, count, (ImPlotLineFlags)(0)); } } /// - /// To be documented. + /// ImPlotPoint getters manually wrapped
///
- public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + public static void PlotLineG(ReadOnlySpan labelId, ImPlotPointGetter getter, void* data, int count, ImPlotLineFlags flags) { fixed (byte* plabelId = labelId) { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); + PlotLineGNative((byte*)plabelId, getter, data, count, flags); } } /// - /// To be documented. + /// ImPlotPoint getters manually wrapped
///
- public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + public static void PlotLineG(ReadOnlySpan labelId, ImPlotPointGetter getter, void* data, int count) { fixed (byte* plabelId = labelId) { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); + PlotLineGNative((byte*)plabelId, getter, data, count, (ImPlotLineFlags)(0)); } } /// - /// To be documented. + /// ImPlotPoint getters manually wrapped
///
- public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) + public static void PlotLineG(string labelId, ImPlotPointGetter getter, void* data, int count, ImPlotLineFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4913,7 +1029,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); + PlotLineGNative(pStr0, getter, data, count, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4921,9 +1037,9 @@ namespace Dalamud.Bindings.ImPlot } /// - /// To be documented. + /// ImPlotPoint getters manually wrapped
///
- public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) + public static void PlotLineG(string labelId, ImPlotPointGetter getter, void* data, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4942,7 +1058,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); + PlotLineGNative(pStr0, getter, data, count, (ImPlotLineFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4952,7 +1068,50 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotScatterGNative(byte* labelId, ImPlotPointGetter getter, void* data, int count) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, int, void>)funcTable[723])(labelId, (delegate*)Utils.GetFunctionPointerForDelegate(getter), data, count); + #else + ((delegate* unmanaged[Cdecl])funcTable[723])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter), (nint)data, count); + #endif + } + + /// + /// To be documented. + /// + public static void PlotScatterG(byte* labelId, ImPlotPointGetter getter, void* data, int count) + { + PlotScatterGNative(labelId, getter, data, count); + } + + /// + /// To be documented. + /// + public static void PlotScatterG(ref byte labelId, ImPlotPointGetter getter, void* data, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotScatterGNative((byte*)plabelId, getter, data, count); + } + } + + /// + /// To be documented. + /// + public static void PlotScatterG(ReadOnlySpan labelId, ImPlotPointGetter getter, void* data, int count) + { + fixed (byte* plabelId = labelId) + { + PlotScatterGNative((byte*)plabelId, getter, data, count); + } + } + + /// + /// To be documented. + /// + public static void PlotScatterG(string labelId, ImPlotPointGetter getter, void* data, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -4971,7 +1130,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); + PlotScatterGNative(pStr0, getter, data, count); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -4981,7 +1140,50 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotShadedGNative(byte* labelId, ImPlotPointGetter getter1, void* data1, ImPlotPointGetter getter2, void* data2, int count) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, delegate*, void*, int, void>)funcTable[724])(labelId, (delegate*)Utils.GetFunctionPointerForDelegate(getter1), data1, (delegate*)Utils.GetFunctionPointerForDelegate(getter2), data2, count); + #else + ((delegate* unmanaged[Cdecl])funcTable[724])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter1), (nint)data1, (nint)Utils.GetFunctionPointerForDelegate(getter2), (nint)data2, count); + #endif + } + + /// + /// To be documented. + /// + public static void PlotShadedG(byte* labelId, ImPlotPointGetter getter1, void* data1, ImPlotPointGetter getter2, void* data2, int count) + { + PlotShadedGNative(labelId, getter1, data1, getter2, data2, count); + } + + /// + /// To be documented. + /// + public static void PlotShadedG(ref byte labelId, ImPlotPointGetter getter1, void* data1, ImPlotPointGetter getter2, void* data2, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotShadedGNative((byte*)plabelId, getter1, data1, getter2, data2, count); + } + } + + /// + /// To be documented. + /// + public static void PlotShadedG(ReadOnlySpan labelId, ImPlotPointGetter getter1, void* data1, ImPlotPointGetter getter2, void* data2, int count) + { + fixed (byte* plabelId = labelId) + { + PlotShadedGNative((byte*)plabelId, getter1, data1, getter2, data2, count); + } + } + + /// + /// To be documented. + /// + public static void PlotShadedG(string labelId, ImPlotPointGetter getter1, void* data1, ImPlotPointGetter getter2, void* data2, int count) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5000,7 +1202,7 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotShadedGNative(pStr0, getter1, data1, getter2, data2, count); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -5010,7 +1212,50 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotBarsGNative(byte* labelId, ImPlotPointGetter getter, void* data, int count, double width) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, int, double, void>)funcTable[725])(labelId, (delegate*)Utils.GetFunctionPointerForDelegate(getter), data, count, width); + #else + ((delegate* unmanaged[Cdecl])funcTable[725])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter), (nint)data, count, width); + #endif + } + + /// + /// To be documented. + /// + public static void PlotBarsG(byte* labelId, ImPlotPointGetter getter, void* data, int count, double width) + { + PlotBarsGNative(labelId, getter, data, count, width); + } + + /// + /// To be documented. + /// + public static void PlotBarsG(ref byte labelId, ImPlotPointGetter getter, void* data, int count, double width) + { + fixed (byte* plabelId = &labelId) + { + PlotBarsGNative((byte*)plabelId, getter, data, count, width); + } + } + + /// + /// To be documented. + /// + public static void PlotBarsG(ReadOnlySpan labelId, ImPlotPointGetter getter, void* data, int count, double width) + { + fixed (byte* plabelId = labelId) + { + PlotBarsGNative((byte*)plabelId, getter, data, count, width); + } + } + + /// + /// To be documented. + /// + public static void PlotBarsG(string labelId, ImPlotPointGetter getter, void* data, int count, double width) { byte* pStr0 = null; int pStrSize0 = 0; @@ -5029,11 +1274,84 @@ namespace Dalamud.Bindings.ImPlot int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); + PlotBarsGNative(pStr0, getter, data, count, width); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } + + /// + /// CIMGUI_API void ImPlot_PlotBarsHG(const char* label_id, ImPlotPoint_getter getter, void* data, int count, double height);
+ ///
+ [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PlotDigitalGNative(byte* labelId, ImPlotPointGetter getter, void* data, int count) + { + #if NET5_0_OR_GREATER + ((delegate* unmanaged[Cdecl], void*, int, void>)funcTable[726])(labelId, (delegate*)Utils.GetFunctionPointerForDelegate(getter), data, count); + #else + ((delegate* unmanaged[Cdecl])funcTable[726])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter), (nint)data, count); + #endif + } + + /// + /// CIMGUI_API void ImPlot_PlotBarsHG(const char* label_id, ImPlotPoint_getter getter, void* data, int count, double height);
+ ///
+ public static void PlotDigitalG(byte* labelId, ImPlotPointGetter getter, void* data, int count) + { + PlotDigitalGNative(labelId, getter, data, count); + } + + /// + /// CIMGUI_API void ImPlot_PlotBarsHG(const char* label_id, ImPlotPoint_getter getter, void* data, int count, double height);
+ ///
+ public static void PlotDigitalG(ref byte labelId, ImPlotPointGetter getter, void* data, int count) + { + fixed (byte* plabelId = &labelId) + { + PlotDigitalGNative((byte*)plabelId, getter, data, count); + } + } + + /// + /// CIMGUI_API void ImPlot_PlotBarsHG(const char* label_id, ImPlotPoint_getter getter, void* data, int count, double height);
+ ///
+ public static void PlotDigitalG(ReadOnlySpan labelId, ImPlotPointGetter getter, void* data, int count) + { + fixed (byte* plabelId = labelId) + { + PlotDigitalGNative((byte*)plabelId, getter, data, count); + } + } + + /// + /// CIMGUI_API void ImPlot_PlotBarsHG(const char* label_id, ImPlotPoint_getter getter, void* data, int count, double height);
+ ///
+ public static void PlotDigitalG(string labelId, ImPlotPointGetter getter, void* data, int count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelId != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotDigitalGNative(pStr0, getter, data, count); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.072.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.072.cs deleted file mode 100644 index c40c03ce3..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.072.cs +++ /dev/null @@ -1,5026 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, double scale, double start) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, double scale) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, ImPlotStemsFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, double scale, int offset) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, int offset) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, int offset) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative(labelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotStemsNative(pStr0, (byte*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[184])(labelId, values, count, reference, scale, start, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[184])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, double scale, double start) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, double scale) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, ImPlotStemsFlags flags) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, double scale, double start, int offset) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, double scale, int offset) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, int offset) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, int offset) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, double scale, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotStemsNative(labelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.073.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.073.cs deleted file mode 100644 index 8354a06bc..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.073.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotStemsNative(pStr0, (short*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[185])(labelId, values, count, reference, scale, start, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[185])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, double scale, double start) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, double scale) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, ImPlotStemsFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, double scale, double start, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, double scale, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, double scale, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative(labelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotStemsNative(pStr0, (ushort*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[186])(labelId, values, count, reference, scale, start, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[186])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, double scale, double start) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, double scale) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.074.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.074.cs deleted file mode 100644 index 855142d3a..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.074.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, ImPlotStemsFlags flags) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, double scale, double start, int offset) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, double scale, int offset) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, int offset) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, int offset) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, double scale, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotStemsNative(labelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotStemsNative(pStr0, (int*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[187])(labelId, values, count, reference, scale, start, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[187])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, double scale, double start) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, double scale) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, ImPlotStemsFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, double scale, double start, int offset) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, double scale, int offset) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, int offset) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, int offset) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, double scale, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative(labelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotStemsNative(pStr0, (uint*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[188])(labelId, values, count, reference, scale, start, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[188])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(long))); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.075.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.075.cs deleted file mode 100644 index 0a154021c..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.075.cs +++ /dev/null @@ -1,5027 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, double scale, double start) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, double scale) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, ImPlotStemsFlags flags) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, double scale, double start, int offset) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, double scale, int offset) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, int offset) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, int offset) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, double scale, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotStemsNative(labelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotStemsNative(pStr0, (long*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[189])(labelId, values, count, reference, scale, start, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[189])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, double scale, double start) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, double scale) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, ImPlotStemsFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, double scale, double start, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, double scale, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, double scale, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative(labelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.076.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.076.cs deleted file mode 100644 index 26e94d5e6..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.076.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotStemsNative(pStr0, (ulong*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[190])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[190])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, float* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference, int offset) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference, int offset) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, int offset) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[191])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[191])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, double* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.077.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.077.cs deleted file mode 100644 index 0fd6d60ec..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.077.cs +++ /dev/null @@ -1,5033 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference, int offset) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference, int offset) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, int offset) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[192])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[192])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative(labelId, (byte*)pxs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative(labelId, (byte*)pxs, ys, count, reference, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, byte* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative(labelId, (byte*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, byte* ys, int count, double reference) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative(labelId, (byte*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative(labelId, (byte*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, byte* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative(labelId, (byte*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, byte* ys, int count, double reference, int offset) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative(labelId, (byte*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative(labelId, (byte*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, byte* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative(labelId, (byte*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, byte* ys, int count, double reference, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative(labelId, (byte*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative(labelId, (byte*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, byte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative(labelId, (byte*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, reference, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, byte* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, byte* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, byte* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, byte* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, reference, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStemsNative(pStr0, (byte*)pxs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStemsNative(pStr0, (byte*)pxs, ys, count, reference, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, byte* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStemsNative(pStr0, (byte*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, byte* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStemsNative(pStr0, (byte*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStemsNative(pStr0, (byte*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, byte* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStemsNative(pStr0, (byte*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, byte* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStemsNative(pStr0, (byte*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, byte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStemsNative(pStr0, (byte*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, byte* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStemsNative(pStr0, (byte*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, byte* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStemsNative(pStr0, (byte*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStemsNative(pStr0, (byte*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, byte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotStemsNative(pStr0, (byte*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, xs, (byte*)pys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, xs, (byte*)pys, count, reference, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, xs, (byte*)pys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, ref byte ys, int count, double reference) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, xs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, xs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, ref byte ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, xs, (byte*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, ref byte ys, int count, double reference, int offset) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, xs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, xs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, ref byte ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, xs, (byte*)pys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, ref byte ys, int count, double reference, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, xs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, xs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, byte* xs, ref byte ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, xs, (byte*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, reference, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, ref byte ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, ref byte ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, ref byte ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, reference, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (byte*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, xs, (byte*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, xs, (byte*)pys, count, reference, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, xs, (byte*)pys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.078.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.078.cs deleted file mode 100644 index aed06cf1b..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.078.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, ref byte ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, xs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, ref byte ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, xs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, ref byte ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, xs, (byte*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, ref byte ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, xs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, ref byte ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, xs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, ref byte ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, xs, (byte*)pys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, ref byte ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, xs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, xs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, byte* xs, ref byte ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, xs, (byte*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, (byte*)pxs, (byte*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, (byte*)pxs, (byte*)pys, count, reference, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, (byte*)pxs, (byte*)pys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, ref byte ys, int count, double reference) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, (byte*)pxs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, ref byte ys, int count, double reference, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, (byte*)pxs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, ref byte ys, int count, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, ref byte ys, int count, double reference, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, (byte*)pxs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(labelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, reference, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, ref byte ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, ref byte ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, ref byte ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, reference, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, (byte*)pxs, (byte*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, (byte*)pxs, (byte*)pys, count, reference, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, ref byte ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, (byte*)pxs, (byte*)pys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, ref byte ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, (byte*)pxs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, ref byte ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, ref byte ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, (byte*)pxs, (byte*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, ref byte ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, (byte*)pxs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, ref byte ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, ref byte ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, (byte*)pxs, (byte*)pys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, ref byte ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, (byte*)pxs, (byte*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, (byte*)pxs, (byte*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref byte xs, ref byte ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotStemsNative(pStr0, (byte*)pxs, (byte*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[193])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[193])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, short* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, short* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, short* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, short* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotStemsNative(labelId, (short*)pxs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - PlotStemsNative(labelId, (short*)pxs, ys, count, reference, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, short* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (short* pxs = &xs) - { - PlotStemsNative(labelId, (short*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, short* ys, int count, double reference) - { - fixed (short* pxs = &xs) - { - PlotStemsNative(labelId, (short*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, short* ys, int count) - { - fixed (short* pxs = &xs) - { - PlotStemsNative(labelId, (short*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, short* ys, int count, ImPlotStemsFlags flags) - { - fixed (short* pxs = &xs) - { - PlotStemsNative(labelId, (short*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, short* ys, int count, double reference, int offset) - { - fixed (short* pxs = &xs) - { - PlotStemsNative(labelId, (short*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, short* ys, int count, int offset) - { - fixed (short* pxs = &xs) - { - PlotStemsNative(labelId, (short*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, short* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - PlotStemsNative(labelId, (short*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, short* ys, int count, double reference, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotStemsNative(labelId, (short*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, short* ys, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotStemsNative(labelId, (short*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, short* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotStemsNative(labelId, (short*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, reference, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, short* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, short* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, short* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, short* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, short* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, short* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, short* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, short* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, reference, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, short* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, short* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, short* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, short* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, short* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotStemsNative(pStr0, (short*)pxs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotStemsNative(pStr0, (short*)pxs, ys, count, reference, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, short* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotStemsNative(pStr0, (short*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, short* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotStemsNative(pStr0, (short*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, short* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotStemsNative(pStr0, (short*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, short* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotStemsNative(pStr0, (short*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, short* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotStemsNative(pStr0, (short*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, short* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotStemsNative(pStr0, (short*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, short* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotStemsNative(pStr0, (short*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, short* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotStemsNative(pStr0, (short*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, short* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotStemsNative(pStr0, (short*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, short* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotStemsNative(pStr0, (short*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, ref short ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, xs, (short*)pys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, ref short ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, xs, (short*)pys, count, reference, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, ref short ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, xs, (short*)pys, count, reference, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, ref short ys, int count, double reference) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, xs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, ref short ys, int count) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, xs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, ref short ys, int count, ImPlotStemsFlags flags) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, xs, (short*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, ref short ys, int count, double reference, int offset) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, xs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, ref short ys, int count, int offset) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, xs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, ref short ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, xs, (short*)pys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, ref short ys, int count, double reference, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, xs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, ref short ys, int count, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, xs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, short* xs, ref short ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, xs, (short*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, ref short ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, ref short ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, reference, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, ref short ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, reference, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, ref short ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, ref short ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, ref short ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, ref short ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, ref short ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, ref short ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, short* xs, ref short ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, ref short ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, ref short ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, reference, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, ref short ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, reference, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, ref short ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, ref short ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, ref short ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, ref short ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (short*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, ref short ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, xs, (short*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, ref short ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, xs, (short*)pys, count, reference, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, ref short ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, xs, (short*)pys, count, reference, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, ref short ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, xs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, ref short ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, xs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, ref short ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, xs, (short*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, ref short ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, xs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, ref short ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, xs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, ref short ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, xs, (short*)pys, count, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, ref short ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, xs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, ref short ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, xs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, short* xs, ref short ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, xs, (short*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, ref short ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, (short*)pxs, (short*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, ref short ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, (short*)pxs, (short*)pys, count, reference, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, ref short ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, (short*)pxs, (short*)pys, count, reference, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, ref short ys, int count, double reference) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, (short*)pxs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, ref short ys, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, ref short ys, int count, ImPlotStemsFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, (short*)pxs, (short*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, ref short ys, int count, double reference, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, (short*)pxs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, ref short ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, (short*)pxs, (short*)pys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, ref short ys, int count, double reference, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, (short*)pxs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref short xs, ref short ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(labelId, (short*)pxs, (short*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, ref short ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, ref short ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, reference, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, ref short ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, reference, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, ref short ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, ref short ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, ref short ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, ref short ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, ref short ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, ref short ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref short xs, ref short ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, reference, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, reference, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, ref short ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, ref short ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, ref short ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, (short*)pxs, (short*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, ref short ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, (short*)pxs, (short*)pys, count, reference, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, ref short ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, (short*)pxs, (short*)pys, count, reference, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, ref short ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, (short*)pxs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, ref short ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, ref short ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, (short*)pxs, (short*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, ref short ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, (short*)pxs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, ref short ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, ref short ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, (short*)pxs, (short*)pys, count, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, ref short ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, (short*)pxs, (short*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, (short*)pxs, (short*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref short xs, ref short ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotStemsNative(pStr0, (short*)pxs, (short*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[194])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[194])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.079.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.079.cs deleted file mode 100644 index 102b86082..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.079.cs +++ /dev/null @@ -1,5034 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative(labelId, (ushort*)pxs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative(labelId, (ushort*)pxs, ys, count, reference, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative(labelId, (ushort*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ushort* ys, int count, double reference) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative(labelId, (ushort*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ushort* ys, int count) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative(labelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotStemsFlags flags) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative(labelId, (ushort*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ushort* ys, int count, double reference, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative(labelId, (ushort*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ushort* ys, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative(labelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative(labelId, (ushort*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ushort* ys, int count, double reference, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative(labelId, (ushort*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative(labelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative(labelId, (ushort*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, reference, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ushort* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ushort* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ushort* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, reference, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotStemsNative(pStr0, (ushort*)pxs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotStemsNative(pStr0, (ushort*)pxs, ys, count, reference, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotStemsNative(pStr0, (ushort*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ushort* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotStemsNative(pStr0, (ushort*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotStemsNative(pStr0, (ushort*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ushort* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotStemsNative(pStr0, (ushort*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ushort* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotStemsNative(pStr0, (ushort*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ushort* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotStemsNative(pStr0, (ushort*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotStemsNative(pStr0, (ushort*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ushort* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotStemsNative(pStr0, (ushort*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotStemsNative(pStr0, (ushort*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotStemsNative(pStr0, (ushort*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, xs, (ushort*)pys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, xs, (ushort*)pys, count, reference, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, xs, (ushort*)pys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ref ushort ys, int count, double reference) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, xs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ref ushort ys, int count) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, xs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotStemsFlags flags) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, xs, (ushort*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ref ushort ys, int count, double reference, int offset) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, xs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ref ushort ys, int count, int offset) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, xs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, xs, (ushort*)pys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ref ushort ys, int count, double reference, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, xs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, xs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, xs, (ushort*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, reference, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ref ushort ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ref ushort ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ref ushort ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ref ushort ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, reference, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ushort*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ushort*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ushort*)pys, count, reference, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ushort*)pys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ref ushort ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ref ushort ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ref ushort ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ushort*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ref ushort ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ref ushort ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ref ushort ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ushort*)pys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ref ushort ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ushort* xs, ref ushort ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ushort*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, (ushort*)pxs, (ushort*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, (ushort*)pxs, (ushort*)pys, count, reference, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, (ushort*)pxs, (ushort*)pys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ref ushort ys, int count, double reference) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, (ushort*)pxs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotStemsFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ref ushort ys, int count, double reference, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, (ushort*)pxs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ref ushort ys, int count, double reference, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, (ushort*)pxs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(labelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, reference, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ref ushort ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ref ushort ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ref ushort ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, reference, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, reference, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ref ushort ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ref ushort ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ref ushort ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ref ushort ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ref ushort ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotStemsNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[195])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[195])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, int* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, int* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, int* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, int* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotStemsNative(labelId, (int*)pxs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - PlotStemsNative(labelId, (int*)pxs, ys, count, reference, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, int* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (int* pxs = &xs) - { - PlotStemsNative(labelId, (int*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, int* ys, int count, double reference) - { - fixed (int* pxs = &xs) - { - PlotStemsNative(labelId, (int*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, int* ys, int count) - { - fixed (int* pxs = &xs) - { - PlotStemsNative(labelId, (int*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, int* ys, int count, ImPlotStemsFlags flags) - { - fixed (int* pxs = &xs) - { - PlotStemsNative(labelId, (int*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, int* ys, int count, double reference, int offset) - { - fixed (int* pxs = &xs) - { - PlotStemsNative(labelId, (int*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, int* ys, int count, int offset) - { - fixed (int* pxs = &xs) - { - PlotStemsNative(labelId, (int*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, int* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - PlotStemsNative(labelId, (int*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, int* ys, int count, double reference, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotStemsNative(labelId, (int*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotStemsNative(labelId, (int*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, int* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotStemsNative(labelId, (int*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, reference, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, int* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, int* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, int* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, int* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, int* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, int* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, int* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, reference, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, int* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, int* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, int* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, int* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotStemsNative(pStr0, (int*)pxs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotStemsNative(pStr0, (int*)pxs, ys, count, reference, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, int* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotStemsNative(pStr0, (int*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, int* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotStemsNative(pStr0, (int*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, int* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotStemsNative(pStr0, (int*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, int* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotStemsNative(pStr0, (int*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, int* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotStemsNative(pStr0, (int*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, int* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotStemsNative(pStr0, (int*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, int* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotStemsNative(pStr0, (int*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, int* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotStemsNative(pStr0, (int*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, int* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotStemsNative(pStr0, (int*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, int* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotStemsNative(pStr0, (int*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, ref int ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, xs, (int*)pys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, ref int ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, xs, (int*)pys, count, reference, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, ref int ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, xs, (int*)pys, count, reference, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, ref int ys, int count, double reference) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, xs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, ref int ys, int count) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, xs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, ref int ys, int count, ImPlotStemsFlags flags) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, xs, (int*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, ref int ys, int count, double reference, int offset) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, xs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, ref int ys, int count, int offset) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, xs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, ref int ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, xs, (int*)pys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, ref int ys, int count, double reference, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, xs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, xs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, int* xs, ref int ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, xs, (int*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, ref int ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, ref int ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, reference, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, ref int ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, reference, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, ref int ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, ref int ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, ref int ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, ref int ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, ref int ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, ref int ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, int* xs, ref int ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, ref int ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, reference, flags, offset, stride); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.080.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.080.cs deleted file mode 100644 index 9b597324d..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.080.cs +++ /dev/null @@ -1,5022 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, ref int ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, reference, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, ref int ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, reference, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, ref int ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, ref int ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, ref int ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, ref int ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (int*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, ref int ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, xs, (int*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, ref int ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, xs, (int*)pys, count, reference, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, ref int ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, xs, (int*)pys, count, reference, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, ref int ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, xs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, ref int ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, xs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, ref int ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, xs, (int*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, ref int ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, xs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, ref int ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, xs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, ref int ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, xs, (int*)pys, count, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, ref int ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, xs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, ref int ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, xs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, int* xs, ref int ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, xs, (int*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, ref int ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, (int*)pxs, (int*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, ref int ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, (int*)pxs, (int*)pys, count, reference, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, ref int ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, (int*)pxs, (int*)pys, count, reference, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, ref int ys, int count, double reference) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, (int*)pxs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, ref int ys, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, ref int ys, int count, ImPlotStemsFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, (int*)pxs, (int*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, ref int ys, int count, double reference, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, (int*)pxs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, ref int ys, int count, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, ref int ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, (int*)pxs, (int*)pys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, ref int ys, int count, double reference, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, (int*)pxs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref int xs, ref int ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(labelId, (int*)pxs, (int*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, ref int ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, ref int ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, reference, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, ref int ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, reference, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, ref int ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, ref int ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, ref int ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, ref int ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, ref int ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, ref int ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref int xs, ref int ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, reference, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, reference, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, ref int ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, ref int ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, ref int ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, (int*)pxs, (int*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, ref int ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, (int*)pxs, (int*)pys, count, reference, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, ref int ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, (int*)pxs, (int*)pys, count, reference, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, ref int ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, (int*)pxs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, ref int ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, ref int ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, (int*)pxs, (int*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, ref int ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, (int*)pxs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, ref int ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, ref int ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, (int*)pxs, (int*)pys, count, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, ref int ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, (int*)pxs, (int*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, (int*)pxs, (int*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref int xs, ref int ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotStemsNative(pStr0, (int*)pxs, (int*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[196])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[196])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, uint* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative(labelId, (uint*)pxs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative(labelId, (uint*)pxs, ys, count, reference, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, uint* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative(labelId, (uint*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, uint* ys, int count, double reference) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative(labelId, (uint*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, uint* ys, int count) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative(labelId, (uint*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, uint* ys, int count, ImPlotStemsFlags flags) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative(labelId, (uint*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, uint* ys, int count, double reference, int offset) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative(labelId, (uint*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, uint* ys, int count, int offset) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative(labelId, (uint*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, uint* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative(labelId, (uint*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, uint* ys, int count, double reference, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative(labelId, (uint*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative(labelId, (uint*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, uint* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative(labelId, (uint*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, reference, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, uint* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, uint* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, uint* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, uint* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, uint* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, reference, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStemsNative(pStr0, (uint*)pxs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStemsNative(pStr0, (uint*)pxs, ys, count, reference, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, uint* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStemsNative(pStr0, (uint*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, uint* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStemsNative(pStr0, (uint*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, uint* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStemsNative(pStr0, (uint*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, uint* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStemsNative(pStr0, (uint*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, uint* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStemsNative(pStr0, (uint*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, uint* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStemsNative(pStr0, (uint*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, uint* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStemsNative(pStr0, (uint*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, uint* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStemsNative(pStr0, (uint*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStemsNative(pStr0, (uint*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, uint* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotStemsNative(pStr0, (uint*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, xs, (uint*)pys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, xs, (uint*)pys, count, reference, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, xs, (uint*)pys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, ref uint ys, int count, double reference) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, xs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, ref uint ys, int count) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, xs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, ref uint ys, int count, ImPlotStemsFlags flags) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, xs, (uint*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, ref uint ys, int count, double reference, int offset) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, xs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, ref uint ys, int count, int offset) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, xs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, ref uint ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, xs, (uint*)pys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, ref uint ys, int count, double reference, int offset, int stride) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, xs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, ref uint ys, int count, int offset, int stride) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, xs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, uint* xs, ref uint ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, xs, (uint*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, reference, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, ref uint ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, ref uint ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, ref uint ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, ref uint ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, reference, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, ref uint ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (uint*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, xs, (uint*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, xs, (uint*)pys, count, reference, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, xs, (uint*)pys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, ref uint ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, xs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, ref uint ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, xs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, ref uint ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, xs, (uint*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, ref uint ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, xs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, ref uint ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, xs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, ref uint ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, xs, (uint*)pys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, ref uint ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, xs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, ref uint ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, xs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, uint* xs, ref uint ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, xs, (uint*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, (uint*)pxs, (uint*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, (uint*)pxs, (uint*)pys, count, reference, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, (uint*)pxs, (uint*)pys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, ref uint ys, int count, double reference) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, (uint*)pxs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, ref uint ys, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotStemsFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, ref uint ys, int count, double reference, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, (uint*)pxs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, ref uint ys, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, ref uint ys, int count, double reference, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, (uint*)pxs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(labelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, reference, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, ref uint ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, ref uint ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, ref uint ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, ref uint ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, reference, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, (uint*)pxs, (uint*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, (uint*)pxs, (uint*)pys, count, reference, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, ref uint ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, (uint*)pxs, (uint*)pys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, ref uint ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, (uint*)pxs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, ref uint ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, ref uint ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, (uint*)pxs, (uint*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, ref uint ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, (uint*)pxs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, ref uint ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, ref uint ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, (uint*)pxs, (uint*)pys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, ref uint ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, (uint*)pxs, (uint*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, (uint*)pxs, (uint*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref uint xs, ref uint ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotStemsNative(pStr0, (uint*)pxs, (uint*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[197])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[197])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.081.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.081.cs deleted file mode 100644 index 5d20c6754..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.081.cs +++ /dev/null @@ -1,5026 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, long* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, long* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, long* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotStemsNative(labelId, (long*)pxs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - PlotStemsNative(labelId, (long*)pxs, ys, count, reference, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, long* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (long* pxs = &xs) - { - PlotStemsNative(labelId, (long*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, long* ys, int count, double reference) - { - fixed (long* pxs = &xs) - { - PlotStemsNative(labelId, (long*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, long* ys, int count) - { - fixed (long* pxs = &xs) - { - PlotStemsNative(labelId, (long*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, long* ys, int count, ImPlotStemsFlags flags) - { - fixed (long* pxs = &xs) - { - PlotStemsNative(labelId, (long*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, long* ys, int count, double reference, int offset) - { - fixed (long* pxs = &xs) - { - PlotStemsNative(labelId, (long*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, long* ys, int count, int offset) - { - fixed (long* pxs = &xs) - { - PlotStemsNative(labelId, (long*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, long* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - PlotStemsNative(labelId, (long*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, long* ys, int count, double reference, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotStemsNative(labelId, (long*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotStemsNative(labelId, (long*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, long* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotStemsNative(labelId, (long*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, reference, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, long* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, long* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, long* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, long* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, long* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, long* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, long* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, reference, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, long* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, long* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, long* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, long* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStemsNative(pStr0, (long*)pxs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStemsNative(pStr0, (long*)pxs, ys, count, reference, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, long* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStemsNative(pStr0, (long*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, long* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStemsNative(pStr0, (long*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStemsNative(pStr0, (long*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, long* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStemsNative(pStr0, (long*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, long* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStemsNative(pStr0, (long*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, long* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStemsNative(pStr0, (long*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, long* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStemsNative(pStr0, (long*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, long* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStemsNative(pStr0, (long*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, long* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStemsNative(pStr0, (long*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, long* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotStemsNative(pStr0, (long*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, ref long ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, xs, (long*)pys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, ref long ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, xs, (long*)pys, count, reference, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, ref long ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, xs, (long*)pys, count, reference, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, ref long ys, int count, double reference) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, xs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, ref long ys, int count) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, xs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, ref long ys, int count, ImPlotStemsFlags flags) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, xs, (long*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, ref long ys, int count, double reference, int offset) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, xs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, ref long ys, int count, int offset) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, xs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, ref long ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, xs, (long*)pys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, ref long ys, int count, double reference, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, xs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, xs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, long* xs, ref long ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, xs, (long*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, ref long ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, ref long ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, reference, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, ref long ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, reference, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, ref long ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, ref long ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, ref long ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, ref long ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, ref long ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, ref long ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, long* xs, ref long ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, ref long ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, ref long ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, reference, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, ref long ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, reference, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, ref long ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, ref long ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, ref long ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, ref long ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (long*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, ref long ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, xs, (long*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, ref long ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, xs, (long*)pys, count, reference, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, ref long ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, xs, (long*)pys, count, reference, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, ref long ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, xs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, ref long ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, xs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, ref long ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, xs, (long*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, ref long ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, xs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, ref long ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, xs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, ref long ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, xs, (long*)pys, count, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, ref long ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, xs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, ref long ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, xs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, long* xs, ref long ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, xs, (long*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, ref long ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, (long*)pxs, (long*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, ref long ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, (long*)pxs, (long*)pys, count, reference, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, ref long ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, (long*)pxs, (long*)pys, count, reference, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, ref long ys, int count, double reference) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, (long*)pxs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, ref long ys, int count) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, ref long ys, int count, ImPlotStemsFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, (long*)pxs, (long*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, ref long ys, int count, double reference, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, (long*)pxs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, ref long ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, (long*)pxs, (long*)pys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, ref long ys, int count, double reference, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, (long*)pxs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref long xs, ref long ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(labelId, (long*)pxs, (long*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, ref long ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, ref long ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, reference, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, ref long ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, reference, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, ref long ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, ref long ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, ref long ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, ref long ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, ref long ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, ref long ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref long xs, ref long ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, reference, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, reference, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, ref long ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, ref long ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, ref long ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, (long*)pxs, (long*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, ref long ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, (long*)pxs, (long*)pys, count, reference, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, ref long ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, (long*)pxs, (long*)pys, count, reference, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, ref long ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, (long*)pxs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, ref long ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, ref long ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, (long*)pxs, (long*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, ref long ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, (long*)pxs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, ref long ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, ref long ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, (long*)pxs, (long*)pys, count, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, ref long ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, (long*)pxs, (long*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, (long*)pxs, (long*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref long xs, ref long ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotStemsNative(pStr0, (long*)pxs, (long*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[198])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[198])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative(labelId, (ulong*)pxs, ys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative(labelId, (ulong*)pxs, ys, count, reference, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative(labelId, (ulong*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ulong* ys, int count, double reference) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative(labelId, (ulong*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ulong* ys, int count) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative(labelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotStemsFlags flags) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative(labelId, (ulong*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ulong* ys, int count, double reference, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative(labelId, (ulong*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative(labelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative(labelId, (ulong*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ulong* ys, int count, double reference, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative(labelId, (ulong*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative(labelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative(labelId, (ulong*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, reference, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ulong* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ulong* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ulong* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, reference, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStemsNative(pStr0, (ulong*)pxs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStemsNative(pStr0, (ulong*)pxs, ys, count, reference, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStemsNative(pStr0, (ulong*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ulong* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStemsNative(pStr0, (ulong*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ulong* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStemsNative(pStr0, (ulong*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ulong* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStemsNative(pStr0, (ulong*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ulong* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStemsNative(pStr0, (ulong*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ulong* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStemsNative(pStr0, (ulong*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStemsNative(pStr0, (ulong*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ulong* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStemsNative(pStr0, (ulong*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStemsNative(pStr0, (ulong*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotStemsNative(pStr0, (ulong*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, xs, (ulong*)pys, count, reference, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, xs, (ulong*)pys, count, reference, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, xs, (ulong*)pys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ref ulong ys, int count, double reference) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, xs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ref ulong ys, int count) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, xs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.082.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.082.cs deleted file mode 100644 index 529c33b03..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.082.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotStemsFlags flags) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, xs, (ulong*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ref ulong ys, int count, double reference, int offset) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, xs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, xs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, xs, (ulong*)pys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ref ulong ys, int count, double reference, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, xs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, xs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, xs, (ulong*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, reference, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ref ulong ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ref ulong ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ref ulong ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ref ulong ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, reference, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (ulong*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ulong*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ulong*)pys, count, reference, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ulong*)pys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ref ulong ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ref ulong ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ref ulong ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ulong*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ref ulong ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ref ulong ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ref ulong ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ulong*)pys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ref ulong ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ulong* xs, ref ulong ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, xs, (ulong*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, (ulong*)pxs, (ulong*)pys, count, reference, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, (ulong*)pxs, (ulong*)pys, count, reference, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, (ulong*)pxs, (ulong*)pys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ref ulong ys, int count, double reference) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, (ulong*)pxs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotStemsFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ref ulong ys, int count, double reference, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, (ulong*)pxs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ref ulong ys, int count, double reference, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, (ulong*)pxs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(labelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, reference, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ref ulong ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ref ulong ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ref ulong ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, reference, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, reference, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ref ulong ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ref ulong ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ref ulong ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ref ulong ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ref ulong ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotStems(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotStemsNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[199])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[199])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, float* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, float* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, float* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, float* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, float* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, float* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, float* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, float* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, float* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, float* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, float* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, float* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative(labelId, (float*)pvalues, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative(labelId, (float*)pvalues, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref float values, int count, ImPlotInfLinesFlags flags) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative(labelId, (float*)pvalues, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref float values, int count) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative(labelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref float values, int count, int offset) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative(labelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref float values, int count, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative(labelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref float values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref float values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref float values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref float values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotInfLinesNative(pStr0, (float*)pvalues, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotInfLinesNative(pStr0, (float*)pvalues, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref float values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotInfLinesNative(pStr0, (float*)pvalues, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref float values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotInfLinesNative(pStr0, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref float values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotInfLinesNative(pStr0, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref float values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotInfLinesNative(pStr0, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[200])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[200])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, double* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, double* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, double* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, double* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, double* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, double* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, double* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, double* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, double* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, double* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, double* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, double* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative(labelId, (double*)pvalues, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative(labelId, (double*)pvalues, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref double values, int count, ImPlotInfLinesFlags flags) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative(labelId, (double*)pvalues, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref double values, int count) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative(labelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref double values, int count, int offset) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative(labelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref double values, int count, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative(labelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref double values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref double values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref double values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref double values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotInfLinesNative(pStr0, (double*)pvalues, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotInfLinesNative(pStr0, (double*)pvalues, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref double values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotInfLinesNative(pStr0, (double*)pvalues, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref double values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotInfLinesNative(pStr0, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref double values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotInfLinesNative(pStr0, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref double values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotInfLinesNative(pStr0, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[201])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[201])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, byte* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, byte* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, byte* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, byte* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, byte* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, byte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, byte* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, byte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, byte* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, byte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, byte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, byte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref byte values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative(labelId, (byte*)pvalues, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref byte values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative(labelId, (byte*)pvalues, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref byte values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative(labelId, (byte*)pvalues, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref byte values, int count) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative(labelId, (byte*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref byte values, int count, int offset) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative(labelId, (byte*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative(labelId, (byte*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref byte values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (byte*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref byte values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (byte*)pvalues, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref byte values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (byte*)pvalues, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref byte values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (byte*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref byte values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (byte*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (byte*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref byte values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (byte*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref byte values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (byte*)pvalues, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref byte values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (byte*)pvalues, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref byte values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (byte*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref byte values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (byte*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref byte values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (byte*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref byte values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotInfLinesNative(pStr0, (byte*)pvalues, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref byte values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotInfLinesNative(pStr0, (byte*)pvalues, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref byte values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotInfLinesNative(pStr0, (byte*)pvalues, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref byte values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotInfLinesNative(pStr0, (byte*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref byte values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotInfLinesNative(pStr0, (byte*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref byte values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotInfLinesNative(pStr0, (byte*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[202])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[202])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, short* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, short* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, short* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, short* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, short* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, short* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, short* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, short* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, short* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, short* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, short* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, short* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref short values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative(labelId, (short*)pvalues, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref short values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative(labelId, (short*)pvalues, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref short values, int count, ImPlotInfLinesFlags flags) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative(labelId, (short*)pvalues, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref short values, int count) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative(labelId, (short*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref short values, int count, int offset) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative(labelId, (short*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref short values, int count, int offset, int stride) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative(labelId, (short*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref short values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (short*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref short values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (short*)pvalues, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref short values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (short*)pvalues, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref short values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (short*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref short values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (short*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref short values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (short*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref short values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (short*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref short values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (short*)pvalues, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref short values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (short*)pvalues, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref short values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (short*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref short values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (short*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref short values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (short*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref short values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotInfLinesNative(pStr0, (short*)pvalues, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref short values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotInfLinesNative(pStr0, (short*)pvalues, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref short values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotInfLinesNative(pStr0, (short*)pvalues, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref short values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotInfLinesNative(pStr0, (short*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref short values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotInfLinesNative(pStr0, (short*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref short values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotInfLinesNative(pStr0, (short*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[203])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[203])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ushort* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.083.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.083.cs deleted file mode 100644 index 31fb20337..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.083.cs +++ /dev/null @@ -1,5052 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ushort* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ushort* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ushort* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ushort* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ushort* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ushort* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ushort* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ushort* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ushort* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ushort* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ushort* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref ushort values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative(labelId, (ushort*)pvalues, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref ushort values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative(labelId, (ushort*)pvalues, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref ushort values, int count, ImPlotInfLinesFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative(labelId, (ushort*)pvalues, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref ushort values, int count) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative(labelId, (ushort*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref ushort values, int count, int offset) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative(labelId, (ushort*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref ushort values, int count, int offset, int stride) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative(labelId, (ushort*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref ushort values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ushort*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref ushort values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ushort*)pvalues, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref ushort values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ushort*)pvalues, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref ushort values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ushort*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref ushort values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ushort*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref ushort values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ushort*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref ushort values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ushort*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref ushort values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ushort*)pvalues, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref ushort values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ushort*)pvalues, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref ushort values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ushort*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref ushort values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ushort*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref ushort values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ushort*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref ushort values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative(pStr0, (ushort*)pvalues, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref ushort values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative(pStr0, (ushort*)pvalues, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref ushort values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative(pStr0, (ushort*)pvalues, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref ushort values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative(pStr0, (ushort*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref ushort values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative(pStr0, (ushort*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref ushort values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotInfLinesNative(pStr0, (ushort*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[204])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[204])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, int* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, int* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, int* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, int* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, int* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, int* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, int* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, int* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, int* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, int* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, int* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, int* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref int values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative(labelId, (int*)pvalues, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref int values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative(labelId, (int*)pvalues, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref int values, int count, ImPlotInfLinesFlags flags) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative(labelId, (int*)pvalues, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref int values, int count) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative(labelId, (int*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref int values, int count, int offset) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative(labelId, (int*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref int values, int count, int offset, int stride) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative(labelId, (int*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref int values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (int*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref int values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (int*)pvalues, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref int values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (int*)pvalues, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref int values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (int*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref int values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (int*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref int values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (int*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref int values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (int*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref int values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (int*)pvalues, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref int values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (int*)pvalues, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref int values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (int*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref int values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (int*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref int values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (int*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref int values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotInfLinesNative(pStr0, (int*)pvalues, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref int values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotInfLinesNative(pStr0, (int*)pvalues, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref int values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotInfLinesNative(pStr0, (int*)pvalues, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref int values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotInfLinesNative(pStr0, (int*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref int values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotInfLinesNative(pStr0, (int*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref int values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotInfLinesNative(pStr0, (int*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[205])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[205])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, uint* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, uint* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, uint* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, uint* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, uint* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, uint* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, uint* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, uint* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, uint* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, uint* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, uint* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, uint* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref uint values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative(labelId, (uint*)pvalues, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref uint values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative(labelId, (uint*)pvalues, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref uint values, int count, ImPlotInfLinesFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative(labelId, (uint*)pvalues, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref uint values, int count) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative(labelId, (uint*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref uint values, int count, int offset) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative(labelId, (uint*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref uint values, int count, int offset, int stride) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative(labelId, (uint*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref uint values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (uint*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref uint values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (uint*)pvalues, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref uint values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (uint*)pvalues, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref uint values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (uint*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref uint values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (uint*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref uint values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (uint*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref uint values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (uint*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref uint values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (uint*)pvalues, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref uint values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (uint*)pvalues, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref uint values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (uint*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref uint values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (uint*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref uint values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (uint*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref uint values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotInfLinesNative(pStr0, (uint*)pvalues, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref uint values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotInfLinesNative(pStr0, (uint*)pvalues, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref uint values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotInfLinesNative(pStr0, (uint*)pvalues, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref uint values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotInfLinesNative(pStr0, (uint*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref uint values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotInfLinesNative(pStr0, (uint*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref uint values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotInfLinesNative(pStr0, (uint*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[206])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[206])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, long* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, long* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, long* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, long* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, long* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, long* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, long* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, long* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, long* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, long* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, long* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, long* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref long values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative(labelId, (long*)pvalues, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref long values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative(labelId, (long*)pvalues, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref long values, int count, ImPlotInfLinesFlags flags) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative(labelId, (long*)pvalues, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref long values, int count) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative(labelId, (long*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref long values, int count, int offset) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative(labelId, (long*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref long values, int count, int offset, int stride) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative(labelId, (long*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref long values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (long*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref long values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (long*)pvalues, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref long values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (long*)pvalues, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref long values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (long*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref long values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (long*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref long values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (long*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref long values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (long*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref long values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (long*)pvalues, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref long values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (long*)pvalues, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref long values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (long*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref long values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (long*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref long values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (long*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref long values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotInfLinesNative(pStr0, (long*)pvalues, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref long values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotInfLinesNative(pStr0, (long*)pvalues, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref long values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotInfLinesNative(pStr0, (long*)pvalues, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref long values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotInfLinesNative(pStr0, (long*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref long values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotInfLinesNative(pStr0, (long*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref long values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotInfLinesNative(pStr0, (long*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[207])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[207])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ulong* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ulong* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ulong* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ulong* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ulong* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ulong* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ulong* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ulong* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ulong* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ulong* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ulong* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ulong* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref ulong values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative(labelId, (ulong*)pvalues, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref ulong values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative(labelId, (ulong*)pvalues, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref ulong values, int count, ImPlotInfLinesFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative(labelId, (ulong*)pvalues, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref ulong values, int count) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative(labelId, (ulong*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref ulong values, int count, int offset) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative(labelId, (ulong*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(byte* labelId, ref ulong values, int count, int offset, int stride) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative(labelId, (ulong*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref ulong values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ulong*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref ulong values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ulong*)pvalues, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref ulong values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ulong*)pvalues, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref ulong values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ulong*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref ulong values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ulong*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ref byte labelId, ref ulong values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ulong*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref ulong values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ulong*)pvalues, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref ulong values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ulong*)pvalues, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref ulong values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ulong*)pvalues, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref ulong values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ulong*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref ulong values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ulong*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(ReadOnlySpan labelId, ref ulong values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (ulong*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref ulong values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative(pStr0, (ulong*)pvalues, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref ulong values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative(pStr0, (ulong*)pvalues, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref ulong values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative(pStr0, (ulong*)pvalues, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref ulong values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative(pStr0, (ulong*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref ulong values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative(pStr0, (ulong*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotInfLines(string labelId, ref ulong values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotInfLinesNative(pStr0, (ulong*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[208])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[208])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - fixed (float* pvalues = &values) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt) - { - fixed (float* pvalues = &values) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius) - { - fixed (float* pvalues = &values) - { - PlotPieChart(labelIds, (float*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, double angle0) - { - fixed (float* pvalues = &values) - { - PlotPieChart(labelIds, (float*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - PlotPieChart(labelIds, (float*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - PlotPieChart(labelIds, (float*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotPieChart(pStrArray0, (float*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotPieChart(pStrArray0, (float*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotPieChart(pStrArray0, (float*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotPieChart(pStrArray0, (float*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.084.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.084.cs deleted file mode 100644 index f7971834e..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.084.cs +++ /dev/null @@ -1,5034 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, string labelFmt) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[209])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[209])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - fixed (double* pvalues = &values) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt) - { - fixed (double* pvalues = &values) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius) - { - fixed (double* pvalues = &values) - { - PlotPieChart(labelIds, (double*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, double angle0) - { - fixed (double* pvalues = &values) - { - PlotPieChart(labelIds, (double*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - PlotPieChart(labelIds, (double*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - PlotPieChart(labelIds, (double*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotPieChart(pStrArray0, (double*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotPieChart(pStrArray0, (double*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotPieChart(pStrArray0, (double*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotPieChart(pStrArray0, (double*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, string labelFmt) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[210])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[210])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - fixed (byte* pvalues = &values) - { - PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, byte* labelFmt) - { - fixed (byte* pvalues = &values) - { - PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius) - { - fixed (byte* pvalues = &values) - { - PlotPieChart(labelIds, (byte*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, double angle0) - { - fixed (byte* pvalues = &values) - { - PlotPieChart(labelIds, (byte*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotPieChart(labelIds, (byte*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotPieChart(labelIds, (byte*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref byte values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (byte*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref byte values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (byte*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref byte values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (byte*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref byte values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - PlotPieChart(pStrArray0, (byte*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref byte values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - PlotPieChart(pStrArray0, (byte*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref byte values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (byte*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref byte values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - PlotPieChart(pStrArray0, (byte*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref byte values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - PlotPieChart(pStrArray0, (byte*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, string labelFmt) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref byte values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (byte*)pvalues, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref byte values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (byte*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref byte values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (byte*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref byte values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (byte*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[211])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[211])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (short* pvalues = &values) - { - PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - fixed (short* pvalues = &values) - { - PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, byte* labelFmt) - { - fixed (short* pvalues = &values) - { - PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius) - { - fixed (short* pvalues = &values) - { - PlotPieChart(labelIds, (short*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, double angle0) - { - fixed (short* pvalues = &values) - { - PlotPieChart(labelIds, (short*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - fixed (short* pvalues = &values) - { - PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - fixed (short* pvalues = &values) - { - PlotPieChart(labelIds, (short*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - fixed (short* pvalues = &values) - { - PlotPieChart(labelIds, (short*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref short values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (short*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref short values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (short*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref short values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (short*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref short values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - PlotPieChart(pStrArray0, (short*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref short values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - PlotPieChart(pStrArray0, (short*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref short values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (short*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref short values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - PlotPieChart(pStrArray0, (short*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref short values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - PlotPieChart(pStrArray0, (short*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.085.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.085.cs deleted file mode 100644 index 74ec7698a..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.085.cs +++ /dev/null @@ -1,5047 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, string labelFmt) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref short values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (short*)pvalues, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref short values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (short*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref short values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (short*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref short values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (short*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[212])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[212])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotPieChartNative(labelIds, (ushort*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - fixed (ushort* pvalues = &values) - { - PlotPieChartNative(labelIds, (ushort*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, byte* labelFmt) - { - fixed (ushort* pvalues = &values) - { - PlotPieChartNative(labelIds, (ushort*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius) - { - fixed (ushort* pvalues = &values) - { - PlotPieChart(labelIds, (ushort*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, double angle0) - { - fixed (ushort* pvalues = &values) - { - PlotPieChart(labelIds, (ushort*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotPieChartNative(labelIds, (ushort*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotPieChart(labelIds, (ushort*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotPieChart(labelIds, (ushort*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ushort values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (ushort*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ushort values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (ushort*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ushort values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (ushort*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ushort values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - PlotPieChart(pStrArray0, (ushort*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ushort values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - PlotPieChart(pStrArray0, (ushort*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ushort values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (ushort*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ushort values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - PlotPieChart(pStrArray0, (ushort*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ushort values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - PlotPieChart(pStrArray0, (ushort*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (ushort*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (ushort*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (ushort*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (ushort*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (ushort*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (ushort*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (ushort*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (ushort*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (ushort*)pvalues, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (ushort*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, string labelFmt) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (ushort*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ushort values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (ushort*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ushort values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (ushort*)pvalues, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ushort values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (ushort*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ushort values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (ushort*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ushort values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (ushort*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[213])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[213])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (int* pvalues = &values) - { - PlotPieChartNative(labelIds, (int*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - fixed (int* pvalues = &values) - { - PlotPieChartNative(labelIds, (int*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, byte* labelFmt) - { - fixed (int* pvalues = &values) - { - PlotPieChartNative(labelIds, (int*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius) - { - fixed (int* pvalues = &values) - { - PlotPieChart(labelIds, (int*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, double angle0) - { - fixed (int* pvalues = &values) - { - PlotPieChart(labelIds, (int*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - fixed (int* pvalues = &values) - { - PlotPieChartNative(labelIds, (int*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - fixed (int* pvalues = &values) - { - PlotPieChart(labelIds, (int*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - fixed (int* pvalues = &values) - { - PlotPieChart(labelIds, (int*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref int values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (int*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref int values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (int*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref int values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (int*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref int values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - PlotPieChart(pStrArray0, (int*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref int values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - PlotPieChart(pStrArray0, (int*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref int values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (int*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref int values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - PlotPieChart(pStrArray0, (int*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref int values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - PlotPieChart(pStrArray0, (int*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (int*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (int*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (int*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (int*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (int*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (int*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (int*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (int*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (int*)pvalues, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (int*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, string labelFmt) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (int*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref int values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (int*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref int values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (int*)pvalues, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref int values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (int*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref int values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (int*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref int values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (int*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[214])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[214])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotPieChartNative(labelIds, (uint*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - fixed (uint* pvalues = &values) - { - PlotPieChartNative(labelIds, (uint*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, byte* labelFmt) - { - fixed (uint* pvalues = &values) - { - PlotPieChartNative(labelIds, (uint*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius) - { - fixed (uint* pvalues = &values) - { - PlotPieChart(labelIds, (uint*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, double angle0) - { - fixed (uint* pvalues = &values) - { - PlotPieChart(labelIds, (uint*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotPieChartNative(labelIds, (uint*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotPieChart(labelIds, (uint*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotPieChart(labelIds, (uint*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref uint values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (uint*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref uint values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (uint*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref uint values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (uint*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref uint values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - PlotPieChart(pStrArray0, (uint*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref uint values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - PlotPieChart(pStrArray0, (uint*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref uint values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (uint*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref uint values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - PlotPieChart(pStrArray0, (uint*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref uint values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - PlotPieChart(pStrArray0, (uint*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (uint*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (uint*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (uint*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (uint*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (uint*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (uint*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (uint*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (uint*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (uint*)pvalues, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (uint*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, string labelFmt) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (uint*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.086.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.086.cs deleted file mode 100644 index 9d56cb300..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.086.cs +++ /dev/null @@ -1,5043 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref uint values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (uint*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref uint values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (uint*)pvalues, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref uint values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (uint*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref uint values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (uint*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref uint values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (uint*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[215])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[215])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (long* pvalues = &values) - { - PlotPieChartNative(labelIds, (long*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - fixed (long* pvalues = &values) - { - PlotPieChartNative(labelIds, (long*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, byte* labelFmt) - { - fixed (long* pvalues = &values) - { - PlotPieChartNative(labelIds, (long*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius) - { - fixed (long* pvalues = &values) - { - PlotPieChart(labelIds, (long*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, double angle0) - { - fixed (long* pvalues = &values) - { - PlotPieChart(labelIds, (long*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - fixed (long* pvalues = &values) - { - PlotPieChartNative(labelIds, (long*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - fixed (long* pvalues = &values) - { - PlotPieChart(labelIds, (long*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - fixed (long* pvalues = &values) - { - PlotPieChart(labelIds, (long*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref long values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (long*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref long values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (long*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref long values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (long*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref long values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - PlotPieChart(pStrArray0, (long*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref long values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - PlotPieChart(pStrArray0, (long*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref long values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (long*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref long values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - PlotPieChart(pStrArray0, (long*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref long values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - PlotPieChart(pStrArray0, (long*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (long*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (long*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (long*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (long*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (long*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (long*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (long*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (long*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (long*)pvalues, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (long*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, string labelFmt) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (long*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref long values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (long*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref long values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (long*)pvalues, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref long values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (long*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref long values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (long*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref long values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (long*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[216])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[216])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotPieChartNative(labelIds, (ulong*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - fixed (ulong* pvalues = &values) - { - PlotPieChartNative(labelIds, (ulong*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, byte* labelFmt) - { - fixed (ulong* pvalues = &values) - { - PlotPieChartNative(labelIds, (ulong*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius) - { - fixed (ulong* pvalues = &values) - { - PlotPieChart(labelIds, (ulong*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, double angle0) - { - fixed (ulong* pvalues = &values) - { - PlotPieChart(labelIds, (ulong*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotPieChartNative(labelIds, (ulong*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotPieChart(labelIds, (ulong*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotPieChart(labelIds, (ulong*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ulong values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (ulong*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ulong values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (ulong*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ulong values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (ulong*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ulong values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - PlotPieChart(pStrArray0, (ulong*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ulong values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - PlotPieChart(pStrArray0, (ulong*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ulong values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (ulong*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ulong values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - PlotPieChart(pStrArray0, (ulong*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ulong values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - PlotPieChart(pStrArray0, (ulong*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (ulong*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (ulong*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (ulong*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (ulong*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (ulong*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, double angle0) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (ulong*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, ReadOnlySpan labelFmt) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (ulong*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, ReadOnlySpan labelFmt, ImPlotPieChartFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (ulong*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (ulong*)pvalues, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (ulong*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, string labelFmt) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (ulong*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(byte** labelIds, ref ulong values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (ulong*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ulong values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (ulong*)pvalues, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ulong values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (ulong*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ulong values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (ulong*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotPieChart(string[] labelIds, ref ulong values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (ulong*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[217])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[217])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.087.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.087.cs deleted file mode 100644 index 46fbc4639..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.087.cs +++ /dev/null @@ -1,5038 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.088.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.088.cs deleted file mode 100644 index 1d2dddfe4..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.088.cs +++ /dev/null @@ -1,5022 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.089.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.089.cs deleted file mode 100644 index df3b4a9e5..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.089.cs +++ /dev/null @@ -1,5025 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[218])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[218])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.090.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.090.cs deleted file mode 100644 index e28178925..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.090.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.091.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.091.cs deleted file mode 100644 index 830489cf0..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.091.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.092.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.092.cs deleted file mode 100644 index b09f8863e..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.092.cs +++ /dev/null @@ -1,5026 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[219])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[219])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.093.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.093.cs deleted file mode 100644 index 405f1e473..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.093.cs +++ /dev/null @@ -1,5049 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, byte* labelFmt) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmap(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.094.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.094.cs deleted file mode 100644 index d8cdab0b5..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.094.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.095.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.095.cs deleted file mode 100644 index 9db04935c..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.095.cs +++ /dev/null @@ -1,5054 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, string labelFmt) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref byte values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (byte*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.096.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.096.cs deleted file mode 100644 index d75e81687..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.096.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref byte values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (byte*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[220])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[220])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, byte* labelFmt) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmap(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmap(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.097.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.097.cs deleted file mode 100644 index 8628c4f08..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.097.cs +++ /dev/null @@ -1,5053 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.098.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.098.cs deleted file mode 100644 index ee2b0860a..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.098.cs +++ /dev/null @@ -1,5030 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ref byte labelFmt) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, string labelFmt) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref short values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref short values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref short values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (short*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.099.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.099.cs deleted file mode 100644 index e3f809ec7..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.099.cs +++ /dev/null @@ -1,5037 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref short values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (short*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[221])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[221])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, byte* labelFmt) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.100.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.100.cs deleted file mode 100644 index 1f243513f..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.100.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmap(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.101.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.101.cs deleted file mode 100644 index 5a12cedc9..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.101.cs +++ /dev/null @@ -1,5046 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ref byte labelFmt) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, string labelFmt) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.102.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.102.cs deleted file mode 100644 index 141393e02..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.102.cs +++ /dev/null @@ -1,5053 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ushort values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ushort values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ushort*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[222])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[222])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, byte* labelFmt) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmap(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.103.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.103.cs deleted file mode 100644 index 6827bf5e0..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.103.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmap(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.104.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.104.cs deleted file mode 100644 index a190f9953..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.104.cs +++ /dev/null @@ -1,5030 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ref byte labelFmt) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, string labelFmt) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref int values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref int values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.105.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.105.cs deleted file mode 100644 index 272fd891e..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.105.cs +++ /dev/null @@ -1,5033 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref int values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (int*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref int values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (int*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[223])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[223])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, byte* labelFmt) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.106.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.106.cs deleted file mode 100644 index 51c798ce1..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.106.cs +++ /dev/null @@ -1,5028 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmap(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.107.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.107.cs deleted file mode 100644 index d97aa7ee9..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.107.cs +++ /dev/null @@ -1,5055 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ref byte labelFmt) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, string labelFmt) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.108.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.108.cs deleted file mode 100644 index 968862a24..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.108.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref uint values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (uint*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref uint values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (uint*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[224])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[224])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, byte* labelFmt) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmap(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.109.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.109.cs deleted file mode 100644 index 55ace8c39..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.109.cs +++ /dev/null @@ -1,5048 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmap(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.110.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.110.cs deleted file mode 100644 index 60f631f8a..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.110.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ref byte labelFmt) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, string labelFmt) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref long values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.111.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.111.cs deleted file mode 100644 index 5224ed286..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.111.cs +++ /dev/null @@ -1,5027 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref long values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref long values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (long*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref long values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (long*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[225])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[225])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.112.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.112.cs deleted file mode 100644 index ae4edb3c2..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.112.cs +++ /dev/null @@ -1,5045 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, byte* labelFmt) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmap(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.113.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.113.cs deleted file mode 100644 index 64539b41e..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.113.cs +++ /dev/null @@ -1,5052 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ref byte labelFmt) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, string labelFmt) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(byte* labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.114.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.114.cs deleted file mode 100644 index 99d3f6ef9..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.114.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ref byte labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(ReadOnlySpan labelId, ref ulong values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, double scaleMin, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotHeatmap(string labelId, ref ulong values, int rows, int cols, ReadOnlySpan labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (ulong*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, float* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[226])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[226])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, float* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, float* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, float* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, float* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, float* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, float* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, float* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, float* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, float* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, float* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, float* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, float* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, float* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, float* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, float* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, float* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, float* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, float* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, float* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, float* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, float* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, float* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, float* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, float* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, float* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, float* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, float* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, float* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, float* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, float* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, float* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, float* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, float* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, float* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, float* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, float* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, float* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, float* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, float* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, float* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, float* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, float* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, double barScale) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref float values, int count, int bins) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref float values, int count) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref float values, int count, double barScale) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, ImPlotRange range) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref float values, int count, ImPlotRange range) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref float values, int count, double barScale, ImPlotRange range) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref float values, int count, ImPlotHistogramFlags flags) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref float values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref float values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref float values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref float values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref float values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref float values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref float values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref float values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref float values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref float values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref float values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.115.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.115.cs deleted file mode 100644 index b312d9e7d..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.115.cs +++ /dev/null @@ -1,5034 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref float values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref float values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref float values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref float values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref float values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref float values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref float values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref float values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref float values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref float values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref float values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref float values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref float values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref float values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref float values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref float values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref float values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, double* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[227])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[227])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, double* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, double* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, double* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, double* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, double* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, double* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, double* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, double* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, double* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, double* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, double* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, double* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, double* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, double* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, double* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, double* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, double* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, double* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, double* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, double* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, double* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, double* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, double* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, double* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, double* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, double* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, double* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, double* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, double* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, double* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, double* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, double* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, double* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, double* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, double* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, double* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, double* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, double* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, double* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, double* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, double* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, double* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, double barScale) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref double values, int count, int bins) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref double values, int count) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref double values, int count, double barScale) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, ImPlotRange range) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref double values, int count, ImPlotRange range) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref double values, int count, double barScale, ImPlotRange range) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref double values, int count, ImPlotHistogramFlags flags) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref double values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref double values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref double values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref double values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref double values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref double values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref double values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref double values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref double values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref double values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref double values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref double values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref double values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref double values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref double values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref double values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref double values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref double values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref double values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref double values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref double values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref double values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref double values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref double values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref double values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref double values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref double values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref double values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, byte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[228])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[228])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, byte* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, byte* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, byte* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, byte* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, byte* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, byte* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, byte* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, byte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, byte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, byte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, byte* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, byte* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, byte* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, byte* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, byte* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, byte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, byte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, byte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, byte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, byte* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, byte* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, byte* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, byte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, byte* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, byte* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, byte* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, byte* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, byte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, byte* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, byte* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, byte* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, byte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, byte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, byte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref byte values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (byte*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref byte values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (byte*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref byte values, int count, int bins, double barScale) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (byte*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref byte values, int count, int bins) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (byte*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref byte values, int count) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref byte values, int count, double barScale) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref byte values, int count, int bins, ImPlotRange range) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (byte*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref byte values, int count, ImPlotRange range) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref byte values, int count, double barScale, ImPlotRange range) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref byte values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (byte*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref byte values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (byte*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref byte values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref byte values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref byte values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (byte*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref byte values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref byte values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref byte values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref byte values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref byte values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref byte values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref byte values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref byte values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref byte values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref byte values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref byte values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref byte values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref byte values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref byte values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref byte values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref byte values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref byte values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref byte values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref byte values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref byte values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref byte values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref byte values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref byte values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref byte values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref byte values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref byte values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref byte values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref byte values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref byte values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref byte values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref byte values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref byte values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref byte values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref byte values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref byte values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (byte*)pvalues, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref byte values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (byte*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref byte values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (byte*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref byte values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (byte*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref byte values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref byte values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref byte values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (byte*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref byte values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref byte values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref byte values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (byte*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.116.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.116.cs deleted file mode 100644 index 9db1bc6fc..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.116.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref byte values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (byte*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref byte values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref byte values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref byte values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (byte*)pvalues, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref byte values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref byte values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (byte*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, short* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[229])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[229])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, short* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, short* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, short* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, short* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, short* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, short* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, short* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, short* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, short* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, short* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, short* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, short* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, short* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, short* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, short* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, short* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, short* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, short* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, short* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, short* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, short* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, short* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, short* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, short* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, short* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, short* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, short* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, short* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, short* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, short* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, short* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, short* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, short* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, short* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, short* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, short* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, short* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, short* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, short* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, short* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, short* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, short* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref short values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (short*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref short values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (short*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref short values, int count, int bins, double barScale) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (short*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref short values, int count, int bins) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (short*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref short values, int count) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref short values, int count, double barScale) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref short values, int count, int bins, ImPlotRange range) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (short*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref short values, int count, ImPlotRange range) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref short values, int count, double barScale, ImPlotRange range) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref short values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (short*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref short values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (short*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref short values, int count, ImPlotHistogramFlags flags) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref short values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref short values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (short*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref short values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref short values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref short values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref short values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref short values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref short values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref short values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref short values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref short values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref short values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref short values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref short values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref short values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref short values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref short values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref short values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref short values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref short values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref short values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref short values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref short values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref short values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref short values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref short values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref short values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref short values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref short values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref short values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref short values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref short values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref short values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref short values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref short values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref short values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref short values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (short*)pvalues, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref short values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (short*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref short values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (short*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref short values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (short*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref short values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref short values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref short values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (short*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref short values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref short values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref short values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (short*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref short values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (short*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref short values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref short values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref short values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (short*)pvalues, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref short values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref short values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (short*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[230])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[230])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ushort* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ushort* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ushort* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ushort* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ushort* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ushort* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ushort* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ushort* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ushort* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ushort* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ushort* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ushort* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ushort* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ushort* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ushort* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ushort* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ushort* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ushort* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ushort* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ushort* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ushort* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ushort* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ushort* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ushort* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ushort* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ushort* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ushort* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ushort* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ushort* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ushort* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ushort* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ushort values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ushort*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ushort values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ushort*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ushort values, int count, int bins, double barScale) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ushort*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ushort values, int count, int bins) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ushort*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ushort values, int count) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ushort values, int count, double barScale) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ushort values, int count, int bins, ImPlotRange range) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ushort*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ushort values, int count, ImPlotRange range) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ushort values, int count, double barScale, ImPlotRange range) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ushort values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ushort*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ushort values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ushort*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ushort values, int count, ImPlotHistogramFlags flags) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ushort values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ushort values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ushort*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ushort values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ushort values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ushort values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ushort values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ushort values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ushort values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ushort values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ushort values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ushort values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ushort values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ushort values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ushort values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ushort values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ushort values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ushort values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ushort values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ushort values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ushort values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ushort values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ushort values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ushort values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ushort values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ushort values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ushort values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ushort values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ushort values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ushort values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ushort values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ushort values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ushort values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ushort values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ushort values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ushort values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ushort values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ushort values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ushort*)pvalues, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ushort values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ushort*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ushort values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ushort*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ushort values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ushort*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ushort values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ushort values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ushort values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ushort*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ushort values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ushort values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ushort values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ushort*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ushort values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ushort*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ushort values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ushort values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ushort values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ushort*)pvalues, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ushort values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ushort values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ushort*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, int* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[231])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[231])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, int* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, int* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, int* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, int* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, int* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, int* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, int* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, int* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, int* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, int* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, int* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, int* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, int* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, int* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, int* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, int* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, int* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, int* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, int* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, int* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, int* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, int* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, int* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, int* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, int* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.117.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.117.cs deleted file mode 100644 index d43b6f17b..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.117.cs +++ /dev/null @@ -1,5034 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, int* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, int* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, int* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, int* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, int* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, int* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, int* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, int* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, int* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, int* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, int* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, int* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, int* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, int* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, int* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, int* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, int* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref int values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (int*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref int values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (int*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref int values, int count, int bins, double barScale) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (int*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref int values, int count, int bins) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (int*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref int values, int count) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref int values, int count, double barScale) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref int values, int count, int bins, ImPlotRange range) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (int*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref int values, int count, ImPlotRange range) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref int values, int count, double barScale, ImPlotRange range) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref int values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (int*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref int values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (int*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref int values, int count, ImPlotHistogramFlags flags) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref int values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref int values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (int*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref int values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref int values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref int values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref int values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref int values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref int values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref int values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref int values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref int values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref int values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref int values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref int values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref int values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref int values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref int values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref int values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref int values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref int values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref int values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref int values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref int values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref int values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref int values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref int values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref int values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref int values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref int values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref int values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref int values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref int values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref int values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref int values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref int values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref int values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref int values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (int*)pvalues, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref int values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (int*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref int values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (int*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref int values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (int*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref int values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref int values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref int values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (int*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref int values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref int values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref int values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (int*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref int values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (int*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref int values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref int values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref int values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (int*)pvalues, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref int values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref int values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (int*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, uint* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[232])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[232])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, uint* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, uint* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, uint* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, uint* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, uint* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, uint* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, uint* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, uint* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, uint* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, uint* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, uint* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, uint* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, uint* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, uint* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, uint* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, uint* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, uint* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, uint* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, uint* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, uint* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, uint* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, uint* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, uint* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, uint* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, uint* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, uint* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, uint* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, uint* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, uint* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, uint* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, uint* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, uint* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, uint* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, uint* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref uint values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (uint*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref uint values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (uint*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref uint values, int count, int bins, double barScale) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (uint*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref uint values, int count, int bins) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (uint*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref uint values, int count) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref uint values, int count, double barScale) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref uint values, int count, int bins, ImPlotRange range) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (uint*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref uint values, int count, ImPlotRange range) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref uint values, int count, double barScale, ImPlotRange range) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref uint values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (uint*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref uint values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (uint*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref uint values, int count, ImPlotHistogramFlags flags) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref uint values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref uint values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (uint*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref uint values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref uint values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref uint values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref uint values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref uint values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref uint values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref uint values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref uint values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref uint values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref uint values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref uint values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref uint values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref uint values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref uint values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref uint values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref uint values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref uint values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref uint values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref uint values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref uint values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref uint values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref uint values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref uint values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref uint values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref uint values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref uint values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref uint values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref uint values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref uint values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref uint values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref uint values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref uint values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref uint values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref uint values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref uint values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (uint*)pvalues, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref uint values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (uint*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref uint values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (uint*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref uint values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (uint*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref uint values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref uint values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref uint values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (uint*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref uint values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref uint values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref uint values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (uint*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref uint values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (uint*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref uint values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref uint values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref uint values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (uint*)pvalues, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref uint values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref uint values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (uint*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, long* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[233])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[233])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, long* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, long* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, long* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, long* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, long* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, long* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, long* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, long* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, long* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, long* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, long* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, long* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, long* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, long* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, long* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, long* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, long* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, long* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, long* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, long* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, long* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, long* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, long* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, long* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, long* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, long* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, long* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, long* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, long* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, long* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, long* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, long* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, long* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, long* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, long* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, long* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, long* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, long* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, long* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.118.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.118.cs deleted file mode 100644 index c6fbfb340..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.118.cs +++ /dev/null @@ -1,5037 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, long* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, long* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, long* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref long values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (long*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref long values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (long*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref long values, int count, int bins, double barScale) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (long*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref long values, int count, int bins) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (long*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref long values, int count) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref long values, int count, double barScale) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref long values, int count, int bins, ImPlotRange range) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (long*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref long values, int count, ImPlotRange range) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref long values, int count, double barScale, ImPlotRange range) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref long values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (long*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref long values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (long*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref long values, int count, ImPlotHistogramFlags flags) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref long values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref long values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (long*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref long values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref long values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref long values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref long values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref long values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref long values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref long values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref long values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref long values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref long values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref long values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref long values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref long values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref long values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref long values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref long values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref long values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref long values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref long values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref long values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref long values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref long values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref long values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref long values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref long values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref long values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref long values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref long values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref long values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref long values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref long values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref long values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref long values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref long values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref long values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (long*)pvalues, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref long values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (long*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref long values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (long*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref long values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (long*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref long values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref long values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref long values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (long*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref long values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref long values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref long values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (long*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref long values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (long*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref long values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref long values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref long values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (long*)pvalues, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref long values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref long values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (long*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[234])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[234])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ulong* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ulong* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ulong* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ulong* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ulong* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ulong* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ulong* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ulong* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ulong* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ulong* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ulong* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ulong* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ulong* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ulong* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ulong* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ulong* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ulong* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ulong* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ulong* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ulong* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ulong* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ulong* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ulong* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ulong* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ulong* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ulong* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ulong* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ulong* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ulong* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ulong* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ulong* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ulong values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ulong*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ulong values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ulong*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ulong values, int count, int bins, double barScale) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ulong*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ulong values, int count, int bins) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ulong*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ulong values, int count) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ulong values, int count, double barScale) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ulong values, int count, int bins, ImPlotRange range) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ulong*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ulong values, int count, ImPlotRange range) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ulong values, int count, double barScale, ImPlotRange range) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ulong values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ulong*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ulong values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ulong*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ulong values, int count, ImPlotHistogramFlags flags) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ulong values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ulong values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ulong*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ulong values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(byte* labelId, ref ulong values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ulong values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ulong values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ulong values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ulong values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ulong values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ulong values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ulong values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ulong values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ulong values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ulong values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ulong values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ulong values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ulong values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ulong values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ulong values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ref byte labelId, ref ulong values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ulong values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ulong values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ulong values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ulong values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ulong values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ulong values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ulong values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ulong values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ulong values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ulong values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ulong values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ulong values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ulong values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ulong values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ulong values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(ReadOnlySpan labelId, ref ulong values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ulong values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ulong*)pvalues, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ulong values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ulong*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ulong values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ulong*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ulong values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ulong*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ulong values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ulong values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ulong values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ulong*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ulong values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ulong values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ulong values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ulong*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ulong values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ulong*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ulong values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ulong values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ulong values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ulong*)pvalues, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ulong values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram(string labelId, ref ulong values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (ulong*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[235])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[235])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, int yBins) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, ImPlotRect range) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.119.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.119.cs deleted file mode 100644 index 8abf0a002..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.119.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, int yBins) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, ImPlotRect range) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, ImPlotHistogramFlags flags) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, int yBins) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, ImPlotRect range) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[236])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[236])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, int yBins) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, ImPlotRect range) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, int yBins) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, ImPlotRect range) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, ImPlotHistogramFlags flags) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, int yBins) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, ImPlotRect range) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.120.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.120.cs deleted file mode 100644 index 91c4ce0f2..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.120.cs +++ /dev/null @@ -1,5034 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[237])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[237])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, byte* ys, int count, int xBins, int yBins) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, byte* ys, int count, int xBins) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, byte* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, byte* ys, int count, ImPlotRect range) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, byte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, byte* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, byte* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, byte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, byte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, byte* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, byte* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, byte* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, byte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, byte* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, byte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, byte* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, byte* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, byte* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, byte* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, byte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, byte* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, byte* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, byte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, byte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, ref byte ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (byte*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, ref byte ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (byte*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, ref byte ys, int count, int xBins, int yBins) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (byte*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, ref byte ys, int count, int xBins) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, ref byte ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, ref byte ys, int count, ImPlotRect range) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, ref byte ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (byte*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, ref byte ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, ref byte ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, ref byte ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, byte* xs, ref byte ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, ref byte ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, ref byte ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, ref byte ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, ref byte ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, ref byte ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, ref byte ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, ref byte ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, ref byte ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, ref byte ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (byte*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, ref byte ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (byte*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, ref byte ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (byte*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, ref byte ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, ref byte ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, ref byte ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, ref byte ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, ref byte ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (byte*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, ref byte ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, ref byte ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, ref byte ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, byte* xs, ref byte ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, ref byte ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, (byte*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, ref byte ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, (byte*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, ref byte ys, int count, int xBins, int yBins) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, (byte*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, ref byte ys, int count, int xBins) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, ref byte ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotRect range) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, ref byte ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, (byte*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, ref byte ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, ref byte ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (byte*)pxs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, ref byte ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, ref byte ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, ref byte ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, ref byte ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, ref byte ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, ref byte ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, ref byte ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, ref byte ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, ref byte ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, (byte*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, ref byte ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, (byte*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, ref byte ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, (byte*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, ref byte ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, ref byte ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, ref byte ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, ref byte ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, ref byte ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, (byte*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, ref byte ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, ref byte ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, ref byte ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, (byte*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref byte xs, ref byte ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (byte*)pxs, (byte*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[238])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[238])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.121.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.121.cs deleted file mode 100644 index 25a85ec25..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.121.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, short* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, short* ys, int count, int xBins, int yBins) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, short* ys, int count, int xBins) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, short* ys, int count) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, short* ys, int count, int xBins, ImPlotRect range) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, short* ys, int count, ImPlotRect range) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, short* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, short* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, short* ys, int count, ImPlotHistogramFlags flags) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, short* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, short* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, short* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, short* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, short* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, short* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, short* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, short* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, short* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, short* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, short* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, short* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, short* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, short* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, short* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, short* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, short* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, short* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, short* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, short* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, short* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, short* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, short* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, short* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, short* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, short* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, short* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, short* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, short* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, short* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, short* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, short* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, ref short ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (short*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, ref short ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (short*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, ref short ys, int count, int xBins, int yBins) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (short*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, ref short ys, int count, int xBins) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, ref short ys, int count) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, ref short ys, int count, int xBins, ImPlotRect range) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, ref short ys, int count, ImPlotRect range) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, ref short ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (short*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, ref short ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, ref short ys, int count, ImPlotHistogramFlags flags) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, ref short ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, short* xs, ref short ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, ref short ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, ref short ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, ref short ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, ref short ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, ref short ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, ref short ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, ref short ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, ref short ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, ref short ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, ref short ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, ref short ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, short* xs, ref short ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, ref short ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, ref short ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, ref short ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, ref short ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, ref short ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, ref short ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, ref short ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, ref short ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, ref short ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, ref short ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (short*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, ref short ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (short*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, ref short ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (short*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, ref short ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, ref short ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, ref short ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, ref short ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, ref short ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (short*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, ref short ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, ref short ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, ref short ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, short* xs, ref short ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, ref short ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, (short*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, ref short ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, (short*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, ref short ys, int count, int xBins, int yBins) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, (short*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, ref short ys, int count, int xBins) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, ref short ys, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, ref short ys, int count, int xBins, ImPlotRect range) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, ref short ys, int count, ImPlotRect range) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, ref short ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, (short*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, ref short ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, ref short ys, int count, ImPlotHistogramFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, ref short ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref short xs, ref short ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (short*)pxs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, ref short ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, ref short ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, ref short ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, ref short ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, ref short ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, ref short ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, ref short ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, ref short ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, ref short ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, ref short ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, ref short ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref short xs, ref short ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, ref short ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, ref short ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, (short*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, ref short ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, (short*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, ref short ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, (short*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, ref short ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, ref short ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, ref short ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, ref short ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, ref short ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, (short*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, ref short ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, ref short ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, ref short ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, (short*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref short xs, ref short ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (short*)pxs, (short*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[239])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[239])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ushort* ys, int count, int xBins, int yBins) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ushort* ys, int count, int xBins) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ushort* ys, int count) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ushort* ys, int count, int xBins, ImPlotRect range) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotRect range) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ushort* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ushort* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotHistogramFlags flags) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ushort* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ushort* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ushort* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ushort* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ushort* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ushort* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ushort* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ushort* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ushort* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ushort* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ushort* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ushort* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ushort* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ushort* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ushort* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ushort* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ref ushort ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ushort*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ref ushort ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ushort*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ref ushort ys, int count, int xBins, int yBins) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ushort*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ref ushort ys, int count, int xBins) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ref ushort ys, int count) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ref ushort ys, int count, int xBins, ImPlotRect range) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotRect range) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ref ushort ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ushort*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ref ushort ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotHistogramFlags flags) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ref ushort ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ref ushort ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ref ushort ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ref ushort ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ref ushort ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ref ushort ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ref ushort ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ref ushort ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ref ushort ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ref ushort ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.122.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.122.cs deleted file mode 100644 index 2a70e6de7..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.122.cs +++ /dev/null @@ -1,5036 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ref ushort ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ushort*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ref ushort ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ushort*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ref ushort ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ushort*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ref ushort ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ref ushort ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ref ushort ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ref ushort ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ref ushort ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ushort*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ref ushort ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ref ushort ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ref ushort ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ushort* xs, ref ushort ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ref ushort ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, (ushort*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ref ushort ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, (ushort*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ref ushort ys, int count, int xBins, int yBins) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, (ushort*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ref ushort ys, int count, int xBins) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ref ushort ys, int count, int xBins, ImPlotRect range) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotRect range) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ref ushort ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, (ushort*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ref ushort ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotHistogramFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ref ushort ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ushort*)pxs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ref ushort ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ref ushort ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ref ushort ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ref ushort ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ref ushort ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ref ushort ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ref ushort ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ref ushort ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ref ushort ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, (ushort*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ref ushort ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, (ushort*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ref ushort ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, (ushort*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ref ushort ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ref ushort ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ref ushort ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ref ushort ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, (ushort*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ref ushort ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ref ushort ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, (ushort*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[240])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[240])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, int* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, int* ys, int count, int xBins, int yBins) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, int* ys, int count, int xBins) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, int* ys, int count) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, int* ys, int count, int xBins, ImPlotRect range) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, int* ys, int count, ImPlotRect range) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, int* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, int* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, int* ys, int count, ImPlotHistogramFlags flags) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, int* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, int* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, int* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, int* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, int* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, int* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, int* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, int* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, int* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, int* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, int* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, int* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, int* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, int* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, int* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, int* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, int* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, int* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, int* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, int* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, int* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, int* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, int* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, int* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, int* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, int* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, int* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, int* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, int* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, int* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, ref int ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (int*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, ref int ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (int*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, ref int ys, int count, int xBins, int yBins) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (int*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, ref int ys, int count, int xBins) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, ref int ys, int count) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, ref int ys, int count, int xBins, ImPlotRect range) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, ref int ys, int count, ImPlotRect range) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, ref int ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (int*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, ref int ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, ref int ys, int count, ImPlotHistogramFlags flags) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, ref int ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, int* xs, ref int ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, ref int ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, ref int ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, ref int ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, ref int ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, ref int ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, ref int ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, ref int ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, ref int ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, ref int ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, ref int ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, ref int ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, int* xs, ref int ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, ref int ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, ref int ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, ref int ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, ref int ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, ref int ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, ref int ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, ref int ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, ref int ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, ref int ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, ref int ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (int*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, ref int ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (int*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, ref int ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (int*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, ref int ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, ref int ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, ref int ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, ref int ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, ref int ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (int*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, ref int ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, ref int ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, ref int ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, int* xs, ref int ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, ref int ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, (int*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, ref int ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, (int*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, ref int ys, int count, int xBins, int yBins) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, (int*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, ref int ys, int count, int xBins) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, ref int ys, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, ref int ys, int count, int xBins, ImPlotRect range) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, ref int ys, int count, ImPlotRect range) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, ref int ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, (int*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, ref int ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, ref int ys, int count, ImPlotHistogramFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, ref int ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref int xs, ref int ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (int*)pxs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, ref int ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, ref int ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, ref int ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, ref int ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, ref int ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, ref int ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, ref int ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, ref int ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, ref int ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, ref int ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, ref int ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref int xs, ref int ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, ref int ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, ref int ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, (int*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, ref int ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, (int*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, ref int ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, (int*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, ref int ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, ref int ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, ref int ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, ref int ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, ref int ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, (int*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.123.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.123.cs deleted file mode 100644 index 6aec2a6d1..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.123.cs +++ /dev/null @@ -1,5022 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, ref int ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, ref int ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, ref int ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, (int*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref int xs, ref int ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (int*)pxs, (int*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[241])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[241])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, uint* ys, int count, int xBins, int yBins) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, uint* ys, int count, int xBins) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, uint* ys, int count) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, uint* ys, int count, int xBins, ImPlotRect range) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, uint* ys, int count, ImPlotRect range) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, uint* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, uint* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, uint* ys, int count, ImPlotHistogramFlags flags) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, uint* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, uint* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, uint* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, uint* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, uint* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, uint* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, uint* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, uint* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, uint* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, uint* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, uint* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, uint* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, uint* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, uint* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, uint* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, uint* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, uint* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, uint* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, uint* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, ref uint ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (uint*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, ref uint ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (uint*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, ref uint ys, int count, int xBins, int yBins) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (uint*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, ref uint ys, int count, int xBins) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, ref uint ys, int count) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, ref uint ys, int count, int xBins, ImPlotRect range) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, ref uint ys, int count, ImPlotRect range) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, ref uint ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (uint*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, ref uint ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, ref uint ys, int count, ImPlotHistogramFlags flags) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, ref uint ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, uint* xs, ref uint ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, ref uint ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, ref uint ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, ref uint ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, ref uint ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, ref uint ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, ref uint ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, ref uint ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, ref uint ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, ref uint ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, ref uint ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, ref uint ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (uint*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, ref uint ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (uint*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, ref uint ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (uint*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, ref uint ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, ref uint ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, ref uint ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, ref uint ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, ref uint ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (uint*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, ref uint ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, ref uint ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, ref uint ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, uint* xs, ref uint ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, ref uint ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, (uint*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, ref uint ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, (uint*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, ref uint ys, int count, int xBins, int yBins) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, (uint*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, ref uint ys, int count, int xBins) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, ref uint ys, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, ref uint ys, int count, int xBins, ImPlotRect range) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotRect range) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, ref uint ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, (uint*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, ref uint ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotHistogramFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, ref uint ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (uint*)pxs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, ref uint ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, ref uint ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, ref uint ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, ref uint ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, ref uint ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, ref uint ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, ref uint ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, ref uint ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, ref uint ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, ref uint ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, (uint*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, ref uint ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, (uint*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, ref uint ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, (uint*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, ref uint ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, ref uint ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, ref uint ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, ref uint ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, ref uint ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, (uint*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, ref uint ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, ref uint ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, ref uint ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, (uint*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref uint xs, ref uint ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (uint*)pxs, (uint*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[242])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[242])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, long* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, long* ys, int count, int xBins, int yBins) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, long* ys, int count, int xBins) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, long* ys, int count) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, long* ys, int count, int xBins, ImPlotRect range) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, long* ys, int count, ImPlotRect range) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, long* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, long* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, long* ys, int count, ImPlotHistogramFlags flags) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, long* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, long* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, long* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, long* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, long* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, long* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, long* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, long* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, long* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, long* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, long* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, long* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, long* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, long* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, long* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, long* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, long* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, long* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.124.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.124.cs deleted file mode 100644 index cf4e1522e..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.124.cs +++ /dev/null @@ -1,5036 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, long* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, long* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, long* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, long* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, long* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, long* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, long* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, long* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, long* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, long* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, long* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, ref long ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (long*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, ref long ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (long*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, ref long ys, int count, int xBins, int yBins) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (long*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, ref long ys, int count, int xBins) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, ref long ys, int count) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, ref long ys, int count, int xBins, ImPlotRect range) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, ref long ys, int count, ImPlotRect range) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, ref long ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (long*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, ref long ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, ref long ys, int count, ImPlotHistogramFlags flags) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, ref long ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, long* xs, ref long ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, ref long ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, ref long ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, ref long ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, ref long ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, ref long ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, ref long ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, ref long ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, ref long ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, ref long ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, ref long ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, ref long ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, long* xs, ref long ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, ref long ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, ref long ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, ref long ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, ref long ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, ref long ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, ref long ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, ref long ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, ref long ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, ref long ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, ref long ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (long*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, ref long ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (long*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, ref long ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (long*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, ref long ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, ref long ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, ref long ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, ref long ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, ref long ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (long*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, ref long ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, ref long ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, ref long ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, long* xs, ref long ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, ref long ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, (long*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, ref long ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, (long*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, ref long ys, int count, int xBins, int yBins) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, (long*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, ref long ys, int count, int xBins) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, ref long ys, int count) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, ref long ys, int count, int xBins, ImPlotRect range) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, ref long ys, int count, ImPlotRect range) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, ref long ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, (long*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, ref long ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, ref long ys, int count, ImPlotHistogramFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, ref long ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref long xs, ref long ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (long*)pxs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, ref long ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, ref long ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, ref long ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, ref long ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, ref long ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, ref long ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, ref long ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, ref long ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, ref long ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, ref long ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, ref long ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref long xs, ref long ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, ref long ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, ref long ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, (long*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, ref long ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, (long*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, ref long ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, (long*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, ref long ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, ref long ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, ref long ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, ref long ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, ref long ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, (long*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, ref long ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, ref long ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, ref long ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, (long*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref long xs, ref long ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (long*)pxs, (long*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[243])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[243])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ulong* ys, int count, int xBins, int yBins) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ulong* ys, int count, int xBins) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ulong* ys, int count) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ulong* ys, int count, int xBins, ImPlotRect range) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotRect range) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ulong* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ulong* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotHistogramFlags flags) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ulong* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ulong* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ulong* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ulong* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ulong* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ulong* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ulong* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ulong* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ulong* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ulong* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ulong* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ulong* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ulong* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ulong* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ulong* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ulong* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ulong* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ref ulong ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ulong*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ref ulong ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ulong*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ref ulong ys, int count, int xBins, int yBins) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ulong*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ref ulong ys, int count, int xBins) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ref ulong ys, int count) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ref ulong ys, int count, int xBins, ImPlotRect range) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotRect range) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ref ulong ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ulong*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ref ulong ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotHistogramFlags flags) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ref ulong ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ref ulong ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ref ulong ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ref ulong ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ref ulong ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ref ulong ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ref ulong ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ref ulong ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ref ulong ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ref ulong ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ref ulong ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ulong*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ref ulong ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ulong*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ref ulong ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ulong*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ref ulong ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ref ulong ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ref ulong ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ref ulong ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ref ulong ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ulong*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ref ulong ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ref ulong ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ref ulong ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ulong* xs, ref ulong ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ref ulong ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, (ulong*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ref ulong ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, (ulong*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ref ulong ys, int count, int xBins, int yBins) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, (ulong*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ref ulong ys, int count, int xBins) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.125.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.125.cs deleted file mode 100644 index b665d6e20..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.125.cs +++ /dev/null @@ -1,5026 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ref ulong ys, int count, int xBins, ImPlotRect range) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotRect range) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ref ulong ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, (ulong*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ref ulong ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotHistogramFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ref ulong ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (ulong*)pxs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ref ulong ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ref ulong ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ref ulong ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ref ulong ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ref ulong ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ref ulong ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ref ulong ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ref ulong ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ref ulong ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, (ulong*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ref ulong ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, (ulong*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ref ulong ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, (ulong*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ref ulong ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ref ulong ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ref ulong ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ref ulong ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, (ulong*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ref ulong ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ref ulong ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, (ulong*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static double PlotHistogram2D(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[244])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[244])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, float* xs, float* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, float* xs, float* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, float* xs, float* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, float* xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, float* xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, float* xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative(labelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative(labelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative(labelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative(labelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative(labelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative(labelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotDigitalNative(pStr0, (float*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotDigitalNative(pStr0, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotDigitalNative(pStr0, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref float xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotDigitalNative(pStr0, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref float xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotDigitalNative(pStr0, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref float xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotDigitalNative(pStr0, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, xs, (float*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count, int offset) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (float*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, float* xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, float* xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, float* xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref float xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref float xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[245])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[245])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, double* xs, double* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, double* xs, double* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, double* xs, double* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, double* xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, double* xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, double* xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative(labelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative(labelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative(labelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative(labelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative(labelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative(labelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotDigitalNative(pStr0, (double*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotDigitalNative(pStr0, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotDigitalNative(pStr0, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref double xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotDigitalNative(pStr0, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref double xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotDigitalNative(pStr0, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref double xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotDigitalNative(pStr0, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, xs, (double*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count, int offset) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (double*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, double* xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, double* xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, double* xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref double xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref double xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[246])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[246])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, byte* xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, byte* xs, byte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref byte xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative(labelId, (byte*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref byte xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative(labelId, (byte*)pxs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref byte xs, byte* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative(labelId, (byte*)pxs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative(labelId, (byte*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative(labelId, (byte*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative(labelId, (byte*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref byte xs, byte* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref byte xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.126.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.126.cs deleted file mode 100644 index a6b281a45..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.126.cs +++ /dev/null @@ -1,5033 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref byte xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotDigitalNative(pStr0, (byte*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref byte xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotDigitalNative(pStr0, (byte*)pxs, ys, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref byte xs, byte* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotDigitalNative(pStr0, (byte*)pxs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref byte xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotDigitalNative(pStr0, (byte*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref byte xs, byte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotDigitalNative(pStr0, (byte*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref byte xs, byte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - PlotDigitalNative(pStr0, (byte*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, byte* xs, ref byte ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(labelId, xs, (byte*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, byte* xs, ref byte ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(labelId, xs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, byte* xs, ref byte ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(labelId, xs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(labelId, xs, (byte*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(labelId, xs, (byte*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(labelId, xs, (byte*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (byte*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, byte* xs, ref byte ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (byte*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, byte* xs, ref byte ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (byte*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, byte* xs, ref byte ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (byte*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, byte* xs, ref byte ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, byte* xs, ref byte ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, byte* xs, ref byte ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (byte*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, byte* xs, ref byte ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (byte*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, byte* xs, ref byte ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (byte*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(labelId, (byte*)pxs, (byte*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(labelId, (byte*)pxs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref byte xs, ref byte ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(labelId, (byte*)pxs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(labelId, (byte*)pxs, (byte*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref byte xs, ref byte ys, int count, int offset) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(labelId, (byte*)pxs, (byte*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(labelId, (byte*)pxs, (byte*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref byte xs, ref byte ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref byte xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (byte*)pxs, (byte*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref byte xs, ref byte ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(pStr0, (byte*)pxs, (byte*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref byte xs, ref byte ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(pStr0, (byte*)pxs, (byte*)pys, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref byte xs, ref byte ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(pStr0, (byte*)pxs, (byte*)pys, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref byte xs, ref byte ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(pStr0, (byte*)pxs, (byte*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref byte xs, ref byte ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(pStr0, (byte*)pxs, (byte*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref byte xs, ref byte ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pxs = &xs) - { - fixed (byte* pys = &ys) - { - PlotDigitalNative(pStr0, (byte*)pxs, (byte*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[247])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[247])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, short* xs, short* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, short* xs, short* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, short* xs, short* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, short* xs, short* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, short* xs, short* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, short* xs, short* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref short xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative(labelId, (short*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref short xs, short* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative(labelId, (short*)pxs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref short xs, short* ys, int count, ImPlotDigitalFlags flags) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative(labelId, (short*)pxs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref short xs, short* ys, int count) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative(labelId, (short*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref short xs, short* ys, int count, int offset) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative(labelId, (short*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref short xs, short* ys, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative(labelId, (short*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref short xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref short xs, short* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref short xs, short* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref short xs, short* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref short xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref short xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref short xs, short* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref short xs, short* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref short xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref short xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref short xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotDigitalNative(pStr0, (short*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref short xs, short* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotDigitalNative(pStr0, (short*)pxs, ys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref short xs, short* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotDigitalNative(pStr0, (short*)pxs, ys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref short xs, short* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotDigitalNative(pStr0, (short*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref short xs, short* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotDigitalNative(pStr0, (short*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref short xs, short* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - PlotDigitalNative(pStr0, (short*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, short* xs, ref short ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(labelId, xs, (short*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, short* xs, ref short ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(labelId, xs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, short* xs, ref short ys, int count, ImPlotDigitalFlags flags) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(labelId, xs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, short* xs, ref short ys, int count) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(labelId, xs, (short*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, short* xs, ref short ys, int count, int offset) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(labelId, xs, (short*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, short* xs, ref short ys, int count, int offset, int stride) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(labelId, xs, (short*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, short* xs, ref short ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (short*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, short* xs, ref short ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, short* xs, ref short ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, short* xs, ref short ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, short* xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, short* xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (short*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, short* xs, ref short ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, short* xs, ref short ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, short* xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, short* xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (short*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, short* xs, ref short ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (short*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, short* xs, ref short ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, short* xs, ref short ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, short* xs, ref short ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (short*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, short* xs, ref short ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (short*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, short* xs, ref short ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (short*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref short xs, ref short ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(labelId, (short*)pxs, (short*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref short xs, ref short ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(labelId, (short*)pxs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref short xs, ref short ys, int count, ImPlotDigitalFlags flags) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(labelId, (short*)pxs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref short xs, ref short ys, int count) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(labelId, (short*)pxs, (short*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(labelId, (short*)pxs, (short*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(labelId, (short*)pxs, (short*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref short xs, ref short ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref short xs, ref short ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref short xs, ref short ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref short xs, ref short ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref short xs, ref short ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref short xs, ref short ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (short*)pxs, (short*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref short xs, ref short ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(pStr0, (short*)pxs, (short*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref short xs, ref short ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(pStr0, (short*)pxs, (short*)pys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref short xs, ref short ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(pStr0, (short*)pxs, (short*)pys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref short xs, ref short ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(pStr0, (short*)pxs, (short*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref short xs, ref short ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(pStr0, (short*)pxs, (short*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref short xs, ref short ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (short* pxs = &xs) - { - fixed (short* pys = &ys) - { - PlotDigitalNative(pStr0, (short*)pxs, (short*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[248])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[248])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative(labelId, (ushort*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative(labelId, (ushort*)pxs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ushort xs, ushort* ys, int count, ImPlotDigitalFlags flags) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative(labelId, (ushort*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ushort xs, ushort* ys, int count) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative(labelId, (ushort*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ushort xs, ushort* ys, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative(labelId, (ushort*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative(labelId, (ushort*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ushort xs, ushort* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ushort xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ushort xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ushort xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotDigitalNative(pStr0, (ushort*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ushort xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotDigitalNative(pStr0, (ushort*)pxs, ys, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ushort xs, ushort* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotDigitalNative(pStr0, (ushort*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ushort xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotDigitalNative(pStr0, (ushort*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ushort xs, ushort* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotDigitalNative(pStr0, (ushort*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ushort xs, ushort* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - PlotDigitalNative(pStr0, (ushort*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(labelId, xs, (ushort*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(labelId, xs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ushort* xs, ref ushort ys, int count, ImPlotDigitalFlags flags) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(labelId, xs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ushort* xs, ref ushort ys, int count) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(labelId, xs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ushort* xs, ref ushort ys, int count, int offset) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(labelId, xs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(labelId, xs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ushort*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ushort* xs, ref ushort ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ushort* xs, ref ushort ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ushort* xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ushort*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ushort* xs, ref ushort ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (ushort*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ushort* xs, ref ushort ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ushort* xs, ref ushort ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ushort* xs, ref ushort ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ushort* xs, ref ushort ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ushort* xs, ref ushort ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(labelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(labelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ushort xs, ref ushort ys, int count, ImPlotDigitalFlags flags) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(labelId, (ushort*)pxs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(labelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(labelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(labelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ushort xs, ref ushort ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ushort*)pxs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(pStr0, (ushort*)pxs, (ushort*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(pStr0, (ushort*)pxs, (ushort*)pys, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ushort xs, ref ushort ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(pStr0, (ushort*)pxs, (ushort*)pys, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ushort xs, ref ushort ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ushort xs, ref ushort ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ushort xs, ref ushort ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ushort* pxs = &xs) - { - fixed (ushort* pys = &ys) - { - PlotDigitalNative(pStr0, (ushort*)pxs, (ushort*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[249])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[249])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, int* xs, int* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, int* xs, int* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, int* xs, int* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, int* xs, int* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, int* xs, int* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, int* xs, int* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref int xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative(labelId, (int*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref int xs, int* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative(labelId, (int*)pxs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref int xs, int* ys, int count, ImPlotDigitalFlags flags) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative(labelId, (int*)pxs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref int xs, int* ys, int count) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative(labelId, (int*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref int xs, int* ys, int count, int offset) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative(labelId, (int*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative(labelId, (int*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref int xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref int xs, int* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.127.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.127.cs deleted file mode 100644 index 3d722bdcb..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.127.cs +++ /dev/null @@ -1,5050 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref int xs, int* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref int xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref int xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref int xs, int* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref int xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref int xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref int xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref int xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotDigitalNative(pStr0, (int*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref int xs, int* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotDigitalNative(pStr0, (int*)pxs, ys, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref int xs, int* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotDigitalNative(pStr0, (int*)pxs, ys, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref int xs, int* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotDigitalNative(pStr0, (int*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref int xs, int* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotDigitalNative(pStr0, (int*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref int xs, int* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - PlotDigitalNative(pStr0, (int*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, int* xs, ref int ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(labelId, xs, (int*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, int* xs, ref int ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(labelId, xs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, int* xs, ref int ys, int count, ImPlotDigitalFlags flags) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(labelId, xs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, int* xs, ref int ys, int count) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(labelId, xs, (int*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, int* xs, ref int ys, int count, int offset) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(labelId, xs, (int*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(labelId, xs, (int*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, int* xs, ref int ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (int*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, int* xs, ref int ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, int* xs, ref int ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, int* xs, ref int ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, int* xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (int*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, int* xs, ref int ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, int* xs, ref int ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, int* xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, int* xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (int*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, int* xs, ref int ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (int*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, int* xs, ref int ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, int* xs, ref int ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, int* xs, ref int ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (int*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, int* xs, ref int ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (int*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, int* xs, ref int ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (int*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref int xs, ref int ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(labelId, (int*)pxs, (int*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref int xs, ref int ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(labelId, (int*)pxs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref int xs, ref int ys, int count, ImPlotDigitalFlags flags) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(labelId, (int*)pxs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref int xs, ref int ys, int count) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(labelId, (int*)pxs, (int*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref int xs, ref int ys, int count, int offset) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(labelId, (int*)pxs, (int*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(labelId, (int*)pxs, (int*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref int xs, ref int ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref int xs, ref int ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref int xs, ref int ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref int xs, ref int ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref int xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref int xs, ref int ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref int xs, ref int ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (int*)pxs, (int*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref int xs, ref int ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(pStr0, (int*)pxs, (int*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref int xs, ref int ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(pStr0, (int*)pxs, (int*)pys, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref int xs, ref int ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(pStr0, (int*)pxs, (int*)pys, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref int xs, ref int ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(pStr0, (int*)pxs, (int*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref int xs, ref int ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(pStr0, (int*)pxs, (int*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref int xs, ref int ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pxs = &xs) - { - fixed (int* pys = &ys) - { - PlotDigitalNative(pStr0, (int*)pxs, (int*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[250])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[250])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, uint* xs, uint* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, uint* xs, uint* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref uint xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative(labelId, (uint*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref uint xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative(labelId, (uint*)pxs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref uint xs, uint* ys, int count, ImPlotDigitalFlags flags) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative(labelId, (uint*)pxs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref uint xs, uint* ys, int count) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative(labelId, (uint*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref uint xs, uint* ys, int count, int offset) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative(labelId, (uint*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative(labelId, (uint*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref uint xs, uint* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref uint xs, uint* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref uint xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref uint xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref uint xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotDigitalNative(pStr0, (uint*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref uint xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotDigitalNative(pStr0, (uint*)pxs, ys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref uint xs, uint* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotDigitalNative(pStr0, (uint*)pxs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref uint xs, uint* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotDigitalNative(pStr0, (uint*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref uint xs, uint* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotDigitalNative(pStr0, (uint*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref uint xs, uint* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - PlotDigitalNative(pStr0, (uint*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, uint* xs, ref uint ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(labelId, xs, (uint*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, uint* xs, ref uint ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(labelId, xs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, uint* xs, ref uint ys, int count, ImPlotDigitalFlags flags) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(labelId, xs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, uint* xs, ref uint ys, int count) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(labelId, xs, (uint*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, uint* xs, ref uint ys, int count, int offset) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(labelId, xs, (uint*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, uint* xs, ref uint ys, int count, int offset, int stride) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(labelId, xs, (uint*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (uint*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, uint* xs, ref uint ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, uint* xs, ref uint ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, uint* xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, uint* xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (uint*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, uint* xs, ref uint ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, uint* xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (uint*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, uint* xs, ref uint ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (uint*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, uint* xs, ref uint ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, uint* xs, ref uint ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, uint* xs, ref uint ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (uint*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, uint* xs, ref uint ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (uint*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, uint* xs, ref uint ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (uint*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(labelId, (uint*)pxs, (uint*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(labelId, (uint*)pxs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref uint xs, ref uint ys, int count, ImPlotDigitalFlags flags) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(labelId, (uint*)pxs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref uint xs, ref uint ys, int count) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(labelId, (uint*)pxs, (uint*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref uint xs, ref uint ys, int count, int offset) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(labelId, (uint*)pxs, (uint*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(labelId, (uint*)pxs, (uint*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref uint xs, ref uint ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref uint xs, ref uint ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref uint xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (uint*)pxs, (uint*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref uint xs, ref uint ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(pStr0, (uint*)pxs, (uint*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref uint xs, ref uint ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(pStr0, (uint*)pxs, (uint*)pys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref uint xs, ref uint ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(pStr0, (uint*)pxs, (uint*)pys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref uint xs, ref uint ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(pStr0, (uint*)pxs, (uint*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref uint xs, ref uint ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(pStr0, (uint*)pxs, (uint*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref uint xs, ref uint ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pxs = &xs) - { - fixed (uint* pys = &ys) - { - PlotDigitalNative(pStr0, (uint*)pxs, (uint*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[251])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[251])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, long* xs, long* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, long* xs, long* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, long* xs, long* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, long* xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, long* xs, long* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, long* xs, long* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref long xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative(labelId, (long*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref long xs, long* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative(labelId, (long*)pxs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref long xs, long* ys, int count, ImPlotDigitalFlags flags) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative(labelId, (long*)pxs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref long xs, long* ys, int count) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative(labelId, (long*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref long xs, long* ys, int count, int offset) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative(labelId, (long*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative(labelId, (long*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref long xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref long xs, long* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref long xs, long* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref long xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref long xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref long xs, long* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref long xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref long xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref long xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref long xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotDigitalNative(pStr0, (long*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref long xs, long* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotDigitalNative(pStr0, (long*)pxs, ys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref long xs, long* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotDigitalNative(pStr0, (long*)pxs, ys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref long xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotDigitalNative(pStr0, (long*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref long xs, long* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotDigitalNative(pStr0, (long*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref long xs, long* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - PlotDigitalNative(pStr0, (long*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, long* xs, ref long ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(labelId, xs, (long*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, long* xs, ref long ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(labelId, xs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, long* xs, ref long ys, int count, ImPlotDigitalFlags flags) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(labelId, xs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, long* xs, ref long ys, int count) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(labelId, xs, (long*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, long* xs, ref long ys, int count, int offset) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(labelId, xs, (long*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(labelId, xs, (long*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, long* xs, ref long ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (long*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, long* xs, ref long ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, long* xs, ref long ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, long* xs, ref long ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, long* xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (long*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, long* xs, ref long ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, long* xs, ref long ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, long* xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, long* xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (long*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, long* xs, ref long ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (long*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, long* xs, ref long ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, long* xs, ref long ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, long* xs, ref long ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (long*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, long* xs, ref long ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (long*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, long* xs, ref long ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (long*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref long xs, ref long ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(labelId, (long*)pxs, (long*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref long xs, ref long ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(labelId, (long*)pxs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref long xs, ref long ys, int count, ImPlotDigitalFlags flags) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(labelId, (long*)pxs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref long xs, ref long ys, int count) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(labelId, (long*)pxs, (long*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(labelId, (long*)pxs, (long*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(labelId, (long*)pxs, (long*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref long xs, ref long ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref long xs, ref long ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref long xs, ref long ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref long xs, ref long ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref long xs, ref long ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref long xs, ref long ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (long*)pxs, (long*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref long xs, ref long ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(pStr0, (long*)pxs, (long*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref long xs, ref long ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(pStr0, (long*)pxs, (long*)pys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref long xs, ref long ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(pStr0, (long*)pxs, (long*)pys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref long xs, ref long ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(pStr0, (long*)pxs, (long*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref long xs, ref long ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(pStr0, (long*)pxs, (long*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref long xs, ref long ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pxs = &xs) - { - fixed (long* pys = &ys) - { - PlotDigitalNative(pStr0, (long*)pxs, (long*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[252])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl])funcTable[252])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.128.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.128.cs deleted file mode 100644 index 907cefd46..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.128.cs +++ /dev/null @@ -1,5042 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative(labelId, (ulong*)pxs, ys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative(labelId, (ulong*)pxs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ulong xs, ulong* ys, int count, ImPlotDigitalFlags flags) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative(labelId, (ulong*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ulong xs, ulong* ys, int count) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative(labelId, (ulong*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative(labelId, (ulong*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative(labelId, (ulong*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ulong xs, ulong* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ulong xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ulong xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotDigitalNative(pStr0, (ulong*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ulong xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotDigitalNative(pStr0, (ulong*)pxs, ys, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ulong xs, ulong* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotDigitalNative(pStr0, (ulong*)pxs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ulong xs, ulong* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotDigitalNative(pStr0, (ulong*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ulong xs, ulong* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotDigitalNative(pStr0, (ulong*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ulong xs, ulong* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - PlotDigitalNative(pStr0, (ulong*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(labelId, xs, (ulong*)pys, count, flags, offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(labelId, xs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ulong* xs, ref ulong ys, int count, ImPlotDigitalFlags flags) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(labelId, xs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ulong* xs, ref ulong ys, int count) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(labelId, xs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(labelId, xs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(labelId, xs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ulong*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ulong* xs, ref ulong ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ulong* xs, ref ulong ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ulong*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ulong* xs, ref ulong ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (ulong*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ulong* xs, ref ulong ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ulong* xs, ref ulong ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ulong* xs, ref ulong ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ulong* xs, ref ulong ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ulong* xs, ref ulong ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(labelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(labelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ulong xs, ref ulong ys, int count, ImPlotDigitalFlags flags) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(labelId, (ulong*)pxs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(labelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(labelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(byte* labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(labelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ulong xs, ref ulong ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ref byte labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(ReadOnlySpan labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (ulong*)pxs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(pStr0, (ulong*)pxs, (ulong*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(pStr0, (ulong*)pxs, (ulong*)pys, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ulong xs, ref ulong ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(pStr0, (ulong*)pxs, (ulong*)pys, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ulong xs, ref ulong ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ulong xs, ref ulong ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void PlotDigital(string labelId, ref ulong xs, ref ulong ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pxs = &xs) - { - fixed (ulong* pys = &ys) - { - PlotDigitalNative(pStr0, (ulong*)pxs, (ulong*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotImageNative(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol, ImPlotImageFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[253])(labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[253])((nint)labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol, ImPlotImageFlags flags) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); - } - - /// - /// To be documented. - /// - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, (ImPlotImageFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, ImPlotImageFlags flags) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, ImPlotImageFlags flags) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotImageFlags flags) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); - } - - /// - /// To be documented. - /// - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol, ImPlotImageFlags flags) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, flags); - } - - /// - /// To be documented. - /// - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol, ImPlotImageFlags flags) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, flags); - } - - /// - /// To be documented. - /// - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol, ImPlotImageFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, (ImPlotImageFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, ImPlotImageFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, ImPlotImageFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotImageFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol, ImPlotImageFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol, ImPlotImageFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol, ImPlotImageFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, (ImPlotImageFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, ImPlotImageFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, ImPlotImageFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotImageFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol, ImPlotImageFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(ReadOnlySpan labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol, ImPlotImageFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol, ImPlotImageFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, (ImPlotImageFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, ImPlotImageFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, ImPlotImageFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotImageFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol, ImPlotImageFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol, ImPlotImageFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotTextNative(byte* text, double x, double y, Vector2 pixOffset, ImPlotTextFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[254])(text, x, y, pixOffset, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[254])((nint)text, x, y, pixOffset, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotText(byte* text, double x, double y, Vector2 pixOffset, ImPlotTextFlags flags) - { - PlotTextNative(text, x, y, pixOffset, flags); - } - - /// - /// To be documented. - /// - public static void PlotText(byte* text, double x, double y, Vector2 pixOffset) - { - PlotTextNative(text, x, y, pixOffset, (ImPlotTextFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotText(byte* text, double x, double y) - { - PlotTextNative(text, x, y, (Vector2)(new Vector2(0,0)), (ImPlotTextFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotText(byte* text, double x, double y, ImPlotTextFlags flags) - { - PlotTextNative(text, x, y, (Vector2)(new Vector2(0,0)), flags); - } - - /// - /// To be documented. - /// - public static void PlotText(ref byte text, double x, double y, Vector2 pixOffset, ImPlotTextFlags flags) - { - fixed (byte* ptext = &text) - { - PlotTextNative((byte*)ptext, x, y, pixOffset, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotText(ref byte text, double x, double y, Vector2 pixOffset) - { - fixed (byte* ptext = &text) - { - PlotTextNative((byte*)ptext, x, y, pixOffset, (ImPlotTextFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotText(ref byte text, double x, double y) - { - fixed (byte* ptext = &text) - { - PlotTextNative((byte*)ptext, x, y, (Vector2)(new Vector2(0,0)), (ImPlotTextFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotText(ref byte text, double x, double y, ImPlotTextFlags flags) - { - fixed (byte* ptext = &text) - { - PlotTextNative((byte*)ptext, x, y, (Vector2)(new Vector2(0,0)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotText(ReadOnlySpan text, double x, double y, Vector2 pixOffset, ImPlotTextFlags flags) - { - fixed (byte* ptext = text) - { - PlotTextNative((byte*)ptext, x, y, pixOffset, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotText(ReadOnlySpan text, double x, double y, Vector2 pixOffset) - { - fixed (byte* ptext = text) - { - PlotTextNative((byte*)ptext, x, y, pixOffset, (ImPlotTextFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotText(ReadOnlySpan text, double x, double y) - { - fixed (byte* ptext = text) - { - PlotTextNative((byte*)ptext, x, y, (Vector2)(new Vector2(0,0)), (ImPlotTextFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotText(ReadOnlySpan text, double x, double y, ImPlotTextFlags flags) - { - fixed (byte* ptext = text) - { - PlotTextNative((byte*)ptext, x, y, (Vector2)(new Vector2(0,0)), flags); - } - } - - /// - /// To be documented. - /// - public static void PlotText(string text, double x, double y, Vector2 pixOffset, ImPlotTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotTextNative(pStr0, x, y, pixOffset, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotText(string text, double x, double y, Vector2 pixOffset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotTextNative(pStr0, x, y, pixOffset, (ImPlotTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotText(string text, double x, double y) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotTextNative(pStr0, x, y, (Vector2)(new Vector2(0,0)), (ImPlotTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotText(string text, double x, double y, ImPlotTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotTextNative(pStr0, x, y, (Vector2)(new Vector2(0,0)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDummyNative(byte* labelId, ImPlotDummyFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[255])(labelId, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[255])((nint)labelId, flags); - #endif - } - - /// - /// To be documented. - /// - public static void PlotDummy(byte* labelId, ImPlotDummyFlags flags) - { - PlotDummyNative(labelId, flags); - } - - /// - /// To be documented. - /// - public static void PlotDummy(byte* labelId) - { - PlotDummyNative(labelId, (ImPlotDummyFlags)(0)); - } - - /// - /// To be documented. - /// - public static void PlotDummy(ref byte labelId, ImPlotDummyFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDummyNative((byte*)plabelId, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotDummy(ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - PlotDummyNative((byte*)plabelId, (ImPlotDummyFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotDummy(ReadOnlySpan labelId, ImPlotDummyFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDummyNative((byte*)plabelId, flags); - } - } - - /// - /// To be documented. - /// - public static void PlotDummy(ReadOnlySpan labelId) - { - fixed (byte* plabelId = labelId) - { - PlotDummyNative((byte*)plabelId, (ImPlotDummyFlags)(0)); - } - } - - /// - /// To be documented. - /// - public static void PlotDummy(string labelId, ImPlotDummyFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDummyNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void PlotDummy(string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDummyNative(pStr0, (ImPlotDummyFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragPointNative(int id, double* x, double* y, Vector4 col, float size, ImPlotDragToolFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[256])(id, x, y, col, size, flags); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[256])(id, (nint)x, (nint)y, col, size, flags); - #endif - } - - /// - /// To be documented. - /// - public static bool DragPoint(int id, double* x, double* y, Vector4 col, float size, ImPlotDragToolFlags flags) - { - byte ret = DragPointNative(id, x, y, col, size, flags); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DragPoint(int id, double* x, double* y, Vector4 col, float size) - { - byte ret = DragPointNative(id, x, y, col, size, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DragPoint(int id, double* x, double* y, Vector4 col) - { - byte ret = DragPointNative(id, x, y, col, (float)(4), (ImPlotDragToolFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DragPoint(int id, double* x, double* y, Vector4 col, ImPlotDragToolFlags flags) - { - byte ret = DragPointNative(id, x, y, col, (float)(4), flags); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DragPoint(int id, ref double x, double* y, Vector4 col, float size, ImPlotDragToolFlags flags) - { - fixed (double* px = &x) - { - byte ret = DragPointNative(id, (double*)px, y, col, size, flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragPoint(int id, ref double x, double* y, Vector4 col, float size) - { - fixed (double* px = &x) - { - byte ret = DragPointNative(id, (double*)px, y, col, size, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragPoint(int id, ref double x, double* y, Vector4 col) - { - fixed (double* px = &x) - { - byte ret = DragPointNative(id, (double*)px, y, col, (float)(4), (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragPoint(int id, ref double x, double* y, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px = &x) - { - byte ret = DragPointNative(id, (double*)px, y, col, (float)(4), flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragPoint(int id, double* x, ref double y, Vector4 col, float size, ImPlotDragToolFlags flags) - { - fixed (double* py = &y) - { - byte ret = DragPointNative(id, x, (double*)py, col, size, flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragPoint(int id, double* x, ref double y, Vector4 col, float size) - { - fixed (double* py = &y) - { - byte ret = DragPointNative(id, x, (double*)py, col, size, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragPoint(int id, double* x, ref double y, Vector4 col) - { - fixed (double* py = &y) - { - byte ret = DragPointNative(id, x, (double*)py, col, (float)(4), (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragPoint(int id, double* x, ref double y, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* py = &y) - { - byte ret = DragPointNative(id, x, (double*)py, col, (float)(4), flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragPoint(int id, ref double x, ref double y, Vector4 col, float size, ImPlotDragToolFlags flags) - { - fixed (double* px = &x) - { - fixed (double* py = &y) - { - byte ret = DragPointNative(id, (double*)px, (double*)py, col, size, flags); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DragPoint(int id, ref double x, ref double y, Vector4 col, float size) - { - fixed (double* px = &x) - { - fixed (double* py = &y) - { - byte ret = DragPointNative(id, (double*)px, (double*)py, col, size, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DragPoint(int id, ref double x, ref double y, Vector4 col) - { - fixed (double* px = &x) - { - fixed (double* py = &y) - { - byte ret = DragPointNative(id, (double*)px, (double*)py, col, (float)(4), (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DragPoint(int id, ref double x, ref double y, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px = &x) - { - fixed (double* py = &y) - { - byte ret = DragPointNative(id, (double*)px, (double*)py, col, (float)(4), flags); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragLineXNative(int id, double* x, Vector4 col, float thickness, ImPlotDragToolFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[257])(id, x, col, thickness, flags); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[257])(id, (nint)x, col, thickness, flags); - #endif - } - - /// - /// To be documented. - /// - public static bool DragLineX(int id, double* x, Vector4 col, float thickness, ImPlotDragToolFlags flags) - { - byte ret = DragLineXNative(id, x, col, thickness, flags); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DragLineX(int id, double* x, Vector4 col, float thickness) - { - byte ret = DragLineXNative(id, x, col, thickness, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DragLineX(int id, double* x, Vector4 col) - { - byte ret = DragLineXNative(id, x, col, (float)(1), (ImPlotDragToolFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DragLineX(int id, double* x, Vector4 col, ImPlotDragToolFlags flags) - { - byte ret = DragLineXNative(id, x, col, (float)(1), flags); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DragLineX(int id, ref double x, Vector4 col, float thickness, ImPlotDragToolFlags flags) - { - fixed (double* px = &x) - { - byte ret = DragLineXNative(id, (double*)px, col, thickness, flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragLineX(int id, ref double x, Vector4 col, float thickness) - { - fixed (double* px = &x) - { - byte ret = DragLineXNative(id, (double*)px, col, thickness, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragLineX(int id, ref double x, Vector4 col) - { - fixed (double* px = &x) - { - byte ret = DragLineXNative(id, (double*)px, col, (float)(1), (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragLineX(int id, ref double x, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px = &x) - { - byte ret = DragLineXNative(id, (double*)px, col, (float)(1), flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragLineYNative(int id, double* y, Vector4 col, float thickness, ImPlotDragToolFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[258])(id, y, col, thickness, flags); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[258])(id, (nint)y, col, thickness, flags); - #endif - } - - /// - /// To be documented. - /// - public static bool DragLineY(int id, double* y, Vector4 col, float thickness, ImPlotDragToolFlags flags) - { - byte ret = DragLineYNative(id, y, col, thickness, flags); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DragLineY(int id, double* y, Vector4 col, float thickness) - { - byte ret = DragLineYNative(id, y, col, thickness, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DragLineY(int id, double* y, Vector4 col) - { - byte ret = DragLineYNative(id, y, col, (float)(1), (ImPlotDragToolFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DragLineY(int id, double* y, Vector4 col, ImPlotDragToolFlags flags) - { - byte ret = DragLineYNative(id, y, col, (float)(1), flags); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DragLineY(int id, ref double y, Vector4 col, float thickness, ImPlotDragToolFlags flags) - { - fixed (double* py = &y) - { - byte ret = DragLineYNative(id, (double*)py, col, thickness, flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragLineY(int id, ref double y, Vector4 col, float thickness) - { - fixed (double* py = &y) - { - byte ret = DragLineYNative(id, (double*)py, col, thickness, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragLineY(int id, ref double y, Vector4 col) - { - fixed (double* py = &y) - { - byte ret = DragLineYNative(id, (double*)py, col, (float)(1), (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragLineY(int id, ref double y, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* py = &y) - { - byte ret = DragLineYNative(id, (double*)py, col, (float)(1), flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragRectNative(int id, double* x1, double* y1, double* x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[259])(id, x1, y1, x2, y2, col, flags); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[259])(id, (nint)x1, (nint)y1, (nint)x2, (nint)y2, col, flags); - #endif - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, double* x1, double* y1, double* x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - byte ret = DragRectNative(id, x1, y1, x2, y2, col, flags); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, double* x1, double* y1, double* x2, double* y2, Vector4 col) - { - byte ret = DragRectNative(id, x1, y1, x2, y2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, ref double x1, double* y1, double* x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px1 = &x1) - { - byte ret = DragRectNative(id, (double*)px1, y1, x2, y2, col, flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, ref double x1, double* y1, double* x2, double* y2, Vector4 col) - { - fixed (double* px1 = &x1) - { - byte ret = DragRectNative(id, (double*)px1, y1, x2, y2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, double* x1, ref double y1, double* x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* py1 = &y1) - { - byte ret = DragRectNative(id, x1, (double*)py1, x2, y2, col, flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, double* x1, ref double y1, double* x2, double* y2, Vector4 col) - { - fixed (double* py1 = &y1) - { - byte ret = DragRectNative(id, x1, (double*)py1, x2, y2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, ref double x1, ref double y1, double* x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px1 = &x1) - { - fixed (double* py1 = &y1) - { - byte ret = DragRectNative(id, (double*)px1, (double*)py1, x2, y2, col, flags); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, ref double x1, ref double y1, double* x2, double* y2, Vector4 col) - { - fixed (double* px1 = &x1) - { - fixed (double* py1 = &y1) - { - byte ret = DragRectNative(id, (double*)px1, (double*)py1, x2, y2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, double* x1, double* y1, ref double x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px2 = &x2) - { - byte ret = DragRectNative(id, x1, y1, (double*)px2, y2, col, flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, double* x1, double* y1, ref double x2, double* y2, Vector4 col) - { - fixed (double* px2 = &x2) - { - byte ret = DragRectNative(id, x1, y1, (double*)px2, y2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, ref double x1, double* y1, ref double x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px1 = &x1) - { - fixed (double* px2 = &x2) - { - byte ret = DragRectNative(id, (double*)px1, y1, (double*)px2, y2, col, flags); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, ref double x1, double* y1, ref double x2, double* y2, Vector4 col) - { - fixed (double* px1 = &x1) - { - fixed (double* px2 = &x2) - { - byte ret = DragRectNative(id, (double*)px1, y1, (double*)px2, y2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, double* x1, ref double y1, ref double x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* py1 = &y1) - { - fixed (double* px2 = &x2) - { - byte ret = DragRectNative(id, x1, (double*)py1, (double*)px2, y2, col, flags); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, double* x1, ref double y1, ref double x2, double* y2, Vector4 col) - { - fixed (double* py1 = &y1) - { - fixed (double* px2 = &x2) - { - byte ret = DragRectNative(id, x1, (double*)py1, (double*)px2, y2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, ref double x1, ref double y1, ref double x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px1 = &x1) - { - fixed (double* py1 = &y1) - { - fixed (double* px2 = &x2) - { - byte ret = DragRectNative(id, (double*)px1, (double*)py1, (double*)px2, y2, col, flags); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, ref double x1, ref double y1, ref double x2, double* y2, Vector4 col) - { - fixed (double* px1 = &x1) - { - fixed (double* py1 = &y1) - { - fixed (double* px2 = &x2) - { - byte ret = DragRectNative(id, (double*)px1, (double*)py1, (double*)px2, y2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, double* x1, double* y1, double* x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, x1, y1, x2, (double*)py2, col, flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, double* x1, double* y1, double* x2, ref double y2, Vector4 col) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, x1, y1, x2, (double*)py2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, ref double x1, double* y1, double* x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px1 = &x1) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, (double*)px1, y1, x2, (double*)py2, col, flags); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, ref double x1, double* y1, double* x2, ref double y2, Vector4 col) - { - fixed (double* px1 = &x1) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, (double*)px1, y1, x2, (double*)py2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, double* x1, ref double y1, double* x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* py1 = &y1) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, x1, (double*)py1, x2, (double*)py2, col, flags); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, double* x1, ref double y1, double* x2, ref double y2, Vector4 col) - { - fixed (double* py1 = &y1) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, x1, (double*)py1, x2, (double*)py2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, ref double x1, ref double y1, double* x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px1 = &x1) - { - fixed (double* py1 = &y1) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, (double*)px1, (double*)py1, x2, (double*)py2, col, flags); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, ref double x1, ref double y1, double* x2, ref double y2, Vector4 col) - { - fixed (double* px1 = &x1) - { - fixed (double* py1 = &y1) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, (double*)px1, (double*)py1, x2, (double*)py2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, double* x1, double* y1, ref double x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px2 = &x2) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, x1, y1, (double*)px2, (double*)py2, col, flags); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, double* x1, double* y1, ref double x2, ref double y2, Vector4 col) - { - fixed (double* px2 = &x2) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, x1, y1, (double*)px2, (double*)py2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, ref double x1, double* y1, ref double x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px1 = &x1) - { - fixed (double* px2 = &x2) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, (double*)px1, y1, (double*)px2, (double*)py2, col, flags); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, ref double x1, double* y1, ref double x2, ref double y2, Vector4 col) - { - fixed (double* px1 = &x1) - { - fixed (double* px2 = &x2) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, (double*)px1, y1, (double*)px2, (double*)py2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, double* x1, ref double y1, ref double x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* py1 = &y1) - { - fixed (double* px2 = &x2) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, x1, (double*)py1, (double*)px2, (double*)py2, col, flags); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, double* x1, ref double y1, ref double x2, ref double y2, Vector4 col) - { - fixed (double* py1 = &y1) - { - fixed (double* px2 = &x2) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, x1, (double*)py1, (double*)px2, (double*)py2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, ref double x1, ref double y1, ref double x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px1 = &x1) - { - fixed (double* py1 = &y1) - { - fixed (double* px2 = &x2) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, (double*)px1, (double*)py1, (double*)px2, (double*)py2, col, flags); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool DragRect(int id, ref double x1, ref double y1, ref double x2, ref double y2, Vector4 col) - { - fixed (double* px1 = &x1) - { - fixed (double* py1 = &y1) - { - fixed (double* px2 = &x2) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, (double*)px1, (double*)py1, (double*)px2, (double*)py2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AnnotationNative(double x, double y, Vector4 col, Vector2 pixOffset, byte clamp, byte round) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[260])(x, y, col, pixOffset, clamp, round); - #else - ((delegate* unmanaged[Cdecl])funcTable[260])(x, y, col, pixOffset, clamp, round); - #endif - } - - /// - /// To be documented. - /// - public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, bool round) - { - AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, round ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp) - { - AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, (byte)(0)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AnnotationNative(double x, double y, Vector4 col, Vector2 pixOffset, byte clamp, byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[261])(x, y, col, pixOffset, clamp, fmt); - #else - ((delegate* unmanaged[Cdecl])funcTable[261])(x, y, col, pixOffset, clamp, (nint)fmt); - #endif - } - - /// - /// To be documented. - /// - public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, byte* fmt) - { - AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, fmt); - } - - /// - /// To be documented. - /// - public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, (byte*)pfmt); - } - } - - /// - /// To be documented. - /// - public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, ReadOnlySpan fmt) - { - fixed (byte* pfmt = fmt) - { - AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, (byte*)pfmt); - } - } - - /// - /// To be documented. - /// - public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AnnotationVNative(double x, double y, Vector4 col, Vector2 pixOffset, byte clamp, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[262])(x, y, col, pixOffset, clamp, fmt, args); - #else - ((delegate* unmanaged[Cdecl])funcTable[262])(x, y, col, pixOffset, clamp, (nint)fmt, args); - #endif - } - - /// - /// To be documented. - /// - public static void AnnotationV(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, byte* fmt, nuint args) - { - AnnotationVNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, fmt, args); - } - - /// - /// To be documented. - /// - public static void AnnotationV(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - AnnotationVNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); - } - } - - /// - /// To be documented. - /// - public static void AnnotationV(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, ReadOnlySpan fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - AnnotationVNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); - } - } - - /// - /// To be documented. - /// - public static void AnnotationV(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AnnotationVNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TagXNative(double x, Vector4 col, byte round) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[263])(x, col, round); - #else - ((delegate* unmanaged[Cdecl])funcTable[263])(x, col, round); - #endif - } - - /// - /// To be documented. - /// - public static void TagX(double x, Vector4 col, bool round) - { - TagXNative(x, col, round ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void TagX(double x, Vector4 col) - { - TagXNative(x, col, (byte)(0)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TagXNative(double x, Vector4 col, byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[264])(x, col, fmt); - #else - ((delegate* unmanaged[Cdecl])funcTable[264])(x, col, (nint)fmt); - #endif - } - - /// - /// To be documented. - /// - public static void TagX(double x, Vector4 col, byte* fmt) - { - TagXNative(x, col, fmt); - } - - /// - /// To be documented. - /// - public static void TagX(double x, Vector4 col, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - TagXNative(x, col, (byte*)pfmt); - } - } - - /// - /// To be documented. - /// - public static void TagX(double x, Vector4 col, ReadOnlySpan fmt) - { - fixed (byte* pfmt = fmt) - { - TagXNative(x, col, (byte*)pfmt); - } - } - - /// - /// To be documented. - /// - public static void TagX(double x, Vector4 col, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TagXNative(x, col, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TagXVNative(double x, Vector4 col, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[265])(x, col, fmt, args); - #else - ((delegate* unmanaged[Cdecl])funcTable[265])(x, col, (nint)fmt, args); - #endif - } - - /// - /// To be documented. - /// - public static void TagXV(double x, Vector4 col, byte* fmt, nuint args) - { - TagXVNative(x, col, fmt, args); - } - - /// - /// To be documented. - /// - public static void TagXV(double x, Vector4 col, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - TagXVNative(x, col, (byte*)pfmt, args); - } - } - - /// - /// To be documented. - /// - public static void TagXV(double x, Vector4 col, ReadOnlySpan fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - TagXVNative(x, col, (byte*)pfmt, args); - } - } - - /// - /// To be documented. - /// - public static void TagXV(double x, Vector4 col, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TagXVNative(x, col, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TagYNative(double y, Vector4 col, byte round) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[266])(y, col, round); - #else - ((delegate* unmanaged[Cdecl])funcTable[266])(y, col, round); - #endif - } - - /// - /// To be documented. - /// - public static void TagY(double y, Vector4 col, bool round) - { - TagYNative(y, col, round ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void TagY(double y, Vector4 col) - { - TagYNative(y, col, (byte)(0)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TagYNative(double y, Vector4 col, byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[267])(y, col, fmt); - #else - ((delegate* unmanaged[Cdecl])funcTable[267])(y, col, (nint)fmt); - #endif - } - - /// - /// To be documented. - /// - public static void TagY(double y, Vector4 col, byte* fmt) - { - TagYNative(y, col, fmt); - } - - /// - /// To be documented. - /// - public static void TagY(double y, Vector4 col, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - TagYNative(y, col, (byte*)pfmt); - } - } - - /// - /// To be documented. - /// - public static void TagY(double y, Vector4 col, ReadOnlySpan fmt) - { - fixed (byte* pfmt = fmt) - { - TagYNative(y, col, (byte*)pfmt); - } - } - - /// - /// To be documented. - /// - public static void TagY(double y, Vector4 col, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TagYNative(y, col, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TagYVNative(double y, Vector4 col, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[268])(y, col, fmt, args); - #else - ((delegate* unmanaged[Cdecl])funcTable[268])(y, col, (nint)fmt, args); - #endif - } - - /// - /// To be documented. - /// - public static void TagYV(double y, Vector4 col, byte* fmt, nuint args) - { - TagYVNative(y, col, fmt, args); - } - - /// - /// To be documented. - /// - public static void TagYV(double y, Vector4 col, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - TagYVNative(y, col, (byte*)pfmt, args); - } - } - - /// - /// To be documented. - /// - public static void TagYV(double y, Vector4 col, ReadOnlySpan fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - TagYVNative(y, col, (byte*)pfmt, args); - } - } - - /// - /// To be documented. - /// - public static void TagYV(double y, Vector4 col, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TagYVNative(y, col, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetAxisNative(ImAxis axis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[269])(axis); - #else - ((delegate* unmanaged[Cdecl])funcTable[269])(axis); - #endif - } - - /// - /// To be documented. - /// - public static void SetAxis(ImAxis axis) - { - SetAxisNative(axis); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetAxesNative(ImAxis xAxis, ImAxis yAxis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[270])(xAxis, yAxis); - #else - ((delegate* unmanaged[Cdecl])funcTable[270])(xAxis, yAxis); - #endif - } - - /// - /// To be documented. - /// - public static void SetAxes(ImAxis xAxis, ImAxis yAxis) - { - SetAxesNative(xAxis, yAxis); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PixelsToPlotNative(ImPlotPoint* pOut, Vector2 pix, ImAxis xAxis, ImAxis yAxis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[271])(pOut, pix, xAxis, yAxis); - #else - ((delegate* unmanaged[Cdecl])funcTable[271])((nint)pOut, pix, xAxis, yAxis); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotPoint PixelsToPlot(Vector2 pix) - { - ImPlotPoint ret; - PixelsToPlotNative(&ret, pix, (ImAxis)(-1), (ImAxis)(-1)); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotPoint PixelsToPlot(Vector2 pix, ImAxis xAxis) - { - ImPlotPoint ret; - PixelsToPlotNative(&ret, pix, xAxis, (ImAxis)(-1)); - return ret; - } - - /// - /// To be documented. - /// - public static void PixelsToPlot(ImPlotPointPtr pOut, Vector2 pix) - { - PixelsToPlotNative(pOut, pix, (ImAxis)(-1), (ImAxis)(-1)); - } - - /// - /// To be documented. - /// - public static ImPlotPoint PixelsToPlot(Vector2 pix, ImAxis xAxis, ImAxis yAxis) - { - ImPlotPoint ret; - PixelsToPlotNative(&ret, pix, xAxis, yAxis); - return ret; - } - - /// - /// To be documented. - /// - public static void PixelsToPlot(ImPlotPointPtr pOut, Vector2 pix, ImAxis xAxis, ImAxis yAxis) - { - PixelsToPlotNative(pOut, pix, xAxis, yAxis); - } - - /// - /// To be documented. - /// - public static void PixelsToPlot(ImPlotPointPtr pOut, Vector2 pix, ImAxis xAxis) - { - PixelsToPlotNative(pOut, pix, xAxis, (ImAxis)(-1)); - } - - /// - /// To be documented. - /// - public static void PixelsToPlot(ref ImPlotPoint pOut, Vector2 pix, ImAxis xAxis, ImAxis yAxis) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - PixelsToPlotNative((ImPlotPoint*)ppOut, pix, xAxis, yAxis); - } - } - - /// - /// To be documented. - /// - public static void PixelsToPlot(ref ImPlotPoint pOut, Vector2 pix, ImAxis xAxis) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - PixelsToPlotNative((ImPlotPoint*)ppOut, pix, xAxis, (ImAxis)(-1)); - } - } - - /// - /// To be documented. - /// - public static void PixelsToPlot(ref ImPlotPoint pOut, Vector2 pix) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - PixelsToPlotNative((ImPlotPoint*)ppOut, pix, (ImAxis)(-1), (ImAxis)(-1)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PixelsToPlotNative(ImPlotPoint* pOut, float x, float y, ImAxis xAxis, ImAxis yAxis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[272])(pOut, x, y, xAxis, yAxis); - #else - ((delegate* unmanaged[Cdecl])funcTable[272])((nint)pOut, x, y, xAxis, yAxis); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotPoint PixelsToPlot(float x, float y) - { - ImPlotPoint ret; - PixelsToPlotNative(&ret, x, y, (ImAxis)(-1), (ImAxis)(-1)); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotPoint PixelsToPlot(float x, float y, ImAxis xAxis) - { - ImPlotPoint ret; - PixelsToPlotNative(&ret, x, y, xAxis, (ImAxis)(-1)); - return ret; - } - - /// - /// To be documented. - /// - public static void PixelsToPlot(ImPlotPointPtr pOut, float x, float y) - { - PixelsToPlotNative(pOut, x, y, (ImAxis)(-1), (ImAxis)(-1)); - } - - /// - /// To be documented. - /// - public static ImPlotPoint PixelsToPlot(float x, float y, ImAxis xAxis, ImAxis yAxis) - { - ImPlotPoint ret; - PixelsToPlotNative(&ret, x, y, xAxis, yAxis); - return ret; - } - - /// - /// To be documented. - /// - public static void PixelsToPlot(ImPlotPointPtr pOut, float x, float y, ImAxis xAxis, ImAxis yAxis) - { - PixelsToPlotNative(pOut, x, y, xAxis, yAxis); - } - - /// - /// To be documented. - /// - public static void PixelsToPlot(ImPlotPointPtr pOut, float x, float y, ImAxis xAxis) - { - PixelsToPlotNative(pOut, x, y, xAxis, (ImAxis)(-1)); - } - - /// - /// To be documented. - /// - public static void PixelsToPlot(ref ImPlotPoint pOut, float x, float y, ImAxis xAxis, ImAxis yAxis) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - PixelsToPlotNative((ImPlotPoint*)ppOut, x, y, xAxis, yAxis); - } - } - - /// - /// To be documented. - /// - public static void PixelsToPlot(ref ImPlotPoint pOut, float x, float y, ImAxis xAxis) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - PixelsToPlotNative((ImPlotPoint*)ppOut, x, y, xAxis, (ImAxis)(-1)); - } - } - - /// - /// To be documented. - /// - public static void PixelsToPlot(ref ImPlotPoint pOut, float x, float y) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - PixelsToPlotNative((ImPlotPoint*)ppOut, x, y, (ImAxis)(-1), (ImAxis)(-1)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotToPixelsNative(Vector2* pOut, ImPlotPoint plt, ImAxis xAxis, ImAxis yAxis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[273])(pOut, plt, xAxis, yAxis); - #else - ((delegate* unmanaged[Cdecl])funcTable[273])((nint)pOut, plt, xAxis, yAxis); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 PlotToPixels(ImPlotPoint plt) - { - Vector2 ret; - PlotToPixelsNative(&ret, plt, (ImAxis)(-1), (ImAxis)(-1)); - return ret; - } - - /// - /// To be documented. - /// - public static Vector2 PlotToPixels(ImPlotPoint plt, ImAxis xAxis) - { - Vector2 ret; - PlotToPixelsNative(&ret, plt, xAxis, (ImAxis)(-1)); - return ret; - } - - /// - /// To be documented. - /// - public static void PlotToPixels(Vector2* pOut, ImPlotPoint plt) - { - PlotToPixelsNative(pOut, plt, (ImAxis)(-1), (ImAxis)(-1)); - } - - /// - /// To be documented. - /// - public static Vector2 PlotToPixels(ImPlotPoint plt, ImAxis xAxis, ImAxis yAxis) - { - Vector2 ret; - PlotToPixelsNative(&ret, plt, xAxis, yAxis); - return ret; - } - - /// - /// To be documented. - /// - public static void PlotToPixels(Vector2* pOut, ImPlotPoint plt, ImAxis xAxis, ImAxis yAxis) - { - PlotToPixelsNative(pOut, plt, xAxis, yAxis); - } - - /// - /// To be documented. - /// - public static void PlotToPixels(Vector2* pOut, ImPlotPoint plt, ImAxis xAxis) - { - PlotToPixelsNative(pOut, plt, xAxis, (ImAxis)(-1)); - } - - /// - /// To be documented. - /// - public static void PlotToPixels(ref Vector2 pOut, ImPlotPoint plt, ImAxis xAxis, ImAxis yAxis) - { - fixed (Vector2* ppOut = &pOut) - { - PlotToPixelsNative((Vector2*)ppOut, plt, xAxis, yAxis); - } - } - - /// - /// To be documented. - /// - public static void PlotToPixels(ref Vector2 pOut, ImPlotPoint plt, ImAxis xAxis) - { - fixed (Vector2* ppOut = &pOut) - { - PlotToPixelsNative((Vector2*)ppOut, plt, xAxis, (ImAxis)(-1)); - } - } - - /// - /// To be documented. - /// - public static void PlotToPixels(ref Vector2 pOut, ImPlotPoint plt) - { - fixed (Vector2* ppOut = &pOut) - { - PlotToPixelsNative((Vector2*)ppOut, plt, (ImAxis)(-1), (ImAxis)(-1)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotToPixelsNative(Vector2* pOut, double x, double y, ImAxis xAxis, ImAxis yAxis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[274])(pOut, x, y, xAxis, yAxis); - #else - ((delegate* unmanaged[Cdecl])funcTable[274])((nint)pOut, x, y, xAxis, yAxis); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 PlotToPixels(double x, double y) - { - Vector2 ret; - PlotToPixelsNative(&ret, x, y, (ImAxis)(-1), (ImAxis)(-1)); - return ret; - } - - /// - /// To be documented. - /// - public static Vector2 PlotToPixels(double x, double y, ImAxis xAxis) - { - Vector2 ret; - PlotToPixelsNative(&ret, x, y, xAxis, (ImAxis)(-1)); - return ret; - } - - /// - /// To be documented. - /// - public static void PlotToPixels(Vector2* pOut, double x, double y) - { - PlotToPixelsNative(pOut, x, y, (ImAxis)(-1), (ImAxis)(-1)); - } - - /// - /// To be documented. - /// - public static Vector2 PlotToPixels(double x, double y, ImAxis xAxis, ImAxis yAxis) - { - Vector2 ret; - PlotToPixelsNative(&ret, x, y, xAxis, yAxis); - return ret; - } - - /// - /// To be documented. - /// - public static void PlotToPixels(Vector2* pOut, double x, double y, ImAxis xAxis, ImAxis yAxis) - { - PlotToPixelsNative(pOut, x, y, xAxis, yAxis); - } - - /// - /// To be documented. - /// - public static void PlotToPixels(Vector2* pOut, double x, double y, ImAxis xAxis) - { - PlotToPixelsNative(pOut, x, y, xAxis, (ImAxis)(-1)); - } - - /// - /// To be documented. - /// - public static void PlotToPixels(ref Vector2 pOut, double x, double y, ImAxis xAxis, ImAxis yAxis) - { - fixed (Vector2* ppOut = &pOut) - { - PlotToPixelsNative((Vector2*)ppOut, x, y, xAxis, yAxis); - } - } - - /// - /// To be documented. - /// - public static void PlotToPixels(ref Vector2 pOut, double x, double y, ImAxis xAxis) - { - fixed (Vector2* ppOut = &pOut) - { - PlotToPixelsNative((Vector2*)ppOut, x, y, xAxis, (ImAxis)(-1)); - } - } - - /// - /// To be documented. - /// - public static void PlotToPixels(ref Vector2 pOut, double x, double y) - { - fixed (Vector2* ppOut = &pOut) - { - PlotToPixelsNative((Vector2*)ppOut, x, y, (ImAxis)(-1), (ImAxis)(-1)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetPlotPosNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[275])(pOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[275])((nint)pOut); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 GetPlotPos() - { - Vector2 ret; - GetPlotPosNative(&ret); - return ret; - } - - /// - /// To be documented. - /// - public static void GetPlotPos(Vector2* pOut) - { - GetPlotPosNative(pOut); - } - - /// - /// To be documented. - /// - public static void GetPlotPos(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetPlotPosNative((Vector2*)ppOut); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetPlotSizeNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[276])(pOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[276])((nint)pOut); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 GetPlotSize() - { - Vector2 ret; - GetPlotSizeNative(&ret); - return ret; - } - - /// - /// To be documented. - /// - public static void GetPlotSize(Vector2* pOut) - { - GetPlotSizeNative(pOut); - } - - /// - /// To be documented. - /// - public static void GetPlotSize(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetPlotSizeNative((Vector2*)ppOut); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetPlotMousePosNative(ImPlotPoint* pOut, ImAxis xAxis, ImAxis yAxis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[277])(pOut, xAxis, yAxis); - #else - ((delegate* unmanaged[Cdecl])funcTable[277])((nint)pOut, xAxis, yAxis); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotPoint GetPlotMousePos() - { - ImPlotPoint ret; - GetPlotMousePosNative(&ret, (ImAxis)(-1), (ImAxis)(-1)); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotPoint GetPlotMousePos(ImAxis xAxis) - { - ImPlotPoint ret; - GetPlotMousePosNative(&ret, xAxis, (ImAxis)(-1)); - return ret; - } - - /// - /// To be documented. - /// - public static void GetPlotMousePos(ImPlotPointPtr pOut) - { - GetPlotMousePosNative(pOut, (ImAxis)(-1), (ImAxis)(-1)); - } - - /// - /// To be documented. - /// - public static ImPlotPoint GetPlotMousePos(ImAxis xAxis, ImAxis yAxis) - { - ImPlotPoint ret; - GetPlotMousePosNative(&ret, xAxis, yAxis); - return ret; - } - - /// - /// To be documented. - /// - public static void GetPlotMousePos(ImPlotPointPtr pOut, ImAxis xAxis, ImAxis yAxis) - { - GetPlotMousePosNative(pOut, xAxis, yAxis); - } - - /// - /// To be documented. - /// - public static void GetPlotMousePos(ImPlotPointPtr pOut, ImAxis xAxis) - { - GetPlotMousePosNative(pOut, xAxis, (ImAxis)(-1)); - } - - /// - /// To be documented. - /// - public static void GetPlotMousePos(ref ImPlotPoint pOut, ImAxis xAxis, ImAxis yAxis) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - GetPlotMousePosNative((ImPlotPoint*)ppOut, xAxis, yAxis); - } - } - - /// - /// To be documented. - /// - public static void GetPlotMousePos(ref ImPlotPoint pOut, ImAxis xAxis) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - GetPlotMousePosNative((ImPlotPoint*)ppOut, xAxis, (ImAxis)(-1)); - } - } - - /// - /// To be documented. - /// - public static void GetPlotMousePos(ref ImPlotPoint pOut) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - GetPlotMousePosNative((ImPlotPoint*)ppOut, (ImAxis)(-1), (ImAxis)(-1)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotRect GetPlotLimitsNative(ImAxis xAxis, ImAxis yAxis) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[278])(xAxis, yAxis); - #else - return (ImPlotRect)((delegate* unmanaged[Cdecl])funcTable[278])(xAxis, yAxis); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotRect GetPlotLimits(ImAxis xAxis, ImAxis yAxis) - { - ImPlotRect ret = GetPlotLimitsNative(xAxis, yAxis); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotRect GetPlotLimits(ImAxis xAxis) - { - ImPlotRect ret = GetPlotLimitsNative(xAxis, (ImAxis)(-1)); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotRect GetPlotLimits() - { - ImPlotRect ret = GetPlotLimitsNative((ImAxis)(-1), (ImAxis)(-1)); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsPlotHoveredNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[279])(); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[279])(); - #endif - } - - /// - /// To be documented. - /// - public static bool IsPlotHovered() - { - byte ret = IsPlotHoveredNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsAxisHoveredNative(ImAxis axis) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[280])(axis); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[280])(axis); - #endif - } - - /// - /// To be documented. - /// - public static bool IsAxisHovered(ImAxis axis) - { - byte ret = IsAxisHoveredNative(axis); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsSubplotsHoveredNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[281])(); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[281])(); - #endif - } - - /// - /// To be documented. - /// - public static bool IsSubplotsHovered() - { - byte ret = IsSubplotsHoveredNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsPlotSelectedNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[282])(); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[282])(); - #endif - } - - /// - /// To be documented. - /// - public static bool IsPlotSelected() - { - byte ret = IsPlotSelectedNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotRect GetPlotSelectionNative(ImAxis xAxis, ImAxis yAxis) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[283])(xAxis, yAxis); - #else - return (ImPlotRect)((delegate* unmanaged[Cdecl])funcTable[283])(xAxis, yAxis); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotRect GetPlotSelection(ImAxis xAxis, ImAxis yAxis) - { - ImPlotRect ret = GetPlotSelectionNative(xAxis, yAxis); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotRect GetPlotSelection(ImAxis xAxis) - { - ImPlotRect ret = GetPlotSelectionNative(xAxis, (ImAxis)(-1)); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotRect GetPlotSelection() - { - ImPlotRect ret = GetPlotSelectionNative((ImAxis)(-1), (ImAxis)(-1)); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CancelPlotSelectionNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[284])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[284])(); - #endif - } - - /// - /// To be documented. - /// - public static void CancelPlotSelection() - { - CancelPlotSelectionNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void HideNextItemNative(byte hidden, ImPlotCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[285])(hidden, cond); - #else - ((delegate* unmanaged[Cdecl])funcTable[285])(hidden, cond); - #endif - } - - /// - /// To be documented. - /// - public static void HideNextItem(bool hidden, ImPlotCond cond) - { - HideNextItemNative(hidden ? (byte)1 : (byte)0, cond); - } - - /// - /// To be documented. - /// - public static void HideNextItem(bool hidden) - { - HideNextItemNative(hidden ? (byte)1 : (byte)0, (ImPlotCond)(ImPlotCond.Once)); - } - - /// - /// To be documented. - /// - public static void HideNextItem() - { - HideNextItemNative((byte)(1), (ImPlotCond)(ImPlotCond.Once)); - } - - /// - /// To be documented. - /// - public static void HideNextItem(ImPlotCond cond) - { - HideNextItemNative((byte)(1), cond); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginAlignedPlotsNative(byte* groupId, byte vertical) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[286])(groupId, vertical); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[286])((nint)groupId, vertical); - #endif - } - - /// - /// To be documented. - /// - public static bool BeginAlignedPlots(byte* groupId, bool vertical) - { - byte ret = BeginAlignedPlotsNative(groupId, vertical ? (byte)1 : (byte)0); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginAlignedPlots(byte* groupId) - { - byte ret = BeginAlignedPlotsNative(groupId, (byte)(1)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginAlignedPlots(ref byte groupId, bool vertical) - { - fixed (byte* pgroupId = &groupId) - { - byte ret = BeginAlignedPlotsNative((byte*)pgroupId, vertical ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginAlignedPlots(ref byte groupId) - { - fixed (byte* pgroupId = &groupId) - { - byte ret = BeginAlignedPlotsNative((byte*)pgroupId, (byte)(1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginAlignedPlots(ReadOnlySpan groupId, bool vertical) - { - fixed (byte* pgroupId = groupId) - { - byte ret = BeginAlignedPlotsNative((byte*)pgroupId, vertical ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginAlignedPlots(ReadOnlySpan groupId) - { - fixed (byte* pgroupId = groupId) - { - byte ret = BeginAlignedPlotsNative((byte*)pgroupId, (byte)(1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginAlignedPlots(string groupId, bool vertical) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (groupId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(groupId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(groupId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginAlignedPlotsNative(pStr0, vertical ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginAlignedPlots(string groupId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (groupId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(groupId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(groupId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginAlignedPlotsNative(pStr0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndAlignedPlotsNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[287])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[287])(); - #endif - } - - /// - /// To be documented. - /// - public static void EndAlignedPlots() - { - EndAlignedPlotsNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginLegendPopupNative(byte* labelId, ImGuiMouseButton mouseButton) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[288])(labelId, mouseButton); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[288])((nint)labelId, mouseButton); - #endif - } - - /// - /// To be documented. - /// - public static bool BeginLegendPopup(byte* labelId, ImGuiMouseButton mouseButton) - { - byte ret = BeginLegendPopupNative(labelId, mouseButton); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginLegendPopup(byte* labelId) - { - byte ret = BeginLegendPopupNative(labelId, (ImGuiMouseButton)(1)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginLegendPopup(ref byte labelId, ImGuiMouseButton mouseButton) - { - fixed (byte* plabelId = &labelId) - { - byte ret = BeginLegendPopupNative((byte*)plabelId, mouseButton); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginLegendPopup(ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - byte ret = BeginLegendPopupNative((byte*)plabelId, (ImGuiMouseButton)(1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginLegendPopup(ReadOnlySpan labelId, ImGuiMouseButton mouseButton) - { - fixed (byte* plabelId = labelId) - { - byte ret = BeginLegendPopupNative((byte*)plabelId, mouseButton); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginLegendPopup(ReadOnlySpan labelId) - { - fixed (byte* plabelId = labelId) - { - byte ret = BeginLegendPopupNative((byte*)plabelId, (ImGuiMouseButton)(1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginLegendPopup(string labelId, ImGuiMouseButton mouseButton) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginLegendPopupNative(pStr0, mouseButton); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.129.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.129.cs deleted file mode 100644 index 9091f6cf3..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.129.cs +++ /dev/null @@ -1,5032 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static bool BeginLegendPopup(string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginLegendPopupNative(pStr0, (ImGuiMouseButton)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndLegendPopupNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[289])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[289])(); - #endif - } - - /// - /// To be documented. - /// - public static void EndLegendPopup() - { - EndLegendPopupNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsLegendEntryHoveredNative(byte* labelId) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[290])(labelId); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[290])((nint)labelId); - #endif - } - - /// - /// To be documented. - /// - public static bool IsLegendEntryHovered(byte* labelId) - { - byte ret = IsLegendEntryHoveredNative(labelId); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsLegendEntryHovered(ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - byte ret = IsLegendEntryHoveredNative((byte*)plabelId); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool IsLegendEntryHovered(ReadOnlySpan labelId) - { - fixed (byte* plabelId = labelId) - { - byte ret = IsLegendEntryHoveredNative((byte*)plabelId); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool IsLegendEntryHovered(string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = IsLegendEntryHoveredNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginDragDropTargetPlotNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[291])(); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[291])(); - #endif - } - - /// - /// To be documented. - /// - public static bool BeginDragDropTargetPlot() - { - byte ret = BeginDragDropTargetPlotNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginDragDropTargetAxisNative(ImAxis axis) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[292])(axis); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[292])(axis); - #endif - } - - /// - /// To be documented. - /// - public static bool BeginDragDropTargetAxis(ImAxis axis) - { - byte ret = BeginDragDropTargetAxisNative(axis); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginDragDropTargetLegendNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[293])(); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[293])(); - #endif - } - - /// - /// To be documented. - /// - public static bool BeginDragDropTargetLegend() - { - byte ret = BeginDragDropTargetLegendNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndDragDropTargetNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[294])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[294])(); - #endif - } - - /// - /// To be documented. - /// - public static void EndDragDropTarget() - { - EndDragDropTargetNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginDragDropSourcePlotNative(ImGuiDragDropFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[295])(flags); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[295])(flags); - #endif - } - - /// - /// To be documented. - /// - public static bool BeginDragDropSourcePlot(ImGuiDragDropFlags flags) - { - byte ret = BeginDragDropSourcePlotNative(flags); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginDragDropSourcePlot() - { - byte ret = BeginDragDropSourcePlotNative((ImGuiDragDropFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginDragDropSourceAxisNative(ImAxis axis, ImGuiDragDropFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[296])(axis, flags); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[296])(axis, flags); - #endif - } - - /// - /// To be documented. - /// - public static bool BeginDragDropSourceAxis(ImAxis axis, ImGuiDragDropFlags flags) - { - byte ret = BeginDragDropSourceAxisNative(axis, flags); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginDragDropSourceAxis(ImAxis axis) - { - byte ret = BeginDragDropSourceAxisNative(axis, (ImGuiDragDropFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginDragDropSourceItemNative(byte* labelId, ImGuiDragDropFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[297])(labelId, flags); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[297])((nint)labelId, flags); - #endif - } - - /// - /// To be documented. - /// - public static bool BeginDragDropSourceItem(byte* labelId, ImGuiDragDropFlags flags) - { - byte ret = BeginDragDropSourceItemNative(labelId, flags); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginDragDropSourceItem(byte* labelId) - { - byte ret = BeginDragDropSourceItemNative(labelId, (ImGuiDragDropFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginDragDropSourceItem(ref byte labelId, ImGuiDragDropFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte ret = BeginDragDropSourceItemNative((byte*)plabelId, flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginDragDropSourceItem(ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - byte ret = BeginDragDropSourceItemNative((byte*)plabelId, (ImGuiDragDropFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginDragDropSourceItem(ReadOnlySpan labelId, ImGuiDragDropFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte ret = BeginDragDropSourceItemNative((byte*)plabelId, flags); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginDragDropSourceItem(ReadOnlySpan labelId) - { - fixed (byte* plabelId = labelId) - { - byte ret = BeginDragDropSourceItemNative((byte*)plabelId, (ImGuiDragDropFlags)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginDragDropSourceItem(string labelId, ImGuiDragDropFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginDragDropSourceItemNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginDragDropSourceItem(string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginDragDropSourceItemNative(pStr0, (ImGuiDragDropFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndDragDropSourceNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[298])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[298])(); - #endif - } - - /// - /// To be documented. - /// - public static void EndDragDropSource() - { - EndDragDropSourceNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotStyle* GetStyleNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[299])(); - #else - return (ImPlotStyle*)((delegate* unmanaged[Cdecl])funcTable[299])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotStylePtr GetStyle() - { - ImPlotStylePtr ret = GetStyleNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StyleColorsAutoNative(ImPlotStyle* dst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[300])(dst); - #else - ((delegate* unmanaged[Cdecl])funcTable[300])((nint)dst); - #endif - } - - /// - /// To be documented. - /// - public static void StyleColorsAuto(ImPlotStylePtr dst) - { - StyleColorsAutoNative(dst); - } - - /// - /// To be documented. - /// - public static void StyleColorsAuto() - { - StyleColorsAutoNative((ImPlotStyle*)(((void*)0))); - } - - /// - /// To be documented. - /// - public static void StyleColorsAuto(ref ImPlotStyle dst) - { - fixed (ImPlotStyle* pdst = &dst) - { - StyleColorsAutoNative((ImPlotStyle*)pdst); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StyleColorsClassicNative(ImPlotStyle* dst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[301])(dst); - #else - ((delegate* unmanaged[Cdecl])funcTable[301])((nint)dst); - #endif - } - - /// - /// To be documented. - /// - public static void StyleColorsClassic(ImPlotStylePtr dst) - { - StyleColorsClassicNative(dst); - } - - /// - /// To be documented. - /// - public static void StyleColorsClassic() - { - StyleColorsClassicNative((ImPlotStyle*)(((void*)0))); - } - - /// - /// To be documented. - /// - public static void StyleColorsClassic(ref ImPlotStyle dst) - { - fixed (ImPlotStyle* pdst = &dst) - { - StyleColorsClassicNative((ImPlotStyle*)pdst); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StyleColorsDarkNative(ImPlotStyle* dst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[302])(dst); - #else - ((delegate* unmanaged[Cdecl])funcTable[302])((nint)dst); - #endif - } - - /// - /// To be documented. - /// - public static void StyleColorsDark(ImPlotStylePtr dst) - { - StyleColorsDarkNative(dst); - } - - /// - /// To be documented. - /// - public static void StyleColorsDark() - { - StyleColorsDarkNative((ImPlotStyle*)(((void*)0))); - } - - /// - /// To be documented. - /// - public static void StyleColorsDark(ref ImPlotStyle dst) - { - fixed (ImPlotStyle* pdst = &dst) - { - StyleColorsDarkNative((ImPlotStyle*)pdst); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StyleColorsLightNative(ImPlotStyle* dst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[303])(dst); - #else - ((delegate* unmanaged[Cdecl])funcTable[303])((nint)dst); - #endif - } - - /// - /// To be documented. - /// - public static void StyleColorsLight(ImPlotStylePtr dst) - { - StyleColorsLightNative(dst); - } - - /// - /// To be documented. - /// - public static void StyleColorsLight() - { - StyleColorsLightNative((ImPlotStyle*)(((void*)0))); - } - - /// - /// To be documented. - /// - public static void StyleColorsLight(ref ImPlotStyle dst) - { - fixed (ImPlotStyle* pdst = &dst) - { - StyleColorsLightNative((ImPlotStyle*)pdst); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushStyleColorNative(ImPlotCol idx, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[304])(idx, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[304])(idx, col); - #endif - } - - /// - /// To be documented. - /// - public static void PushStyleColor(ImPlotCol idx, uint col) - { - PushStyleColorNative(idx, col); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushStyleColorNative(ImPlotCol idx, Vector4 col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[305])(idx, col); - #else - ((delegate* unmanaged[Cdecl])funcTable[305])(idx, col); - #endif - } - - /// - /// To be documented. - /// - public static void PushStyleColor(ImPlotCol idx, Vector4 col) - { - PushStyleColorNative(idx, col); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopStyleColorNative(int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[306])(count); - #else - ((delegate* unmanaged[Cdecl])funcTable[306])(count); - #endif - } - - /// - /// To be documented. - /// - public static void PopStyleColor(int count) - { - PopStyleColorNative(count); - } - - /// - /// To be documented. - /// - public static void PopStyleColor() - { - PopStyleColorNative((int)(1)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushStyleVarNative(ImPlotStyleVar idx, float val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[307])(idx, val); - #else - ((delegate* unmanaged[Cdecl])funcTable[307])(idx, val); - #endif - } - - /// - /// To be documented. - /// - public static void PushStyleVar(ImPlotStyleVar idx, float val) - { - PushStyleVarNative(idx, val); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushStyleVarNative(ImPlotStyleVar idx, int val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[308])(idx, val); - #else - ((delegate* unmanaged[Cdecl])funcTable[308])(idx, val); - #endif - } - - /// - /// To be documented. - /// - public static void PushStyleVar(ImPlotStyleVar idx, int val) - { - PushStyleVarNative(idx, val); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushStyleVarNative(ImPlotStyleVar idx, Vector2 val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[309])(idx, val); - #else - ((delegate* unmanaged[Cdecl])funcTable[309])(idx, val); - #endif - } - - /// - /// To be documented. - /// - public static void PushStyleVar(ImPlotStyleVar idx, Vector2 val) - { - PushStyleVarNative(idx, val); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopStyleVarNative(int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[310])(count); - #else - ((delegate* unmanaged[Cdecl])funcTable[310])(count); - #endif - } - - /// - /// To be documented. - /// - public static void PopStyleVar(int count) - { - PopStyleVarNative(count); - } - - /// - /// To be documented. - /// - public static void PopStyleVar() - { - PopStyleVarNative((int)(1)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextLineStyleNative(Vector4 col, float weight) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[311])(col, weight); - #else - ((delegate* unmanaged[Cdecl])funcTable[311])(col, weight); - #endif - } - - /// - /// To be documented. - /// - public static void SetNextLineStyle(Vector4 col, float weight) - { - SetNextLineStyleNative(col, weight); - } - - /// - /// To be documented. - /// - public static void SetNextLineStyle(Vector4 col) - { - SetNextLineStyleNative(col, (float)(-1)); - } - - /// - /// To be documented. - /// - public static void SetNextLineStyle() - { - SetNextLineStyleNative((Vector4)(new Vector4(0,0,0,-1)), (float)(-1)); - } - - /// - /// To be documented. - /// - public static void SetNextLineStyle(float weight) - { - SetNextLineStyleNative((Vector4)(new Vector4(0,0,0,-1)), weight); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextFillStyleNative(Vector4 col, float alphaMod) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[312])(col, alphaMod); - #else - ((delegate* unmanaged[Cdecl])funcTable[312])(col, alphaMod); - #endif - } - - /// - /// To be documented. - /// - public static void SetNextFillStyle(Vector4 col, float alphaMod) - { - SetNextFillStyleNative(col, alphaMod); - } - - /// - /// To be documented. - /// - public static void SetNextFillStyle(Vector4 col) - { - SetNextFillStyleNative(col, (float)(-1)); - } - - /// - /// To be documented. - /// - public static void SetNextFillStyle() - { - SetNextFillStyleNative((Vector4)(new Vector4(0,0,0,-1)), (float)(-1)); - } - - /// - /// To be documented. - /// - public static void SetNextFillStyle(float alphaMod) - { - SetNextFillStyleNative((Vector4)(new Vector4(0,0,0,-1)), alphaMod); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextMarkerStyleNative(ImPlotMarker marker, float size, Vector4 fill, float weight, Vector4 outline) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[313])(marker, size, fill, weight, outline); - #else - ((delegate* unmanaged[Cdecl])funcTable[313])(marker, size, fill, weight, outline); - #endif - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(ImPlotMarker marker, float size, Vector4 fill, float weight, Vector4 outline) - { - SetNextMarkerStyleNative(marker, size, fill, weight, outline); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(ImPlotMarker marker, float size, Vector4 fill, float weight) - { - SetNextMarkerStyleNative(marker, size, fill, weight, (Vector4)(new Vector4(0,0,0,-1))); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(ImPlotMarker marker, float size, Vector4 fill) - { - SetNextMarkerStyleNative(marker, size, fill, (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(ImPlotMarker marker, float size) - { - SetNextMarkerStyleNative(marker, size, (Vector4)(new Vector4(0,0,0,-1)), (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(ImPlotMarker marker) - { - SetNextMarkerStyleNative(marker, (float)(-1), (Vector4)(new Vector4(0,0,0,-1)), (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle() - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), (float)(-1), (Vector4)(new Vector4(0,0,0,-1)), (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(float size) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), size, (Vector4)(new Vector4(0,0,0,-1)), (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(ImPlotMarker marker, Vector4 fill) - { - SetNextMarkerStyleNative(marker, (float)(-1), fill, (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(Vector4 fill) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), (float)(-1), fill, (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(float size, Vector4 fill) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), size, fill, (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(ImPlotMarker marker, float size, float weight) - { - SetNextMarkerStyleNative(marker, size, (Vector4)(new Vector4(0,0,0,-1)), weight, (Vector4)(new Vector4(0,0,0,-1))); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(float size, float weight) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), size, (Vector4)(new Vector4(0,0,0,-1)), weight, (Vector4)(new Vector4(0,0,0,-1))); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(ImPlotMarker marker, Vector4 fill, float weight) - { - SetNextMarkerStyleNative(marker, (float)(-1), fill, weight, (Vector4)(new Vector4(0,0,0,-1))); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(Vector4 fill, float weight) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), (float)(-1), fill, weight, (Vector4)(new Vector4(0,0,0,-1))); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(float size, Vector4 fill, float weight) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), size, fill, weight, (Vector4)(new Vector4(0,0,0,-1))); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(ImPlotMarker marker, float size, Vector4 fill, Vector4 outline) - { - SetNextMarkerStyleNative(marker, size, fill, (float)(-1), outline); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(ImPlotMarker marker, Vector4 fill, Vector4 outline) - { - SetNextMarkerStyleNative(marker, (float)(-1), fill, (float)(-1), outline); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(Vector4 fill, Vector4 outline) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), (float)(-1), fill, (float)(-1), outline); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(float size, Vector4 fill, Vector4 outline) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), size, fill, (float)(-1), outline); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(ImPlotMarker marker, float size, float weight, Vector4 outline) - { - SetNextMarkerStyleNative(marker, size, (Vector4)(new Vector4(0,0,0,-1)), weight, outline); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(float size, float weight, Vector4 outline) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), size, (Vector4)(new Vector4(0,0,0,-1)), weight, outline); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(ImPlotMarker marker, Vector4 fill, float weight, Vector4 outline) - { - SetNextMarkerStyleNative(marker, (float)(-1), fill, weight, outline); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(Vector4 fill, float weight, Vector4 outline) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), (float)(-1), fill, weight, outline); - } - - /// - /// To be documented. - /// - public static void SetNextMarkerStyle(float size, Vector4 fill, float weight, Vector4 outline) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), size, fill, weight, outline); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextErrorBarStyleNative(Vector4 col, float size, float weight) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[314])(col, size, weight); - #else - ((delegate* unmanaged[Cdecl])funcTable[314])(col, size, weight); - #endif - } - - /// - /// To be documented. - /// - public static void SetNextErrorBarStyle(Vector4 col, float size, float weight) - { - SetNextErrorBarStyleNative(col, size, weight); - } - - /// - /// To be documented. - /// - public static void SetNextErrorBarStyle(Vector4 col, float size) - { - SetNextErrorBarStyleNative(col, size, (float)(-1)); - } - - /// - /// To be documented. - /// - public static void SetNextErrorBarStyle(Vector4 col) - { - SetNextErrorBarStyleNative(col, (float)(-1), (float)(-1)); - } - - /// - /// To be documented. - /// - public static void SetNextErrorBarStyle() - { - SetNextErrorBarStyleNative((Vector4)(new Vector4(0,0,0,-1)), (float)(-1), (float)(-1)); - } - - /// - /// To be documented. - /// - public static void SetNextErrorBarStyle(float size) - { - SetNextErrorBarStyleNative((Vector4)(new Vector4(0,0,0,-1)), size, (float)(-1)); - } - - /// - /// To be documented. - /// - public static void SetNextErrorBarStyle(float size, float weight) - { - SetNextErrorBarStyleNative((Vector4)(new Vector4(0,0,0,-1)), size, weight); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetLastItemColorNative(Vector4* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[315])(pOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[315])((nint)pOut); - #endif - } - - /// - /// To be documented. - /// - public static Vector4 GetLastItemColor() - { - Vector4 ret; - GetLastItemColorNative(&ret); - return ret; - } - - /// - /// To be documented. - /// - public static void GetLastItemColor(Vector4* pOut) - { - GetLastItemColorNative(pOut); - } - - /// - /// To be documented. - /// - public static void GetLastItemColor(ref Vector4 pOut) - { - fixed (Vector4* ppOut = &pOut) - { - GetLastItemColorNative((Vector4*)ppOut); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetStyleColorNameNative(ImPlotCol idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[316])(idx); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[316])(idx); - #endif - } - - /// - /// To be documented. - /// - public static byte* GetStyleColorName(ImPlotCol idx) - { - byte* ret = GetStyleColorNameNative(idx); - return ret; - } - - /// - /// To be documented. - /// - public static string GetStyleColorNameS(ImPlotCol idx) - { - string ret = Utils.DecodeStringUTF8(GetStyleColorNameNative(idx)); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetMarkerNameNative(ImPlotMarker idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[317])(idx); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[317])(idx); - #endif - } - - /// - /// To be documented. - /// - public static byte* GetMarkerName(ImPlotMarker idx) - { - byte* ret = GetMarkerNameNative(idx); - return ret; - } - - /// - /// To be documented. - /// - public static string GetMarkerNameS(ImPlotMarker idx) - { - string ret = Utils.DecodeStringUTF8(GetMarkerNameNative(idx)); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotColormap AddColormapNative(byte* name, Vector4* cols, int size, byte qual) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[318])(name, cols, size, qual); - #else - return (ImPlotColormap)((delegate* unmanaged[Cdecl])funcTable[318])((nint)name, (nint)cols, size, qual); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(byte* name, Vector4* cols, int size, bool qual) - { - ImPlotColormap ret = AddColormapNative(name, cols, size, qual ? (byte)1 : (byte)0); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(byte* name, Vector4* cols, int size) - { - ImPlotColormap ret = AddColormapNative(name, cols, size, (byte)(1)); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(ref byte name, Vector4* cols, int size, bool qual) - { - fixed (byte* pname = &name) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(ref byte name, Vector4* cols, int size) - { - fixed (byte* pname = &name) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, (byte)(1)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(ReadOnlySpan name, Vector4* cols, int size, bool qual) - { - fixed (byte* pname = name) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(ReadOnlySpan name, Vector4* cols, int size) - { - fixed (byte* pname = name) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, (byte)(1)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(string name, Vector4* cols, int size, bool qual) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotColormap ret = AddColormapNative(pStr0, cols, size, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(string name, Vector4* cols, int size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotColormap ret = AddColormapNative(pStr0, cols, size, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(byte* name, ref Vector4 cols, int size, bool qual) - { - fixed (Vector4* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative(name, (Vector4*)pcols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(byte* name, ref Vector4 cols, int size) - { - fixed (Vector4* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative(name, (Vector4*)pcols, size, (byte)(1)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(ref byte name, ref Vector4 cols, int size, bool qual) - { - fixed (byte* pname = &name) - { - fixed (Vector4* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, (Vector4*)pcols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(ref byte name, ref Vector4 cols, int size) - { - fixed (byte* pname = &name) - { - fixed (Vector4* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, (Vector4*)pcols, size, (byte)(1)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(ReadOnlySpan name, ref Vector4 cols, int size, bool qual) - { - fixed (byte* pname = name) - { - fixed (Vector4* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, (Vector4*)pcols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(ReadOnlySpan name, ref Vector4 cols, int size) - { - fixed (byte* pname = name) - { - fixed (Vector4* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, (Vector4*)pcols, size, (byte)(1)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(string name, ref Vector4 cols, int size, bool qual) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative(pStr0, (Vector4*)pcols, size, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(string name, ref Vector4 cols, int size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative(pStr0, (Vector4*)pcols, size, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotColormap AddColormapNative(byte* name, uint* cols, int size, byte qual) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[319])(name, cols, size, qual); - #else - return (ImPlotColormap)((delegate* unmanaged[Cdecl])funcTable[319])((nint)name, (nint)cols, size, qual); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(byte* name, uint* cols, int size, bool qual) - { - ImPlotColormap ret = AddColormapNative(name, cols, size, qual ? (byte)1 : (byte)0); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(byte* name, uint* cols, int size) - { - ImPlotColormap ret = AddColormapNative(name, cols, size, (byte)(1)); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(ref byte name, uint* cols, int size, bool qual) - { - fixed (byte* pname = &name) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(ref byte name, uint* cols, int size) - { - fixed (byte* pname = &name) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, (byte)(1)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(ReadOnlySpan name, uint* cols, int size, bool qual) - { - fixed (byte* pname = name) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(ReadOnlySpan name, uint* cols, int size) - { - fixed (byte* pname = name) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, (byte)(1)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(string name, uint* cols, int size, bool qual) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotColormap ret = AddColormapNative(pStr0, cols, size, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(string name, uint* cols, int size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotColormap ret = AddColormapNative(pStr0, cols, size, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(byte* name, ref uint cols, int size, bool qual) - { - fixed (uint* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative(name, (uint*)pcols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(byte* name, ref uint cols, int size) - { - fixed (uint* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative(name, (uint*)pcols, size, (byte)(1)); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(ref byte name, ref uint cols, int size, bool qual) - { - fixed (byte* pname = &name) - { - fixed (uint* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, (uint*)pcols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(ref byte name, ref uint cols, int size) - { - fixed (byte* pname = &name) - { - fixed (uint* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, (uint*)pcols, size, (byte)(1)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(ReadOnlySpan name, ref uint cols, int size, bool qual) - { - fixed (byte* pname = name) - { - fixed (uint* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, (uint*)pcols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(ReadOnlySpan name, ref uint cols, int size) - { - fixed (byte* pname = name) - { - fixed (uint* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, (uint*)pcols, size, (byte)(1)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(string name, ref uint cols, int size, bool qual) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative(pStr0, (uint*)pcols, size, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap AddColormap(string name, ref uint cols, int size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative(pStr0, (uint*)pcols, size, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetColormapCountNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[320])(); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[320])(); - #endif - } - - /// - /// To be documented. - /// - public static int GetColormapCount() - { - int ret = GetColormapCountNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetColormapNameNative(ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[321])(cmap); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[321])(cmap); - #endif - } - - /// - /// To be documented. - /// - public static byte* GetColormapName(ImPlotColormap cmap) - { - byte* ret = GetColormapNameNative(cmap); - return ret; - } - - /// - /// To be documented. - /// - public static string GetColormapNameS(ImPlotColormap cmap) - { - string ret = Utils.DecodeStringUTF8(GetColormapNameNative(cmap)); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotColormap GetColormapIndexNative(byte* name) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[322])(name); - #else - return (ImPlotColormap)((delegate* unmanaged[Cdecl])funcTable[322])((nint)name); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotColormap GetColormapIndex(byte* name) - { - ImPlotColormap ret = GetColormapIndexNative(name); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotColormap GetColormapIndex(ref byte name) - { - fixed (byte* pname = &name) - { - ImPlotColormap ret = GetColormapIndexNative((byte*)pname); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap GetColormapIndex(ReadOnlySpan name) - { - fixed (byte* pname = name) - { - ImPlotColormap ret = GetColormapIndexNative((byte*)pname); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap GetColormapIndex(string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotColormap ret = GetColormapIndexNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushColormapNative(ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[323])(cmap); - #else - ((delegate* unmanaged[Cdecl])funcTable[323])(cmap); - #endif - } - - /// - /// To be documented. - /// - public static void PushColormap(ImPlotColormap cmap) - { - PushColormapNative(cmap); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushColormapNative(byte* name) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[324])(name); - #else - ((delegate* unmanaged[Cdecl])funcTable[324])((nint)name); - #endif - } - - /// - /// To be documented. - /// - public static void PushColormap(byte* name) - { - PushColormapNative(name); - } - - /// - /// To be documented. - /// - public static void PushColormap(ref byte name) - { - fixed (byte* pname = &name) - { - PushColormapNative((byte*)pname); - } - } - - /// - /// To be documented. - /// - public static void PushColormap(ReadOnlySpan name) - { - fixed (byte* pname = name) - { - PushColormapNative((byte*)pname); - } - } - - /// - /// To be documented. - /// - public static void PushColormap(string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PushColormapNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopColormapNative(int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[325])(count); - #else - ((delegate* unmanaged[Cdecl])funcTable[325])(count); - #endif - } - - /// - /// To be documented. - /// - public static void PopColormap(int count) - { - PopColormapNative(count); - } - - /// - /// To be documented. - /// - public static void PopColormap() - { - PopColormapNative((int)(1)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NextColormapColorNative(Vector4* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[326])(pOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[326])((nint)pOut); - #endif - } - - /// - /// To be documented. - /// - public static Vector4 NextColormapColor() - { - Vector4 ret; - NextColormapColorNative(&ret); - return ret; - } - - /// - /// To be documented. - /// - public static void NextColormapColor(Vector4* pOut) - { - NextColormapColorNative(pOut); - } - - /// - /// To be documented. - /// - public static void NextColormapColor(ref Vector4 pOut) - { - fixed (Vector4* ppOut = &pOut) - { - NextColormapColorNative((Vector4*)ppOut); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetColormapSizeNative(ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[327])(cmap); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[327])(cmap); - #endif - } - - /// - /// To be documented. - /// - public static int GetColormapSize(ImPlotColormap cmap) - { - int ret = GetColormapSizeNative(cmap); - return ret; - } - - /// - /// To be documented. - /// - public static int GetColormapSize() - { - int ret = GetColormapSizeNative((ImPlotColormap)(-1)); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetColormapColorNative(Vector4* pOut, int idx, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[328])(pOut, idx, cmap); - #else - ((delegate* unmanaged[Cdecl])funcTable[328])((nint)pOut, idx, cmap); - #endif - } - - /// - /// To be documented. - /// - public static Vector4 GetColormapColor(int idx) - { - Vector4 ret; - GetColormapColorNative(&ret, idx, (ImPlotColormap)(-1)); - return ret; - } - - /// - /// To be documented. - /// - public static Vector4 GetColormapColor(int idx, ImPlotColormap cmap) - { - Vector4 ret; - GetColormapColorNative(&ret, idx, cmap); - return ret; - } - - /// - /// To be documented. - /// - public static void GetColormapColor(Vector4* pOut, int idx, ImPlotColormap cmap) - { - GetColormapColorNative(pOut, idx, cmap); - } - - /// - /// To be documented. - /// - public static void GetColormapColor(Vector4* pOut, int idx) - { - GetColormapColorNative(pOut, idx, (ImPlotColormap)(-1)); - } - - /// - /// To be documented. - /// - public static void GetColormapColor(ref Vector4 pOut, int idx, ImPlotColormap cmap) - { - fixed (Vector4* ppOut = &pOut) - { - GetColormapColorNative((Vector4*)ppOut, idx, cmap); - } - } - - /// - /// To be documented. - /// - public static void GetColormapColor(ref Vector4 pOut, int idx) - { - fixed (Vector4* ppOut = &pOut) - { - GetColormapColorNative((Vector4*)ppOut, idx, (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SampleColormapNative(Vector4* pOut, float t, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[329])(pOut, t, cmap); - #else - ((delegate* unmanaged[Cdecl])funcTable[329])((nint)pOut, t, cmap); - #endif - } - - /// - /// To be documented. - /// - public static Vector4 SampleColormap(float t) - { - Vector4 ret; - SampleColormapNative(&ret, t, (ImPlotColormap)(-1)); - return ret; - } - - /// - /// To be documented. - /// - public static Vector4 SampleColormap(float t, ImPlotColormap cmap) - { - Vector4 ret; - SampleColormapNative(&ret, t, cmap); - return ret; - } - - /// - /// To be documented. - /// - public static void SampleColormap(Vector4* pOut, float t, ImPlotColormap cmap) - { - SampleColormapNative(pOut, t, cmap); - } - - /// - /// To be documented. - /// - public static void SampleColormap(Vector4* pOut, float t) - { - SampleColormapNative(pOut, t, (ImPlotColormap)(-1)); - } - - /// - /// To be documented. - /// - public static void SampleColormap(ref Vector4 pOut, float t, ImPlotColormap cmap) - { - fixed (Vector4* ppOut = &pOut) - { - SampleColormapNative((Vector4*)ppOut, t, cmap); - } - } - - /// - /// To be documented. - /// - public static void SampleColormap(ref Vector4 pOut, float t) - { - fixed (Vector4* ppOut = &pOut) - { - SampleColormapNative((Vector4*)ppOut, t, (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ColormapScaleNative(byte* label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[330])(label, scaleMin, scaleMax, size, format, flags, cmap); - #else - ((delegate* unmanaged[Cdecl])funcTable[330])((nint)label, scaleMin, scaleMax, size, (nint)format, flags, cmap); - #endif - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, format, flags, cmap); - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, format, flags, (ImPlotColormap)(-1)); - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, byte* format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size) - { - ColormapScale(label, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax) - { - ColormapScale(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, byte* format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags) - { - ColormapScale(label, scaleMin, scaleMax, size, (string)"%g", flags, (ImPlotColormap)(-1)); - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags) - { - ColormapScale(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, (ImPlotColormap)(-1)); - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, (ImPlotColormap)(-1)); - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormap cmap) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), cmap); - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormap cmap) - { - ColormapScale(label, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ImPlotColormap cmap) - { - ColormapScale(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, byte* format, ImPlotColormap cmap) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), cmap); - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - ColormapScale(label, scaleMin, scaleMax, size, (string)"%g", flags, cmap); - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - ColormapScale(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, cmap); - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, cmap); - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, flags, cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, flags, (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, byte* format) - { - fixed (byte* plabel = &label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size) - { - fixed (byte* plabel = &label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax) - { - fixed (byte* plabel = &label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, byte* format) - { - fixed (byte* plabel = &label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", flags, (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", flags, cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, flags, cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, flags, (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, byte* format) - { - fixed (byte* plabel = label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size) - { - fixed (byte* plabel = label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax) - { - fixed (byte* plabel = label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, byte* format) - { - fixed (byte* plabel = label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", flags, (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", flags, cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, format, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, format, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScale(pStr0, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScale(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScale(pStr0, scaleMin, scaleMax, size, (string)"%g", flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScale(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScale(pStr0, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScale(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, byte* format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScale(pStr0, scaleMin, scaleMax, size, (string)"%g", flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScale(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ref byte format) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ref byte format) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormap cmap) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ref byte format, ImPlotColormap cmap) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* pformat = format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormapScaleFlags flags) - { - fixed (byte* pformat = format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format) - { - fixed (byte* pformat = format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ReadOnlySpan format) - { - fixed (byte* pformat = format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormapScaleFlags flags) - { - fixed (byte* pformat = format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* pformat = format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* pformat = format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* pformat = format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(label, scaleMin, scaleMax, size, pStr0, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(label, scaleMin, scaleMax, size, pStr0, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(label, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(label, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ReadOnlySpan format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, pStr1, flags, cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, pStr1, flags, (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, pStr1, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr1, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr1, flags, (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, pStr1, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr1, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr1, flags, cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ReadOnlySpan format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(ReadOnlySpan label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.130.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.130.cs deleted file mode 100644 index 2142f0f07..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.130.cs +++ /dev/null @@ -1,5071 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, ref byte format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, ReadOnlySpan format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void ColormapScale(string label, double scaleMin, double scaleMax, ReadOnlySpan format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ColormapSliderNative(byte* label, float* t, Vector4* output, byte* format, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[331])(label, t, output, format, cmap); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[331])((nint)label, (nint)t, (nint)output, (nint)format, cmap); - #endif - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, Vector4* output, byte* format, ImPlotColormap cmap) - { - byte ret = ColormapSliderNative(label, t, output, format, cmap); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, Vector4* output, byte* format) - { - byte ret = ColormapSliderNative(label, t, output, format, (ImPlotColormap)(-1)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, Vector4* output) - { - bool ret = ColormapSlider(label, t, output, (string)"", (ImPlotColormap)(-1)); - return ret; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t) - { - bool ret = ColormapSlider(label, t, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); - return ret; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, byte* format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, Vector4* output, ImPlotColormap cmap) - { - bool ret = ColormapSlider(label, t, output, (string)"", cmap); - return ret; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, ImPlotColormap cmap) - { - bool ret = ColormapSlider(label, t, (Vector4*)(((void*)0)), (string)"", cmap); - return ret; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, byte* format, ImPlotColormap cmap) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), format, cmap); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, format, cmap); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, Vector4* output) - { - fixed (byte* plabel = &label) - { - bool ret = ColormapSlider((byte*)plabel, t, output, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t) - { - fixed (byte* plabel = &label) - { - bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - bool ret = ColormapSlider((byte*)plabel, t, output, (string)"", cmap); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)(((void*)0)), (string)"", cmap); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), format, cmap); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, format, cmap); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output) - { - fixed (byte* plabel = label) - { - bool ret = ColormapSlider((byte*)plabel, t, output, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t) - { - fixed (byte* plabel = label) - { - bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - bool ret = ColormapSlider((byte*)plabel, t, output, (string)"", cmap); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)(((void*)0)), (string)"", cmap); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), format, cmap); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, Vector4* output, byte* format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, output, format, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, Vector4* output, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, output, format, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, Vector4* output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = ColormapSlider(pStr0, t, output, (string)"", (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = ColormapSlider(pStr0, t, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, Vector4* output, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = ColormapSlider(pStr0, t, output, (string)"", cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = ColormapSlider(pStr0, t, (Vector4*)(((void*)0)), (string)"", cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, byte* format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), format, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, byte* format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative(label, (float*)pt, output, format, cmap); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, byte* format) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative(label, (float*)pt, output, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, Vector4* output) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider(label, (float*)pt, output, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider(label, (float*)pt, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, byte* format) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider(label, (float*)pt, output, (string)"", cmap); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider(label, (float*)pt, (Vector4*)(((void*)0)), (string)"", cmap); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, byte* format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), format, cmap); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, format, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, output, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, output, (string)"", cmap); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (string)"", cmap); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), format, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, format, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, output, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, output, (string)"", cmap); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (string)"", cmap); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), format, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, Vector4* output, byte* format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, output, format, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, Vector4* output, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, output, format, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, Vector4* output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - bool ret = ColormapSlider(pStr0, (float*)pt, output, (string)"", (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - bool ret = ColormapSlider(pStr0, (float*)pt, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, Vector4* output, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - bool ret = ColormapSlider(pStr0, (float*)pt, output, (string)"", cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - bool ret = ColormapSlider(pStr0, (float*)pt, (Vector4*)(((void*)0)), (string)"", cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, byte* format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), format, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, byte* format, ImPlotColormap cmap) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, format, cmap); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, byte* format) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider(label, t, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, ImPlotColormap cmap) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider(label, t, (Vector4*)poutput, (string)"", cmap); - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, format, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)poutput, (string)"", cmap); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, format, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, byte* format) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)poutput, (string)"", cmap); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, ref Vector4 output, byte* format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, format, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, ref Vector4 output, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, format, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, ref Vector4 output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider(pStr0, t, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, ref Vector4 output, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider(pStr0, t, (Vector4*)poutput, (string)"", cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, byte* format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, format, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, byte* format) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider(label, (float*)pt, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider(label, (float*)pt, (Vector4*)poutput, (string)"", cmap); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, format, cmap); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)poutput, (string)"", cmap); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, format, cmap); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)poutput, (string)"", cmap); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, byte* format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, format, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, format, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, ref Vector4 output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider(pStr0, (float*)pt, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider(pStr0, (float*)pt, (Vector4*)poutput, (string)"", cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, Vector4* output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, t, output, (byte*)pformat, cmap); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, Vector4* output, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, t, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, ref byte format, ImPlotColormap cmap) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, Vector4* output, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, t, output, (byte*)pformat, cmap); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, Vector4* output, ReadOnlySpan format) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, t, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, ReadOnlySpan format) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, Vector4* output, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, t, output, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, Vector4* output, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, t, output, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, ReadOnlySpan format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, ReadOnlySpan format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, Vector4* output, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, output, pStr1, cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, Vector4* output, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, output, pStr1, (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), pStr1, (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), pStr1, cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, ReadOnlySpan format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, ReadOnlySpan format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, output, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, output, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, output, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, Vector4* output, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, output, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, Vector4* output, ref byte format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, t, output, (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, Vector4* output, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, t, output, (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, ref byte format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, Vector4* output, ReadOnlySpan format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, t, output, (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, Vector4* output, ReadOnlySpan format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, t, output, (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, ReadOnlySpan format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, ReadOnlySpan format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, ref byte format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, (float*)pt, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, ref byte format) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, ref byte format) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, ref byte format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, (float*)pt, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, ReadOnlySpan format) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, ReadOnlySpan format) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, string format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, (float*)pt, output, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, string format) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, (float*)pt, output, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, string format) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, string format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, ReadOnlySpan format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, ReadOnlySpan format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, Vector4* output, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, (float*)pt, output, pStr1, cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, Vector4* output, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, (float*)pt, output, pStr1, (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), pStr1, (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), pStr1, cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, ReadOnlySpan format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, ReadOnlySpan format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, Vector4* output, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, Vector4* output, ref byte format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, output, (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, Vector4* output, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, ref byte format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, Vector4* output, ReadOnlySpan format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, output, (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, Vector4* output, ReadOnlySpan format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, ReadOnlySpan format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, ReadOnlySpan format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, ref byte format, ImPlotColormap cmap) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, ref byte format) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, ReadOnlySpan format) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, string format, ImPlotColormap cmap) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, string format) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, ReadOnlySpan format) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, ref Vector4 output, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, pStr1, cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.131.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.131.cs deleted file mode 100644 index cd4e500a7..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.131.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, ref Vector4 output, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, pStr1, (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, ReadOnlySpan format) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, string format) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, float* t, ref Vector4 output, string format) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, ref Vector4 output, ref byte format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, ref Vector4 output, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, ref Vector4 output, ReadOnlySpan format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, float* t, ref Vector4 output, ReadOnlySpan format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, ref byte format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, ref byte format) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, ReadOnlySpan format) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, string format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, string format) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, ReadOnlySpan format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, pStr1, cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, pStr1, (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, ReadOnlySpan format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, ReadOnlySpan format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(ReadOnlySpan label, ref float t, ref Vector4 output, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, ref byte format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, ReadOnlySpan format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, ReadOnlySpan format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ColormapButtonNative(byte* label, Vector2 size, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[332])(label, size, cmap); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[332])((nint)label, size, cmap); - #endif - } - - /// - /// To be documented. - /// - public static bool ColormapButton(byte* label, Vector2 size, ImPlotColormap cmap) - { - byte ret = ColormapButtonNative(label, size, cmap); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapButton(byte* label, Vector2 size) - { - byte ret = ColormapButtonNative(label, size, (ImPlotColormap)(-1)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapButton(byte* label) - { - byte ret = ColormapButtonNative(label, (Vector2)(new Vector2(0,0)), (ImPlotColormap)(-1)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapButton(byte* label, ImPlotColormap cmap) - { - byte ret = ColormapButtonNative(label, (Vector2)(new Vector2(0,0)), cmap); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapButton(ref byte label, Vector2 size, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte ret = ColormapButtonNative((byte*)plabel, size, cmap); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapButton(ref byte label, Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = ColormapButtonNative((byte*)plabel, size, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapButton(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = ColormapButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0)), (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapButton(ref byte label, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte ret = ColormapButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0)), cmap); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapButton(ReadOnlySpan label, Vector2 size, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte ret = ColormapButtonNative((byte*)plabel, size, cmap); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapButton(ReadOnlySpan label, Vector2 size) - { - fixed (byte* plabel = label) - { - byte ret = ColormapButtonNative((byte*)plabel, size, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapButton(ReadOnlySpan label) - { - fixed (byte* plabel = label) - { - byte ret = ColormapButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0)), (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapButton(ReadOnlySpan label, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte ret = ColormapButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0)), cmap); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ColormapButton(string label, Vector2 size, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapButtonNative(pStr0, size, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapButton(string label, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapButtonNative(pStr0, size, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapButton(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapButtonNative(pStr0, (Vector2)(new Vector2(0,0)), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ColormapButton(string label, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapButtonNative(pStr0, (Vector2)(new Vector2(0,0)), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BustColorCacheNative(byte* plotTitleId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[333])(plotTitleId); - #else - ((delegate* unmanaged[Cdecl])funcTable[333])((nint)plotTitleId); - #endif - } - - /// - /// To be documented. - /// - public static void BustColorCache(byte* plotTitleId) - { - BustColorCacheNative(plotTitleId); - } - - /// - /// To be documented. - /// - public static void BustColorCache() - { - BustColorCacheNative((byte*)(((void*)0))); - } - - /// - /// To be documented. - /// - public static void BustColorCache(ref byte plotTitleId) - { - fixed (byte* pplotTitleId = &plotTitleId) - { - BustColorCacheNative((byte*)pplotTitleId); - } - } - - /// - /// To be documented. - /// - public static void BustColorCache(ReadOnlySpan plotTitleId) - { - fixed (byte* pplotTitleId = plotTitleId) - { - BustColorCacheNative((byte*)pplotTitleId); - } - } - - /// - /// To be documented. - /// - public static void BustColorCache(string plotTitleId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (plotTitleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(plotTitleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(plotTitleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - BustColorCacheNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotInputMap* GetInputMapNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[334])(); - #else - return (ImPlotInputMap*)((delegate* unmanaged[Cdecl])funcTable[334])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotInputMapPtr GetInputMap() - { - ImPlotInputMapPtr ret = GetInputMapNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MapInputDefaultNative(ImPlotInputMap* dst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[335])(dst); - #else - ((delegate* unmanaged[Cdecl])funcTable[335])((nint)dst); - #endif - } - - /// - /// To be documented. - /// - public static void MapInputDefault(ImPlotInputMapPtr dst) - { - MapInputDefaultNative(dst); - } - - /// - /// To be documented. - /// - public static void MapInputDefault() - { - MapInputDefaultNative((ImPlotInputMap*)(((void*)0))); - } - - /// - /// To be documented. - /// - public static void MapInputDefault(ref ImPlotInputMap dst) - { - fixed (ImPlotInputMap* pdst = &dst) - { - MapInputDefaultNative((ImPlotInputMap*)pdst); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MapInputReverseNative(ImPlotInputMap* dst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[336])(dst); - #else - ((delegate* unmanaged[Cdecl])funcTable[336])((nint)dst); - #endif - } - - /// - /// To be documented. - /// - public static void MapInputReverse(ImPlotInputMapPtr dst) - { - MapInputReverseNative(dst); - } - - /// - /// To be documented. - /// - public static void MapInputReverse() - { - MapInputReverseNative((ImPlotInputMap*)(((void*)0))); - } - - /// - /// To be documented. - /// - public static void MapInputReverse(ref ImPlotInputMap dst) - { - fixed (ImPlotInputMap* pdst = &dst) - { - MapInputReverseNative((ImPlotInputMap*)pdst); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ItemIconNative(Vector4 col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[337])(col); - #else - ((delegate* unmanaged[Cdecl])funcTable[337])(col); - #endif - } - - /// - /// To be documented. - /// - public static void ItemIcon(Vector4 col) - { - ItemIconNative(col); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ItemIconNative(uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[338])(col); - #else - ((delegate* unmanaged[Cdecl])funcTable[338])(col); - #endif - } - - /// - /// To be documented. - /// - public static void ItemIcon(uint col) - { - ItemIconNative(col); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ColormapIconNative(ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[339])(cmap); - #else - ((delegate* unmanaged[Cdecl])funcTable[339])(cmap); - #endif - } - - /// - /// To be documented. - /// - public static void ColormapIcon(ImPlotColormap cmap) - { - ColormapIconNative(cmap); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawList* GetPlotDrawListNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[340])(); - #else - return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[340])(); - #endif - } - - /// - /// To be documented. - /// - public static ImDrawListPtr GetPlotDrawList() - { - ImDrawListPtr ret = GetPlotDrawListNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushPlotClipRectNative(float expand) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[341])(expand); - #else - ((delegate* unmanaged[Cdecl])funcTable[341])(expand); - #endif - } - - /// - /// To be documented. - /// - public static void PushPlotClipRect(float expand) - { - PushPlotClipRectNative(expand); - } - - /// - /// To be documented. - /// - public static void PushPlotClipRect() - { - PushPlotClipRectNative((float)(0)); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopPlotClipRectNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[342])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[342])(); - #endif - } - - /// - /// To be documented. - /// - public static void PopPlotClipRect() - { - PopPlotClipRectNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ShowStyleSelectorNative(byte* label) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[343])(label); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[343])((nint)label); - #endif - } - - /// - /// To be documented. - /// - public static bool ShowStyleSelector(byte* label) - { - byte ret = ShowStyleSelectorNative(label); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ShowStyleSelector(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = ShowStyleSelectorNative((byte*)plabel); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowStyleSelector(ReadOnlySpan label) - { - fixed (byte* plabel = label) - { - byte ret = ShowStyleSelectorNative((byte*)plabel); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowStyleSelector(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ShowStyleSelectorNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ShowColormapSelectorNative(byte* label) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[344])(label); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[344])((nint)label); - #endif - } - - /// - /// To be documented. - /// - public static bool ShowColormapSelector(byte* label) - { - byte ret = ShowColormapSelectorNative(label); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ShowColormapSelector(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = ShowColormapSelectorNative((byte*)plabel); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowColormapSelector(ReadOnlySpan label) - { - fixed (byte* plabel = label) - { - byte ret = ShowColormapSelectorNative((byte*)plabel); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowColormapSelector(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ShowColormapSelectorNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ShowInputMapSelectorNative(byte* label) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[345])(label); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[345])((nint)label); - #endif - } - - /// - /// To be documented. - /// - public static bool ShowInputMapSelector(byte* label) - { - byte ret = ShowInputMapSelectorNative(label); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ShowInputMapSelector(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = ShowInputMapSelectorNative((byte*)plabel); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowInputMapSelector(ReadOnlySpan label) - { - fixed (byte* plabel = label) - { - byte ret = ShowInputMapSelectorNative((byte*)plabel); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowInputMapSelector(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ShowInputMapSelectorNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowStyleEditorNative(ImPlotStyle* reference) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[346])(reference); - #else - ((delegate* unmanaged[Cdecl])funcTable[346])((nint)reference); - #endif - } - - /// - /// To be documented. - /// - public static void ShowStyleEditor(ImPlotStylePtr reference) - { - ShowStyleEditorNative(reference); - } - - /// - /// To be documented. - /// - public static void ShowStyleEditor() - { - ShowStyleEditorNative((ImPlotStyle*)(((void*)0))); - } - - /// - /// To be documented. - /// - public static void ShowStyleEditor(ref ImPlotStyle reference) - { - fixed (ImPlotStyle* preference = &reference) - { - ShowStyleEditorNative((ImPlotStyle*)preference); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowUserGuideNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[347])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[347])(); - #endif - } - - /// - /// To be documented. - /// - public static void ShowUserGuide() - { - ShowUserGuideNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowMetricsWindowNative(bool* pPopen) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[348])(pPopen); - #else - ((delegate* unmanaged[Cdecl])funcTable[348])((nint)pPopen); - #endif - } - - /// - /// To be documented. - /// - public static void ShowMetricsWindow(bool* pPopen) - { - ShowMetricsWindowNative(pPopen); - } - - /// - /// To be documented. - /// - public static void ShowMetricsWindow() - { - ShowMetricsWindowNative((bool*)(((void*)0))); - } - - /// - /// To be documented. - /// - public static void ShowMetricsWindow(ref bool pPopen) - { - fixed (bool* ppPopen = &pPopen) - { - ShowMetricsWindowNative((bool*)ppPopen); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowDemoWindowNative(bool* pOpen) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[349])(pOpen); - #else - ((delegate* unmanaged[Cdecl])funcTable[349])((nint)pOpen); - #endif - } - - /// - /// To be documented. - /// - public static void ShowDemoWindow(bool* pOpen) - { - ShowDemoWindowNative(pOpen); - } - - /// - /// To be documented. - /// - public static void ShowDemoWindow() - { - ShowDemoWindowNative((bool*)(((void*)0))); - } - - /// - /// To be documented. - /// - public static void ShowDemoWindow(ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - ShowDemoWindowNative((bool*)ppOpen); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImLog10Native(float x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[350])(x); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[350])(x); - #endif - } - - /// - /// To be documented. - /// - public static float ImLog10(float x) - { - float ret = ImLog10Native(x); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImLog10Native(double x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[351])(x); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[351])(x); - #endif - } - - /// - /// To be documented. - /// - public static double ImLog10(double x) - { - double ret = ImLog10Native(x); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImSinhNative(float x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[352])(x); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[352])(x); - #endif - } - - /// - /// To be documented. - /// - public static float ImSinh(float x) - { - float ret = ImSinhNative(x); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImSinhNative(double x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[353])(x); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[353])(x); - #endif - } - - /// - /// To be documented. - /// - public static double ImSinh(double x) - { - double ret = ImSinhNative(x); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImAsinhNative(float x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[354])(x); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[354])(x); - #endif - } - - /// - /// To be documented. - /// - public static float ImAsinh(float x) - { - float ret = ImAsinhNative(x); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImAsinhNative(double x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[355])(x); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[355])(x); - #endif - } - - /// - /// To be documented. - /// - public static double ImAsinh(double x) - { - double ret = ImAsinhNative(x); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImRemapNative(float x, float x0, float x1, float y0, float y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[356])(x, x0, x1, y0, y1); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[356])(x, x0, x1, y0, y1); - #endif - } - - /// - /// To be documented. - /// - public static float ImRemap(float x, float x0, float x1, float y0, float y1) - { - float ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImRemapNative(double x, double x0, double x1, double y0, double y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[357])(x, x0, x1, y0, y1); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[357])(x, x0, x1, y0, y1); - #endif - } - - /// - /// To be documented. - /// - public static double ImRemap(double x, double x0, double x1, double y0, double y1) - { - double ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImRemapNative(byte x, byte x0, byte x1, byte y0, byte y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[358])(x, x0, x1, y0, y1); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[358])(x, x0, x1, y0, y1); - #endif - } - - /// - /// To be documented. - /// - public static byte ImRemap(byte x, byte x0, byte x1, byte y0, byte y1) - { - byte ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static short ImRemapNative(short x, short x0, short x1, short y0, short y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[359])(x, x0, x1, y0, y1); - #else - return (short)((delegate* unmanaged[Cdecl])funcTable[359])(x, x0, x1, y0, y1); - #endif - } - - /// - /// To be documented. - /// - public static short ImRemap(short x, short x0, short x1, short y0, short y1) - { - short ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort ImRemapNative(ushort x, ushort x0, ushort x1, ushort y0, ushort y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[360])(x, x0, x1, y0, y1); - #else - return (ushort)((delegate* unmanaged[Cdecl])funcTable[360])(x, x0, x1, y0, y1); - #endif - } - - /// - /// To be documented. - /// - public static ushort ImRemap(ushort x, ushort x0, ushort x1, ushort y0, ushort y1) - { - ushort ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImRemapNative(int x, int x0, int x1, int y0, int y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[361])(x, x0, x1, y0, y1); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[361])(x, x0, x1, y0, y1); - #endif - } - - /// - /// To be documented. - /// - public static int ImRemap(int x, int x0, int x1, int y0, int y1) - { - int ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImRemapNative(uint x, uint x0, uint x1, uint y0, uint y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[362])(x, x0, x1, y0, y1); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[362])(x, x0, x1, y0, y1); - #endif - } - - /// - /// To be documented. - /// - public static uint ImRemap(uint x, uint x0, uint x1, uint y0, uint y1) - { - uint ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static long ImRemapNative(long x, long x0, long x1, long y0, long y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[363])(x, x0, x1, y0, y1); - #else - return (long)((delegate* unmanaged[Cdecl])funcTable[363])(x, x0, x1, y0, y1); - #endif - } - - /// - /// To be documented. - /// - public static long ImRemap(long x, long x0, long x1, long y0, long y1) - { - long ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ulong ImRemapNative(ulong x, ulong x0, ulong x1, ulong y0, ulong y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[364])(x, x0, x1, y0, y1); - #else - return (ulong)((delegate* unmanaged[Cdecl])funcTable[364])(x, x0, x1, y0, y1); - #endif - } - - /// - /// To be documented. - /// - public static ulong ImRemap(ulong x, ulong x0, ulong x1, ulong y0, ulong y1) - { - ulong ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImRemap01Native(float x, float x0, float x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[365])(x, x0, x1); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[365])(x, x0, x1); - #endif - } - - /// - /// To be documented. - /// - public static float ImRemap01(float x, float x0, float x1) - { - float ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImRemap01Native(double x, double x0, double x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[366])(x, x0, x1); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[366])(x, x0, x1); - #endif - } - - /// - /// To be documented. - /// - public static double ImRemap01(double x, double x0, double x1) - { - double ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImRemap01Native(byte x, byte x0, byte x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[367])(x, x0, x1); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[367])(x, x0, x1); - #endif - } - - /// - /// To be documented. - /// - public static byte ImRemap01(byte x, byte x0, byte x1) - { - byte ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static short ImRemap01Native(short x, short x0, short x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[368])(x, x0, x1); - #else - return (short)((delegate* unmanaged[Cdecl])funcTable[368])(x, x0, x1); - #endif - } - - /// - /// To be documented. - /// - public static short ImRemap01(short x, short x0, short x1) - { - short ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort ImRemap01Native(ushort x, ushort x0, ushort x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[369])(x, x0, x1); - #else - return (ushort)((delegate* unmanaged[Cdecl])funcTable[369])(x, x0, x1); - #endif - } - - /// - /// To be documented. - /// - public static ushort ImRemap01(ushort x, ushort x0, ushort x1) - { - ushort ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImRemap01Native(int x, int x0, int x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[370])(x, x0, x1); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[370])(x, x0, x1); - #endif - } - - /// - /// To be documented. - /// - public static int ImRemap01(int x, int x0, int x1) - { - int ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImRemap01Native(uint x, uint x0, uint x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[371])(x, x0, x1); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[371])(x, x0, x1); - #endif - } - - /// - /// To be documented. - /// - public static uint ImRemap01(uint x, uint x0, uint x1) - { - uint ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static long ImRemap01Native(long x, long x0, long x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[372])(x, x0, x1); - #else - return (long)((delegate* unmanaged[Cdecl])funcTable[372])(x, x0, x1); - #endif - } - - /// - /// To be documented. - /// - public static long ImRemap01(long x, long x0, long x1) - { - long ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ulong ImRemap01Native(ulong x, ulong x0, ulong x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[373])(x, x0, x1); - #else - return (ulong)((delegate* unmanaged[Cdecl])funcTable[373])(x, x0, x1); - #endif - } - - /// - /// To be documented. - /// - public static ulong ImRemap01(ulong x, ulong x0, ulong x1) - { - ulong ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImPosModNative(int l, int r) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[374])(l, r); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[374])(l, r); - #endif - } - - /// - /// To be documented. - /// - public static int ImPosMod(int l, int r) - { - int ret = ImPosModNative(l, r); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImNanNative(double val) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[375])(val); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[375])(val); - #endif - } - - /// - /// To be documented. - /// - public static bool ImNan(double val) - { - byte ret = ImNanNative(val); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImNanOrInfNative(double val) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[376])(val); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[376])(val); - #endif - } - - /// - /// To be documented. - /// - public static bool ImNanOrInf(double val) - { - byte ret = ImNanOrInfNative(val); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImConstrainNanNative(double val) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[377])(val); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[377])(val); - #endif - } - - /// - /// To be documented. - /// - public static double ImConstrainNan(double val) - { - double ret = ImConstrainNanNative(val); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImConstrainInfNative(double val) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[378])(val); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[378])(val); - #endif - } - - /// - /// To be documented. - /// - public static double ImConstrainInf(double val) - { - double ret = ImConstrainInfNative(val); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImConstrainLogNative(double val) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[379])(val); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[379])(val); - #endif - } - - /// - /// To be documented. - /// - public static double ImConstrainLog(double val) - { - double ret = ImConstrainLogNative(val); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImConstrainTimeNative(double val) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[380])(val); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[380])(val); - #endif - } - - /// - /// To be documented. - /// - public static double ImConstrainTime(double val) - { - double ret = ImConstrainTimeNative(val); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImAlmostEqualNative(double v1, double v2, int ulp) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[381])(v1, v2, ulp); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[381])(v1, v2, ulp); - #endif - } - - /// - /// To be documented. - /// - public static bool ImAlmostEqual(double v1, double v2, int ulp) - { - byte ret = ImAlmostEqualNative(v1, v2, ulp); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ImAlmostEqual(double v1, double v2) - { - byte ret = ImAlmostEqualNative(v1, v2, (int)(2)); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImMinArrayNative(float* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[382])(values, count); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[382])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static float ImMinArray(float* values, int count) - { - float ret = ImMinArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static float ImMinArray(ref float values, int count) - { - fixed (float* pvalues = &values) - { - float ret = ImMinArrayNative((float*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMinArrayNative(double* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[383])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[383])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImMinArray(double* values, int count) - { - double ret = ImMinArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImMinArray(ref double values, int count) - { - fixed (double* pvalues = &values) - { - double ret = ImMinArrayNative((double*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImMinArrayNative(byte* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[384])(values, count); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[384])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static byte ImMinArray(byte* values, int count) - { - byte ret = ImMinArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static byte ImMinArray(ref byte values, int count) - { - fixed (byte* pvalues = &values) - { - byte ret = ImMinArrayNative((byte*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static short ImMinArrayNative(short* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[385])(values, count); - #else - return (short)((delegate* unmanaged[Cdecl])funcTable[385])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static short ImMinArray(short* values, int count) - { - short ret = ImMinArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static short ImMinArray(ref short values, int count) - { - fixed (short* pvalues = &values) - { - short ret = ImMinArrayNative((short*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort ImMinArrayNative(ushort* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[386])(values, count); - #else - return (ushort)((delegate* unmanaged[Cdecl])funcTable[386])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static ushort ImMinArray(ushort* values, int count) - { - ushort ret = ImMinArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static ushort ImMinArray(ref ushort values, int count) - { - fixed (ushort* pvalues = &values) - { - ushort ret = ImMinArrayNative((ushort*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImMinArrayNative(int* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[387])(values, count); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[387])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static int ImMinArray(int* values, int count) - { - int ret = ImMinArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static int ImMinArray(ref int values, int count) - { - fixed (int* pvalues = &values) - { - int ret = ImMinArrayNative((int*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImMinArrayNative(uint* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[388])(values, count); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[388])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static uint ImMinArray(uint* values, int count) - { - uint ret = ImMinArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static uint ImMinArray(ref uint values, int count) - { - fixed (uint* pvalues = &values) - { - uint ret = ImMinArrayNative((uint*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static long ImMinArrayNative(long* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[389])(values, count); - #else - return (long)((delegate* unmanaged[Cdecl])funcTable[389])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static long ImMinArray(long* values, int count) - { - long ret = ImMinArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static long ImMinArray(ref long values, int count) - { - fixed (long* pvalues = &values) - { - long ret = ImMinArrayNative((long*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ulong ImMinArrayNative(ulong* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[390])(values, count); - #else - return (ulong)((delegate* unmanaged[Cdecl])funcTable[390])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static ulong ImMinArray(ulong* values, int count) - { - ulong ret = ImMinArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static ulong ImMinArray(ref ulong values, int count) - { - fixed (ulong* pvalues = &values) - { - ulong ret = ImMinArrayNative((ulong*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImMaxArrayNative(float* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[391])(values, count); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[391])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static float ImMaxArray(float* values, int count) - { - float ret = ImMaxArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static float ImMaxArray(ref float values, int count) - { - fixed (float* pvalues = &values) - { - float ret = ImMaxArrayNative((float*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMaxArrayNative(double* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[392])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[392])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImMaxArray(double* values, int count) - { - double ret = ImMaxArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImMaxArray(ref double values, int count) - { - fixed (double* pvalues = &values) - { - double ret = ImMaxArrayNative((double*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImMaxArrayNative(byte* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[393])(values, count); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[393])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static byte ImMaxArray(byte* values, int count) - { - byte ret = ImMaxArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static byte ImMaxArray(ref byte values, int count) - { - fixed (byte* pvalues = &values) - { - byte ret = ImMaxArrayNative((byte*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static short ImMaxArrayNative(short* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[394])(values, count); - #else - return (short)((delegate* unmanaged[Cdecl])funcTable[394])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static short ImMaxArray(short* values, int count) - { - short ret = ImMaxArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static short ImMaxArray(ref short values, int count) - { - fixed (short* pvalues = &values) - { - short ret = ImMaxArrayNative((short*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort ImMaxArrayNative(ushort* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[395])(values, count); - #else - return (ushort)((delegate* unmanaged[Cdecl])funcTable[395])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static ushort ImMaxArray(ushort* values, int count) - { - ushort ret = ImMaxArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static ushort ImMaxArray(ref ushort values, int count) - { - fixed (ushort* pvalues = &values) - { - ushort ret = ImMaxArrayNative((ushort*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImMaxArrayNative(int* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[396])(values, count); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[396])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static int ImMaxArray(int* values, int count) - { - int ret = ImMaxArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static int ImMaxArray(ref int values, int count) - { - fixed (int* pvalues = &values) - { - int ret = ImMaxArrayNative((int*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImMaxArrayNative(uint* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[397])(values, count); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[397])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static uint ImMaxArray(uint* values, int count) - { - uint ret = ImMaxArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static uint ImMaxArray(ref uint values, int count) - { - fixed (uint* pvalues = &values) - { - uint ret = ImMaxArrayNative((uint*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static long ImMaxArrayNative(long* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[398])(values, count); - #else - return (long)((delegate* unmanaged[Cdecl])funcTable[398])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static long ImMaxArray(long* values, int count) - { - long ret = ImMaxArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static long ImMaxArray(ref long values, int count) - { - fixed (long* pvalues = &values) - { - long ret = ImMaxArrayNative((long*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ulong ImMaxArrayNative(ulong* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[399])(values, count); - #else - return (ulong)((delegate* unmanaged[Cdecl])funcTable[399])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static ulong ImMaxArray(ulong* values, int count) - { - ulong ret = ImMaxArrayNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static ulong ImMaxArray(ref ulong values, int count) - { - fixed (ulong* pvalues = &values) - { - ulong ret = ImMaxArrayNative((ulong*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(float* values, int count, float* minOut, float* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[400])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[400])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(float* values, int count, float* minOut, float* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref float values, int count, float* minOut, float* maxOut) - { - fixed (float* pvalues = &values) - { - ImMinMaxArrayNative((float*)pvalues, count, minOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(float* values, int count, ref float minOut, float* maxOut) - { - fixed (float* pminOut = &minOut) - { - ImMinMaxArrayNative(values, count, (float*)pminOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref float values, int count, ref float minOut, float* maxOut) - { - fixed (float* pvalues = &values) - { - fixed (float* pminOut = &minOut) - { - ImMinMaxArrayNative((float*)pvalues, count, (float*)pminOut, maxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(float* values, int count, float* minOut, ref float maxOut) - { - fixed (float* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, minOut, (float*)pmaxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref float values, int count, float* minOut, ref float maxOut) - { - fixed (float* pvalues = &values) - { - fixed (float* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((float*)pvalues, count, minOut, (float*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(float* values, int count, ref float minOut, ref float maxOut) - { - fixed (float* pminOut = &minOut) - { - fixed (float* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, (float*)pminOut, (float*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref float values, int count, ref float minOut, ref float maxOut) - { - fixed (float* pvalues = &values) - { - fixed (float* pminOut = &minOut) - { - fixed (float* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((float*)pvalues, count, (float*)pminOut, (float*)pmaxOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(double* values, int count, double* minOut, double* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[401])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[401])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(double* values, int count, double* minOut, double* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref double values, int count, double* minOut, double* maxOut) - { - fixed (double* pvalues = &values) - { - ImMinMaxArrayNative((double*)pvalues, count, minOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(double* values, int count, ref double minOut, double* maxOut) - { - fixed (double* pminOut = &minOut) - { - ImMinMaxArrayNative(values, count, (double*)pminOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref double values, int count, ref double minOut, double* maxOut) - { - fixed (double* pvalues = &values) - { - fixed (double* pminOut = &minOut) - { - ImMinMaxArrayNative((double*)pvalues, count, (double*)pminOut, maxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(double* values, int count, double* minOut, ref double maxOut) - { - fixed (double* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, minOut, (double*)pmaxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref double values, int count, double* minOut, ref double maxOut) - { - fixed (double* pvalues = &values) - { - fixed (double* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((double*)pvalues, count, minOut, (double*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(double* values, int count, ref double minOut, ref double maxOut) - { - fixed (double* pminOut = &minOut) - { - fixed (double* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, (double*)pminOut, (double*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref double values, int count, ref double minOut, ref double maxOut) - { - fixed (double* pvalues = &values) - { - fixed (double* pminOut = &minOut) - { - fixed (double* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((double*)pvalues, count, (double*)pminOut, (double*)pmaxOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(byte* values, int count, byte* minOut, byte* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[402])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[402])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(byte* values, int count, byte* minOut, byte* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref byte values, int count, byte* minOut, byte* maxOut) - { - fixed (byte* pvalues = &values) - { - ImMinMaxArrayNative((byte*)pvalues, count, minOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(byte* values, int count, ref byte minOut, byte* maxOut) - { - fixed (byte* pminOut = &minOut) - { - ImMinMaxArrayNative(values, count, (byte*)pminOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref byte values, int count, ref byte minOut, byte* maxOut) - { - fixed (byte* pvalues = &values) - { - fixed (byte* pminOut = &minOut) - { - ImMinMaxArrayNative((byte*)pvalues, count, (byte*)pminOut, maxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(byte* values, int count, byte* minOut, ref byte maxOut) - { - fixed (byte* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, minOut, (byte*)pmaxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref byte values, int count, byte* minOut, ref byte maxOut) - { - fixed (byte* pvalues = &values) - { - fixed (byte* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((byte*)pvalues, count, minOut, (byte*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(byte* values, int count, ref byte minOut, ref byte maxOut) - { - fixed (byte* pminOut = &minOut) - { - fixed (byte* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, (byte*)pminOut, (byte*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref byte values, int count, ref byte minOut, ref byte maxOut) - { - fixed (byte* pvalues = &values) - { - fixed (byte* pminOut = &minOut) - { - fixed (byte* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((byte*)pvalues, count, (byte*)pminOut, (byte*)pmaxOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(short* values, int count, short* minOut, short* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[403])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[403])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(short* values, int count, short* minOut, short* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref short values, int count, short* minOut, short* maxOut) - { - fixed (short* pvalues = &values) - { - ImMinMaxArrayNative((short*)pvalues, count, minOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(short* values, int count, ref short minOut, short* maxOut) - { - fixed (short* pminOut = &minOut) - { - ImMinMaxArrayNative(values, count, (short*)pminOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref short values, int count, ref short minOut, short* maxOut) - { - fixed (short* pvalues = &values) - { - fixed (short* pminOut = &minOut) - { - ImMinMaxArrayNative((short*)pvalues, count, (short*)pminOut, maxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(short* values, int count, short* minOut, ref short maxOut) - { - fixed (short* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, minOut, (short*)pmaxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref short values, int count, short* minOut, ref short maxOut) - { - fixed (short* pvalues = &values) - { - fixed (short* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((short*)pvalues, count, minOut, (short*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(short* values, int count, ref short minOut, ref short maxOut) - { - fixed (short* pminOut = &minOut) - { - fixed (short* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, (short*)pminOut, (short*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref short values, int count, ref short minOut, ref short maxOut) - { - fixed (short* pvalues = &values) - { - fixed (short* pminOut = &minOut) - { - fixed (short* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((short*)pvalues, count, (short*)pminOut, (short*)pmaxOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(ushort* values, int count, ushort* minOut, ushort* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[404])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[404])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ushort* values, int count, ushort* minOut, ushort* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref ushort values, int count, ushort* minOut, ushort* maxOut) - { - fixed (ushort* pvalues = &values) - { - ImMinMaxArrayNative((ushort*)pvalues, count, minOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ushort* values, int count, ref ushort minOut, ushort* maxOut) - { - fixed (ushort* pminOut = &minOut) - { - ImMinMaxArrayNative(values, count, (ushort*)pminOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref ushort values, int count, ref ushort minOut, ushort* maxOut) - { - fixed (ushort* pvalues = &values) - { - fixed (ushort* pminOut = &minOut) - { - ImMinMaxArrayNative((ushort*)pvalues, count, (ushort*)pminOut, maxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ushort* values, int count, ushort* minOut, ref ushort maxOut) - { - fixed (ushort* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, minOut, (ushort*)pmaxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref ushort values, int count, ushort* minOut, ref ushort maxOut) - { - fixed (ushort* pvalues = &values) - { - fixed (ushort* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((ushort*)pvalues, count, minOut, (ushort*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ushort* values, int count, ref ushort minOut, ref ushort maxOut) - { - fixed (ushort* pminOut = &minOut) - { - fixed (ushort* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, (ushort*)pminOut, (ushort*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref ushort values, int count, ref ushort minOut, ref ushort maxOut) - { - fixed (ushort* pvalues = &values) - { - fixed (ushort* pminOut = &minOut) - { - fixed (ushort* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((ushort*)pvalues, count, (ushort*)pminOut, (ushort*)pmaxOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(int* values, int count, int* minOut, int* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[405])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[405])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(int* values, int count, int* minOut, int* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref int values, int count, int* minOut, int* maxOut) - { - fixed (int* pvalues = &values) - { - ImMinMaxArrayNative((int*)pvalues, count, minOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(int* values, int count, ref int minOut, int* maxOut) - { - fixed (int* pminOut = &minOut) - { - ImMinMaxArrayNative(values, count, (int*)pminOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref int values, int count, ref int minOut, int* maxOut) - { - fixed (int* pvalues = &values) - { - fixed (int* pminOut = &minOut) - { - ImMinMaxArrayNative((int*)pvalues, count, (int*)pminOut, maxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(int* values, int count, int* minOut, ref int maxOut) - { - fixed (int* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, minOut, (int*)pmaxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref int values, int count, int* minOut, ref int maxOut) - { - fixed (int* pvalues = &values) - { - fixed (int* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((int*)pvalues, count, minOut, (int*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(int* values, int count, ref int minOut, ref int maxOut) - { - fixed (int* pminOut = &minOut) - { - fixed (int* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, (int*)pminOut, (int*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref int values, int count, ref int minOut, ref int maxOut) - { - fixed (int* pvalues = &values) - { - fixed (int* pminOut = &minOut) - { - fixed (int* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((int*)pvalues, count, (int*)pminOut, (int*)pmaxOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(uint* values, int count, uint* minOut, uint* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[406])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[406])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(uint* values, int count, uint* minOut, uint* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref uint values, int count, uint* minOut, uint* maxOut) - { - fixed (uint* pvalues = &values) - { - ImMinMaxArrayNative((uint*)pvalues, count, minOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(uint* values, int count, ref uint minOut, uint* maxOut) - { - fixed (uint* pminOut = &minOut) - { - ImMinMaxArrayNative(values, count, (uint*)pminOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref uint values, int count, ref uint minOut, uint* maxOut) - { - fixed (uint* pvalues = &values) - { - fixed (uint* pminOut = &minOut) - { - ImMinMaxArrayNative((uint*)pvalues, count, (uint*)pminOut, maxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(uint* values, int count, uint* minOut, ref uint maxOut) - { - fixed (uint* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, minOut, (uint*)pmaxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref uint values, int count, uint* minOut, ref uint maxOut) - { - fixed (uint* pvalues = &values) - { - fixed (uint* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((uint*)pvalues, count, minOut, (uint*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(uint* values, int count, ref uint minOut, ref uint maxOut) - { - fixed (uint* pminOut = &minOut) - { - fixed (uint* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, (uint*)pminOut, (uint*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref uint values, int count, ref uint minOut, ref uint maxOut) - { - fixed (uint* pvalues = &values) - { - fixed (uint* pminOut = &minOut) - { - fixed (uint* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((uint*)pvalues, count, (uint*)pminOut, (uint*)pmaxOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(long* values, int count, long* minOut, long* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[407])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[407])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(long* values, int count, long* minOut, long* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref long values, int count, long* minOut, long* maxOut) - { - fixed (long* pvalues = &values) - { - ImMinMaxArrayNative((long*)pvalues, count, minOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(long* values, int count, ref long minOut, long* maxOut) - { - fixed (long* pminOut = &minOut) - { - ImMinMaxArrayNative(values, count, (long*)pminOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref long values, int count, ref long minOut, long* maxOut) - { - fixed (long* pvalues = &values) - { - fixed (long* pminOut = &minOut) - { - ImMinMaxArrayNative((long*)pvalues, count, (long*)pminOut, maxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(long* values, int count, long* minOut, ref long maxOut) - { - fixed (long* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, minOut, (long*)pmaxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref long values, int count, long* minOut, ref long maxOut) - { - fixed (long* pvalues = &values) - { - fixed (long* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((long*)pvalues, count, minOut, (long*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(long* values, int count, ref long minOut, ref long maxOut) - { - fixed (long* pminOut = &minOut) - { - fixed (long* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, (long*)pminOut, (long*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref long values, int count, ref long minOut, ref long maxOut) - { - fixed (long* pvalues = &values) - { - fixed (long* pminOut = &minOut) - { - fixed (long* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((long*)pvalues, count, (long*)pminOut, (long*)pmaxOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(ulong* values, int count, ulong* minOut, ulong* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[408])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[408])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ulong* values, int count, ulong* minOut, ulong* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref ulong values, int count, ulong* minOut, ulong* maxOut) - { - fixed (ulong* pvalues = &values) - { - ImMinMaxArrayNative((ulong*)pvalues, count, minOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ulong* values, int count, ref ulong minOut, ulong* maxOut) - { - fixed (ulong* pminOut = &minOut) - { - ImMinMaxArrayNative(values, count, (ulong*)pminOut, maxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref ulong values, int count, ref ulong minOut, ulong* maxOut) - { - fixed (ulong* pvalues = &values) - { - fixed (ulong* pminOut = &minOut) - { - ImMinMaxArrayNative((ulong*)pvalues, count, (ulong*)pminOut, maxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ulong* values, int count, ulong* minOut, ref ulong maxOut) - { - fixed (ulong* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, minOut, (ulong*)pmaxOut); - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref ulong values, int count, ulong* minOut, ref ulong maxOut) - { - fixed (ulong* pvalues = &values) - { - fixed (ulong* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((ulong*)pvalues, count, minOut, (ulong*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ulong* values, int count, ref ulong minOut, ref ulong maxOut) - { - fixed (ulong* pminOut = &minOut) - { - fixed (ulong* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, (ulong*)pminOut, (ulong*)pmaxOut); - } - } - } - - /// - /// To be documented. - /// - public static void ImMinMaxArray(ref ulong values, int count, ref ulong minOut, ref ulong maxOut) - { - fixed (ulong* pvalues = &values) - { - fixed (ulong* pminOut = &minOut) - { - fixed (ulong* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((ulong*)pvalues, count, (ulong*)pminOut, (ulong*)pmaxOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImSumNative(float* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[409])(values, count); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[409])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static float ImSum(float* values, int count) - { - float ret = ImSumNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static float ImSum(ref float values, int count) - { - fixed (float* pvalues = &values) - { - float ret = ImSumNative((float*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImSumNative(double* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[410])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[410])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImSum(double* values, int count) - { - double ret = ImSumNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImSum(ref double values, int count) - { - fixed (double* pvalues = &values) - { - double ret = ImSumNative((double*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImSumNative(byte* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[411])(values, count); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[411])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static byte ImSum(byte* values, int count) - { - byte ret = ImSumNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static byte ImSum(ref byte values, int count) - { - fixed (byte* pvalues = &values) - { - byte ret = ImSumNative((byte*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static short ImSumNative(short* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[412])(values, count); - #else - return (short)((delegate* unmanaged[Cdecl])funcTable[412])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static short ImSum(short* values, int count) - { - short ret = ImSumNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static short ImSum(ref short values, int count) - { - fixed (short* pvalues = &values) - { - short ret = ImSumNative((short*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort ImSumNative(ushort* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[413])(values, count); - #else - return (ushort)((delegate* unmanaged[Cdecl])funcTable[413])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static ushort ImSum(ushort* values, int count) - { - ushort ret = ImSumNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static ushort ImSum(ref ushort values, int count) - { - fixed (ushort* pvalues = &values) - { - ushort ret = ImSumNative((ushort*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImSumNative(int* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[414])(values, count); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[414])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static int ImSum(int* values, int count) - { - int ret = ImSumNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static int ImSum(ref int values, int count) - { - fixed (int* pvalues = &values) - { - int ret = ImSumNative((int*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImSumNative(uint* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[415])(values, count); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[415])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static uint ImSum(uint* values, int count) - { - uint ret = ImSumNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static uint ImSum(ref uint values, int count) - { - fixed (uint* pvalues = &values) - { - uint ret = ImSumNative((uint*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static long ImSumNative(long* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[416])(values, count); - #else - return (long)((delegate* unmanaged[Cdecl])funcTable[416])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static long ImSum(long* values, int count) - { - long ret = ImSumNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static long ImSum(ref long values, int count) - { - fixed (long* pvalues = &values) - { - long ret = ImSumNative((long*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ulong ImSumNative(ulong* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[417])(values, count); - #else - return (ulong)((delegate* unmanaged[Cdecl])funcTable[417])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static ulong ImSum(ulong* values, int count) - { - ulong ret = ImSumNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static ulong ImSum(ref ulong values, int count) - { - fixed (ulong* pvalues = &values) - { - ulong ret = ImSumNative((ulong*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(float* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[418])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[418])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImMean(float* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImMean(ref float values, int count) - { - fixed (float* pvalues = &values) - { - double ret = ImMeanNative((float*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(double* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[419])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[419])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImMean(double* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImMean(ref double values, int count) - { - fixed (double* pvalues = &values) - { - double ret = ImMeanNative((double*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(byte* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[420])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[420])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImMean(byte* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImMean(ref byte values, int count) - { - fixed (byte* pvalues = &values) - { - double ret = ImMeanNative((byte*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(short* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[421])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[421])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImMean(short* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImMean(ref short values, int count) - { - fixed (short* pvalues = &values) - { - double ret = ImMeanNative((short*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(ushort* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[422])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[422])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImMean(ushort* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImMean(ref ushort values, int count) - { - fixed (ushort* pvalues = &values) - { - double ret = ImMeanNative((ushort*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(int* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[423])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[423])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImMean(int* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImMean(ref int values, int count) - { - fixed (int* pvalues = &values) - { - double ret = ImMeanNative((int*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(uint* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[424])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[424])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImMean(uint* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImMean(ref uint values, int count) - { - fixed (uint* pvalues = &values) - { - double ret = ImMeanNative((uint*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(long* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[425])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[425])((nint)values, count); - #endif - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.132.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.132.cs deleted file mode 100644 index 86bcd6bdb..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.132.cs +++ /dev/null @@ -1,5032 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static double ImMean(long* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImMean(ref long values, int count) - { - fixed (long* pvalues = &values) - { - double ret = ImMeanNative((long*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(ulong* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[426])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[426])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImMean(ulong* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImMean(ref ulong values, int count) - { - fixed (ulong* pvalues = &values) - { - double ret = ImMeanNative((ulong*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(float* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[427])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[427])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImStdDev(float* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImStdDev(ref float values, int count) - { - fixed (float* pvalues = &values) - { - double ret = ImStdDevNative((float*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(double* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[428])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[428])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImStdDev(double* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImStdDev(ref double values, int count) - { - fixed (double* pvalues = &values) - { - double ret = ImStdDevNative((double*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(byte* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[429])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[429])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImStdDev(byte* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImStdDev(ref byte values, int count) - { - fixed (byte* pvalues = &values) - { - double ret = ImStdDevNative((byte*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(short* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[430])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[430])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImStdDev(short* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImStdDev(ref short values, int count) - { - fixed (short* pvalues = &values) - { - double ret = ImStdDevNative((short*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(ushort* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[431])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[431])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImStdDev(ushort* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImStdDev(ref ushort values, int count) - { - fixed (ushort* pvalues = &values) - { - double ret = ImStdDevNative((ushort*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(int* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[432])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[432])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImStdDev(int* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImStdDev(ref int values, int count) - { - fixed (int* pvalues = &values) - { - double ret = ImStdDevNative((int*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(uint* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[433])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[433])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImStdDev(uint* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImStdDev(ref uint values, int count) - { - fixed (uint* pvalues = &values) - { - double ret = ImStdDevNative((uint*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(long* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[434])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[434])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImStdDev(long* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImStdDev(ref long values, int count) - { - fixed (long* pvalues = &values) - { - double ret = ImStdDevNative((long*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(ulong* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[435])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[435])((nint)values, count); - #endif - } - - /// - /// To be documented. - /// - public static double ImStdDev(ulong* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// - /// To be documented. - /// - public static double ImStdDev(ref ulong values, int count) - { - fixed (ulong* pvalues = &values) - { - double ret = ImStdDevNative((ulong*)pvalues, count); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImMixU32Native(uint a, uint b, uint s) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[436])(a, b, s); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[436])(a, b, s); - #endif - } - - /// - /// To be documented. - /// - public static uint ImMixU32(uint a, uint b, uint s) - { - uint ret = ImMixU32Native(a, b, s); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImLerpU32Native(uint* colors, int size, float t) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[437])(colors, size, t); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[437])((nint)colors, size, t); - #endif - } - - /// - /// To be documented. - /// - public static uint ImLerpU32(uint* colors, int size, float t) - { - uint ret = ImLerpU32Native(colors, size, t); - return ret; - } - - /// - /// To be documented. - /// - public static uint ImLerpU32(ref uint colors, int size, float t) - { - fixed (uint* pcolors = &colors) - { - uint ret = ImLerpU32Native((uint*)pcolors, size, t); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImAlphaU32Native(uint col, float alpha) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[438])(col, alpha); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[438])(col, alpha); - #endif - } - - /// - /// To be documented. - /// - public static uint ImAlphaU32(uint col, float alpha) - { - uint ret = ImAlphaU32Native(col, alpha); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(float minA, float maxA, float minB, float maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[439])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[439])(minA, maxA, minB, maxB); - #endif - } - - /// - /// To be documented. - /// - public static bool ImOverlaps(float minA, float maxA, float minB, float maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(double minA, double maxA, double minB, double maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[440])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[440])(minA, maxA, minB, maxB); - #endif - } - - /// - /// To be documented. - /// - public static bool ImOverlaps(double minA, double maxA, double minB, double maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(byte minA, byte maxA, byte minB, byte maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[441])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[441])(minA, maxA, minB, maxB); - #endif - } - - /// - /// To be documented. - /// - public static bool ImOverlaps(byte minA, byte maxA, byte minB, byte maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(short minA, short maxA, short minB, short maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[442])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[442])(minA, maxA, minB, maxB); - #endif - } - - /// - /// To be documented. - /// - public static bool ImOverlaps(short minA, short maxA, short minB, short maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(ushort minA, ushort maxA, ushort minB, ushort maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[443])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[443])(minA, maxA, minB, maxB); - #endif - } - - /// - /// To be documented. - /// - public static bool ImOverlaps(ushort minA, ushort maxA, ushort minB, ushort maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(int minA, int maxA, int minB, int maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[444])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[444])(minA, maxA, minB, maxB); - #endif - } - - /// - /// To be documented. - /// - public static bool ImOverlaps(int minA, int maxA, int minB, int maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(uint minA, uint maxA, uint minB, uint maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[445])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[445])(minA, maxA, minB, maxB); - #endif - } - - /// - /// To be documented. - /// - public static bool ImOverlaps(uint minA, uint maxA, uint minB, uint maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(long minA, long maxA, long minB, long maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[446])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[446])(minA, maxA, minB, maxB); - #endif - } - - /// - /// To be documented. - /// - public static bool ImOverlaps(long minA, long maxA, long minB, long maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(ulong minA, ulong maxA, ulong minB, ulong maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[447])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[447])(minA, maxA, minB, maxB); - #endif - } - - /// - /// To be documented. - /// - public static bool ImOverlaps(ulong minA, ulong maxA, ulong minB, ulong maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotDateTimeSpec* ImPlotDateTimeSpecNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[448])(); - #else - return (ImPlotDateTimeSpec*)((delegate* unmanaged[Cdecl])funcTable[448])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotDateTimeSpecPtr ImPlotDateTimeSpec() - { - ImPlotDateTimeSpecPtr ret = ImPlotDateTimeSpecNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotDateTimeSpec* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[449])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[449])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotDateTimeSpecPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotDateTimeSpec self) - { - fixed (ImPlotDateTimeSpec* pself = &self) - { - DestroyNative((ImPlotDateTimeSpec*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotDateTimeSpec* ImPlotDateTimeSpecNative(ImPlotDateFmt dateFmt, ImPlotTimeFmt timeFmt, byte use24HrClk, byte useIso8601) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[450])(dateFmt, timeFmt, use24HrClk, useIso8601); - #else - return (ImPlotDateTimeSpec*)((delegate* unmanaged[Cdecl])funcTable[450])(dateFmt, timeFmt, use24HrClk, useIso8601); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotDateTimeSpecPtr ImPlotDateTimeSpec(ImPlotDateFmt dateFmt, ImPlotTimeFmt timeFmt, bool use24HrClk, bool useIso8601) - { - ImPlotDateTimeSpecPtr ret = ImPlotDateTimeSpecNative(dateFmt, timeFmt, use24HrClk ? (byte)1 : (byte)0, useIso8601 ? (byte)1 : (byte)0); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotDateTimeSpecPtr ImPlotDateTimeSpec(ImPlotDateFmt dateFmt, ImPlotTimeFmt timeFmt, bool use24HrClk) - { - ImPlotDateTimeSpecPtr ret = ImPlotDateTimeSpecNative(dateFmt, timeFmt, use24HrClk ? (byte)1 : (byte)0, (byte)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotDateTimeSpecPtr ImPlotDateTimeSpec(ImPlotDateFmt dateFmt, ImPlotTimeFmt timeFmt) - { - ImPlotDateTimeSpecPtr ret = ImPlotDateTimeSpecNative(dateFmt, timeFmt, (byte)(0), (byte)(0)); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotTime* ImPlotTimeNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[451])(); - #else - return (ImPlotTime*)((delegate* unmanaged[Cdecl])funcTable[451])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTimePtr ImPlotTime() - { - ImPlotTimePtr ret = ImPlotTimeNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotTime* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[452])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[452])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotTimePtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotTime self) - { - fixed (ImPlotTime* pself = &self) - { - DestroyNative((ImPlotTime*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotTime* ImPlotTimeNative(long s, int us) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[453])(s, us); - #else - return (ImPlotTime*)((delegate* unmanaged[Cdecl])funcTable[453])(s, us); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTimePtr ImPlotTime(long s, int us) - { - ImPlotTimePtr ret = ImPlotTimeNative(s, us); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotTimePtr ImPlotTime(long s) - { - ImPlotTimePtr ret = ImPlotTimeNative(s, (int)(0)); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RollOverNative(ImPlotTime* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[454])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[454])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void RollOver(ImPlotTimePtr self) - { - RollOverNative(self); - } - - /// - /// To be documented. - /// - public static void RollOver(ref ImPlotTime self) - { - fixed (ImPlotTime* pself = &self) - { - RollOverNative((ImPlotTime*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ToDoubleNative(ImPlotTime* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[455])(self); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[455])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static double ToDouble(ImPlotTimePtr self) - { - double ret = ToDoubleNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static double ToDouble(ref ImPlotTime self) - { - fixed (ImPlotTime* pself = &self) - { - double ret = ToDoubleNative((ImPlotTime*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FromDoubleNative(ImPlotTime* pOut, double t) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[456])(pOut, t); - #else - ((delegate* unmanaged[Cdecl])funcTable[456])((nint)pOut, t); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTime FromDouble(double t) - { - ImPlotTime ret; - FromDoubleNative(&ret, t); - return ret; - } - - /// - /// To be documented. - /// - public static void FromDouble(ImPlotTimePtr pOut, double t) - { - FromDoubleNative(pOut, t); - } - - /// - /// To be documented. - /// - public static void FromDouble(ref ImPlotTime pOut, double t) - { - fixed (ImPlotTime* ppOut = &pOut) - { - FromDoubleNative((ImPlotTime*)ppOut, t); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotColormapData* ImPlotColormapDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[457])(); - #else - return (ImPlotColormapData*)((delegate* unmanaged[Cdecl])funcTable[457])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotColormapDataPtr ImPlotColormapData() - { - ImPlotColormapDataPtr ret = ImPlotColormapDataNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotColormapData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[458])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[458])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotColormapDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotColormapData self) - { - fixed (ImPlotColormapData* pself = &self) - { - DestroyNative((ImPlotColormapData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int AppendNative(ImPlotColormapData* self, byte* name, uint* keys, int count, byte qual) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[459])(self, name, keys, count, qual); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[459])((nint)self, (nint)name, (nint)keys, count, qual); - #endif - } - - /// - /// To be documented. - /// - public static int Append(ImPlotColormapDataPtr self, byte* name, uint* keys, int count, bool qual) - { - int ret = AppendNative(self, name, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - - /// - /// To be documented. - /// - public static int Append(ref ImPlotColormapData self, byte* name, uint* keys, int count, bool qual) - { - fixed (ImPlotColormapData* pself = &self) - { - int ret = AppendNative((ImPlotColormapData*)pself, name, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public static int Append(ImPlotColormapDataPtr self, ref byte name, uint* keys, int count, bool qual) - { - fixed (byte* pname = &name) - { - int ret = AppendNative(self, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public static int Append(ImPlotColormapDataPtr self, ReadOnlySpan name, uint* keys, int count, bool qual) - { - fixed (byte* pname = name) - { - int ret = AppendNative(self, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public static int Append(ImPlotColormapDataPtr self, string name, uint* keys, int count, bool qual) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = AppendNative(self, pStr0, keys, count, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static int Append(ref ImPlotColormapData self, ref byte name, uint* keys, int count, bool qual) - { - fixed (ImPlotColormapData* pself = &self) - { - fixed (byte* pname = &name) - { - int ret = AppendNative((ImPlotColormapData*)pself, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int Append(ref ImPlotColormapData self, ReadOnlySpan name, uint* keys, int count, bool qual) - { - fixed (ImPlotColormapData* pself = &self) - { - fixed (byte* pname = name) - { - int ret = AppendNative((ImPlotColormapData*)pself, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int Append(ref ImPlotColormapData self, string name, uint* keys, int count, bool qual) - { - fixed (ImPlotColormapData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = AppendNative((ImPlotColormapData*)pself, pStr0, keys, count, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int Append(ImPlotColormapDataPtr self, byte* name, ref uint keys, int count, bool qual) - { - fixed (uint* pkeys = &keys) - { - int ret = AppendNative(self, name, (uint*)pkeys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public static int Append(ref ImPlotColormapData self, byte* name, ref uint keys, int count, bool qual) - { - fixed (ImPlotColormapData* pself = &self) - { - fixed (uint* pkeys = &keys) - { - int ret = AppendNative((ImPlotColormapData*)pself, name, (uint*)pkeys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int Append(ImPlotColormapDataPtr self, ref byte name, ref uint keys, int count, bool qual) - { - fixed (byte* pname = &name) - { - fixed (uint* pkeys = &keys) - { - int ret = AppendNative(self, (byte*)pname, (uint*)pkeys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int Append(ImPlotColormapDataPtr self, ReadOnlySpan name, ref uint keys, int count, bool qual) - { - fixed (byte* pname = name) - { - fixed (uint* pkeys = &keys) - { - int ret = AppendNative(self, (byte*)pname, (uint*)pkeys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static int Append(ImPlotColormapDataPtr self, string name, ref uint keys, int count, bool qual) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pkeys = &keys) - { - int ret = AppendNative(self, pStr0, (uint*)pkeys, count, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - public static int Append(ref ImPlotColormapData self, ref byte name, ref uint keys, int count, bool qual) - { - fixed (ImPlotColormapData* pself = &self) - { - fixed (byte* pname = &name) - { - fixed (uint* pkeys = &keys) - { - int ret = AppendNative((ImPlotColormapData*)pself, (byte*)pname, (uint*)pkeys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int Append(ref ImPlotColormapData self, ReadOnlySpan name, ref uint keys, int count, bool qual) - { - fixed (ImPlotColormapData* pself = &self) - { - fixed (byte* pname = name) - { - fixed (uint* pkeys = &keys) - { - int ret = AppendNative((ImPlotColormapData*)pself, (byte*)pname, (uint*)pkeys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public static int Append(ref ImPlotColormapData self, string name, ref uint keys, int count, bool qual) - { - fixed (ImPlotColormapData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pkeys = &keys) - { - int ret = AppendNative((ImPlotColormapData*)pself, pStr0, (uint*)pkeys, count, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _AppendTableNative(ImPlotColormapData* self, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[460])(self, cmap); - #else - ((delegate* unmanaged[Cdecl])funcTable[460])((nint)self, cmap); - #endif - } - - /// - /// To be documented. - /// - public static void _AppendTable(ImPlotColormapDataPtr self, ImPlotColormap cmap) - { - _AppendTableNative(self, cmap); - } - - /// - /// To be documented. - /// - public static void _AppendTable(ref ImPlotColormapData self, ImPlotColormap cmap) - { - fixed (ImPlotColormapData* pself = &self) - { - _AppendTableNative((ImPlotColormapData*)pself, cmap); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RebuildTablesNative(ImPlotColormapData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[461])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[461])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void RebuildTables(ImPlotColormapDataPtr self) - { - RebuildTablesNative(self); - } - - /// - /// To be documented. - /// - public static void RebuildTables(ref ImPlotColormapData self) - { - fixed (ImPlotColormapData* pself = &self) - { - RebuildTablesNative((ImPlotColormapData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsQualNative(ImPlotColormapData* self, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[462])(self, cmap); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[462])((nint)self, cmap); - #endif - } - - /// - /// To be documented. - /// - public static bool IsQual(ImPlotColormapDataPtr self, ImPlotColormap cmap) - { - byte ret = IsQualNative(self, cmap); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsQual(ref ImPlotColormapData self, ImPlotColormap cmap) - { - fixed (ImPlotColormapData* pself = &self) - { - byte ret = IsQualNative((ImPlotColormapData*)pself, cmap); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetNameNative(ImPlotColormapData* self, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[463])(self, cmap); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[463])((nint)self, cmap); - #endif - } - - /// - /// To be documented. - /// - public static byte* GetName(ImPlotColormapDataPtr self, ImPlotColormap cmap) - { - byte* ret = GetNameNative(self, cmap); - return ret; - } - - /// - /// To be documented. - /// - public static string GetNameS(ImPlotColormapDataPtr self, ImPlotColormap cmap) - { - string ret = Utils.DecodeStringUTF8(GetNameNative(self, cmap)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* GetName(ref ImPlotColormapData self, ImPlotColormap cmap) - { - fixed (ImPlotColormapData* pself = &self) - { - byte* ret = GetNameNative((ImPlotColormapData*)pself, cmap); - return ret; - } - } - - /// - /// To be documented. - /// - public static string GetNameS(ref ImPlotColormapData self, ImPlotColormap cmap) - { - fixed (ImPlotColormapData* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetNameNative((ImPlotColormapData*)pself, cmap)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotColormap GetIndexNative(ImPlotColormapData* self, byte* name) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[464])(self, name); - #else - return (ImPlotColormap)((delegate* unmanaged[Cdecl])funcTable[464])((nint)self, (nint)name); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotColormap GetIndex(ImPlotColormapDataPtr self, byte* name) - { - ImPlotColormap ret = GetIndexNative(self, name); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotColormap GetIndex(ref ImPlotColormapData self, byte* name) - { - fixed (ImPlotColormapData* pself = &self) - { - ImPlotColormap ret = GetIndexNative((ImPlotColormapData*)pself, name); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap GetIndex(ImPlotColormapDataPtr self, ref byte name) - { - fixed (byte* pname = &name) - { - ImPlotColormap ret = GetIndexNative(self, (byte*)pname); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap GetIndex(ImPlotColormapDataPtr self, ReadOnlySpan name) - { - fixed (byte* pname = name) - { - ImPlotColormap ret = GetIndexNative(self, (byte*)pname); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap GetIndex(ImPlotColormapDataPtr self, string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotColormap ret = GetIndexNative(self, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotColormap GetIndex(ref ImPlotColormapData self, ref byte name) - { - fixed (ImPlotColormapData* pself = &self) - { - fixed (byte* pname = &name) - { - ImPlotColormap ret = GetIndexNative((ImPlotColormapData*)pself, (byte*)pname); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap GetIndex(ref ImPlotColormapData self, ReadOnlySpan name) - { - fixed (ImPlotColormapData* pself = &self) - { - fixed (byte* pname = name) - { - ImPlotColormap ret = GetIndexNative((ImPlotColormapData*)pself, (byte*)pname); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImPlotColormap GetIndex(ref ImPlotColormapData self, string name) - { - fixed (ImPlotColormapData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotColormap ret = GetIndexNative((ImPlotColormapData*)pself, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint* GetKeysNative(ImPlotColormapData* self, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[465])(self, cmap); - #else - return (uint*)((delegate* unmanaged[Cdecl])funcTable[465])((nint)self, cmap); - #endif - } - - /// - /// To be documented. - /// - public static uint* GetKeys(ImPlotColormapDataPtr self, ImPlotColormap cmap) - { - uint* ret = GetKeysNative(self, cmap); - return ret; - } - - /// - /// To be documented. - /// - public static uint* GetKeys(ref ImPlotColormapData self, ImPlotColormap cmap) - { - fixed (ImPlotColormapData* pself = &self) - { - uint* ret = GetKeysNative((ImPlotColormapData*)pself, cmap); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetKeyCountNative(ImPlotColormapData* self, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[466])(self, cmap); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[466])((nint)self, cmap); - #endif - } - - /// - /// To be documented. - /// - public static int GetKeyCount(ImPlotColormapDataPtr self, ImPlotColormap cmap) - { - int ret = GetKeyCountNative(self, cmap); - return ret; - } - - /// - /// To be documented. - /// - public static int GetKeyCount(ref ImPlotColormapData self, ImPlotColormap cmap) - { - fixed (ImPlotColormapData* pself = &self) - { - int ret = GetKeyCountNative((ImPlotColormapData*)pself, cmap); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetKeyColorNative(ImPlotColormapData* self, ImPlotColormap cmap, int idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[467])(self, cmap, idx); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[467])((nint)self, cmap, idx); - #endif - } - - /// - /// To be documented. - /// - public static uint GetKeyColor(ImPlotColormapDataPtr self, ImPlotColormap cmap, int idx) - { - uint ret = GetKeyColorNative(self, cmap, idx); - return ret; - } - - /// - /// To be documented. - /// - public static uint GetKeyColor(ref ImPlotColormapData self, ImPlotColormap cmap, int idx) - { - fixed (ImPlotColormapData* pself = &self) - { - uint ret = GetKeyColorNative((ImPlotColormapData*)pself, cmap, idx); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetKeyColorNative(ImPlotColormapData* self, ImPlotColormap cmap, int idx, uint value) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[468])(self, cmap, idx, value); - #else - ((delegate* unmanaged[Cdecl])funcTable[468])((nint)self, cmap, idx, value); - #endif - } - - /// - /// To be documented. - /// - public static void SetKeyColor(ImPlotColormapDataPtr self, ImPlotColormap cmap, int idx, uint value) - { - SetKeyColorNative(self, cmap, idx, value); - } - - /// - /// To be documented. - /// - public static void SetKeyColor(ref ImPlotColormapData self, ImPlotColormap cmap, int idx, uint value) - { - fixed (ImPlotColormapData* pself = &self) - { - SetKeyColorNative((ImPlotColormapData*)pself, cmap, idx, value); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint* GetTableNative(ImPlotColormapData* self, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[469])(self, cmap); - #else - return (uint*)((delegate* unmanaged[Cdecl])funcTable[469])((nint)self, cmap); - #endif - } - - /// - /// To be documented. - /// - public static uint* GetTable(ImPlotColormapDataPtr self, ImPlotColormap cmap) - { - uint* ret = GetTableNative(self, cmap); - return ret; - } - - /// - /// To be documented. - /// - public static uint* GetTable(ref ImPlotColormapData self, ImPlotColormap cmap) - { - fixed (ImPlotColormapData* pself = &self) - { - uint* ret = GetTableNative((ImPlotColormapData*)pself, cmap); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetTableSizeNative(ImPlotColormapData* self, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[470])(self, cmap); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[470])((nint)self, cmap); - #endif - } - - /// - /// To be documented. - /// - public static int GetTableSize(ImPlotColormapDataPtr self, ImPlotColormap cmap) - { - int ret = GetTableSizeNative(self, cmap); - return ret; - } - - /// - /// To be documented. - /// - public static int GetTableSize(ref ImPlotColormapData self, ImPlotColormap cmap) - { - fixed (ImPlotColormapData* pself = &self) - { - int ret = GetTableSizeNative((ImPlotColormapData*)pself, cmap); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetTableColorNative(ImPlotColormapData* self, ImPlotColormap cmap, int idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[471])(self, cmap, idx); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[471])((nint)self, cmap, idx); - #endif - } - - /// - /// To be documented. - /// - public static uint GetTableColor(ImPlotColormapDataPtr self, ImPlotColormap cmap, int idx) - { - uint ret = GetTableColorNative(self, cmap, idx); - return ret; - } - - /// - /// To be documented. - /// - public static uint GetTableColor(ref ImPlotColormapData self, ImPlotColormap cmap, int idx) - { - fixed (ImPlotColormapData* pself = &self) - { - uint ret = GetTableColorNative((ImPlotColormapData*)pself, cmap, idx); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint LerpTableNative(ImPlotColormapData* self, ImPlotColormap cmap, float t) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[472])(self, cmap, t); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[472])((nint)self, cmap, t); - #endif - } - - /// - /// To be documented. - /// - public static uint LerpTable(ImPlotColormapDataPtr self, ImPlotColormap cmap, float t) - { - uint ret = LerpTableNative(self, cmap, t); - return ret; - } - - /// - /// To be documented. - /// - public static uint LerpTable(ref ImPlotColormapData self, ImPlotColormap cmap, float t) - { - fixed (ImPlotColormapData* pself = &self) - { - uint ret = LerpTableNative((ImPlotColormapData*)pself, cmap, t); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotPointError* ImPlotPointErrorNative(double x, double y, double neg, double pos) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[473])(x, y, neg, pos); - #else - return (ImPlotPointError*)((delegate* unmanaged[Cdecl])funcTable[473])(x, y, neg, pos); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotPointErrorPtr ImPlotPointError(double x, double y, double neg, double pos) - { - ImPlotPointErrorPtr ret = ImPlotPointErrorNative(x, y, neg, pos); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotPointError* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[474])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[474])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotPointErrorPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotPointError self) - { - fixed (ImPlotPointError* pself = &self) - { - DestroyNative((ImPlotPointError*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotAnnotationCollection* ImPlotAnnotationCollectionNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[475])(); - #else - return (ImPlotAnnotationCollection*)((delegate* unmanaged[Cdecl])funcTable[475])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotAnnotationCollectionPtr ImPlotAnnotationCollection() - { - ImPlotAnnotationCollectionPtr ret = ImPlotAnnotationCollectionNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotAnnotationCollection* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[476])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[476])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotAnnotationCollectionPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotAnnotationCollection self) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - DestroyNative((ImPlotAnnotationCollection*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AppendVNative(ImPlotAnnotationCollection* self, Vector2 pos, Vector2 off, uint bg, uint fg, byte clamp, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[477])(self, pos, off, bg, fg, clamp, fmt, args); - #else - ((delegate* unmanaged[Cdecl])funcTable[477])((nint)self, pos, off, bg, fg, clamp, (nint)fmt, args); - #endif - } - - /// - /// To be documented. - /// - public static void AppendV(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt, nuint args) - { - AppendVNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt, args); - } - - /// - /// To be documented. - /// - public static void AppendV(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt, nuint args) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - AppendVNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt, args); - } - } - - /// - /// To be documented. - /// - public static void AppendV(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - AppendVNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); - } - } - - /// - /// To be documented. - /// - public static void AppendV(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - AppendVNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); - } - } - - /// - /// To be documented. - /// - public static void AppendV(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AppendVNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AppendV(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt, nuint args) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - fixed (byte* pfmt = &fmt) - { - AppendVNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); - } - } - } - - /// - /// To be documented. - /// - public static void AppendV(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan fmt, nuint args) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - fixed (byte* pfmt = fmt) - { - AppendVNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); - } - } - } - - /// - /// To be documented. - /// - public static void AppendV(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt, nuint args) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AppendVNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AppendNative(ImPlotAnnotationCollection* self, Vector2 pos, Vector2 off, uint bg, uint fg, byte clamp, byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[478])(self, pos, off, bg, fg, clamp, fmt); - #else - ((delegate* unmanaged[Cdecl])funcTable[478])((nint)self, pos, off, bg, fg, clamp, (nint)fmt); - #endif - } - - /// - /// To be documented. - /// - public static void Append(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt) - { - AppendNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt); - } - - /// - /// To be documented. - /// - public static void Append(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - AppendNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt); - } - } - - /// - /// To be documented. - /// - public static void Append(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - AppendNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); - } - } - - /// - /// To be documented. - /// - public static void Append(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan fmt) - { - fixed (byte* pfmt = fmt) - { - AppendNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); - } - } - - /// - /// To be documented. - /// - public static void Append(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AppendNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void Append(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - fixed (byte* pfmt = &fmt) - { - AppendNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); - } - } - } - - /// - /// To be documented. - /// - public static void Append(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan fmt) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - fixed (byte* pfmt = fmt) - { - AppendNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); - } - } - } - - /// - /// To be documented. - /// - public static void Append(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AppendNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetTextNative(ImPlotAnnotationCollection* self, int idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[479])(self, idx); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[479])((nint)self, idx); - #endif - } - - /// - /// To be documented. - /// - public static byte* GetText(ImPlotAnnotationCollectionPtr self, int idx) - { - byte* ret = GetTextNative(self, idx); - return ret; - } - - /// - /// To be documented. - /// - public static string GetTextS(ImPlotAnnotationCollectionPtr self, int idx) - { - string ret = Utils.DecodeStringUTF8(GetTextNative(self, idx)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* GetText(ref ImPlotAnnotationCollection self, int idx) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - byte* ret = GetTextNative((ImPlotAnnotationCollection*)pself, idx); - return ret; - } - } - - /// - /// To be documented. - /// - public static string GetTextS(ref ImPlotAnnotationCollection self, int idx) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetTextNative((ImPlotAnnotationCollection*)pself, idx)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotAnnotationCollection* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[480])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[480])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Reset(ImPlotAnnotationCollectionPtr self) - { - ResetNative(self); - } - - /// - /// To be documented. - /// - public static void Reset(ref ImPlotAnnotationCollection self) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - ResetNative((ImPlotAnnotationCollection*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotTagCollection* ImPlotTagCollectionNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[481])(); - #else - return (ImPlotTagCollection*)((delegate* unmanaged[Cdecl])funcTable[481])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTagCollectionPtr ImPlotTagCollection() - { - ImPlotTagCollectionPtr ret = ImPlotTagCollectionNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotTagCollection* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[482])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[482])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotTagCollectionPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotTagCollection self) - { - fixed (ImPlotTagCollection* pself = &self) - { - DestroyNative((ImPlotTagCollection*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AppendVNative(ImPlotTagCollection* self, ImAxis axis, double value, uint bg, uint fg, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[483])(self, axis, value, bg, fg, fmt, args); - #else - ((delegate* unmanaged[Cdecl])funcTable[483])((nint)self, axis, value, bg, fg, (nint)fmt, args); - #endif - } - - /// - /// To be documented. - /// - public static void AppendV(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, byte* fmt, nuint args) - { - AppendVNative(self, axis, value, bg, fg, fmt, args); - } - - /// - /// To be documented. - /// - public static void AppendV(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, byte* fmt, nuint args) - { - fixed (ImPlotTagCollection* pself = &self) - { - AppendVNative((ImPlotTagCollection*)pself, axis, value, bg, fg, fmt, args); - } - } - - /// - /// To be documented. - /// - public static void AppendV(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - AppendVNative(self, axis, value, bg, fg, (byte*)pfmt, args); - } - } - - /// - /// To be documented. - /// - public static void AppendV(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - AppendVNative(self, axis, value, bg, fg, (byte*)pfmt, args); - } - } - - /// - /// To be documented. - /// - public static void AppendV(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AppendVNative(self, axis, value, bg, fg, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AppendV(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, ref byte fmt, nuint args) - { - fixed (ImPlotTagCollection* pself = &self) - { - fixed (byte* pfmt = &fmt) - { - AppendVNative((ImPlotTagCollection*)pself, axis, value, bg, fg, (byte*)pfmt, args); - } - } - } - - /// - /// To be documented. - /// - public static void AppendV(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan fmt, nuint args) - { - fixed (ImPlotTagCollection* pself = &self) - { - fixed (byte* pfmt = fmt) - { - AppendVNative((ImPlotTagCollection*)pself, axis, value, bg, fg, (byte*)pfmt, args); - } - } - } - - /// - /// To be documented. - /// - public static void AppendV(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, string fmt, nuint args) - { - fixed (ImPlotTagCollection* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AppendVNative((ImPlotTagCollection*)pself, axis, value, bg, fg, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AppendNative(ImPlotTagCollection* self, ImAxis axis, double value, uint bg, uint fg, byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[484])(self, axis, value, bg, fg, fmt); - #else - ((delegate* unmanaged[Cdecl])funcTable[484])((nint)self, axis, value, bg, fg, (nint)fmt); - #endif - } - - /// - /// To be documented. - /// - public static void Append(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, byte* fmt) - { - AppendNative(self, axis, value, bg, fg, fmt); - } - - /// - /// To be documented. - /// - public static void Append(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, byte* fmt) - { - fixed (ImPlotTagCollection* pself = &self) - { - AppendNative((ImPlotTagCollection*)pself, axis, value, bg, fg, fmt); - } - } - - /// - /// To be documented. - /// - public static void Append(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - AppendNative(self, axis, value, bg, fg, (byte*)pfmt); - } - } - - /// - /// To be documented. - /// - public static void Append(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan fmt) - { - fixed (byte* pfmt = fmt) - { - AppendNative(self, axis, value, bg, fg, (byte*)pfmt); - } - } - - /// - /// To be documented. - /// - public static void Append(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AppendNative(self, axis, value, bg, fg, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void Append(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, ref byte fmt) - { - fixed (ImPlotTagCollection* pself = &self) - { - fixed (byte* pfmt = &fmt) - { - AppendNative((ImPlotTagCollection*)pself, axis, value, bg, fg, (byte*)pfmt); - } - } - } - - /// - /// To be documented. - /// - public static void Append(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan fmt) - { - fixed (ImPlotTagCollection* pself = &self) - { - fixed (byte* pfmt = fmt) - { - AppendNative((ImPlotTagCollection*)pself, axis, value, bg, fg, (byte*)pfmt); - } - } - } - - /// - /// To be documented. - /// - public static void Append(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, string fmt) - { - fixed (ImPlotTagCollection* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AppendNative((ImPlotTagCollection*)pself, axis, value, bg, fg, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetTextNative(ImPlotTagCollection* self, int idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[485])(self, idx); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[485])((nint)self, idx); - #endif - } - - /// - /// To be documented. - /// - public static byte* GetText(ImPlotTagCollectionPtr self, int idx) - { - byte* ret = GetTextNative(self, idx); - return ret; - } - - /// - /// To be documented. - /// - public static string GetTextS(ImPlotTagCollectionPtr self, int idx) - { - string ret = Utils.DecodeStringUTF8(GetTextNative(self, idx)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* GetText(ref ImPlotTagCollection self, int idx) - { - fixed (ImPlotTagCollection* pself = &self) - { - byte* ret = GetTextNative((ImPlotTagCollection*)pself, idx); - return ret; - } - } - - /// - /// To be documented. - /// - public static string GetTextS(ref ImPlotTagCollection self, int idx) - { - fixed (ImPlotTagCollection* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetTextNative((ImPlotTagCollection*)pself, idx)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotTagCollection* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[486])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[486])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Reset(ImPlotTagCollectionPtr self) - { - ResetNative(self); - } - - /// - /// To be documented. - /// - public static void Reset(ref ImPlotTagCollection self) - { - fixed (ImPlotTagCollection* pself = &self) - { - ResetNative((ImPlotTagCollection*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotTick* ImPlotTickNative(double value, byte major, int level, byte showLabel) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[487])(value, major, level, showLabel); - #else - return (ImPlotTick*)((delegate* unmanaged[Cdecl])funcTable[487])(value, major, level, showLabel); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTickPtr ImPlotTick(double value, bool major, int level, bool showLabel) - { - ImPlotTickPtr ret = ImPlotTickNative(value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotTick* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[488])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[488])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotTickPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotTick self) - { - fixed (ImPlotTick* pself = &self) - { - DestroyNative((ImPlotTick*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotTicker* ImPlotTickerNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[489])(); - #else - return (ImPlotTicker*)((delegate* unmanaged[Cdecl])funcTable[489])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTickerPtr ImPlotTicker() - { - ImPlotTickerPtr ret = ImPlotTickerNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotTicker* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[490])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[490])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotTickerPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotTicker self) - { - fixed (ImPlotTicker* pself = &self) - { - DestroyNative((ImPlotTicker*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotTick* AddTickNative(ImPlotTicker* self, double value, byte major, int level, byte showLabel, byte* label) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[491])(self, value, major, level, showLabel, label); - #else - return (ImPlotTick*)((delegate* unmanaged[Cdecl])funcTable[491])((nint)self, value, major, level, showLabel, (nint)label); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, double value, bool major, int level, bool showLabel, byte* label) - { - ImPlotTickPtr ret = AddTickNative(self, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, label); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotTickPtr AddTick(ref ImPlotTicker self, double value, bool major, int level, bool showLabel, byte* label) - { - fixed (ImPlotTicker* pself = &self) - { - ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, label); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, double value, bool major, int level, bool showLabel, ref byte label) - { - fixed (byte* plabel = &label) - { - ImPlotTickPtr ret = AddTickNative(self, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, double value, bool major, int level, bool showLabel, ReadOnlySpan label) - { - fixed (byte* plabel = label) - { - ImPlotTickPtr ret = AddTickNative(self, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, double value, bool major, int level, bool showLabel, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotTickPtr ret = AddTickNative(self, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotTickPtr AddTick(ref ImPlotTicker self, double value, bool major, int level, bool showLabel, ref byte label) - { - fixed (ImPlotTicker* pself = &self) - { - fixed (byte* plabel = &label) - { - ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImPlotTickPtr AddTick(ref ImPlotTicker self, double value, bool major, int level, bool showLabel, ReadOnlySpan label) - { - fixed (ImPlotTicker* pself = &self) - { - fixed (byte* plabel = label) - { - ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImPlotTickPtr AddTick(ref ImPlotTicker self, double value, bool major, int level, bool showLabel, string label) - { - fixed (ImPlotTicker* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotTick* AddTickNative(ImPlotTicker* self, double value, byte major, int level, byte showLabel, ImPlotFormatter formatter, void* data) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl], void*, ImPlotTick*>)funcTable[492])(self, value, major, level, showLabel, (delegate*)Utils.GetFunctionPointerForDelegate(formatter), data); - #else - return (ImPlotTick*)((delegate* unmanaged[Cdecl])funcTable[492])((nint)self, value, major, level, showLabel, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)data); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, double value, bool major, int level, bool showLabel, ImPlotFormatter formatter, void* data) - { - ImPlotTickPtr ret = AddTickNative(self, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, formatter, data); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotTickPtr AddTick(ref ImPlotTicker self, double value, bool major, int level, bool showLabel, ImPlotFormatter formatter, void* data) - { - fixed (ImPlotTicker* pself = &self) - { - ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, formatter, data); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotTick* AddTickNative(ImPlotTicker* self, ImPlotTick tick) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[493])(self, tick); - #else - return (ImPlotTick*)((delegate* unmanaged[Cdecl])funcTable[493])((nint)self, tick); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, ImPlotTick tick) - { - ImPlotTickPtr ret = AddTickNative(self, tick); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotTickPtr AddTick(ref ImPlotTicker self, ImPlotTick tick) - { - fixed (ImPlotTicker* pself = &self) - { - ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, tick); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetTextNative(ImPlotTicker* self, int idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[494])(self, idx); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[494])((nint)self, idx); - #endif - } - - /// - /// To be documented. - /// - public static byte* GetText(ImPlotTickerPtr self, int idx) - { - byte* ret = GetTextNative(self, idx); - return ret; - } - - /// - /// To be documented. - /// - public static string GetTextS(ImPlotTickerPtr self, int idx) - { - string ret = Utils.DecodeStringUTF8(GetTextNative(self, idx)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* GetText(ref ImPlotTicker self, int idx) - { - fixed (ImPlotTicker* pself = &self) - { - byte* ret = GetTextNative((ImPlotTicker*)pself, idx); - return ret; - } - } - - /// - /// To be documented. - /// - public static string GetTextS(ref ImPlotTicker self, int idx) - { - fixed (ImPlotTicker* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetTextNative((ImPlotTicker*)pself, idx)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetTextNative(ImPlotTicker* self, ImPlotTick tick) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[495])(self, tick); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[495])((nint)self, tick); - #endif - } - - /// - /// To be documented. - /// - public static byte* GetText(ImPlotTickerPtr self, ImPlotTick tick) - { - byte* ret = GetTextNative(self, tick); - return ret; - } - - /// - /// To be documented. - /// - public static string GetTextS(ImPlotTickerPtr self, ImPlotTick tick) - { - string ret = Utils.DecodeStringUTF8(GetTextNative(self, tick)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* GetText(ref ImPlotTicker self, ImPlotTick tick) - { - fixed (ImPlotTicker* pself = &self) - { - byte* ret = GetTextNative((ImPlotTicker*)pself, tick); - return ret; - } - } - - /// - /// To be documented. - /// - public static string GetTextS(ref ImPlotTicker self, ImPlotTick tick) - { - fixed (ImPlotTicker* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetTextNative((ImPlotTicker*)pself, tick)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void OverrideSizeLateNative(ImPlotTicker* self, Vector2 size) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[496])(self, size); - #else - ((delegate* unmanaged[Cdecl])funcTable[496])((nint)self, size); - #endif - } - - /// - /// To be documented. - /// - public static void OverrideSizeLate(ImPlotTickerPtr self, Vector2 size) - { - OverrideSizeLateNative(self, size); - } - - /// - /// To be documented. - /// - public static void OverrideSizeLate(ref ImPlotTicker self, Vector2 size) - { - fixed (ImPlotTicker* pself = &self) - { - OverrideSizeLateNative((ImPlotTicker*)pself, size); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotTicker* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[497])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[497])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Reset(ImPlotTickerPtr self) - { - ResetNative(self); - } - - /// - /// To be documented. - /// - public static void Reset(ref ImPlotTicker self) - { - fixed (ImPlotTicker* pself = &self) - { - ResetNative((ImPlotTicker*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int TickCountNative(ImPlotTicker* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[498])(self); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[498])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static int TickCount(ImPlotTickerPtr self) - { - int ret = TickCountNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static int TickCount(ref ImPlotTicker self) - { - fixed (ImPlotTicker* pself = &self) - { - int ret = TickCountNative((ImPlotTicker*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotAxis* ImPlotAxisNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[499])(); - #else - return (ImPlotAxis*)((delegate* unmanaged[Cdecl])funcTable[499])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotAxisPtr ImPlotAxis() - { - ImPlotAxisPtr ret = ImPlotAxisNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[500])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[500])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotAxisPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - DestroyNative((ImPlotAxis*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[501])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[501])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Reset(ImPlotAxisPtr self) - { - ResetNative(self); - } - - /// - /// To be documented. - /// - public static void Reset(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - ResetNative((ImPlotAxis*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SetMinNative(ImPlotAxis* self, double min, byte force) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[502])(self, min, force); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[502])((nint)self, min, force); - #endif - } - - /// - /// To be documented. - /// - public static bool SetMin(ImPlotAxisPtr self, double min, bool force) - { - byte ret = SetMinNative(self, min, force ? (byte)1 : (byte)0); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool SetMin(ImPlotAxisPtr self, double min) - { - byte ret = SetMinNative(self, min, (byte)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool SetMin(ref ImPlotAxis self, double min, bool force) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = SetMinNative((ImPlotAxis*)pself, min, force ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool SetMin(ref ImPlotAxis self, double min) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = SetMinNative((ImPlotAxis*)pself, min, (byte)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SetMaxNative(ImPlotAxis* self, double max, byte force) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[503])(self, max, force); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[503])((nint)self, max, force); - #endif - } - - /// - /// To be documented. - /// - public static bool SetMax(ImPlotAxisPtr self, double max, bool force) - { - byte ret = SetMaxNative(self, max, force ? (byte)1 : (byte)0); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool SetMax(ImPlotAxisPtr self, double max) - { - byte ret = SetMaxNative(self, max, (byte)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool SetMax(ref ImPlotAxis self, double max, bool force) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = SetMaxNative((ImPlotAxis*)pself, max, force ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool SetMax(ref ImPlotAxis self, double max) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = SetMaxNative((ImPlotAxis*)pself, max, (byte)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetRangeNative(ImPlotAxis* self, double v1, double v2) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[504])(self, v1, v2); - #else - ((delegate* unmanaged[Cdecl])funcTable[504])((nint)self, v1, v2); - #endif - } - - /// - /// To be documented. - /// - public static void SetRange(ImPlotAxisPtr self, double v1, double v2) - { - SetRangeNative(self, v1, v2); - } - - /// - /// To be documented. - /// - public static void SetRange(ref ImPlotAxis self, double v1, double v2) - { - fixed (ImPlotAxis* pself = &self) - { - SetRangeNative((ImPlotAxis*)pself, v1, v2); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetRangeNative(ImPlotAxis* self, ImPlotRange range) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[505])(self, range); - #else - ((delegate* unmanaged[Cdecl])funcTable[505])((nint)self, range); - #endif - } - - /// - /// To be documented. - /// - public static void SetRange(ImPlotAxisPtr self, ImPlotRange range) - { - SetRangeNative(self, range); - } - - /// - /// To be documented. - /// - public static void SetRange(ref ImPlotAxis self, ImPlotRange range) - { - fixed (ImPlotAxis* pself = &self) - { - SetRangeNative((ImPlotAxis*)pself, range); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetAspectNative(ImPlotAxis* self, double unitPerPix) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[506])(self, unitPerPix); - #else - ((delegate* unmanaged[Cdecl])funcTable[506])((nint)self, unitPerPix); - #endif - } - - /// - /// To be documented. - /// - public static void SetAspect(ImPlotAxisPtr self, double unitPerPix) - { - SetAspectNative(self, unitPerPix); - } - - /// - /// To be documented. - /// - public static void SetAspect(ref ImPlotAxis self, double unitPerPix) - { - fixed (ImPlotAxis* pself = &self) - { - SetAspectNative((ImPlotAxis*)pself, unitPerPix); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float PixelSizeNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[507])(self); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[507])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static float PixelSize(ImPlotAxisPtr self) - { - float ret = PixelSizeNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static float PixelSize(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - float ret = PixelSizeNative((ImPlotAxis*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double GetAspectNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[508])(self); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[508])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static double GetAspect(ImPlotAxisPtr self) - { - double ret = GetAspectNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static double GetAspect(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - double ret = GetAspectNative((ImPlotAxis*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ConstrainNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[509])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[509])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Constrain(ImPlotAxisPtr self) - { - ConstrainNative(self); - } - - /// - /// To be documented. - /// - public static void Constrain(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - ConstrainNative((ImPlotAxis*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UpdateTransformCacheNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[510])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[510])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void UpdateTransformCache(ImPlotAxisPtr self) - { - UpdateTransformCacheNative(self); - } - - /// - /// To be documented. - /// - public static void UpdateTransformCache(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - UpdateTransformCacheNative((ImPlotAxis*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float PlotToPixelsNative(ImPlotAxis* self, double plt) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[511])(self, plt); - #else - return (float)((delegate* unmanaged[Cdecl])funcTable[511])((nint)self, plt); - #endif - } - - /// - /// To be documented. - /// - public static float PlotToPixels(ImPlotAxisPtr self, double plt) - { - float ret = PlotToPixelsNative(self, plt); - return ret; - } - - /// - /// To be documented. - /// - public static float PlotToPixels(ref ImPlotAxis self, double plt) - { - fixed (ImPlotAxis* pself = &self) - { - float ret = PlotToPixelsNative((ImPlotAxis*)pself, plt); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PixelsToPlotNative(ImPlotAxis* self, float pix) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[512])(self, pix); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[512])((nint)self, pix); - #endif - } - - /// - /// To be documented. - /// - public static double PixelsToPlot(ImPlotAxisPtr self, float pix) - { - double ret = PixelsToPlotNative(self, pix); - return ret; - } - - /// - /// To be documented. - /// - public static double PixelsToPlot(ref ImPlotAxis self, float pix) - { - fixed (ImPlotAxis* pself = &self) - { - double ret = PixelsToPlotNative((ImPlotAxis*)pself, pix); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ExtendFitNative(ImPlotAxis* self, double v) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[513])(self, v); - #else - ((delegate* unmanaged[Cdecl])funcTable[513])((nint)self, v); - #endif - } - - /// - /// To be documented. - /// - public static void ExtendFit(ImPlotAxisPtr self, double v) - { - ExtendFitNative(self, v); - } - - /// - /// To be documented. - /// - public static void ExtendFit(ref ImPlotAxis self, double v) - { - fixed (ImPlotAxis* pself = &self) - { - ExtendFitNative((ImPlotAxis*)pself, v); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ExtendFitWithNative(ImPlotAxis* self, ImPlotAxis* alt, double v, double vAlt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[514])(self, alt, v, vAlt); - #else - ((delegate* unmanaged[Cdecl])funcTable[514])((nint)self, (nint)alt, v, vAlt); - #endif - } - - /// - /// To be documented. - /// - public static void ExtendFitWith(ImPlotAxisPtr self, ImPlotAxisPtr alt, double v, double vAlt) - { - ExtendFitWithNative(self, alt, v, vAlt); - } - - /// - /// To be documented. - /// - public static void ExtendFitWith(ref ImPlotAxis self, ImPlotAxisPtr alt, double v, double vAlt) - { - fixed (ImPlotAxis* pself = &self) - { - ExtendFitWithNative((ImPlotAxis*)pself, alt, v, vAlt); - } - } - - /// - /// To be documented. - /// - public static void ExtendFitWith(ImPlotAxisPtr self, ref ImPlotAxis alt, double v, double vAlt) - { - fixed (ImPlotAxis* palt = &alt) - { - ExtendFitWithNative(self, (ImPlotAxis*)palt, v, vAlt); - } - } - - /// - /// To be documented. - /// - public static void ExtendFitWith(ref ImPlotAxis self, ref ImPlotAxis alt, double v, double vAlt) - { - fixed (ImPlotAxis* pself = &self) - { - fixed (ImPlotAxis* palt = &alt) - { - ExtendFitWithNative((ImPlotAxis*)pself, (ImPlotAxis*)palt, v, vAlt); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ApplyFitNative(ImPlotAxis* self, float padding) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[515])(self, padding); - #else - ((delegate* unmanaged[Cdecl])funcTable[515])((nint)self, padding); - #endif - } - - /// - /// To be documented. - /// - public static void ApplyFit(ImPlotAxisPtr self, float padding) - { - ApplyFitNative(self, padding); - } - - /// - /// To be documented. - /// - public static void ApplyFit(ref ImPlotAxis self, float padding) - { - fixed (ImPlotAxis* pself = &self) - { - ApplyFitNative((ImPlotAxis*)pself, padding); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte HasLabelNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[516])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[516])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool HasLabel(ImPlotAxisPtr self) - { - byte ret = HasLabelNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool HasLabel(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = HasLabelNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte HasGridLinesNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[517])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[517])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool HasGridLines(ImPlotAxisPtr self) - { - byte ret = HasGridLinesNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool HasGridLines(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = HasGridLinesNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte HasTickLabelsNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[518])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[518])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool HasTickLabels(ImPlotAxisPtr self) - { - byte ret = HasTickLabelsNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool HasTickLabels(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = HasTickLabelsNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte HasTickMarksNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[519])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[519])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool HasTickMarks(ImPlotAxisPtr self) - { - byte ret = HasTickMarksNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool HasTickMarks(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = HasTickMarksNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte WillRenderNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[520])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[520])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool WillRender(ImPlotAxisPtr self) - { - byte ret = WillRenderNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool WillRender(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = WillRenderNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsOppositeNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[521])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[521])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsOpposite(ImPlotAxisPtr self) - { - byte ret = IsOppositeNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsOpposite(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsOppositeNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsInvertedNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[522])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[522])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsInverted(ImPlotAxisPtr self) - { - byte ret = IsInvertedNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsInverted(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsInvertedNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsForegroundNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[523])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[523])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsForeground(ImPlotAxisPtr self) - { - byte ret = IsForegroundNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsForeground(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsForegroundNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsAutoFittingNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[524])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[524])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsAutoFitting(ImPlotAxisPtr self) - { - byte ret = IsAutoFittingNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsAutoFitting(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsAutoFittingNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte CanInitFitNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[525])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[525])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool CanInitFit(ImPlotAxisPtr self) - { - byte ret = CanInitFitNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool CanInitFit(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = CanInitFitNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsRangeLockedNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[526])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[526])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsRangeLocked(ImPlotAxisPtr self) - { - byte ret = IsRangeLockedNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsRangeLocked(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsRangeLockedNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsLockedMinNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[527])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[527])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsLockedMin(ImPlotAxisPtr self) - { - byte ret = IsLockedMinNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsLockedMin(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsLockedMinNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsLockedMaxNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[528])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[528])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsLockedMax(ImPlotAxisPtr self) - { - byte ret = IsLockedMaxNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsLockedMax(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsLockedMaxNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsLockedNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[529])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[529])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsLocked(ImPlotAxisPtr self) - { - byte ret = IsLockedNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsLocked(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsLockedNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsInputLockedMinNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[530])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[530])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsInputLockedMin(ImPlotAxisPtr self) - { - byte ret = IsInputLockedMinNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsInputLockedMin(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsInputLockedMinNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsInputLockedMaxNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[531])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[531])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsInputLockedMax(ImPlotAxisPtr self) - { - byte ret = IsInputLockedMaxNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsInputLockedMax(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsInputLockedMaxNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsInputLockedNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[532])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[532])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsInputLocked(ImPlotAxisPtr self) - { - byte ret = IsInputLockedNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsInputLocked(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsInputLockedNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte HasMenusNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[533])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[533])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool HasMenus(ImPlotAxisPtr self) - { - byte ret = HasMenusNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool HasMenus(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = HasMenusNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsPanLockedNative(ImPlotAxis* self, byte increasing) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[534])(self, increasing); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[534])((nint)self, increasing); - #endif - } - - /// - /// To be documented. - /// - public static bool IsPanLocked(ImPlotAxisPtr self, bool increasing) - { - byte ret = IsPanLockedNative(self, increasing ? (byte)1 : (byte)0); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsPanLocked(ref ImPlotAxis self, bool increasing) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsPanLockedNative((ImPlotAxis*)pself, increasing ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushLinksNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[535])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[535])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void PushLinks(ImPlotAxisPtr self) - { - PushLinksNative(self); - } - - /// - /// To be documented. - /// - public static void PushLinks(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - PushLinksNative((ImPlotAxis*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PullLinksNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[536])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[536])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void PullLinks(ImPlotAxisPtr self) - { - PullLinksNative(self); - } - - /// - /// To be documented. - /// - public static void PullLinks(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - PullLinksNative((ImPlotAxis*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotAlignmentData* ImPlotAlignmentDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[537])(); - #else - return (ImPlotAlignmentData*)((delegate* unmanaged[Cdecl])funcTable[537])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotAlignmentDataPtr ImPlotAlignmentData() - { - ImPlotAlignmentDataPtr ret = ImPlotAlignmentDataNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotAlignmentData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[538])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[538])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotAlignmentDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotAlignmentData self) - { - fixed (ImPlotAlignmentData* pself = &self) - { - DestroyNative((ImPlotAlignmentData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BeginNative(ImPlotAlignmentData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[539])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[539])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Begin(ImPlotAlignmentDataPtr self) - { - BeginNative(self); - } - - /// - /// To be documented. - /// - public static void Begin(ref ImPlotAlignmentData self) - { - fixed (ImPlotAlignmentData* pself = &self) - { - BeginNative((ImPlotAlignmentData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UpdateNative(ImPlotAlignmentData* self, float* padA, float* padB, float* deltaA, float* deltaB) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[540])(self, padA, padB, deltaA, deltaB); - #else - ((delegate* unmanaged[Cdecl])funcTable[540])((nint)self, (nint)padA, (nint)padB, (nint)deltaA, (nint)deltaB); - #endif - } - - /// - /// To be documented. - /// - public static void Update(ImPlotAlignmentDataPtr self, float* padA, float* padB, float* deltaA, float* deltaB) - { - UpdateNative(self, padA, padB, deltaA, deltaB); - } - - /// - /// To be documented. - /// - public static void Update(ref ImPlotAlignmentData self, float* padA, float* padB, float* deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - UpdateNative((ImPlotAlignmentData*)pself, padA, padB, deltaA, deltaB); - } - } - - /// - /// To be documented. - /// - public static void Update(ImPlotAlignmentDataPtr self, ref float padA, float* padB, float* deltaA, float* deltaB) - { - fixed (float* ppadA = &padA) - { - UpdateNative(self, (float*)ppadA, padB, deltaA, deltaB); - } - } - - /// - /// To be documented. - /// - public static void Update(ref ImPlotAlignmentData self, ref float padA, float* padB, float* deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadA = &padA) - { - UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, padB, deltaA, deltaB); - } - } - } - - /// - /// To be documented. - /// - public static void Update(ImPlotAlignmentDataPtr self, float* padA, ref float padB, float* deltaA, float* deltaB) - { - fixed (float* ppadB = &padB) - { - UpdateNative(self, padA, (float*)ppadB, deltaA, deltaB); - } - } - - /// - /// To be documented. - /// - public static void Update(ref ImPlotAlignmentData self, float* padA, ref float padB, float* deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadB = &padB) - { - UpdateNative((ImPlotAlignmentData*)pself, padA, (float*)ppadB, deltaA, deltaB); - } - } - } - - /// - /// To be documented. - /// - public static void Update(ImPlotAlignmentDataPtr self, ref float padA, ref float padB, float* deltaA, float* deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - UpdateNative(self, (float*)ppadA, (float*)ppadB, deltaA, deltaB); - } - } - } - - /// - /// To be documented. - /// - public static void Update(ref ImPlotAlignmentData self, ref float padA, ref float padB, float* deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, (float*)ppadB, deltaA, deltaB); - } - } - } - } - - /// - /// To be documented. - /// - public static void Update(ImPlotAlignmentDataPtr self, float* padA, float* padB, ref float deltaA, float* deltaB) - { - fixed (float* pdeltaA = &deltaA) - { - UpdateNative(self, padA, padB, (float*)pdeltaA, deltaB); - } - } - - /// - /// To be documented. - /// - public static void Update(ref ImPlotAlignmentData self, float* padA, float* padB, ref float deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* pdeltaA = &deltaA) - { - UpdateNative((ImPlotAlignmentData*)pself, padA, padB, (float*)pdeltaA, deltaB); - } - } - } - - /// - /// To be documented. - /// - public static void Update(ImPlotAlignmentDataPtr self, ref float padA, float* padB, ref float deltaA, float* deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaA = &deltaA) - { - UpdateNative(self, (float*)ppadA, padB, (float*)pdeltaA, deltaB); - } - } - } - - /// - /// To be documented. - /// - public static void Update(ref ImPlotAlignmentData self, ref float padA, float* padB, ref float deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaA = &deltaA) - { - UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, padB, (float*)pdeltaA, deltaB); - } - } - } - } - - /// - /// To be documented. - /// - public static void Update(ImPlotAlignmentDataPtr self, float* padA, ref float padB, ref float deltaA, float* deltaB) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - UpdateNative(self, padA, (float*)ppadB, (float*)pdeltaA, deltaB); - } - } - } - - /// - /// To be documented. - /// - public static void Update(ref ImPlotAlignmentData self, float* padA, ref float padB, ref float deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - UpdateNative((ImPlotAlignmentData*)pself, padA, (float*)ppadB, (float*)pdeltaA, deltaB); - } - } - } - } - - /// - /// To be documented. - /// - public static void Update(ImPlotAlignmentDataPtr self, ref float padA, ref float padB, ref float deltaA, float* deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - UpdateNative(self, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, deltaB); - } - } - } - } - - /// - /// To be documented. - /// - public static void Update(ref ImPlotAlignmentData self, ref float padA, ref float padB, ref float deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, deltaB); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void Update(ImPlotAlignmentDataPtr self, float* padA, float* padB, float* deltaA, ref float deltaB) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative(self, padA, padB, deltaA, (float*)pdeltaB); - } - } - - /// - /// To be documented. - /// - public static void Update(ref ImPlotAlignmentData self, float* padA, float* padB, float* deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative((ImPlotAlignmentData*)pself, padA, padB, deltaA, (float*)pdeltaB); - } - } - } - - /// - /// To be documented. - /// - public static void Update(ImPlotAlignmentDataPtr self, ref float padA, float* padB, float* deltaA, ref float deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative(self, (float*)ppadA, padB, deltaA, (float*)pdeltaB); - } - } - } - - /// - /// To be documented. - /// - public static void Update(ref ImPlotAlignmentData self, ref float padA, float* padB, float* deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, padB, deltaA, (float*)pdeltaB); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.133.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.133.cs deleted file mode 100644 index ab35abd9f..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.133.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void Update(ImPlotAlignmentDataPtr self, float* padA, ref float padB, float* deltaA, ref float deltaB) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative(self, padA, (float*)ppadB, deltaA, (float*)pdeltaB); - } - } - } - - /// - /// To be documented. - /// - public static void Update(ref ImPlotAlignmentData self, float* padA, ref float padB, float* deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative((ImPlotAlignmentData*)pself, padA, (float*)ppadB, deltaA, (float*)pdeltaB); - } - } - } - } - - /// - /// To be documented. - /// - public static void Update(ImPlotAlignmentDataPtr self, ref float padA, ref float padB, float* deltaA, ref float deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative(self, (float*)ppadA, (float*)ppadB, deltaA, (float*)pdeltaB); - } - } - } - } - - /// - /// To be documented. - /// - public static void Update(ref ImPlotAlignmentData self, ref float padA, ref float padB, float* deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, (float*)ppadB, deltaA, (float*)pdeltaB); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void Update(ImPlotAlignmentDataPtr self, float* padA, float* padB, ref float deltaA, ref float deltaB) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative(self, padA, padB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - - /// - /// To be documented. - /// - public static void Update(ref ImPlotAlignmentData self, float* padA, float* padB, ref float deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative((ImPlotAlignmentData*)pself, padA, padB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - - /// - /// To be documented. - /// - public static void Update(ImPlotAlignmentDataPtr self, ref float padA, float* padB, ref float deltaA, ref float deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative(self, (float*)ppadA, padB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - - /// - /// To be documented. - /// - public static void Update(ref ImPlotAlignmentData self, ref float padA, float* padB, ref float deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, padB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void Update(ImPlotAlignmentDataPtr self, float* padA, ref float padB, ref float deltaA, ref float deltaB) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative(self, padA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - - /// - /// To be documented. - /// - public static void Update(ref ImPlotAlignmentData self, float* padA, ref float padB, ref float deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative((ImPlotAlignmentData*)pself, padA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void Update(ImPlotAlignmentDataPtr self, ref float padA, ref float padB, ref float deltaA, ref float deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative(self, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - } - - /// - /// To be documented. - /// - public static void Update(ref ImPlotAlignmentData self, ref float padA, ref float padB, ref float deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndNative(ImPlotAlignmentData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[541])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[541])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void End(ImPlotAlignmentDataPtr self) - { - EndNative(self); - } - - /// - /// To be documented. - /// - public static void End(ref ImPlotAlignmentData self) - { - fixed (ImPlotAlignmentData* pself = &self) - { - EndNative((ImPlotAlignmentData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotAlignmentData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[542])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[542])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Reset(ImPlotAlignmentDataPtr self) - { - ResetNative(self); - } - - /// - /// To be documented. - /// - public static void Reset(ref ImPlotAlignmentData self) - { - fixed (ImPlotAlignmentData* pself = &self) - { - ResetNative((ImPlotAlignmentData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* ImPlotItemNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[543])(); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[543])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr ImPlotItem() - { - ImPlotItemPtr ret = ImPlotItemNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotItem* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[544])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[544])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotItemPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotItem self) - { - fixed (ImPlotItem* pself = &self) - { - DestroyNative((ImPlotItem*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotLegend* ImPlotLegendNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[545])(); - #else - return (ImPlotLegend*)((delegate* unmanaged[Cdecl])funcTable[545])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotLegendPtr ImPlotLegend() - { - ImPlotLegendPtr ret = ImPlotLegendNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotLegend* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[546])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[546])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotLegendPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotLegend self) - { - fixed (ImPlotLegend* pself = &self) - { - DestroyNative((ImPlotLegend*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotLegend* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[547])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[547])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Reset(ImPlotLegendPtr self) - { - ResetNative(self); - } - - /// - /// To be documented. - /// - public static void Reset(ref ImPlotLegend self) - { - fixed (ImPlotLegend* pself = &self) - { - ResetNative((ImPlotLegend*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItemGroup* ImPlotItemGroupNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[548])(); - #else - return (ImPlotItemGroup*)((delegate* unmanaged[Cdecl])funcTable[548])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotItemGroupPtr ImPlotItemGroup() - { - ImPlotItemGroupPtr ret = ImPlotItemGroupNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotItemGroup* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[549])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[549])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotItemGroupPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotItemGroup self) - { - fixed (ImPlotItemGroup* pself = &self) - { - DestroyNative((ImPlotItemGroup*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetItemCountNative(ImPlotItemGroup* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[550])(self); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[550])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static int GetItemCount(ImPlotItemGroupPtr self) - { - int ret = GetItemCountNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static int GetItemCount(ref ImPlotItemGroup self) - { - fixed (ImPlotItemGroup* pself = &self) - { - int ret = GetItemCountNative((ImPlotItemGroup*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetItemIDNative(ImPlotItemGroup* self, byte* labelId) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[551])(self, labelId); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[551])((nint)self, (nint)labelId); - #endif - } - - /// - /// To be documented. - /// - public static uint GetItemID(ImPlotItemGroupPtr self, byte* labelId) - { - uint ret = GetItemIDNative(self, labelId); - return ret; - } - - /// - /// To be documented. - /// - public static uint GetItemID(ref ImPlotItemGroup self, byte* labelId) - { - fixed (ImPlotItemGroup* pself = &self) - { - uint ret = GetItemIDNative((ImPlotItemGroup*)pself, labelId); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetItemID(ImPlotItemGroupPtr self, ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - uint ret = GetItemIDNative(self, (byte*)plabelId); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetItemID(ImPlotItemGroupPtr self, ReadOnlySpan labelId) - { - fixed (byte* plabelId = labelId) - { - uint ret = GetItemIDNative(self, (byte*)plabelId); - return ret; - } - } - - /// - /// To be documented. - /// - public static uint GetItemID(ImPlotItemGroupPtr self, string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetItemIDNative(self, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static uint GetItemID(ref ImPlotItemGroup self, ref byte labelId) - { - fixed (ImPlotItemGroup* pself = &self) - { - fixed (byte* plabelId = &labelId) - { - uint ret = GetItemIDNative((ImPlotItemGroup*)pself, (byte*)plabelId); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetItemID(ref ImPlotItemGroup self, ReadOnlySpan labelId) - { - fixed (ImPlotItemGroup* pself = &self) - { - fixed (byte* plabelId = labelId) - { - uint ret = GetItemIDNative((ImPlotItemGroup*)pself, (byte*)plabelId); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static uint GetItemID(ref ImPlotItemGroup self, string labelId) - { - fixed (ImPlotItemGroup* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetItemIDNative((ImPlotItemGroup*)pself, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* GetItemNative(ImPlotItemGroup* self, uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[552])(self, id); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[552])((nint)self, id); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, uint id) - { - ImPlotItemPtr ret = GetItemNative(self, id); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, uint id) - { - fixed (ImPlotItemGroup* pself = &self) - { - ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, id); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* GetItemNative(ImPlotItemGroup* self, byte* labelId) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[553])(self, labelId); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[553])((nint)self, (nint)labelId); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, byte* labelId) - { - ImPlotItemPtr ret = GetItemNative(self, labelId); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, byte* labelId) - { - fixed (ImPlotItemGroup* pself = &self) - { - ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, labelId); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - ImPlotItemPtr ret = GetItemNative(self, (byte*)plabelId); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, ReadOnlySpan labelId) - { - fixed (byte* plabelId = labelId) - { - ImPlotItemPtr ret = GetItemNative(self, (byte*)plabelId); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotItemPtr ret = GetItemNative(self, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, ref byte labelId) - { - fixed (ImPlotItemGroup* pself = &self) - { - fixed (byte* plabelId = &labelId) - { - ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, (byte*)plabelId); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, ReadOnlySpan labelId) - { - fixed (ImPlotItemGroup* pself = &self) - { - fixed (byte* plabelId = labelId) - { - ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, (byte*)plabelId); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, string labelId) - { - fixed (ImPlotItemGroup* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* GetOrAddItemNative(ImPlotItemGroup* self, uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[554])(self, id); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[554])((nint)self, id); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetOrAddItem(ImPlotItemGroupPtr self, uint id) - { - ImPlotItemPtr ret = GetOrAddItemNative(self, id); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetOrAddItem(ref ImPlotItemGroup self, uint id) - { - fixed (ImPlotItemGroup* pself = &self) - { - ImPlotItemPtr ret = GetOrAddItemNative((ImPlotItemGroup*)pself, id); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* GetItemByIndexNative(ImPlotItemGroup* self, int i) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[555])(self, i); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[555])((nint)self, i); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetItemByIndex(ImPlotItemGroupPtr self, int i) - { - ImPlotItemPtr ret = GetItemByIndexNative(self, i); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetItemByIndex(ref ImPlotItemGroup self, int i) - { - fixed (ImPlotItemGroup* pself = &self) - { - ImPlotItemPtr ret = GetItemByIndexNative((ImPlotItemGroup*)pself, i); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetItemIndexNative(ImPlotItemGroup* self, ImPlotItem* item) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[556])(self, item); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[556])((nint)self, (nint)item); - #endif - } - - /// - /// To be documented. - /// - public static int GetItemIndex(ImPlotItemGroupPtr self, ImPlotItemPtr item) - { - int ret = GetItemIndexNative(self, item); - return ret; - } - - /// - /// To be documented. - /// - public static int GetItemIndex(ref ImPlotItemGroup self, ImPlotItemPtr item) - { - fixed (ImPlotItemGroup* pself = &self) - { - int ret = GetItemIndexNative((ImPlotItemGroup*)pself, item); - return ret; - } - } - - /// - /// To be documented. - /// - public static int GetItemIndex(ImPlotItemGroupPtr self, ref ImPlotItem item) - { - fixed (ImPlotItem* pitem = &item) - { - int ret = GetItemIndexNative(self, (ImPlotItem*)pitem); - return ret; - } - } - - /// - /// To be documented. - /// - public static int GetItemIndex(ref ImPlotItemGroup self, ref ImPlotItem item) - { - fixed (ImPlotItemGroup* pself = &self) - { - fixed (ImPlotItem* pitem = &item) - { - int ret = GetItemIndexNative((ImPlotItemGroup*)pself, (ImPlotItem*)pitem); - return ret; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetLegendCountNative(ImPlotItemGroup* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[557])(self); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[557])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static int GetLegendCount(ImPlotItemGroupPtr self) - { - int ret = GetLegendCountNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static int GetLegendCount(ref ImPlotItemGroup self) - { - fixed (ImPlotItemGroup* pself = &self) - { - int ret = GetLegendCountNative((ImPlotItemGroup*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* GetLegendItemNative(ImPlotItemGroup* self, int i) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[558])(self, i); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[558])((nint)self, i); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetLegendItem(ImPlotItemGroupPtr self, int i) - { - ImPlotItemPtr ret = GetLegendItemNative(self, i); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetLegendItem(ref ImPlotItemGroup self, int i) - { - fixed (ImPlotItemGroup* pself = &self) - { - ImPlotItemPtr ret = GetLegendItemNative((ImPlotItemGroup*)pself, i); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetLegendLabelNative(ImPlotItemGroup* self, int i) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[559])(self, i); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[559])((nint)self, i); - #endif - } - - /// - /// To be documented. - /// - public static byte* GetLegendLabel(ImPlotItemGroupPtr self, int i) - { - byte* ret = GetLegendLabelNative(self, i); - return ret; - } - - /// - /// To be documented. - /// - public static string GetLegendLabelS(ImPlotItemGroupPtr self, int i) - { - string ret = Utils.DecodeStringUTF8(GetLegendLabelNative(self, i)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* GetLegendLabel(ref ImPlotItemGroup self, int i) - { - fixed (ImPlotItemGroup* pself = &self) - { - byte* ret = GetLegendLabelNative((ImPlotItemGroup*)pself, i); - return ret; - } - } - - /// - /// To be documented. - /// - public static string GetLegendLabelS(ref ImPlotItemGroup self, int i) - { - fixed (ImPlotItemGroup* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetLegendLabelNative((ImPlotItemGroup*)pself, i)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotItemGroup* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[560])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[560])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Reset(ImPlotItemGroupPtr self) - { - ResetNative(self); - } - - /// - /// To be documented. - /// - public static void Reset(ref ImPlotItemGroup self) - { - fixed (ImPlotItemGroup* pself = &self) - { - ResetNative((ImPlotItemGroup*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotPlot* ImPlotPlotNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[561])(); - #else - return (ImPlotPlot*)((delegate* unmanaged[Cdecl])funcTable[561])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotPlotPtr ImPlotPlot() - { - ImPlotPlotPtr ret = ImPlotPlotNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotPlot* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[562])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[562])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotPlotPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotPlot self) - { - fixed (ImPlotPlot* pself = &self) - { - DestroyNative((ImPlotPlot*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsInputLockedNative(ImPlotPlot* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[563])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[563])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool IsInputLocked(ImPlotPlotPtr self) - { - byte ret = IsInputLockedNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool IsInputLocked(ref ImPlotPlot self) - { - fixed (ImPlotPlot* pself = &self) - { - byte ret = IsInputLockedNative((ImPlotPlot*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearTextBufferNative(ImPlotPlot* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[564])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[564])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void ClearTextBuffer(ImPlotPlotPtr self) - { - ClearTextBufferNative(self); - } - - /// - /// To be documented. - /// - public static void ClearTextBuffer(ref ImPlotPlot self) - { - fixed (ImPlotPlot* pself = &self) - { - ClearTextBufferNative((ImPlotPlot*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetTitleNative(ImPlotPlot* self, byte* title) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[565])(self, title); - #else - ((delegate* unmanaged[Cdecl])funcTable[565])((nint)self, (nint)title); - #endif - } - - /// - /// To be documented. - /// - public static void SetTitle(ImPlotPlotPtr self, byte* title) - { - SetTitleNative(self, title); - } - - /// - /// To be documented. - /// - public static void SetTitle(ref ImPlotPlot self, byte* title) - { - fixed (ImPlotPlot* pself = &self) - { - SetTitleNative((ImPlotPlot*)pself, title); - } - } - - /// - /// To be documented. - /// - public static void SetTitle(ImPlotPlotPtr self, ref byte title) - { - fixed (byte* ptitle = &title) - { - SetTitleNative(self, (byte*)ptitle); - } - } - - /// - /// To be documented. - /// - public static void SetTitle(ImPlotPlotPtr self, ReadOnlySpan title) - { - fixed (byte* ptitle = title) - { - SetTitleNative(self, (byte*)ptitle); - } - } - - /// - /// To be documented. - /// - public static void SetTitle(ImPlotPlotPtr self, string title) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (title != null) - { - pStrSize0 = Utils.GetByteCountUTF8(title); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(title, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetTitleNative(self, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void SetTitle(ref ImPlotPlot self, ref byte title) - { - fixed (ImPlotPlot* pself = &self) - { - fixed (byte* ptitle = &title) - { - SetTitleNative((ImPlotPlot*)pself, (byte*)ptitle); - } - } - } - - /// - /// To be documented. - /// - public static void SetTitle(ref ImPlotPlot self, ReadOnlySpan title) - { - fixed (ImPlotPlot* pself = &self) - { - fixed (byte* ptitle = title) - { - SetTitleNative((ImPlotPlot*)pself, (byte*)ptitle); - } - } - } - - /// - /// To be documented. - /// - public static void SetTitle(ref ImPlotPlot self, string title) - { - fixed (ImPlotPlot* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (title != null) - { - pStrSize0 = Utils.GetByteCountUTF8(title); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(title, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetTitleNative((ImPlotPlot*)pself, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte HasTitleNative(ImPlotPlot* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[566])(self); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[566])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static bool HasTitle(ImPlotPlotPtr self) - { - byte ret = HasTitleNative(self); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool HasTitle(ref ImPlotPlot self) - { - fixed (ImPlotPlot* pself = &self) - { - byte ret = HasTitleNative((ImPlotPlot*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetTitleNative(ImPlotPlot* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[567])(self); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[567])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static byte* GetTitle(ImPlotPlotPtr self) - { - byte* ret = GetTitleNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static string GetTitleS(ImPlotPlotPtr self) - { - string ret = Utils.DecodeStringUTF8(GetTitleNative(self)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* GetTitle(ref ImPlotPlot self) - { - fixed (ImPlotPlot* pself = &self) - { - byte* ret = GetTitleNative((ImPlotPlot*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - public static string GetTitleS(ref ImPlotPlot self) - { - fixed (ImPlotPlot* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetTitleNative((ImPlotPlot*)pself)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotAxis* XAxisNative(ImPlotPlot* self, int i) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[568])(self, i); - #else - return (ImPlotAxis*)((delegate* unmanaged[Cdecl])funcTable[568])((nint)self, i); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotAxisPtr XAxis(ImPlotPlotPtr self, int i) - { - ImPlotAxisPtr ret = XAxisNative(self, i); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotAxisPtr XAxis(ref ImPlotPlot self, int i) - { - fixed (ImPlotPlot* pself = &self) - { - ImPlotAxisPtr ret = XAxisNative((ImPlotPlot*)pself, i); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotAxis* ImPlotPlotXAxisConstNative(ImPlotPlot* self, int i) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[569])(self, i); - #else - return (ImPlotAxis*)((delegate* unmanaged[Cdecl])funcTable[569])((nint)self, i); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotAxisPtr ImPlotPlotXAxisConst(ImPlotPlotPtr self, int i) - { - ImPlotAxisPtr ret = ImPlotPlotXAxisConstNative(self, i); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotAxisPtr ImPlotPlotXAxisConst(ref ImPlotPlot self, int i) - { - fixed (ImPlotPlot* pself = &self) - { - ImPlotAxisPtr ret = ImPlotPlotXAxisConstNative((ImPlotPlot*)pself, i); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotAxis* YAxisNative(ImPlotPlot* self, int i) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[570])(self, i); - #else - return (ImPlotAxis*)((delegate* unmanaged[Cdecl])funcTable[570])((nint)self, i); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotAxisPtr YAxis(ImPlotPlotPtr self, int i) - { - ImPlotAxisPtr ret = YAxisNative(self, i); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotAxisPtr YAxis(ref ImPlotPlot self, int i) - { - fixed (ImPlotPlot* pself = &self) - { - ImPlotAxisPtr ret = YAxisNative((ImPlotPlot*)pself, i); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotAxis* ImPlotPlotYAxisConstNative(ImPlotPlot* self, int i) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[571])(self, i); - #else - return (ImPlotAxis*)((delegate* unmanaged[Cdecl])funcTable[571])((nint)self, i); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotAxisPtr ImPlotPlotYAxisConst(ImPlotPlotPtr self, int i) - { - ImPlotAxisPtr ret = ImPlotPlotYAxisConstNative(self, i); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotAxisPtr ImPlotPlotYAxisConst(ref ImPlotPlot self, int i) - { - fixed (ImPlotPlot* pself = &self) - { - ImPlotAxisPtr ret = ImPlotPlotYAxisConstNative((ImPlotPlot*)pself, i); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int EnabledAxesXNative(ImPlotPlot* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[572])(self); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[572])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static int EnabledAxesX(ImPlotPlotPtr self) - { - int ret = EnabledAxesXNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static int EnabledAxesX(ref ImPlotPlot self) - { - fixed (ImPlotPlot* pself = &self) - { - int ret = EnabledAxesXNative((ImPlotPlot*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int EnabledAxesYNative(ImPlotPlot* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[573])(self); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[573])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static int EnabledAxesY(ImPlotPlotPtr self) - { - int ret = EnabledAxesYNative(self); - return ret; - } - - /// - /// To be documented. - /// - public static int EnabledAxesY(ref ImPlotPlot self) - { - fixed (ImPlotPlot* pself = &self) - { - int ret = EnabledAxesYNative((ImPlotPlot*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetAxisLabelNative(ImPlotPlot* self, ImPlotAxis* axis, byte* label) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[574])(self, axis, label); - #else - ((delegate* unmanaged[Cdecl])funcTable[574])((nint)self, (nint)axis, (nint)label); - #endif - } - - /// - /// To be documented. - /// - public static void SetAxisLabel(ImPlotPlotPtr self, ImPlotAxisPtr axis, byte* label) - { - SetAxisLabelNative(self, axis, label); - } - - /// - /// To be documented. - /// - public static void SetAxisLabel(ref ImPlotPlot self, ImPlotAxisPtr axis, byte* label) - { - fixed (ImPlotPlot* pself = &self) - { - SetAxisLabelNative((ImPlotPlot*)pself, axis, label); - } - } - - /// - /// To be documented. - /// - public static void SetAxisLabel(ImPlotPlotPtr self, ref ImPlotAxis axis, byte* label) - { - fixed (ImPlotAxis* paxis = &axis) - { - SetAxisLabelNative(self, (ImPlotAxis*)paxis, label); - } - } - - /// - /// To be documented. - /// - public static void SetAxisLabel(ref ImPlotPlot self, ref ImPlotAxis axis, byte* label) - { - fixed (ImPlotPlot* pself = &self) - { - fixed (ImPlotAxis* paxis = &axis) - { - SetAxisLabelNative((ImPlotPlot*)pself, (ImPlotAxis*)paxis, label); - } - } - } - - /// - /// To be documented. - /// - public static void SetAxisLabel(ImPlotPlotPtr self, ImPlotAxisPtr axis, ref byte label) - { - fixed (byte* plabel = &label) - { - SetAxisLabelNative(self, axis, (byte*)plabel); - } - } - - /// - /// To be documented. - /// - public static void SetAxisLabel(ImPlotPlotPtr self, ImPlotAxisPtr axis, ReadOnlySpan label) - { - fixed (byte* plabel = label) - { - SetAxisLabelNative(self, axis, (byte*)plabel); - } - } - - /// - /// To be documented. - /// - public static void SetAxisLabel(ImPlotPlotPtr self, ImPlotAxisPtr axis, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetAxisLabelNative(self, axis, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void SetAxisLabel(ref ImPlotPlot self, ImPlotAxisPtr axis, ref byte label) - { - fixed (ImPlotPlot* pself = &self) - { - fixed (byte* plabel = &label) - { - SetAxisLabelNative((ImPlotPlot*)pself, axis, (byte*)plabel); - } - } - } - - /// - /// To be documented. - /// - public static void SetAxisLabel(ref ImPlotPlot self, ImPlotAxisPtr axis, ReadOnlySpan label) - { - fixed (ImPlotPlot* pself = &self) - { - fixed (byte* plabel = label) - { - SetAxisLabelNative((ImPlotPlot*)pself, axis, (byte*)plabel); - } - } - } - - /// - /// To be documented. - /// - public static void SetAxisLabel(ref ImPlotPlot self, ImPlotAxisPtr axis, string label) - { - fixed (ImPlotPlot* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetAxisLabelNative((ImPlotPlot*)pself, axis, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void SetAxisLabel(ImPlotPlotPtr self, ref ImPlotAxis axis, ref byte label) - { - fixed (ImPlotAxis* paxis = &axis) - { - fixed (byte* plabel = &label) - { - SetAxisLabelNative(self, (ImPlotAxis*)paxis, (byte*)plabel); - } - } - } - - /// - /// To be documented. - /// - public static void SetAxisLabel(ImPlotPlotPtr self, ref ImPlotAxis axis, ReadOnlySpan label) - { - fixed (ImPlotAxis* paxis = &axis) - { - fixed (byte* plabel = label) - { - SetAxisLabelNative(self, (ImPlotAxis*)paxis, (byte*)plabel); - } - } - } - - /// - /// To be documented. - /// - public static void SetAxisLabel(ImPlotPlotPtr self, ref ImPlotAxis axis, string label) - { - fixed (ImPlotAxis* paxis = &axis) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetAxisLabelNative(self, (ImPlotAxis*)paxis, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void SetAxisLabel(ref ImPlotPlot self, ref ImPlotAxis axis, ref byte label) - { - fixed (ImPlotPlot* pself = &self) - { - fixed (ImPlotAxis* paxis = &axis) - { - fixed (byte* plabel = &label) - { - SetAxisLabelNative((ImPlotPlot*)pself, (ImPlotAxis*)paxis, (byte*)plabel); - } - } - } - } - - /// - /// To be documented. - /// - public static void SetAxisLabel(ref ImPlotPlot self, ref ImPlotAxis axis, ReadOnlySpan label) - { - fixed (ImPlotPlot* pself = &self) - { - fixed (ImPlotAxis* paxis = &axis) - { - fixed (byte* plabel = label) - { - SetAxisLabelNative((ImPlotPlot*)pself, (ImPlotAxis*)paxis, (byte*)plabel); - } - } - } - } - - /// - /// To be documented. - /// - public static void SetAxisLabel(ref ImPlotPlot self, ref ImPlotAxis axis, string label) - { - fixed (ImPlotPlot* pself = &self) - { - fixed (ImPlotAxis* paxis = &axis) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetAxisLabelNative((ImPlotPlot*)pself, (ImPlotAxis*)paxis, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetAxisLabelNative(ImPlotPlot* self, ImPlotAxis axis) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[575])(self, axis); - #else - return (byte*)((delegate* unmanaged[Cdecl])funcTable[575])((nint)self, axis); - #endif - } - - /// - /// To be documented. - /// - public static byte* GetAxisLabel(ImPlotPlotPtr self, ImPlotAxis axis) - { - byte* ret = GetAxisLabelNative(self, axis); - return ret; - } - - /// - /// To be documented. - /// - public static string GetAxisLabelS(ImPlotPlotPtr self, ImPlotAxis axis) - { - string ret = Utils.DecodeStringUTF8(GetAxisLabelNative(self, axis)); - return ret; - } - - /// - /// To be documented. - /// - public static byte* GetAxisLabel(ref ImPlotPlot self, ImPlotAxis axis) - { - fixed (ImPlotPlot* pself = &self) - { - byte* ret = GetAxisLabelNative((ImPlotPlot*)pself, axis); - return ret; - } - } - - /// - /// To be documented. - /// - public static string GetAxisLabelS(ref ImPlotPlot self, ImPlotAxis axis) - { - fixed (ImPlotPlot* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetAxisLabelNative((ImPlotPlot*)pself, axis)); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotSubplot* ImPlotSubplotNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[576])(); - #else - return (ImPlotSubplot*)((delegate* unmanaged[Cdecl])funcTable[576])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotSubplotPtr ImPlotSubplot() - { - ImPlotSubplotPtr ret = ImPlotSubplotNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotSubplot* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[577])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[577])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotSubplotPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotSubplot self) - { - fixed (ImPlotSubplot* pself = &self) - { - DestroyNative((ImPlotSubplot*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotNextPlotData* ImPlotNextPlotDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[578])(); - #else - return (ImPlotNextPlotData*)((delegate* unmanaged[Cdecl])funcTable[578])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotNextPlotDataPtr ImPlotNextPlotData() - { - ImPlotNextPlotDataPtr ret = ImPlotNextPlotDataNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotNextPlotData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[579])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[579])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotNextPlotDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotNextPlotData self) - { - fixed (ImPlotNextPlotData* pself = &self) - { - DestroyNative((ImPlotNextPlotData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotNextPlotData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[580])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[580])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Reset(ImPlotNextPlotDataPtr self) - { - ResetNative(self); - } - - /// - /// To be documented. - /// - public static void Reset(ref ImPlotNextPlotData self) - { - fixed (ImPlotNextPlotData* pself = &self) - { - ResetNative((ImPlotNextPlotData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotNextItemData* ImPlotNextItemDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[581])(); - #else - return (ImPlotNextItemData*)((delegate* unmanaged[Cdecl])funcTable[581])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotNextItemDataPtr ImPlotNextItemData() - { - ImPlotNextItemDataPtr ret = ImPlotNextItemDataNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotNextItemData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[582])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[582])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Destroy(ImPlotNextItemDataPtr self) - { - DestroyNative(self); - } - - /// - /// To be documented. - /// - public static void Destroy(ref ImPlotNextItemData self) - { - fixed (ImPlotNextItemData* pself = &self) - { - DestroyNative((ImPlotNextItemData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotNextItemData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[583])(self); - #else - ((delegate* unmanaged[Cdecl])funcTable[583])((nint)self); - #endif - } - - /// - /// To be documented. - /// - public static void Reset(ImPlotNextItemDataPtr self) - { - ResetNative(self); - } - - /// - /// To be documented. - /// - public static void Reset(ref ImPlotNextItemData self) - { - fixed (ImPlotNextItemData* pself = &self) - { - ResetNative((ImPlotNextItemData*)pself); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void InitializeNative(ImPlotContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[584])(ctx); - #else - ((delegate* unmanaged[Cdecl])funcTable[584])((nint)ctx); - #endif - } - - /// - /// To be documented. - /// - public static void Initialize(ImPlotContextPtr ctx) - { - InitializeNative(ctx); - } - - /// - /// To be documented. - /// - public static void Initialize(ref ImPlotContext ctx) - { - fixed (ImPlotContext* pctx = &ctx) - { - InitializeNative((ImPlotContext*)pctx); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetCtxForNextPlotNative(ImPlotContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[585])(ctx); - #else - ((delegate* unmanaged[Cdecl])funcTable[585])((nint)ctx); - #endif - } - - /// - /// To be documented. - /// - public static void ResetCtxForNextPlot(ImPlotContextPtr ctx) - { - ResetCtxForNextPlotNative(ctx); - } - - /// - /// To be documented. - /// - public static void ResetCtxForNextPlot(ref ImPlotContext ctx) - { - fixed (ImPlotContext* pctx = &ctx) - { - ResetCtxForNextPlotNative((ImPlotContext*)pctx); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetCtxForNextAlignedPlotsNative(ImPlotContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[586])(ctx); - #else - ((delegate* unmanaged[Cdecl])funcTable[586])((nint)ctx); - #endif - } - - /// - /// To be documented. - /// - public static void ResetCtxForNextAlignedPlots(ImPlotContextPtr ctx) - { - ResetCtxForNextAlignedPlotsNative(ctx); - } - - /// - /// To be documented. - /// - public static void ResetCtxForNextAlignedPlots(ref ImPlotContext ctx) - { - fixed (ImPlotContext* pctx = &ctx) - { - ResetCtxForNextAlignedPlotsNative((ImPlotContext*)pctx); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetCtxForNextSubplotNative(ImPlotContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[587])(ctx); - #else - ((delegate* unmanaged[Cdecl])funcTable[587])((nint)ctx); - #endif - } - - /// - /// To be documented. - /// - public static void ResetCtxForNextSubplot(ImPlotContextPtr ctx) - { - ResetCtxForNextSubplotNative(ctx); - } - - /// - /// To be documented. - /// - public static void ResetCtxForNextSubplot(ref ImPlotContext ctx) - { - fixed (ImPlotContext* pctx = &ctx) - { - ResetCtxForNextSubplotNative((ImPlotContext*)pctx); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotPlot* GetPlotNative(byte* title) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[588])(title); - #else - return (ImPlotPlot*)((delegate* unmanaged[Cdecl])funcTable[588])((nint)title); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotPlotPtr GetPlot(byte* title) - { - ImPlotPlotPtr ret = GetPlotNative(title); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotPlotPtr GetPlot(ref byte title) - { - fixed (byte* ptitle = &title) - { - ImPlotPlotPtr ret = GetPlotNative((byte*)ptitle); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotPlotPtr GetPlot(ReadOnlySpan title) - { - fixed (byte* ptitle = title) - { - ImPlotPlotPtr ret = GetPlotNative((byte*)ptitle); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotPlotPtr GetPlot(string title) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (title != null) - { - pStrSize0 = Utils.GetByteCountUTF8(title); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(title, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotPlotPtr ret = GetPlotNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotPlot* GetCurrentPlotNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[589])(); - #else - return (ImPlotPlot*)((delegate* unmanaged[Cdecl])funcTable[589])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotPlotPtr GetCurrentPlot() - { - ImPlotPlotPtr ret = GetCurrentPlotNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BustPlotCacheNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[590])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[590])(); - #endif - } - - /// - /// To be documented. - /// - public static void BustPlotCache() - { - BustPlotCacheNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowPlotContextMenuNative(ImPlotPlot* plot) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[591])(plot); - #else - ((delegate* unmanaged[Cdecl])funcTable[591])((nint)plot); - #endif - } - - /// - /// To be documented. - /// - public static void ShowPlotContextMenu(ImPlotPlotPtr plot) - { - ShowPlotContextMenuNative(plot); - } - - /// - /// To be documented. - /// - public static void ShowPlotContextMenu(ref ImPlotPlot plot) - { - fixed (ImPlotPlot* pplot = &plot) - { - ShowPlotContextMenuNative((ImPlotPlot*)pplot); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupLockNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[592])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[592])(); - #endif - } - - /// - /// To be documented. - /// - public static void SetupLock() - { - SetupLockNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SubplotNextCellNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[593])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[593])(); - #endif - } - - /// - /// To be documented. - /// - public static void SubplotNextCell() - { - SubplotNextCellNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowSubplotsContextMenuNative(ImPlotSubplot* subplot) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[594])(subplot); - #else - ((delegate* unmanaged[Cdecl])funcTable[594])((nint)subplot); - #endif - } - - /// - /// To be documented. - /// - public static void ShowSubplotsContextMenu(ImPlotSubplotPtr subplot) - { - ShowSubplotsContextMenuNative(subplot); - } - - /// - /// To be documented. - /// - public static void ShowSubplotsContextMenu(ref ImPlotSubplot subplot) - { - fixed (ImPlotSubplot* psubplot = &subplot) - { - ShowSubplotsContextMenuNative((ImPlotSubplot*)psubplot); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginItemNative(byte* labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[595])(labelId, flags, recolorFrom); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[595])((nint)labelId, flags, recolorFrom); - #endif - } - - /// - /// To be documented. - /// - public static bool BeginItem(byte* labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) - { - byte ret = BeginItemNative(labelId, flags, recolorFrom); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginItem(byte* labelId, ImPlotItemFlags flags) - { - byte ret = BeginItemNative(labelId, flags, (ImPlotCol)(-1)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginItem(byte* labelId) - { - byte ret = BeginItemNative(labelId, (ImPlotItemFlags)(0), (ImPlotCol)(-1)); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginItem(byte* labelId, ImPlotCol recolorFrom) - { - byte ret = BeginItemNative(labelId, (ImPlotItemFlags)(0), recolorFrom); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginItem(ref byte labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) - { - fixed (byte* plabelId = &labelId) - { - byte ret = BeginItemNative((byte*)plabelId, flags, recolorFrom); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginItem(ref byte labelId, ImPlotItemFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte ret = BeginItemNative((byte*)plabelId, flags, (ImPlotCol)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginItem(ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - byte ret = BeginItemNative((byte*)plabelId, (ImPlotItemFlags)(0), (ImPlotCol)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginItem(ref byte labelId, ImPlotCol recolorFrom) - { - fixed (byte* plabelId = &labelId) - { - byte ret = BeginItemNative((byte*)plabelId, (ImPlotItemFlags)(0), recolorFrom); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginItem(ReadOnlySpan labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) - { - fixed (byte* plabelId = labelId) - { - byte ret = BeginItemNative((byte*)plabelId, flags, recolorFrom); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginItem(ReadOnlySpan labelId, ImPlotItemFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte ret = BeginItemNative((byte*)plabelId, flags, (ImPlotCol)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginItem(ReadOnlySpan labelId) - { - fixed (byte* plabelId = labelId) - { - byte ret = BeginItemNative((byte*)plabelId, (ImPlotItemFlags)(0), (ImPlotCol)(-1)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginItem(ReadOnlySpan labelId, ImPlotCol recolorFrom) - { - fixed (byte* plabelId = labelId) - { - byte ret = BeginItemNative((byte*)plabelId, (ImPlotItemFlags)(0), recolorFrom); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool BeginItem(string labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginItemNative(pStr0, flags, recolorFrom); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginItem(string labelId, ImPlotItemFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginItemNative(pStr0, flags, (ImPlotCol)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginItem(string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginItemNative(pStr0, (ImPlotItemFlags)(0), (ImPlotCol)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool BeginItem(string labelId, ImPlotCol recolorFrom) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginItemNative(pStr0, (ImPlotItemFlags)(0), recolorFrom); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndItemNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[596])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[596])(); - #endif - } - - /// - /// To be documented. - /// - public static void EndItem() - { - EndItemNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* RegisterOrGetItemNative(byte* labelId, ImPlotItemFlags flags, bool* justCreated) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[597])(labelId, flags, justCreated); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[597])((nint)labelId, flags, (nint)justCreated); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr RegisterOrGetItem(byte* labelId, ImPlotItemFlags flags, bool* justCreated) - { - ImPlotItemPtr ret = RegisterOrGetItemNative(labelId, flags, justCreated); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr RegisterOrGetItem(byte* labelId, ImPlotItemFlags flags) - { - ImPlotItemPtr ret = RegisterOrGetItemNative(labelId, flags, (bool*)(((void*)0))); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr RegisterOrGetItem(ref byte labelId, ImPlotItemFlags flags, bool* justCreated) - { - fixed (byte* plabelId = &labelId) - { - ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, justCreated); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr RegisterOrGetItem(ref byte labelId, ImPlotItemFlags flags) - { - fixed (byte* plabelId = &labelId) - { - ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, (bool*)(((void*)0))); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr RegisterOrGetItem(ReadOnlySpan labelId, ImPlotItemFlags flags, bool* justCreated) - { - fixed (byte* plabelId = labelId) - { - ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, justCreated); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr RegisterOrGetItem(ReadOnlySpan labelId, ImPlotItemFlags flags) - { - fixed (byte* plabelId = labelId) - { - ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, (bool*)(((void*)0))); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr RegisterOrGetItem(string labelId, ImPlotItemFlags flags, bool* justCreated) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotItemPtr ret = RegisterOrGetItemNative(pStr0, flags, justCreated); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr RegisterOrGetItem(string labelId, ImPlotItemFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotItemPtr ret = RegisterOrGetItemNative(pStr0, flags, (bool*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr RegisterOrGetItem(byte* labelId, ImPlotItemFlags flags, ref bool justCreated) - { - fixed (bool* pjustCreated = &justCreated) - { - ImPlotItemPtr ret = RegisterOrGetItemNative(labelId, flags, (bool*)pjustCreated); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr RegisterOrGetItem(ref byte labelId, ImPlotItemFlags flags, ref bool justCreated) - { - fixed (byte* plabelId = &labelId) - { - fixed (bool* pjustCreated = &justCreated) - { - ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, (bool*)pjustCreated); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr RegisterOrGetItem(ReadOnlySpan labelId, ImPlotItemFlags flags, ref bool justCreated) - { - fixed (byte* plabelId = labelId) - { - fixed (bool* pjustCreated = &justCreated) - { - ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, (bool*)pjustCreated); - return ret; - } - } - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr RegisterOrGetItem(string labelId, ImPlotItemFlags flags, ref bool justCreated) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* pjustCreated = &justCreated) - { - ImPlotItemPtr ret = RegisterOrGetItemNative(pStr0, flags, (bool*)pjustCreated); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* GetItemNative(byte* labelId) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[598])(labelId); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[598])((nint)labelId); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetItem(byte* labelId) - { - ImPlotItemPtr ret = GetItemNative(labelId); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetItem(ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - ImPlotItemPtr ret = GetItemNative((byte*)plabelId); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetItem(ReadOnlySpan labelId) - { - fixed (byte* plabelId = labelId) - { - ImPlotItemPtr ret = GetItemNative((byte*)plabelId); - return ret; - } - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetItem(string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotItemPtr ret = GetItemNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* GetCurrentItemNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[599])(); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[599])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotItemPtr GetCurrentItem() - { - ImPlotItemPtr ret = GetCurrentItemNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BustItemCacheNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[600])(); - #else - ((delegate* unmanaged[Cdecl])funcTable[600])(); - #endif - } - - /// - /// To be documented. - /// - public static void BustItemCache() - { - BustItemCacheNative(); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte AnyAxesInputLockedNative(ImPlotAxis* axes, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[601])(axes, count); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[601])((nint)axes, count); - #endif - } - - /// - /// To be documented. - /// - public static bool AnyAxesInputLocked(ImPlotAxisPtr axes, int count) - { - byte ret = AnyAxesInputLockedNative(axes, count); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool AnyAxesInputLocked(ref ImPlotAxis axes, int count) - { - fixed (ImPlotAxis* paxes = &axes) - { - byte ret = AnyAxesInputLockedNative((ImPlotAxis*)paxes, count); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte AllAxesInputLockedNative(ImPlotAxis* axes, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[602])(axes, count); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[602])((nint)axes, count); - #endif - } - - /// - /// To be documented. - /// - public static bool AllAxesInputLocked(ImPlotAxisPtr axes, int count) - { - byte ret = AllAxesInputLockedNative(axes, count); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool AllAxesInputLocked(ref ImPlotAxis axes, int count) - { - fixed (ImPlotAxis* paxes = &axes) - { - byte ret = AllAxesInputLockedNative((ImPlotAxis*)paxes, count); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte AnyAxesHeldNative(ImPlotAxis* axes, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[603])(axes, count); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[603])((nint)axes, count); - #endif - } - - /// - /// To be documented. - /// - public static bool AnyAxesHeld(ImPlotAxisPtr axes, int count) - { - byte ret = AnyAxesHeldNative(axes, count); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool AnyAxesHeld(ref ImPlotAxis axes, int count) - { - fixed (ImPlotAxis* paxes = &axes) - { - byte ret = AnyAxesHeldNative((ImPlotAxis*)paxes, count); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte AnyAxesHoveredNative(ImPlotAxis* axes, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[604])(axes, count); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[604])((nint)axes, count); - #endif - } - - /// - /// To be documented. - /// - public static bool AnyAxesHovered(ImPlotAxisPtr axes, int count) - { - byte ret = AnyAxesHoveredNative(axes, count); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool AnyAxesHovered(ref ImPlotAxis axes, int count) - { - fixed (ImPlotAxis* paxes = &axes) - { - byte ret = AnyAxesHoveredNative((ImPlotAxis*)paxes, count); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte FitThisFrameNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[605])(); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[605])(); - #endif - } - - /// - /// To be documented. - /// - public static bool FitThisFrame() - { - byte ret = FitThisFrameNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FitPointXNative(double x) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[606])(x); - #else - ((delegate* unmanaged[Cdecl])funcTable[606])(x); - #endif - } - - /// - /// To be documented. - /// - public static void FitPointX(double x) - { - FitPointXNative(x); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FitPointYNative(double y) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[607])(y); - #else - ((delegate* unmanaged[Cdecl])funcTable[607])(y); - #endif - } - - /// - /// To be documented. - /// - public static void FitPointY(double y) - { - FitPointYNative(y); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FitPointNative(ImPlotPoint p) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[608])(p); - #else - ((delegate* unmanaged[Cdecl])funcTable[608])(p); - #endif - } - - /// - /// To be documented. - /// - public static void FitPoint(ImPlotPoint p) - { - FitPointNative(p); - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte RangesOverlapNative(ImPlotRange r1, ImPlotRange r2) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[609])(r1, r2); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[609])(r1, r2); - #endif - } - - /// - /// To be documented. - /// - public static bool RangesOverlap(ImPlotRange r1, ImPlotRange r2) - { - byte ret = RangesOverlapNative(r1, r2); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowAxisContextMenuNative(ImPlotAxis* axis, ImPlotAxis* equalAxis, byte timeAllowed) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[610])(axis, equalAxis, timeAllowed); - #else - ((delegate* unmanaged[Cdecl])funcTable[610])((nint)axis, (nint)equalAxis, timeAllowed); - #endif - } - - /// - /// To be documented. - /// - public static void ShowAxisContextMenu(ImPlotAxisPtr axis, ImPlotAxisPtr equalAxis, bool timeAllowed) - { - ShowAxisContextMenuNative(axis, equalAxis, timeAllowed ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void ShowAxisContextMenu(ImPlotAxisPtr axis, ImPlotAxisPtr equalAxis) - { - ShowAxisContextMenuNative(axis, equalAxis, (byte)(0)); - } - - /// - /// To be documented. - /// - public static void ShowAxisContextMenu(ref ImPlotAxis axis, ImPlotAxisPtr equalAxis, bool timeAllowed) - { - fixed (ImPlotAxis* paxis = &axis) - { - ShowAxisContextMenuNative((ImPlotAxis*)paxis, equalAxis, timeAllowed ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void ShowAxisContextMenu(ref ImPlotAxis axis, ImPlotAxisPtr equalAxis) - { - fixed (ImPlotAxis* paxis = &axis) - { - ShowAxisContextMenuNative((ImPlotAxis*)paxis, equalAxis, (byte)(0)); - } - } - - /// - /// To be documented. - /// - public static void ShowAxisContextMenu(ImPlotAxisPtr axis, ref ImPlotAxis equalAxis, bool timeAllowed) - { - fixed (ImPlotAxis* pequalAxis = &equalAxis) - { - ShowAxisContextMenuNative(axis, (ImPlotAxis*)pequalAxis, timeAllowed ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void ShowAxisContextMenu(ImPlotAxisPtr axis, ref ImPlotAxis equalAxis) - { - fixed (ImPlotAxis* pequalAxis = &equalAxis) - { - ShowAxisContextMenuNative(axis, (ImPlotAxis*)pequalAxis, (byte)(0)); - } - } - - /// - /// To be documented. - /// - public static void ShowAxisContextMenu(ref ImPlotAxis axis, ref ImPlotAxis equalAxis, bool timeAllowed) - { - fixed (ImPlotAxis* paxis = &axis) - { - fixed (ImPlotAxis* pequalAxis = &equalAxis) - { - ShowAxisContextMenuNative((ImPlotAxis*)paxis, (ImPlotAxis*)pequalAxis, timeAllowed ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - public static void ShowAxisContextMenu(ref ImPlotAxis axis, ref ImPlotAxis equalAxis) - { - fixed (ImPlotAxis* paxis = &axis) - { - fixed (ImPlotAxis* pequalAxis = &equalAxis) - { - ShowAxisContextMenuNative((ImPlotAxis*)paxis, (ImPlotAxis*)pequalAxis, (byte)(0)); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetLocationPosNative(Vector2* pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location, Vector2 pad) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[611])(pOut, outerRect, innerSize, location, pad); - #else - ((delegate* unmanaged[Cdecl])funcTable[611])((nint)pOut, outerRect, innerSize, location, pad); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 GetLocationPos(ImRect outerRect, Vector2 innerSize, ImPlotLocation location) - { - Vector2 ret; - GetLocationPosNative(&ret, outerRect, innerSize, location, (Vector2)(new Vector2(0,0))); - return ret; - } - - /// - /// To be documented. - /// - public static Vector2 GetLocationPos(ImRect outerRect, Vector2 innerSize, ImPlotLocation location, Vector2 pad) - { - Vector2 ret; - GetLocationPosNative(&ret, outerRect, innerSize, location, pad); - return ret; - } - - /// - /// To be documented. - /// - public static void GetLocationPos(Vector2* pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location, Vector2 pad) - { - GetLocationPosNative(pOut, outerRect, innerSize, location, pad); - } - - /// - /// To be documented. - /// - public static void GetLocationPos(Vector2* pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location) - { - GetLocationPosNative(pOut, outerRect, innerSize, location, (Vector2)(new Vector2(0,0))); - } - - /// - /// To be documented. - /// - public static void GetLocationPos(ref Vector2 pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location, Vector2 pad) - { - fixed (Vector2* ppOut = &pOut) - { - GetLocationPosNative((Vector2*)ppOut, outerRect, innerSize, location, pad); - } - } - - /// - /// To be documented. - /// - public static void GetLocationPos(ref Vector2 pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location) - { - fixed (Vector2* ppOut = &pOut) - { - GetLocationPosNative((Vector2*)ppOut, outerRect, innerSize, location, (Vector2)(new Vector2(0,0))); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcLegendSizeNative(Vector2* pOut, ImPlotItemGroup* items, Vector2 pad, Vector2 spacing, byte vertical) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[612])(pOut, items, pad, spacing, vertical); - #else - ((delegate* unmanaged[Cdecl])funcTable[612])((nint)pOut, (nint)items, pad, spacing, vertical); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 CalcLegendSize(ImPlotItemGroupPtr items, Vector2 pad, Vector2 spacing, bool vertical) - { - Vector2 ret; - CalcLegendSizeNative(&ret, items, pad, spacing, vertical ? (byte)1 : (byte)0); - return ret; - } - - /// - /// To be documented. - /// - public static void CalcLegendSize(Vector2* pOut, ImPlotItemGroupPtr items, Vector2 pad, Vector2 spacing, bool vertical) - { - CalcLegendSizeNative(pOut, items, pad, spacing, vertical ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void CalcLegendSize(ref Vector2 pOut, ImPlotItemGroupPtr items, Vector2 pad, Vector2 spacing, bool vertical) - { - fixed (Vector2* ppOut = &pOut) - { - CalcLegendSizeNative((Vector2*)ppOut, items, pad, spacing, vertical ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcLegendSize(ref ImPlotItemGroup items, Vector2 pad, Vector2 spacing, bool vertical) - { - fixed (ImPlotItemGroup* pitems = &items) - { - Vector2 ret; - CalcLegendSizeNative(&ret, (ImPlotItemGroup*)pitems, pad, spacing, vertical ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public static void CalcLegendSize(Vector2* pOut, ref ImPlotItemGroup items, Vector2 pad, Vector2 spacing, bool vertical) - { - fixed (ImPlotItemGroup* pitems = &items) - { - CalcLegendSizeNative(pOut, (ImPlotItemGroup*)pitems, pad, spacing, vertical ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void CalcLegendSize(ref Vector2 pOut, ref ImPlotItemGroup items, Vector2 pad, Vector2 spacing, bool vertical) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImPlotItemGroup* pitems = &items) - { - CalcLegendSizeNative((Vector2*)ppOut, (ImPlotItemGroup*)pitems, pad, spacing, vertical ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ShowLegendEntriesNative(ImPlotItemGroup* items, ImRect legendBb, byte interactable, Vector2 pad, Vector2 spacing, byte vertical, ImDrawList* drawList) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[613])(items, legendBb, interactable, pad, spacing, vertical, drawList); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[613])((nint)items, legendBb, interactable, pad, spacing, vertical, (nint)drawList); - #endif - } - - /// - /// To be documented. - /// - public static bool ShowLegendEntries(ImPlotItemGroupPtr items, ImRect legendBb, bool interactable, Vector2 pad, Vector2 spacing, bool vertical, ImDrawListPtr drawList) - { - byte ret = ShowLegendEntriesNative(items, legendBb, interactable ? (byte)1 : (byte)0, pad, spacing, vertical ? (byte)1 : (byte)0, drawList); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ShowLegendEntries(ref ImPlotItemGroup items, ImRect legendBb, bool interactable, Vector2 pad, Vector2 spacing, bool vertical, ImDrawListPtr drawList) - { - fixed (ImPlotItemGroup* pitems = &items) - { - byte ret = ShowLegendEntriesNative((ImPlotItemGroup*)pitems, legendBb, interactable ? (byte)1 : (byte)0, pad, spacing, vertical ? (byte)1 : (byte)0, drawList); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowLegendEntries(ImPlotItemGroupPtr items, ImRect legendBb, bool interactable, Vector2 pad, Vector2 spacing, bool vertical, ref ImDrawList drawList) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte ret = ShowLegendEntriesNative(items, legendBb, interactable ? (byte)1 : (byte)0, pad, spacing, vertical ? (byte)1 : (byte)0, (ImDrawList*)pdrawList); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowLegendEntries(ref ImPlotItemGroup items, ImRect legendBb, bool interactable, Vector2 pad, Vector2 spacing, bool vertical, ref ImDrawList drawList) - { - fixed (ImPlotItemGroup* pitems = &items) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte ret = ShowLegendEntriesNative((ImPlotItemGroup*)pitems, legendBb, interactable ? (byte)1 : (byte)0, pad, spacing, vertical ? (byte)1 : (byte)0, (ImDrawList*)pdrawList); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowAltLegendNative(byte* titleId, byte vertical, Vector2 size, byte interactable) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[614])(titleId, vertical, size, interactable); - #else - ((delegate* unmanaged[Cdecl])funcTable[614])((nint)titleId, vertical, size, interactable); - #endif - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(byte* titleId, bool vertical, Vector2 size, bool interactable) - { - ShowAltLegendNative(titleId, vertical ? (byte)1 : (byte)0, size, interactable ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(byte* titleId, bool vertical, Vector2 size) - { - ShowAltLegendNative(titleId, vertical ? (byte)1 : (byte)0, size, (byte)(1)); - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(byte* titleId, bool vertical) - { - ShowAltLegendNative(titleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), (byte)(1)); - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(byte* titleId) - { - ShowAltLegendNative(titleId, (byte)(1), (Vector2)(new Vector2(0,0)), (byte)(1)); - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(byte* titleId, Vector2 size) - { - ShowAltLegendNative(titleId, (byte)(1), size, (byte)(1)); - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(byte* titleId, bool vertical, bool interactable) - { - ShowAltLegendNative(titleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), interactable ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(byte* titleId, Vector2 size, bool interactable) - { - ShowAltLegendNative(titleId, (byte)(1), size, interactable ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(ref byte titleId, bool vertical, Vector2 size, bool interactable) - { - fixed (byte* ptitleId = &titleId) - { - ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, size, interactable ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(ref byte titleId, bool vertical, Vector2 size) - { - fixed (byte* ptitleId = &titleId) - { - ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, size, (byte)(1)); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(ref byte titleId, bool vertical) - { - fixed (byte* ptitleId = &titleId) - { - ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), (byte)(1)); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(ref byte titleId) - { - fixed (byte* ptitleId = &titleId) - { - ShowAltLegendNative((byte*)ptitleId, (byte)(1), (Vector2)(new Vector2(0,0)), (byte)(1)); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(ref byte titleId, Vector2 size) - { - fixed (byte* ptitleId = &titleId) - { - ShowAltLegendNative((byte*)ptitleId, (byte)(1), size, (byte)(1)); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(ref byte titleId, bool vertical, bool interactable) - { - fixed (byte* ptitleId = &titleId) - { - ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), interactable ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(ref byte titleId, Vector2 size, bool interactable) - { - fixed (byte* ptitleId = &titleId) - { - ShowAltLegendNative((byte*)ptitleId, (byte)(1), size, interactable ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(ReadOnlySpan titleId, bool vertical, Vector2 size, bool interactable) - { - fixed (byte* ptitleId = titleId) - { - ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, size, interactable ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(ReadOnlySpan titleId, bool vertical, Vector2 size) - { - fixed (byte* ptitleId = titleId) - { - ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, size, (byte)(1)); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(ReadOnlySpan titleId, bool vertical) - { - fixed (byte* ptitleId = titleId) - { - ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), (byte)(1)); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(ReadOnlySpan titleId) - { - fixed (byte* ptitleId = titleId) - { - ShowAltLegendNative((byte*)ptitleId, (byte)(1), (Vector2)(new Vector2(0,0)), (byte)(1)); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(ReadOnlySpan titleId, Vector2 size) - { - fixed (byte* ptitleId = titleId) - { - ShowAltLegendNative((byte*)ptitleId, (byte)(1), size, (byte)(1)); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(ReadOnlySpan titleId, bool vertical, bool interactable) - { - fixed (byte* ptitleId = titleId) - { - ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), interactable ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(ReadOnlySpan titleId, Vector2 size, bool interactable) - { - fixed (byte* ptitleId = titleId) - { - ShowAltLegendNative((byte*)ptitleId, (byte)(1), size, interactable ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(string titleId, bool vertical, Vector2 size, bool interactable) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ShowAltLegendNative(pStr0, vertical ? (byte)1 : (byte)0, size, interactable ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(string titleId, bool vertical, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ShowAltLegendNative(pStr0, vertical ? (byte)1 : (byte)0, size, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(string titleId, bool vertical) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ShowAltLegendNative(pStr0, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(string titleId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ShowAltLegendNative(pStr0, (byte)(1), (Vector2)(new Vector2(0,0)), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(string titleId, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ShowAltLegendNative(pStr0, (byte)(1), size, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(string titleId, bool vertical, bool interactable) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ShowAltLegendNative(pStr0, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), interactable ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void ShowAltLegend(string titleId, Vector2 size, bool interactable) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ShowAltLegendNative(pStr0, (byte)(1), size, interactable ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ShowLegendContextMenuNative(ImPlotLegend* legend, byte visible) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[615])(legend, visible); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[615])((nint)legend, visible); - #endif - } - - /// - /// To be documented. - /// - public static bool ShowLegendContextMenu(ImPlotLegendPtr legend, bool visible) - { - byte ret = ShowLegendContextMenuNative(legend, visible ? (byte)1 : (byte)0); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ShowLegendContextMenu(ref ImPlotLegend legend, bool visible) - { - fixed (ImPlotLegend* plegend = &legend) - { - byte ret = ShowLegendContextMenuNative((ImPlotLegend*)plegend, visible ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LabelAxisValueNative(ImPlotAxis axis, double value, byte* buff, int size, byte round) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[616])(axis, value, buff, size, round); - #else - ((delegate* unmanaged[Cdecl])funcTable[616])(axis, value, (nint)buff, size, round); - #endif - } - - /// - /// To be documented. - /// - public static void LabelAxisValue(ImPlotAxis axis, double value, byte* buff, int size, bool round) - { - LabelAxisValueNative(axis, value, buff, size, round ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void LabelAxisValue(ImPlotAxis axis, double value, byte* buff, int size) - { - LabelAxisValueNative(axis, value, buff, size, (byte)(0)); - } - - /// - /// To be documented. - /// - public static void LabelAxisValue(ImPlotAxis axis, double value, ref byte buff, int size, bool round) - { - fixed (byte* pbuff = &buff) - { - LabelAxisValueNative(axis, value, (byte*)pbuff, size, round ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void LabelAxisValue(ImPlotAxis axis, double value, ref byte buff, int size) - { - fixed (byte* pbuff = &buff) - { - LabelAxisValueNative(axis, value, (byte*)pbuff, size, (byte)(0)); - } - } - - /// - /// To be documented. - /// - public static void LabelAxisValue(ImPlotAxis axis, double value, ref string buff, int size, bool round) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buff != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buff); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LabelAxisValueNative(axis, value, pStr0, size, round ? (byte)1 : (byte)0); - buff = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void LabelAxisValue(ImPlotAxis axis, double value, ref string buff, int size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buff != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buff); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LabelAxisValueNative(axis, value, pStr0, size, (byte)(0)); - buff = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotNextItemData* GetItemDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[617])(); - #else - return (ImPlotNextItemData*)((delegate* unmanaged[Cdecl])funcTable[617])(); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotNextItemDataPtr GetItemData() - { - ImPlotNextItemDataPtr ret = GetItemDataNative(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsColorAutoNative(Vector4 col) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[618])(col); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[618])(col); - #endif - } - - /// - /// To be documented. - /// - public static bool IsColorAuto(Vector4 col) - { - byte ret = IsColorAutoNative(col); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsColorAutoNative(ImPlotCol idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[619])(idx); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[619])(idx); - #endif - } - - /// - /// To be documented. - /// - public static bool IsColorAuto(ImPlotCol idx) - { - byte ret = IsColorAutoNative(idx); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetAutoColorNative(Vector4* pOut, ImPlotCol idx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[620])(pOut, idx); - #else - ((delegate* unmanaged[Cdecl])funcTable[620])((nint)pOut, idx); - #endif - } - - /// - /// To be documented. - /// - public static Vector4 GetAutoColor(ImPlotCol idx) - { - Vector4 ret; - GetAutoColorNative(&ret, idx); - return ret; - } - - /// - /// To be documented. - /// - public static void GetAutoColor(Vector4* pOut, ImPlotCol idx) - { - GetAutoColorNative(pOut, idx); - } - - /// - /// To be documented. - /// - public static void GetAutoColor(ref Vector4 pOut, ImPlotCol idx) - { - fixed (Vector4* ppOut = &pOut) - { - GetAutoColorNative((Vector4*)ppOut, idx); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetStyleColorVec4Native(Vector4* pOut, ImPlotCol idx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[621])(pOut, idx); - #else - ((delegate* unmanaged[Cdecl])funcTable[621])((nint)pOut, idx); - #endif - } - - /// - /// To be documented. - /// - public static Vector4 GetStyleColorVec4(ImPlotCol idx) - { - Vector4 ret; - GetStyleColorVec4Native(&ret, idx); - return ret; - } - - /// - /// To be documented. - /// - public static void GetStyleColorVec4(Vector4* pOut, ImPlotCol idx) - { - GetStyleColorVec4Native(pOut, idx); - } - - /// - /// To be documented. - /// - public static void GetStyleColorVec4(ref Vector4 pOut, ImPlotCol idx) - { - fixed (Vector4* ppOut = &pOut) - { - GetStyleColorVec4Native((Vector4*)ppOut, idx); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetStyleColorU32Native(ImPlotCol idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[622])(idx); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[622])(idx); - #endif - } - - /// - /// To be documented. - /// - public static uint GetStyleColorU32(ImPlotCol idx) - { - uint ret = GetStyleColorU32Native(idx); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddTextVerticalNative(ImDrawList* drawList, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[623])(drawList, pos, col, textBegin, textEnd); - #else - ((delegate* unmanaged[Cdecl])funcTable[623])((nint)drawList, pos, col, (nint)textBegin, (nint)textEnd); - #endif - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - AddTextVerticalNative(drawList, pos, col, textBegin, textEnd); - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin) - { - AddTextVerticalNative(drawList, pos, col, textBegin, (byte*)(((void*)0))); - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, textEnd); - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin) - { - fixed (ImDrawList* pdrawList = &drawList) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, (byte*)(((void*)0))); - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, textEnd); - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)(((void*)0))); - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, textEnd); - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan textBegin) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)(((void*)0))); - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative(drawList, pos, col, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative(drawList, pos, col, pStr0, (byte*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, textEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)(((void*)0))); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, textEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan textBegin) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)(((void*)0))); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, (byte*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextVerticalNative(drawList, pos, col, textBegin, (byte*)ptextEnd); - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextVerticalNative(drawList, pos, col, textBegin, (byte*)ptextEnd); - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative(drawList, pos, col, textBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextVerticalNative(drawList, pos, col, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.134.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.134.cs deleted file mode 100644 index 0d193b092..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.134.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextVerticalNative(drawList, pos, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextVerticalNative(drawList, pos, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddTextCenteredNative(ImDrawList* drawList, Vector2 topCenter, uint col, byte* textBegin, byte* textEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[624])(drawList, topCenter, col, textBegin, textEnd); - #else - ((delegate* unmanaged[Cdecl])funcTable[624])((nint)drawList, topCenter, col, (nint)textBegin, (nint)textEnd); - #endif - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin, byte* textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, textBegin, textEnd); - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin) - { - AddTextCenteredNative(drawList, topCenter, col, textBegin, (byte*)(((void*)0))); - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, textEnd); - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin) - { - fixed (ImDrawList* pdrawList = &drawList) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, (byte*)(((void*)0))); - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, textEnd); - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)(((void*)0))); - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, textEnd); - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)(((void*)0))); - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative(drawList, topCenter, col, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative(drawList, topCenter, col, pStr0, (byte*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, textEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)(((void*)0))); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, textEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)(((void*)0))); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, (byte*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, textBegin, (byte*)ptextEnd); - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin, ReadOnlySpan textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, textBegin, (byte*)ptextEnd); - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative(drawList, topCenter, col, textBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextCenteredNative(drawList, topCenter, col, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin, ReadOnlySpan textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin, string textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, string textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin, ReadOnlySpan textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin, ReadOnlySpan textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcTextSizeVerticalNative(Vector2* pOut, byte* text) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[625])(pOut, text); - #else - ((delegate* unmanaged[Cdecl])funcTable[625])((nint)pOut, (nint)text); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeVertical(byte* text) - { - Vector2 ret; - CalcTextSizeVerticalNative(&ret, text); - return ret; - } - - /// - /// To be documented. - /// - public static void CalcTextSizeVertical(Vector2* pOut, byte* text) - { - CalcTextSizeVerticalNative(pOut, text); - } - - /// - /// To be documented. - /// - public static void CalcTextSizeVertical(ref Vector2 pOut, byte* text) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeVerticalNative((Vector2*)ppOut, text); - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeVertical(ref byte text) - { - fixed (byte* ptext = &text) - { - Vector2 ret; - CalcTextSizeVerticalNative(&ret, (byte*)ptext); - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeVertical(ReadOnlySpan text) - { - fixed (byte* ptext = text) - { - Vector2 ret; - CalcTextSizeVerticalNative(&ret, (byte*)ptext); - return ret; - } - } - - /// - /// To be documented. - /// - public static Vector2 CalcTextSizeVertical(string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeVerticalNative(&ret, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - public static void CalcTextSizeVertical(ref Vector2 pOut, ref byte text) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeVerticalNative((Vector2*)ppOut, (byte*)ptext); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeVertical(ref Vector2 pOut, ReadOnlySpan text) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - CalcTextSizeVerticalNative((Vector2*)ppOut, (byte*)ptext); - } - } - } - - /// - /// To be documented. - /// - public static void CalcTextSizeVertical(ref Vector2 pOut, string text) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeVerticalNative((Vector2*)ppOut, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint CalcTextColorNative(Vector4 bg) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[626])(bg); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[626])(bg); - #endif - } - - /// - /// To be documented. - /// - public static uint CalcTextColor(Vector4 bg) - { - uint ret = CalcTextColorNative(bg); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint CalcTextColorNative(uint bg) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[627])(bg); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[627])(bg); - #endif - } - - /// - /// To be documented. - /// - public static uint CalcTextColor(uint bg) - { - uint ret = CalcTextColorNative(bg); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint CalcHoverColorNative(uint col) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[628])(col); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[628])(col); - #endif - } - - /// - /// To be documented. - /// - public static uint CalcHoverColor(uint col) - { - uint ret = CalcHoverColorNative(col); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClampLabelPosNative(Vector2* pOut, Vector2 pos, Vector2 size, Vector2 min, Vector2 max) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[629])(pOut, pos, size, min, max); - #else - ((delegate* unmanaged[Cdecl])funcTable[629])((nint)pOut, pos, size, min, max); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 ClampLabelPos(Vector2 pos, Vector2 size, Vector2 min, Vector2 max) - { - Vector2 ret; - ClampLabelPosNative(&ret, pos, size, min, max); - return ret; - } - - /// - /// To be documented. - /// - public static void ClampLabelPos(Vector2* pOut, Vector2 pos, Vector2 size, Vector2 min, Vector2 max) - { - ClampLabelPosNative(pOut, pos, size, min, max); - } - - /// - /// To be documented. - /// - public static void ClampLabelPos(ref Vector2 pOut, Vector2 pos, Vector2 size, Vector2 min, Vector2 max) - { - fixed (Vector2* ppOut = &pOut) - { - ClampLabelPosNative((Vector2*)ppOut, pos, size, min, max); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetColormapColorU32Native(int idx, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[630])(idx, cmap); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[630])(idx, cmap); - #endif - } - - /// - /// To be documented. - /// - public static uint GetColormapColorU32(int idx, ImPlotColormap cmap) - { - uint ret = GetColormapColorU32Native(idx, cmap); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint NextColormapColorU32Native() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[631])(); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[631])(); - #endif - } - - /// - /// To be documented. - /// - public static uint NextColormapColorU32() - { - uint ret = NextColormapColorU32Native(); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint SampleColormapU32Native(float t, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[632])(t, cmap); - #else - return (uint)((delegate* unmanaged[Cdecl])funcTable[632])(t, cmap); - #endif - } - - /// - /// To be documented. - /// - public static uint SampleColormapU32(float t, ImPlotColormap cmap) - { - uint ret = SampleColormapU32Native(t, cmap); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderColorBarNative(uint* colors, int size, ImDrawList* drawList, ImRect bounds, byte vert, byte reversed, byte continuous) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[633])(colors, size, drawList, bounds, vert, reversed, continuous); - #else - ((delegate* unmanaged[Cdecl])funcTable[633])((nint)colors, size, (nint)drawList, bounds, vert, reversed, continuous); - #endif - } - - /// - /// To be documented. - /// - public static void RenderColorBar(uint* colors, int size, ImDrawListPtr drawList, ImRect bounds, bool vert, bool reversed, bool continuous) - { - RenderColorBarNative(colors, size, drawList, bounds, vert ? (byte)1 : (byte)0, reversed ? (byte)1 : (byte)0, continuous ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - public static void RenderColorBar(ref uint colors, int size, ImDrawListPtr drawList, ImRect bounds, bool vert, bool reversed, bool continuous) - { - fixed (uint* pcolors = &colors) - { - RenderColorBarNative((uint*)pcolors, size, drawList, bounds, vert ? (byte)1 : (byte)0, reversed ? (byte)1 : (byte)0, continuous ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void RenderColorBar(uint* colors, int size, ref ImDrawList drawList, ImRect bounds, bool vert, bool reversed, bool continuous) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderColorBarNative(colors, size, (ImDrawList*)pdrawList, bounds, vert ? (byte)1 : (byte)0, reversed ? (byte)1 : (byte)0, continuous ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - public static void RenderColorBar(ref uint colors, int size, ref ImDrawList drawList, ImRect bounds, bool vert, bool reversed, bool continuous) - { - fixed (uint* pcolors = &colors) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderColorBarNative((uint*)pcolors, size, (ImDrawList*)pdrawList, bounds, vert ? (byte)1 : (byte)0, reversed ? (byte)1 : (byte)0, continuous ? (byte)1 : (byte)0); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double NiceNumNative(double x, byte round) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[634])(x, round); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[634])(x, round); - #endif - } - - /// - /// To be documented. - /// - public static double NiceNum(double x, bool round) - { - double ret = NiceNumNative(x, round ? (byte)1 : (byte)0); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int OrderOfMagnitudeNative(double val) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[635])(val); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[635])(val); - #endif - } - - /// - /// To be documented. - /// - public static int OrderOfMagnitude(double val) - { - int ret = OrderOfMagnitudeNative(val); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int OrderToPrecisionNative(int order) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[636])(order); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[636])(order); - #endif - } - - /// - /// To be documented. - /// - public static int OrderToPrecision(int order) - { - int ret = OrderToPrecisionNative(order); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int PrecisionNative(double val) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[637])(val); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[637])(val); - #endif - } - - /// - /// To be documented. - /// - public static int Precision(double val) - { - int ret = PrecisionNative(val); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double RoundToNative(double val, int prec) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[638])(val, prec); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[638])(val, prec); - #endif - } - - /// - /// To be documented. - /// - public static double RoundTo(double val, int prec) - { - double ret = RoundToNative(val, prec); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void IntersectionNative(Vector2* pOut, Vector2 a1, Vector2 a2, Vector2 b1, Vector2 b2) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[639])(pOut, a1, a2, b1, b2); - #else - ((delegate* unmanaged[Cdecl])funcTable[639])((nint)pOut, a1, a2, b1, b2); - #endif - } - - /// - /// To be documented. - /// - public static Vector2 Intersection(Vector2 a1, Vector2 a2, Vector2 b1, Vector2 b2) - { - Vector2 ret; - IntersectionNative(&ret, a1, a2, b1, b2); - return ret; - } - - /// - /// To be documented. - /// - public static void Intersection(Vector2* pOut, Vector2 a1, Vector2 a2, Vector2 b1, Vector2 b2) - { - IntersectionNative(pOut, a1, a2, b1, b2); - } - - /// - /// To be documented. - /// - public static void Intersection(ref Vector2 pOut, Vector2 a1, Vector2 a2, Vector2 b1, Vector2 b2) - { - fixed (Vector2* ppOut = &pOut) - { - IntersectionNative((Vector2*)ppOut, a1, a2, b1, b2); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector* buffer, int n, float vmin, float vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]*, int, float, float, void>)funcTable[640])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl])funcTable[640])((nint)buffer, n, vmin, vmax); - #endif - } - - /// - /// To be documented. - /// - public static void FillRange(ImVector* buffer, int n, float vmin, float vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// - /// To be documented. - /// - public static void FillRange(ref ImVector buffer, int n, float vmin, float vmax) - { - fixed (ImVector* pbuffer = &buffer) - { - FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector* buffer, int n, double vmin, double vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]*, int, double, double, void>)funcTable[641])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl])funcTable[641])((nint)buffer, n, vmin, vmax); - #endif - } - - /// - /// To be documented. - /// - public static void FillRange(ImVector* buffer, int n, double vmin, double vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// - /// To be documented. - /// - public static void FillRange(ref ImVector buffer, int n, double vmin, double vmax) - { - fixed (ImVector* pbuffer = &buffer) - { - FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector* buffer, int n, byte vmin, byte vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]*, int, byte, byte, void>)funcTable[642])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl])funcTable[642])((nint)buffer, n, vmin, vmax); - #endif - } - - /// - /// To be documented. - /// - public static void FillRange(ImVector* buffer, int n, byte vmin, byte vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// - /// To be documented. - /// - public static void FillRange(ref ImVector buffer, int n, byte vmin, byte vmax) - { - fixed (ImVector* pbuffer = &buffer) - { - FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector* buffer, int n, byte vmin, byte vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]*, int, byte, byte, void>)funcTable[643])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl])funcTable[643])((nint)buffer, n, vmin, vmax); - #endif - } - - /// - /// To be documented. - /// - public static void FillRange(ImVector* buffer, int n, byte vmin, byte vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// - /// To be documented. - /// - public static void FillRange(ref ImVector buffer, int n, byte vmin, byte vmax) - { - fixed (ImVector* pbuffer = &buffer) - { - FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector* buffer, int n, short vmin, short vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]*, int, short, short, void>)funcTable[644])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl])funcTable[644])((nint)buffer, n, vmin, vmax); - #endif - } - - /// - /// To be documented. - /// - public static void FillRange(ImVector* buffer, int n, short vmin, short vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// - /// To be documented. - /// - public static void FillRange(ref ImVector buffer, int n, short vmin, short vmax) - { - fixed (ImVector* pbuffer = &buffer) - { - FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector* buffer, int n, ushort vmin, ushort vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]*, int, ushort, ushort, void>)funcTable[645])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl])funcTable[645])((nint)buffer, n, vmin, vmax); - #endif - } - - /// - /// To be documented. - /// - public static void FillRange(ImVector* buffer, int n, ushort vmin, ushort vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// - /// To be documented. - /// - public static void FillRange(ref ImVector buffer, int n, ushort vmin, ushort vmax) - { - fixed (ImVector* pbuffer = &buffer) - { - FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector* buffer, int n, int vmin, int vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]*, int, int, int, void>)funcTable[646])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl])funcTable[646])((nint)buffer, n, vmin, vmax); - #endif - } - - /// - /// To be documented. - /// - public static void FillRange(ImVector* buffer, int n, int vmin, int vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// - /// To be documented. - /// - public static void FillRange(ref ImVector buffer, int n, int vmin, int vmax) - { - fixed (ImVector* pbuffer = &buffer) - { - FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector* buffer, int n, uint vmin, uint vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]*, int, uint, uint, void>)funcTable[647])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl])funcTable[647])((nint)buffer, n, vmin, vmax); - #endif - } - - /// - /// To be documented. - /// - public static void FillRange(ImVector* buffer, int n, uint vmin, uint vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// - /// To be documented. - /// - public static void FillRange(ref ImVector buffer, int n, uint vmin, uint vmax) - { - fixed (ImVector* pbuffer = &buffer) - { - FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector* buffer, int n, long vmin, long vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]*, int, long, long, void>)funcTable[648])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl])funcTable[648])((nint)buffer, n, vmin, vmax); - #endif - } - - /// - /// To be documented. - /// - public static void FillRange(ImVector* buffer, int n, long vmin, long vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// - /// To be documented. - /// - public static void FillRange(ref ImVector buffer, int n, long vmin, long vmax) - { - fixed (ImVector* pbuffer = &buffer) - { - FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector* buffer, int n, ulong vmin, ulong vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]*, int, ulong, ulong, void>)funcTable[649])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl])funcTable[649])((nint)buffer, n, vmin, vmax); - #endif - } - - /// - /// To be documented. - /// - public static void FillRange(ImVector* buffer, int n, ulong vmin, ulong vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// - /// To be documented. - /// - public static void FillRange(ref ImVector buffer, int n, ulong vmin, ulong vmax) - { - fixed (ImVector* pbuffer = &buffer) - { - FillRangeNative((ImVector*)pbuffer, n, vmin, vmax); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(float* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[650])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[650])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// - /// To be documented. - /// - public static void CalculateBins(float* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref float values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - fixed (float* pvalues = &values) - { - CalculateBinsNative((float*)pvalues, count, meth, range, binsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(float* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref float values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (float* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative((float*)pvalues, count, meth, range, (int*)pbinsOut, widthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(float* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref float values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (float* pvalues = &values) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((float*)pvalues, count, meth, range, binsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(float* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref float values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (float* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((float*)pvalues, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(double* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[651])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[651])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// - /// To be documented. - /// - public static void CalculateBins(double* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref double values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - fixed (double* pvalues = &values) - { - CalculateBinsNative((double*)pvalues, count, meth, range, binsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(double* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref double values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (double* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative((double*)pvalues, count, meth, range, (int*)pbinsOut, widthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(double* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref double values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pvalues = &values) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((double*)pvalues, count, meth, range, binsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(double* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref double values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (double* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((double*)pvalues, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(byte* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[652])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[652])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// - /// To be documented. - /// - public static void CalculateBins(byte* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref byte values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - fixed (byte* pvalues = &values) - { - CalculateBinsNative((byte*)pvalues, count, meth, range, binsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(byte* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref byte values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (byte* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative((byte*)pvalues, count, meth, range, (int*)pbinsOut, widthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(byte* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref byte values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (byte* pvalues = &values) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((byte*)pvalues, count, meth, range, binsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(byte* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref byte values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (byte* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((byte*)pvalues, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(short* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[653])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[653])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// - /// To be documented. - /// - public static void CalculateBins(short* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref short values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - fixed (short* pvalues = &values) - { - CalculateBinsNative((short*)pvalues, count, meth, range, binsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(short* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref short values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (short* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative((short*)pvalues, count, meth, range, (int*)pbinsOut, widthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(short* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref short values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (short* pvalues = &values) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((short*)pvalues, count, meth, range, binsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(short* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref short values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (short* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((short*)pvalues, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(ushort* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[654])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[654])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// - /// To be documented. - /// - public static void CalculateBins(ushort* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref ushort values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - fixed (ushort* pvalues = &values) - { - CalculateBinsNative((ushort*)pvalues, count, meth, range, binsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ushort* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref ushort values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (ushort* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative((ushort*)pvalues, count, meth, range, (int*)pbinsOut, widthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ushort* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref ushort values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (ushort* pvalues = &values) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((ushort*)pvalues, count, meth, range, binsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ushort* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref ushort values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (ushort* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((ushort*)pvalues, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(int* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[655])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[655])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// - /// To be documented. - /// - public static void CalculateBins(int* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref int values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - fixed (int* pvalues = &values) - { - CalculateBinsNative((int*)pvalues, count, meth, range, binsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(int* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref int values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative((int*)pvalues, count, meth, range, (int*)pbinsOut, widthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(int* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref int values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (int* pvalues = &values) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((int*)pvalues, count, meth, range, binsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(int* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref int values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((int*)pvalues, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(uint* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[656])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[656])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// - /// To be documented. - /// - public static void CalculateBins(uint* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref uint values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - fixed (uint* pvalues = &values) - { - CalculateBinsNative((uint*)pvalues, count, meth, range, binsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(uint* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref uint values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (uint* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative((uint*)pvalues, count, meth, range, (int*)pbinsOut, widthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(uint* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref uint values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (uint* pvalues = &values) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((uint*)pvalues, count, meth, range, binsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(uint* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref uint values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (uint* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((uint*)pvalues, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(long* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[657])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[657])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// - /// To be documented. - /// - public static void CalculateBins(long* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref long values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - fixed (long* pvalues = &values) - { - CalculateBinsNative((long*)pvalues, count, meth, range, binsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(long* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref long values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (long* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative((long*)pvalues, count, meth, range, (int*)pbinsOut, widthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(long* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref long values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (long* pvalues = &values) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((long*)pvalues, count, meth, range, binsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(long* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref long values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (long* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((long*)pvalues, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(ulong* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[658])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl])funcTable[658])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// - /// To be documented. - /// - public static void CalculateBins(ulong* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref ulong values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - fixed (ulong* pvalues = &values) - { - CalculateBinsNative((ulong*)pvalues, count, meth, range, binsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ulong* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref ulong values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (ulong* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative((ulong*)pvalues, count, meth, range, (int*)pbinsOut, widthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ulong* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref ulong values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (ulong* pvalues = &values) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((ulong*)pvalues, count, meth, range, binsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ulong* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// - /// To be documented. - /// - public static void CalculateBins(ref ulong values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (ulong* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((ulong*)pvalues, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsLeapYearNative(int year) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[659])(year); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[659])(year); - #endif - } - - /// - /// To be documented. - /// - public static bool IsLeapYear(int year) - { - byte ret = IsLeapYearNative(year); - return ret != 0; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetDaysInMonthNative(int year, int month) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[660])(year, month); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[660])(year, month); - #endif - } - - /// - /// To be documented. - /// - public static int GetDaysInMonth(int year, int month) - { - int ret = GetDaysInMonthNative(year, month); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MkGmtTimeNative(ImPlotTime* pOut, Tm* ptm) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[661])(pOut, ptm); - #else - ((delegate* unmanaged[Cdecl])funcTable[661])((nint)pOut, (nint)ptm); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTime MkGmtTime(Tm* ptm) - { - ImPlotTime ret; - MkGmtTimeNative(&ret, ptm); - return ret; - } - - /// - /// To be documented. - /// - public static void MkGmtTime(ImPlotTimePtr pOut, Tm* ptm) - { - MkGmtTimeNative(pOut, ptm); - } - - /// - /// To be documented. - /// - public static void MkGmtTime(ref ImPlotTime pOut, Tm* ptm) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MkGmtTimeNative((ImPlotTime*)ppOut, ptm); - } - } - - /// - /// To be documented. - /// - public static ImPlotTime MkGmtTime(ref Tm ptm) - { - fixed (Tm* pptm = &ptm) - { - ImPlotTime ret; - MkGmtTimeNative(&ret, (Tm*)pptm); - return ret; - } - } - - /// - /// To be documented. - /// - public static void MkGmtTime(ImPlotTimePtr pOut, ref Tm ptm) - { - fixed (Tm* pptm = &ptm) - { - MkGmtTimeNative(pOut, (Tm*)pptm); - } - } - - /// - /// To be documented. - /// - public static void MkGmtTime(ref ImPlotTime pOut, ref Tm ptm) - { - fixed (ImPlotTime* ppOut = &pOut) - { - fixed (Tm* pptm = &ptm) - { - MkGmtTimeNative((ImPlotTime*)ppOut, (Tm*)pptm); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static Tm* GetGmtTimeNative(ImPlotTime t, Tm* ptm) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[662])(t, ptm); - #else - return (Tm*)((delegate* unmanaged[Cdecl])funcTable[662])(t, (nint)ptm); - #endif - } - - /// - /// To be documented. - /// - public static Tm* GetGmtTime(ImPlotTime t, Tm* ptm) - { - Tm* ret = GetGmtTimeNative(t, ptm); - return ret; - } - - /// - /// To be documented. - /// - public static Tm* GetGmtTime(ImPlotTime t, ref Tm ptm) - { - fixed (Tm* pptm = &ptm) - { - Tm* ret = GetGmtTimeNative(t, (Tm*)pptm); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MkLocTimeNative(ImPlotTime* pOut, Tm* ptm) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[663])(pOut, ptm); - #else - ((delegate* unmanaged[Cdecl])funcTable[663])((nint)pOut, (nint)ptm); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTime MkLocTime(Tm* ptm) - { - ImPlotTime ret; - MkLocTimeNative(&ret, ptm); - return ret; - } - - /// - /// To be documented. - /// - public static void MkLocTime(ImPlotTimePtr pOut, Tm* ptm) - { - MkLocTimeNative(pOut, ptm); - } - - /// - /// To be documented. - /// - public static void MkLocTime(ref ImPlotTime pOut, Tm* ptm) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MkLocTimeNative((ImPlotTime*)ppOut, ptm); - } - } - - /// - /// To be documented. - /// - public static ImPlotTime MkLocTime(ref Tm ptm) - { - fixed (Tm* pptm = &ptm) - { - ImPlotTime ret; - MkLocTimeNative(&ret, (Tm*)pptm); - return ret; - } - } - - /// - /// To be documented. - /// - public static void MkLocTime(ImPlotTimePtr pOut, ref Tm ptm) - { - fixed (Tm* pptm = &ptm) - { - MkLocTimeNative(pOut, (Tm*)pptm); - } - } - - /// - /// To be documented. - /// - public static void MkLocTime(ref ImPlotTime pOut, ref Tm ptm) - { - fixed (ImPlotTime* ppOut = &pOut) - { - fixed (Tm* pptm = &ptm) - { - MkLocTimeNative((ImPlotTime*)ppOut, (Tm*)pptm); - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static Tm* GetLocTimeNative(ImPlotTime t, Tm* ptm) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[664])(t, ptm); - #else - return (Tm*)((delegate* unmanaged[Cdecl])funcTable[664])(t, (nint)ptm); - #endif - } - - /// - /// To be documented. - /// - public static Tm* GetLocTime(ImPlotTime t, Tm* ptm) - { - Tm* ret = GetLocTimeNative(t, ptm); - return ret; - } - - /// - /// To be documented. - /// - public static Tm* GetLocTime(ImPlotTime t, ref Tm ptm) - { - fixed (Tm* pptm = &ptm) - { - Tm* ret = GetLocTimeNative(t, (Tm*)pptm); - return ret; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MakeTimeNative(ImPlotTime* pOut, int year, int month, int day, int hour, int min, int sec, int us) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[665])(pOut, year, month, day, hour, min, sec, us); - #else - ((delegate* unmanaged[Cdecl])funcTable[665])((nint)pOut, year, month, day, hour, min, sec, us); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTime MakeTime(int year) - { - ImPlotTime ret; - MakeTimeNative(&ret, year, (int)(0), (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static ImPlotTime MakeTime(int year, int month) - { - ImPlotTime ret; - MakeTimeNative(&ret, year, month, (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static void MakeTime(ImPlotTimePtr pOut, int year) - { - MakeTimeNative(pOut, year, (int)(0), (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); - } - - /// - /// To be documented. - /// - public static ImPlotTime MakeTime(int year, int month, int day) - { - ImPlotTime ret; - MakeTimeNative(&ret, year, month, day, (int)(0), (int)(0), (int)(0), (int)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static void MakeTime(ImPlotTimePtr pOut, int year, int month) - { - MakeTimeNative(pOut, year, month, (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); - } - - /// - /// To be documented. - /// - public static ImPlotTime MakeTime(int year, int month, int day, int hour) - { - ImPlotTime ret; - MakeTimeNative(&ret, year, month, day, hour, (int)(0), (int)(0), (int)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static void MakeTime(ImPlotTimePtr pOut, int year, int month, int day) - { - MakeTimeNative(pOut, year, month, day, (int)(0), (int)(0), (int)(0), (int)(0)); - } - - /// - /// To be documented. - /// - public static ImPlotTime MakeTime(int year, int month, int day, int hour, int min) - { - ImPlotTime ret; - MakeTimeNative(&ret, year, month, day, hour, min, (int)(0), (int)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static void MakeTime(ImPlotTimePtr pOut, int year, int month, int day, int hour) - { - MakeTimeNative(pOut, year, month, day, hour, (int)(0), (int)(0), (int)(0)); - } - - /// - /// To be documented. - /// - public static ImPlotTime MakeTime(int year, int month, int day, int hour, int min, int sec) - { - ImPlotTime ret; - MakeTimeNative(&ret, year, month, day, hour, min, sec, (int)(0)); - return ret; - } - - /// - /// To be documented. - /// - public static void MakeTime(ImPlotTimePtr pOut, int year, int month, int day, int hour, int min) - { - MakeTimeNative(pOut, year, month, day, hour, min, (int)(0), (int)(0)); - } - - /// - /// To be documented. - /// - public static ImPlotTime MakeTime(int year, int month, int day, int hour, int min, int sec, int us) - { - ImPlotTime ret; - MakeTimeNative(&ret, year, month, day, hour, min, sec, us); - return ret; - } - - /// - /// To be documented. - /// - public static void MakeTime(ImPlotTimePtr pOut, int year, int month, int day, int hour, int min, int sec, int us) - { - MakeTimeNative(pOut, year, month, day, hour, min, sec, us); - } - - /// - /// To be documented. - /// - public static void MakeTime(ImPlotTimePtr pOut, int year, int month, int day, int hour, int min, int sec) - { - MakeTimeNative(pOut, year, month, day, hour, min, sec, (int)(0)); - } - - /// - /// To be documented. - /// - public static void MakeTime(ref ImPlotTime pOut, int year, int month, int day, int hour, int min, int sec, int us) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MakeTimeNative((ImPlotTime*)ppOut, year, month, day, hour, min, sec, us); - } - } - - /// - /// To be documented. - /// - public static void MakeTime(ref ImPlotTime pOut, int year, int month, int day, int hour, int min, int sec) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MakeTimeNative((ImPlotTime*)ppOut, year, month, day, hour, min, sec, (int)(0)); - } - } - - /// - /// To be documented. - /// - public static void MakeTime(ref ImPlotTime pOut, int year, int month, int day, int hour, int min) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MakeTimeNative((ImPlotTime*)ppOut, year, month, day, hour, min, (int)(0), (int)(0)); - } - } - - /// - /// To be documented. - /// - public static void MakeTime(ref ImPlotTime pOut, int year, int month, int day, int hour) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MakeTimeNative((ImPlotTime*)ppOut, year, month, day, hour, (int)(0), (int)(0), (int)(0)); - } - } - - /// - /// To be documented. - /// - public static void MakeTime(ref ImPlotTime pOut, int year, int month, int day) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MakeTimeNative((ImPlotTime*)ppOut, year, month, day, (int)(0), (int)(0), (int)(0), (int)(0)); - } - } - - /// - /// To be documented. - /// - public static void MakeTime(ref ImPlotTime pOut, int year, int month) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MakeTimeNative((ImPlotTime*)ppOut, year, month, (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); - } - } - - /// - /// To be documented. - /// - public static void MakeTime(ref ImPlotTime pOut, int year) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MakeTimeNative((ImPlotTime*)ppOut, year, (int)(0), (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetYearNative(ImPlotTime t) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[666])(t); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[666])(t); - #endif - } - - /// - /// To be documented. - /// - public static int GetYear(ImPlotTime t) - { - int ret = GetYearNative(t); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddTimeNative(ImPlotTime* pOut, ImPlotTime t, ImPlotTimeUnit unit, int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[667])(pOut, t, unit, count); - #else - ((delegate* unmanaged[Cdecl])funcTable[667])((nint)pOut, t, unit, count); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTime AddTime(ImPlotTime t, ImPlotTimeUnit unit, int count) - { - ImPlotTime ret; - AddTimeNative(&ret, t, unit, count); - return ret; - } - - /// - /// To be documented. - /// - public static void AddTime(ImPlotTimePtr pOut, ImPlotTime t, ImPlotTimeUnit unit, int count) - { - AddTimeNative(pOut, t, unit, count); - } - - /// - /// To be documented. - /// - public static void AddTime(ref ImPlotTime pOut, ImPlotTime t, ImPlotTimeUnit unit, int count) - { - fixed (ImPlotTime* ppOut = &pOut) - { - AddTimeNative((ImPlotTime*)ppOut, t, unit, count); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FloorTimeNative(ImPlotTime* pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[668])(pOut, t, unit); - #else - ((delegate* unmanaged[Cdecl])funcTable[668])((nint)pOut, t, unit); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTime FloorTime(ImPlotTime t, ImPlotTimeUnit unit) - { - ImPlotTime ret; - FloorTimeNative(&ret, t, unit); - return ret; - } - - /// - /// To be documented. - /// - public static void FloorTime(ImPlotTimePtr pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - FloorTimeNative(pOut, t, unit); - } - - /// - /// To be documented. - /// - public static void FloorTime(ref ImPlotTime pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - fixed (ImPlotTime* ppOut = &pOut) - { - FloorTimeNative((ImPlotTime*)ppOut, t, unit); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CeilTimeNative(ImPlotTime* pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[669])(pOut, t, unit); - #else - ((delegate* unmanaged[Cdecl])funcTable[669])((nint)pOut, t, unit); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTime CeilTime(ImPlotTime t, ImPlotTimeUnit unit) - { - ImPlotTime ret; - CeilTimeNative(&ret, t, unit); - return ret; - } - - /// - /// To be documented. - /// - public static void CeilTime(ImPlotTimePtr pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - CeilTimeNative(pOut, t, unit); - } - - /// - /// To be documented. - /// - public static void CeilTime(ref ImPlotTime pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - fixed (ImPlotTime* ppOut = &pOut) - { - CeilTimeNative((ImPlotTime*)ppOut, t, unit); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RoundTimeNative(ImPlotTime* pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[670])(pOut, t, unit); - #else - ((delegate* unmanaged[Cdecl])funcTable[670])((nint)pOut, t, unit); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTime RoundTime(ImPlotTime t, ImPlotTimeUnit unit) - { - ImPlotTime ret; - RoundTimeNative(&ret, t, unit); - return ret; - } - - /// - /// To be documented. - /// - public static void RoundTime(ImPlotTimePtr pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - RoundTimeNative(pOut, t, unit); - } - - /// - /// To be documented. - /// - public static void RoundTime(ref ImPlotTime pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - fixed (ImPlotTime* ppOut = &pOut) - { - RoundTimeNative((ImPlotTime*)ppOut, t, unit); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CombineDateTimeNative(ImPlotTime* pOut, ImPlotTime datePart, ImPlotTime timePart) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl])funcTable[671])(pOut, datePart, timePart); - #else - ((delegate* unmanaged[Cdecl])funcTable[671])((nint)pOut, datePart, timePart); - #endif - } - - /// - /// To be documented. - /// - public static ImPlotTime CombineDateTime(ImPlotTime datePart, ImPlotTime timePart) - { - ImPlotTime ret; - CombineDateTimeNative(&ret, datePart, timePart); - return ret; - } - - /// - /// To be documented. - /// - public static void CombineDateTime(ImPlotTimePtr pOut, ImPlotTime datePart, ImPlotTime timePart) - { - CombineDateTimeNative(pOut, datePart, timePart); - } - - /// - /// To be documented. - /// - public static void CombineDateTime(ref ImPlotTime pOut, ImPlotTime datePart, ImPlotTime timePart) - { - fixed (ImPlotTime* ppOut = &pOut) - { - CombineDateTimeNative((ImPlotTime*)ppOut, datePart, timePart); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int FormatTimeNative(ImPlotTime t, byte* buffer, int size, ImPlotTimeFmt fmt, byte use24HrClk) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[672])(t, buffer, size, fmt, use24HrClk); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[672])(t, (nint)buffer, size, fmt, use24HrClk); - #endif - } - - /// - /// To be documented. - /// - public static int FormatTime(ImPlotTime t, byte* buffer, int size, ImPlotTimeFmt fmt, bool use24HrClk) - { - int ret = FormatTimeNative(t, buffer, size, fmt, use24HrClk ? (byte)1 : (byte)0); - return ret; - } - - /// - /// To be documented. - /// - public static int FormatTime(ImPlotTime t, ref byte buffer, int size, ImPlotTimeFmt fmt, bool use24HrClk) - { - fixed (byte* pbuffer = &buffer) - { - int ret = FormatTimeNative(t, (byte*)pbuffer, size, fmt, use24HrClk ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public static int FormatTime(ImPlotTime t, ref string buffer, int size, ImPlotTimeFmt fmt, bool use24HrClk) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buffer != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buffer); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buffer, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = FormatTimeNative(t, pStr0, size, fmt, use24HrClk ? (byte)1 : (byte)0); - buffer = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int FormatDateNative(ImPlotTime t, byte* buffer, int size, ImPlotDateFmt fmt, byte useIso8601) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[673])(t, buffer, size, fmt, useIso8601); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[673])(t, (nint)buffer, size, fmt, useIso8601); - #endif - } - - /// - /// To be documented. - /// - public static int FormatDate(ImPlotTime t, byte* buffer, int size, ImPlotDateFmt fmt, bool useIso8601) - { - int ret = FormatDateNative(t, buffer, size, fmt, useIso8601 ? (byte)1 : (byte)0); - return ret; - } - - /// - /// To be documented. - /// - public static int FormatDate(ImPlotTime t, ref byte buffer, int size, ImPlotDateFmt fmt, bool useIso8601) - { - fixed (byte* pbuffer = &buffer) - { - int ret = FormatDateNative(t, (byte*)pbuffer, size, fmt, useIso8601 ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public static int FormatDate(ImPlotTime t, ref string buffer, int size, ImPlotDateFmt fmt, bool useIso8601) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buffer != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buffer); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buffer, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = FormatDateNative(t, pStr0, size, fmt, useIso8601 ? (byte)1 : (byte)0); - buffer = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int FormatDateTimeNative(ImPlotTime t, byte* buffer, int size, ImPlotDateTimeSpec fmt) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[674])(t, buffer, size, fmt); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[674])(t, (nint)buffer, size, fmt); - #endif - } - - /// - /// To be documented. - /// - public static int FormatDateTime(ImPlotTime t, byte* buffer, int size, ImPlotDateTimeSpec fmt) - { - int ret = FormatDateTimeNative(t, buffer, size, fmt); - return ret; - } - - /// - /// To be documented. - /// - public static int FormatDateTime(ImPlotTime t, ref byte buffer, int size, ImPlotDateTimeSpec fmt) - { - fixed (byte* pbuffer = &buffer) - { - int ret = FormatDateTimeNative(t, (byte*)pbuffer, size, fmt); - return ret; - } - } - - /// - /// To be documented. - /// - public static int FormatDateTime(ImPlotTime t, ref string buffer, int size, ImPlotDateTimeSpec fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buffer != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buffer); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buffer, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = FormatDateTimeNative(t, pStr0, size, fmt); - buffer = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ShowDatePickerNative(byte* id, int* level, ImPlotTime* t, ImPlotTime* t1, ImPlotTime* t2) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[675])(id, level, t, t1, t2); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[675])((nint)id, (nint)level, (nint)t, (nint)t1, (nint)t2); - #endif - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - byte ret = ShowDatePickerNative(id, level, t, t1, t2); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1) - { - byte ret = ShowDatePickerNative(id, level, t, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t) - { - byte ret = ShowDatePickerNative(id, level, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (byte* pid = &id) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, t2); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1) - { - fixed (byte* pid = &id) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t) - { - fixed (byte* pid = &id) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (byte* pid = id) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, t2); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1) - { - fixed (byte* pid = id) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, int* level, ImPlotTimePtr t) - { - fixed (byte* pid = id) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ShowDatePickerNative(pStr0, level, t, t1, t2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ShowDatePickerNative(pStr0, level, t, t1, (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ShowDatePickerNative(pStr0, level, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, t, t1, t2); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, t, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, t2); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, t2); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ImPlotTimePtr t) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, t1, t2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, t1, (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, t1, t2); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ImPlotTimePtr t1) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, t2); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ImPlotTimePtr t1) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, t2); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, int* level, ref ImPlotTime t, ImPlotTimePtr t1) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, int* level, ref ImPlotTime t) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, t1, t2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ImPlotTimePtr t1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, t1, t2); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, t2); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, t2); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ref ImPlotTime t) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, t1, t2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(id, level, t, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.135.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.135.cs deleted file mode 100644 index 7b438c47f..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.135.cs +++ /dev/null @@ -1,2476 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ref ImPlotTime t1) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(id, level, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ref ImPlotTime t1) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, int* level, ImPlotTimePtr t, ref ImPlotTime t1) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(pStr0, level, t, (ImPlotTime*)pt1, t2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ref ImPlotTime t1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(pStr0, level, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, t, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, (ImPlotTime*)pt1, t2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ref ImPlotTime t1) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ref ImPlotTime t1) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, int* level, ref ImPlotTime t, ref ImPlotTime t1) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ref ImPlotTime t1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ref ImPlotTime t1) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ref ImPlotTime t1) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ref ImPlotTime t, ref ImPlotTime t1) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ref ImPlotTime t1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(id, level, t, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(pStr0, level, t, t1, (ImPlotTime*)pt2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, t, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, t1, (ImPlotTime*)pt2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(id, level, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(pStr0, level, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(ReadOnlySpan id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - } - - /// - /// To be documented. - /// - public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ShowTimePickerNative(byte* id, ImPlotTime* t) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[676])(id, t); - #else - return (byte)((delegate* unmanaged[Cdecl])funcTable[676])((nint)id, (nint)t); - #endif - } - - /// - /// To be documented. - /// - public static bool ShowTimePicker(byte* id, ImPlotTimePtr t) - { - byte ret = ShowTimePickerNative(id, t); - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ShowTimePicker(ref byte id, ImPlotTimePtr t) - { - fixed (byte* pid = &id) - { - byte ret = ShowTimePickerNative((byte*)pid, t); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowTimePicker(ReadOnlySpan id, ImPlotTimePtr t) - { - fixed (byte* pid = id) - { - byte ret = ShowTimePickerNative((byte*)pid, t); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowTimePicker(string id, ImPlotTimePtr t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ShowTimePickerNative(pStr0, t); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - public static bool ShowTimePicker(byte* id, ref ImPlotTime t) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowTimePickerNative(id, (ImPlotTime*)pt); - return ret != 0; - } - } - - /// - /// To be documented. - /// - public static bool ShowTimePicker(ref byte id, ref ImPlotTime t) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowTimePickerNative((byte*)pid, (ImPlotTime*)pt); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowTimePicker(ReadOnlySpan id, ref ImPlotTime t) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowTimePickerNative((byte*)pid, (ImPlotTime*)pt); - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - public static bool ShowTimePicker(string id, ref ImPlotTime t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowTimePickerNative(pStr0, (ImPlotTime*)pt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double TransformForward_Log10Native(double v, void* noname1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[677])(v, noname1); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[677])(v, (nint)noname1); - #endif - } - - /// - /// To be documented. - /// - public static double TransformForward_Log10(double v, void* noname1) - { - double ret = TransformForward_Log10Native(v, noname1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double TransformInverse_Log10Native(double v, void* noname1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[678])(v, noname1); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[678])(v, (nint)noname1); - #endif - } - - /// - /// To be documented. - /// - public static double TransformInverse_Log10(double v, void* noname1) - { - double ret = TransformInverse_Log10Native(v, noname1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double TransformForward_SymLogNative(double v, void* noname1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[679])(v, noname1); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[679])(v, (nint)noname1); - #endif - } - - /// - /// To be documented. - /// - public static double TransformForward_SymLog(double v, void* noname1) - { - double ret = TransformForward_SymLogNative(v, noname1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double TransformInverse_SymLogNative(double v, void* noname1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[680])(v, noname1); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[680])(v, (nint)noname1); - #endif - } - - /// - /// To be documented. - /// - public static double TransformInverse_SymLog(double v, void* noname1) - { - double ret = TransformInverse_SymLogNative(v, noname1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double TransformForward_LogitNative(double v, void* noname1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[681])(v, noname1); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[681])(v, (nint)noname1); - #endif - } - - /// - /// To be documented. - /// - public static double TransformForward_Logit(double v, void* noname1) - { - double ret = TransformForward_LogitNative(v, noname1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double TransformInverse_LogitNative(double v, void* noname1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[682])(v, noname1); - #else - return (double)((delegate* unmanaged[Cdecl])funcTable[682])(v, (nint)noname1); - #endif - } - - /// - /// To be documented. - /// - public static double TransformInverse_Logit(double v, void* noname1) - { - double ret = TransformInverse_LogitNative(v, noname1); - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int Formatter_DefaultNative(double value, byte* buff, int size, void* data) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[683])(value, buff, size, data); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[683])(value, (nint)buff, size, (nint)data); - #endif - } - - /// - /// To be documented. - /// - public static int Formatter_Default(double value, byte* buff, int size, void* data) - { - int ret = Formatter_DefaultNative(value, buff, size, data); - return ret; - } - - /// - /// To be documented. - /// - public static int Formatter_Default(double value, ref byte buff, int size, void* data) - { - fixed (byte* pbuff = &buff) - { - int ret = Formatter_DefaultNative(value, (byte*)pbuff, size, data); - return ret; - } - } - - /// - /// To be documented. - /// - public static int Formatter_Default(double value, ref string buff, int size, void* data) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buff != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buff); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = Formatter_DefaultNative(value, pStr0, size, data); - buff = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int Formatter_LogitNative(double value, byte* buff, int size, void* noname1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[684])(value, buff, size, noname1); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[684])(value, (nint)buff, size, (nint)noname1); - #endif - } - - /// - /// To be documented. - /// - public static int Formatter_Logit(double value, byte* buff, int size, void* noname1) - { - int ret = Formatter_LogitNative(value, buff, size, noname1); - return ret; - } - - /// - /// To be documented. - /// - public static int Formatter_Logit(double value, ref byte buff, int size, void* noname1) - { - fixed (byte* pbuff = &buff) - { - int ret = Formatter_LogitNative(value, (byte*)pbuff, size, noname1); - return ret; - } - } - - /// - /// To be documented. - /// - public static int Formatter_Logit(double value, ref string buff, int size, void* noname1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buff != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buff); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = Formatter_LogitNative(value, pStr0, size, noname1); - buff = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int Formatter_TimeNative(double noname1, byte* buff, int size, void* data) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl])funcTable[685])(noname1, buff, size, data); - #else - return (int)((delegate* unmanaged[Cdecl])funcTable[685])(noname1, (nint)buff, size, (nint)data); - #endif - } - - /// - /// To be documented. - /// - public static int Formatter_Time(double noname1, byte* buff, int size, void* data) - { - int ret = Formatter_TimeNative(noname1, buff, size, data); - return ret; - } - - /// - /// To be documented. - /// - public static int Formatter_Time(double noname1, ref byte buff, int size, void* data) - { - fixed (byte* pbuff = &buff) - { - int ret = Formatter_TimeNative(noname1, (byte*)pbuff, size, data); - return ret; - } - } - - /// - /// To be documented. - /// - public static int Formatter_Time(double noname1, ref string buff, int size, void* data) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buff != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buff); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = Formatter_TimeNative(noname1, pStr0, size, data); - buff = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void Locator_DefaultNative(ImPlotTicker* ticker, ImPlotRange range, float pixels, byte vertical, ImPlotFormatter formatter, void* formatterData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl], void*, void>)funcTable[686])(ticker, range, pixels, vertical, (delegate*)Utils.GetFunctionPointerForDelegate(formatter), formatterData); - #else - ((delegate* unmanaged[Cdecl])funcTable[686])((nint)ticker, range, pixels, vertical, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)formatterData); - #endif - } - - /// - /// To be documented. - /// - public static void Locator_Default(ImPlotTickerPtr ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) - { - Locator_DefaultNative(ticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); - } - - /// - /// To be documented. - /// - public static void Locator_Default(ref ImPlotTicker ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) - { - fixed (ImPlotTicker* pticker = &ticker) - { - Locator_DefaultNative((ImPlotTicker*)pticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void Locator_TimeNative(ImPlotTicker* ticker, ImPlotRange range, float pixels, byte vertical, ImPlotFormatter formatter, void* formatterData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl], void*, void>)funcTable[687])(ticker, range, pixels, vertical, (delegate*)Utils.GetFunctionPointerForDelegate(formatter), formatterData); - #else - ((delegate* unmanaged[Cdecl])funcTable[687])((nint)ticker, range, pixels, vertical, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)formatterData); - #endif - } - - /// - /// To be documented. - /// - public static void Locator_Time(ImPlotTickerPtr ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) - { - Locator_TimeNative(ticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); - } - - /// - /// To be documented. - /// - public static void Locator_Time(ref ImPlotTicker ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) - { - fixed (ImPlotTicker* pticker = &ticker) - { - Locator_TimeNative((ImPlotTicker*)pticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void Locator_Log10Native(ImPlotTicker* ticker, ImPlotRange range, float pixels, byte vertical, ImPlotFormatter formatter, void* formatterData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl], void*, void>)funcTable[688])(ticker, range, pixels, vertical, (delegate*)Utils.GetFunctionPointerForDelegate(formatter), formatterData); - #else - ((delegate* unmanaged[Cdecl])funcTable[688])((nint)ticker, range, pixels, vertical, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)formatterData); - #endif - } - - /// - /// To be documented. - /// - public static void Locator_Log10(ImPlotTickerPtr ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) - { - Locator_Log10Native(ticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); - } - - /// - /// To be documented. - /// - public static void Locator_Log10(ref ImPlotTicker ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) - { - fixed (ImPlotTicker* pticker = &ticker) - { - Locator_Log10Native((ImPlotTicker*)pticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void Locator_SymLogNative(ImPlotTicker* ticker, ImPlotRange range, float pixels, byte vertical, ImPlotFormatter formatter, void* formatterData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl], void*, void>)funcTable[689])(ticker, range, pixels, vertical, (delegate*)Utils.GetFunctionPointerForDelegate(formatter), formatterData); - #else - ((delegate* unmanaged[Cdecl])funcTable[689])((nint)ticker, range, pixels, vertical, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)formatterData); - #endif - } - - /// - /// To be documented. - /// - public static void Locator_SymLog(ImPlotTickerPtr ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) - { - Locator_SymLogNative(ticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); - } - - /// - /// To be documented. - /// - public static void Locator_SymLog(ref ImPlotTicker ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) - { - fixed (ImPlotTicker* pticker = &ticker) - { - Locator_SymLogNative((ImPlotTicker*)pticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); - } - } - - /// - /// ImPlotPoint getters manually wrapped
- ///
- [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineGNative(byte* labelId, ImPlotPointGetter getter, void* data, int count, ImPlotLineFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl], void*, int, ImPlotLineFlags, void>)funcTable[690])(labelId, (delegate*)Utils.GetFunctionPointerForDelegate(getter), data, count, flags); - #else - ((delegate* unmanaged[Cdecl])funcTable[690])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter), (nint)data, count, flags); - #endif - } - - /// - /// ImPlotPoint getters manually wrapped
- ///
- public static void PlotLineG(byte* labelId, ImPlotPointGetter getter, void* data, int count, ImPlotLineFlags flags) - { - PlotLineGNative(labelId, getter, data, count, flags); - } - - /// - /// ImPlotPoint getters manually wrapped
- ///
- public static void PlotLineG(byte* labelId, ImPlotPointGetter getter, void* data, int count) - { - PlotLineGNative(labelId, getter, data, count, (ImPlotLineFlags)(0)); - } - - /// - /// ImPlotPoint getters manually wrapped
- ///
- public static void PlotLineG(ref byte labelId, ImPlotPointGetter getter, void* data, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineGNative((byte*)plabelId, getter, data, count, flags); - } - } - - /// - /// ImPlotPoint getters manually wrapped
- ///
- public static void PlotLineG(ref byte labelId, ImPlotPointGetter getter, void* data, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineGNative((byte*)plabelId, getter, data, count, (ImPlotLineFlags)(0)); - } - } - - /// - /// ImPlotPoint getters manually wrapped
- ///
- public static void PlotLineG(ReadOnlySpan labelId, ImPlotPointGetter getter, void* data, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineGNative((byte*)plabelId, getter, data, count, flags); - } - } - - /// - /// ImPlotPoint getters manually wrapped
- ///
- public static void PlotLineG(ReadOnlySpan labelId, ImPlotPointGetter getter, void* data, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineGNative((byte*)plabelId, getter, data, count, (ImPlotLineFlags)(0)); - } - } - - /// - /// ImPlotPoint getters manually wrapped
- ///
- public static void PlotLineG(string labelId, ImPlotPointGetter getter, void* data, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineGNative(pStr0, getter, data, count, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// ImPlotPoint getters manually wrapped
- ///
- public static void PlotLineG(string labelId, ImPlotPointGetter getter, void* data, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineGNative(pStr0, getter, data, count, (ImPlotLineFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterGNative(byte* labelId, ImPlotPointGetter getter, void* data, int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl], void*, int, void>)funcTable[691])(labelId, (delegate*)Utils.GetFunctionPointerForDelegate(getter), data, count); - #else - ((delegate* unmanaged[Cdecl])funcTable[691])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter), (nint)data, count); - #endif - } - - /// - /// To be documented. - /// - public static void PlotScatterG(byte* labelId, ImPlotPointGetter getter, void* data, int count) - { - PlotScatterGNative(labelId, getter, data, count); - } - - /// - /// To be documented. - /// - public static void PlotScatterG(ref byte labelId, ImPlotPointGetter getter, void* data, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterGNative((byte*)plabelId, getter, data, count); - } - } - - /// - /// To be documented. - /// - public static void PlotScatterG(ReadOnlySpan labelId, ImPlotPointGetter getter, void* data, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterGNative((byte*)plabelId, getter, data, count); - } - } - - /// - /// To be documented. - /// - public static void PlotScatterG(string labelId, ImPlotPointGetter getter, void* data, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterGNative(pStr0, getter, data, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedGNative(byte* labelId, ImPlotPointGetter getter1, void* data1, ImPlotPointGetter getter2, void* data2, int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl], void*, delegate*, void*, int, void>)funcTable[692])(labelId, (delegate*)Utils.GetFunctionPointerForDelegate(getter1), data1, (delegate*)Utils.GetFunctionPointerForDelegate(getter2), data2, count); - #else - ((delegate* unmanaged[Cdecl])funcTable[692])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter1), (nint)data1, (nint)Utils.GetFunctionPointerForDelegate(getter2), (nint)data2, count); - #endif - } - - /// - /// To be documented. - /// - public static void PlotShadedG(byte* labelId, ImPlotPointGetter getter1, void* data1, ImPlotPointGetter getter2, void* data2, int count) - { - PlotShadedGNative(labelId, getter1, data1, getter2, data2, count); - } - - /// - /// To be documented. - /// - public static void PlotShadedG(ref byte labelId, ImPlotPointGetter getter1, void* data1, ImPlotPointGetter getter2, void* data2, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedGNative((byte*)plabelId, getter1, data1, getter2, data2, count); - } - } - - /// - /// To be documented. - /// - public static void PlotShadedG(ReadOnlySpan labelId, ImPlotPointGetter getter1, void* data1, ImPlotPointGetter getter2, void* data2, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedGNative((byte*)plabelId, getter1, data1, getter2, data2, count); - } - } - - /// - /// To be documented. - /// - public static void PlotShadedG(string labelId, ImPlotPointGetter getter1, void* data1, ImPlotPointGetter getter2, void* data2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedGNative(pStr0, getter1, data1, getter2, data2, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsGNative(byte* labelId, ImPlotPointGetter getter, void* data, int count, double width) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl], void*, int, double, void>)funcTable[693])(labelId, (delegate*)Utils.GetFunctionPointerForDelegate(getter), data, count, width); - #else - ((delegate* unmanaged[Cdecl])funcTable[693])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter), (nint)data, count, width); - #endif - } - - /// - /// To be documented. - /// - public static void PlotBarsG(byte* labelId, ImPlotPointGetter getter, void* data, int count, double width) - { - PlotBarsGNative(labelId, getter, data, count, width); - } - - /// - /// To be documented. - /// - public static void PlotBarsG(ref byte labelId, ImPlotPointGetter getter, void* data, int count, double width) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsGNative((byte*)plabelId, getter, data, count, width); - } - } - - /// - /// To be documented. - /// - public static void PlotBarsG(ReadOnlySpan labelId, ImPlotPointGetter getter, void* data, int count, double width) - { - fixed (byte* plabelId = labelId) - { - PlotBarsGNative((byte*)plabelId, getter, data, count, width); - } - } - - /// - /// To be documented. - /// - public static void PlotBarsG(string labelId, ImPlotPointGetter getter, void* data, int count, double width) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsGNative(pStr0, getter, data, count, width); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// CIMGUI_API void ImPlot_PlotBarsHG(const char* label_id, ImPlotPoint_getter getter, void* data, int count, double height);
- ///
- [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalGNative(byte* labelId, ImPlotPointGetter getter, void* data, int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl], void*, int, void>)funcTable[694])(labelId, (delegate*)Utils.GetFunctionPointerForDelegate(getter), data, count); - #else - ((delegate* unmanaged[Cdecl])funcTable[694])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter), (nint)data, count); - #endif - } - - /// - /// CIMGUI_API void ImPlot_PlotBarsHG(const char* label_id, ImPlotPoint_getter getter, void* data, int count, double height);
- ///
- public static void PlotDigitalG(byte* labelId, ImPlotPointGetter getter, void* data, int count) - { - PlotDigitalGNative(labelId, getter, data, count); - } - - /// - /// CIMGUI_API void ImPlot_PlotBarsHG(const char* label_id, ImPlotPoint_getter getter, void* data, int count, double height);
- ///
- public static void PlotDigitalG(ref byte labelId, ImPlotPointGetter getter, void* data, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalGNative((byte*)plabelId, getter, data, count); - } - } - - /// - /// CIMGUI_API void ImPlot_PlotBarsHG(const char* label_id, ImPlotPoint_getter getter, void* data, int count, double height);
- ///
- public static void PlotDigitalG(ReadOnlySpan labelId, ImPlotPointGetter getter, void* data, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalGNative((byte*)plabelId, getter, data, count); - } - } - - /// - /// CIMGUI_API void ImPlot_PlotBarsHG(const char* label_id, ImPlotPoint_getter getter, void* data, int count, double height);
- ///
- public static void PlotDigitalG(string labelId, ImPlotPointGetter getter, void* data, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalGNative(pStr0, getter, data, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAxis.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAxis.cs index a470e5a41..fec898382 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAxis.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAxis.cs @@ -1178,7 +1178,7 @@ namespace Dalamud.Bindings.ImPlot /// /// To be documented. /// - public unsafe void ExtendFitWith(ImPlotAxis* alt, double v, double vAlt) + public unsafe void ExtendFitWith(ImPlotAxisPtr alt, double v, double vAlt) { ImPlot.ExtendFitWithNative(Handle, alt, v, vAlt); } diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotColormapData.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotColormapData.cs index 3a88cc0ae..53d54463c 100644 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotColormapData.cs +++ b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotColormapData.cs @@ -184,93 +184,6 @@ namespace Dalamud.Bindings.ImPlot } } - /// - /// To be documented. - /// - public unsafe int Append(byte* name, ref uint keys, int count, bool qual) - { - fixed (ImPlotColormapData* @this = &this) - { - fixed (uint* pkeys = &keys) - { - int ret = ImPlot.AppendNative(@this, name, (uint*)pkeys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe int Append(ref byte name, ref uint keys, int count, bool qual) - { - fixed (ImPlotColormapData* @this = &this) - { - fixed (byte* pname = &name) - { - fixed (uint* pkeys = &keys) - { - int ret = ImPlot.AppendNative(@this, (byte*)pname, (uint*)pkeys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public unsafe int Append(ReadOnlySpan name, ref uint keys, int count, bool qual) - { - fixed (ImPlotColormapData* @this = &this) - { - fixed (byte* pname = name) - { - fixed (uint* pkeys = &keys) - { - int ret = ImPlot.AppendNative(@this, (byte*)pname, (uint*)pkeys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - public unsafe int Append(string name, ref uint keys, int count, bool qual) - { - fixed (ImPlotColormapData* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pkeys = &keys) - { - int ret = ImPlot.AppendNative(@this, pStr0, (uint*)pkeys, count, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - /// /// To be documented. /// @@ -657,81 +570,6 @@ namespace Dalamud.Bindings.ImPlot return ret; } - /// - /// To be documented. - /// - public unsafe int Append(byte* name, ref uint keys, int count, bool qual) - { - fixed (uint* pkeys = &keys) - { - int ret = ImPlot.AppendNative(Handle, name, (uint*)pkeys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// - /// To be documented. - /// - public unsafe int Append(ref byte name, ref uint keys, int count, bool qual) - { - fixed (byte* pname = &name) - { - fixed (uint* pkeys = &keys) - { - int ret = ImPlot.AppendNative(Handle, (byte*)pname, (uint*)pkeys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe int Append(ReadOnlySpan name, ref uint keys, int count, bool qual) - { - fixed (byte* pname = name) - { - fixed (uint* pkeys = &keys) - { - int ret = ImPlot.AppendNative(Handle, (byte*)pname, (uint*)pkeys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// - /// To be documented. - /// - public unsafe int Append(string name, ref uint keys, int count, bool qual) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pkeys = &keys) - { - int ret = ImPlot.AppendNative(Handle, pStr0, (uint*)pkeys, count, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - /// /// To be documented. /// diff --git a/lib/Hexa.NET.ImGui b/lib/Hexa.NET.ImGui index b206345f5..53ae49bc5 160000 --- a/lib/Hexa.NET.ImGui +++ b/lib/Hexa.NET.ImGui @@ -1 +1 @@ -Subproject commit b206345f59c188bcd143c0f6d011f94971bbf4a1 +Subproject commit 53ae49bc558aa8ba9f4fad3515aa17fab99d7ffa